service/dbstruct/notification.go

46 lines
2.3 KiB
Go
Raw Normal View History

2024-08-30 16:34:00 +08:00
package dbstruct
type Notification struct {
Id *int64 `json:"id" bson:"_id"` // 系统通知表id
SubMid *int64 `json:"sub_mid" bson:"sub_mid"` // 通知发送人mid
NType *int64 `json:"n_type" bson:"n_type"` // 消息类型
NDesc *string `json:"n_desc" bson:"n_desc"` // 消息描述
Message *string `json:"message" bson:"message"` // 消息内容
Thumbnail *MediaComponent `json:"thumbnail" bson:"thumbnail"` // 缩略图
LinkText *string `json:"link_text" bson:"link_text"` // 链接文案
2024-09-11 15:44:49 +08:00
Action *string `json:"action" bson:"action"` // 行为
Params *string `json:"params" bson:"params"` // 参数
PushTime *int64 `json:"push_time" bson:"push_time"` // 推送时间
Status *int64 `json:"status" bson:"status"` // 推送状态
2024-08-30 16:34:00 +08:00
Ct *int64 `json:"ct" bson:"ct"` // 创建时间
Ut *int64 `json:"ut" bson:"ut"` // 更新时间
DelFlag *int64 `json:"del_flag" bson:"del_flag"` // 删除标记
2024-09-02 12:52:49 +08:00
}
2024-08-30 16:34:00 +08:00
2024-10-16 14:46:13 +08:00
type NotifBcst struct {
Id int64 `json:"id" bson:"_id"` // 通知广播表id
Nids []int64 `json:"nids" bson:"nids"` // 系统通知表ids
Vers int64 `json:"vers" bson:"vers"` // 通知广播表版本号
ObjType int64 `json:"obj_type" bson:"obj_type"` // 通知接收人类型0-所有主播1-所有个人
Ct int64 `json:"ct" bson:"ct"` // 创建时间
Ut int64 `json:"ut" bson:"ut"` // 更新时间
DelFlag int64 `json:"del_flag" bson:"del_flag"` // 删除标记
}
type NotifBcstVers struct {
Vers int64 `json:"vers" bson:"vers"` // 通知广播表版本号
}
type NotifBcstReceiveVers struct {
2024-10-16 15:32:12 +08:00
Vers int64 `json:"vers" bson:"vers"` // 通知广播接收表版本号
2024-10-16 14:46:13 +08:00
}
type NotifReceive struct {
Id int64 `json:"id" bson:"_id"` // 通知接收表id
ObjMid int64 `json:"obj_mid" bson:"obj_mid"` // 通知接收人mid
Nid int64 `json:"nid" bson:"nid"` // 系统通知表id
Ct int64 `json:"ct" bson:"ct"` // 创建时间
Ut int64 `json:"ut" bson:"ut"` // 更新时间
DelFlag int64 `json:"del_flag" bson:"del_flag"` // 删除标记
2024-08-30 16:34:00 +08:00
}