Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //OpenSub 是否启动订阅 OpenSub = false )
工作提示模块 * 1. 外部任意模块可写入通知 2. 可联动任意模块,交互处理跳转
Functions ¶
Types ¶
type ArgsGetMsgList ¶
type ArgsGetMsgList struct { //分页 Pages CoreSQLPages.ArgsDataList `json:"pages"` //成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID"` //是否已读 IsRead bool `db:"is_read" json:"isRead"` }
ArgsGetMsgList 获取通知列表参数
type FieldsWorkTip ¶
type FieldsWorkTip struct { //ID ID int64 `db:"id" json:"id"` //创建时间 CreateAt time.Time `db:"create_at" json:"createAt"` //组织ID OrgID int64 `db:"org_id" json:"orgID"` //成员ID OrgBindID int64 `db:"org_bind_id" json:"orgBindID"` //消息内容 Msg string `db:"msg" json:"msg"` //系统 System string `db:"system" json:"system"` //绑定ID BindID int64 `db:"bind_id" json:"bindID"` //是否已读 IsRead bool `db:"is_read" json:"isRead"` }
func GetLastMsg ¶
func GetLastMsg(orgBindID int64) (data FieldsWorkTip, count int64)
GetLastMsg 获取最近一条通知
func GetMsgList ¶
func GetMsgList(args *ArgsGetMsgList) (dataList []FieldsWorkTip, dataCount int64, err error)
GetMsgList 获取通知列表
Click to show internal directories.
Click to hide internal directories.