refactor: 重构消息发送模型
This commit is contained in:
15
model/action.go
Normal file
15
model/action.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package model
|
||||
|
||||
type Action struct {
|
||||
Action string `json:"action"`
|
||||
Params map[string]interface{} `json:"params"`
|
||||
}
|
||||
|
||||
func GenDrawbackPkg(msgId int32) Action {
|
||||
return Action{
|
||||
Action: "delete_msg",
|
||||
Params: map[string]interface{}{
|
||||
"message_id": msgId,
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user