16 lines
283 B
Go
16 lines
283 B
Go
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,
|
|
},
|
|
}
|
|
}
|