Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSystemToAllUser ¶
func CreateSystemToAllUser(waitSendAt time.Time, title, content string, fileID []int64, params CoreSQLConfig.FieldsConfigsType)
CreateSystemToAllUser 发送全局用户消息
func CreateSystemToUser ¶
func CreateSystemToUser(waitSendAt time.Time, receiveUserID int64, title, content string, fileID []int64, params CoreSQLConfig.FieldsConfigsType)
CreateSystemToUser 发送系统消息
Types ¶
type ArgsCreate ¶
type ArgsCreate struct { //预计发送时间 WaitSendAt time.Time `json:"waitSendAt" check:"isoTime" empty:"true"` //发送人 // 如果为0则为系统消息,同时自动跳过时间差验证机制 SendUserID int64 `json:"sendUserID" check:"id"` //接收人 ReceiveUserID int64 `json:"receiveUserID" check:"id"` //标题 Title string `json:"title" check:"des" min:"1" max:"300"` //内容 Content string `json:"content" check:"des" min:"1" max:"1500"` //附件文件列 Files []int64 `json:"files" check:"ids" empty:"true"` //扩展参数 Params CoreSQLConfig.FieldsConfigsType `json:"params"` }
ArgsCreate 创建新的消息参数
Click to show internal directories.
Click to hide internal directories.