message.go
583 字节
package command
type Receiver struct {
ReceiverUid int64 `json:"receiverUid" valid:"Required"`
ReceiverName string `json:"receiverName" valid:"Required"`
}
type PushMessageCommand struct {
MessageType int `json:"messageType" valid:"Required"`
Title string `json:"title" valid:"Required"`
Content string `json:"content" valid:"Required"`
SenderUid int64 `json:"senderUid,omitempty"`
SenderName string `json:"senderName,omitempty"`
Receivers []Receiver `json:"receivers"`
CompanyId int `json:"companyId" valid:"Required"`
}