mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
refactor: dbm
This commit is contained in:
@@ -7,7 +7,6 @@ import "mayfly-go/pkg/utils/anyx"
|
||||
const SuccessSysMsgType = 1
|
||||
const ErrorSysMsgType = 0
|
||||
const InfoSysMsgType = 2
|
||||
const InfoTypeSqlExecProgress = 22
|
||||
|
||||
// websocket消息
|
||||
type SysMsg struct {
|
||||
@@ -43,9 +42,6 @@ func (sm *SysMsg) WithClientId(clientId string) *SysMsg {
|
||||
func InfoSysMsg(title string, msg any) *SysMsg {
|
||||
return &SysMsg{Type: InfoSysMsgType, Title: title, Msg: anyx.ToString(msg)}
|
||||
}
|
||||
func InfoSqlProgressMsg(title string, msg any) *SysMsg {
|
||||
return &SysMsg{Type: InfoTypeSqlExecProgress, Title: title, Msg: anyx.ToString(msg)}
|
||||
}
|
||||
|
||||
// 成功消息
|
||||
func SuccessSysMsg(title string, msg any) *SysMsg {
|
||||
|
||||
Reference in New Issue
Block a user