Documentation ¶
Overview ¶
Package models @author <chengjiang@buffalo-robot.com> @date 2023/2/3 @note
Package models @author <chengjiang@buffalo-robot.com> @date 2023/2/3 @note
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionCard ¶
type ActionCard struct { Title string Text string Orientation int32 Btns []*ActionCardBtn }
func (*ActionCard) Scan ¶
func (card *ActionCard) Scan(value interface{}) error
type ActionCardBtn ¶
type BaseModel ¶
type BaseModel struct { ID int64 `db:"column:id;type:bigint(20);is not null;primarykey;"` CreatedBy int64 `db:"column:创建人;type:bigint(20);"` CreatedAt *ztime.Time `db:"column:创建时间;type:datetime;"` UpdatedBy int64 `db:"column:修改人;type:bigint(20);"` UpdatedAt *ztime.Time `db:"column:修改时间;type:datetime;"` DeletedBy int64 `db:"column:删除人;type:bigint(20);"` DeletedAt *ztime.Time `db:"column:删除时间;type:datetime;"` }
type Message ¶
type Message struct { BaseModel From int64 `db:"column:来源用户的ID;type:bigint(20);is not null;index"` FromName string `db:"column:来源用户姓名;type:varchar(20);"` ToSessionID int64 `db:"column:发送的会话ID;type:bigint(20);is not null;index"` Content string `db:"column:文本内容;type:varchar(5000)"` ContentType int32 `db:"column:消息内容;type:int;"` Url string `db:"column:静态资源路径;type:varchar(5000)"` Card *ActionCard `db:"column:操作面板;type:varchar(5000)"` }
func (*Message) TableComment ¶
type NotifyRobot ¶
type NotifyRobot struct { BaseModel Name string `db:"column:机器人姓名;type:varchar(20)"` SessionSet *bmodels.BitMap `db:"column:所加入的会话集合;type:varchar(5000)"` Type int32 `db:"column:机器人类型;type:int;"` Description string `db:"column:机器人描述及其作用;type:varchar(500)"` }
func (*NotifyRobot) TableComment ¶
func (t *NotifyRobot) TableComment() string
func (*NotifyRobot) TableName ¶
func (t *NotifyRobot) TableName() string
type Plugins ¶
type Plugins struct { BaseModel PluginName string `db:"column:插件名;type:varchar(50)"` PluginURL string `db:"column:插件地址;type:varchar(500)"` PluginIconURL string `db:"column:插件ICON地址;type:varchar(500)"` }
func (*Plugins) TableComment ¶
type Session ¶
type Session struct { BaseModel SessionName string `db:"column:会话名;type:varchar(5000)"` UserIDSet *bmodels.BitMap `db:"column:会话用户;type:varchar(5000)"` EndTime *time.Time `db:"column:会话结束时间;type:datetime"` LastMessageTime *time.Time `db:"column:最后一次消息时间;type:dateTime"` MessageID int64 `db:"column:最后一次消息的ID;type:bigint"` Type int32 `db:"column:会话类型;type:int;"` SessionAvatar string `db:"column:会话头像;type:varchar(500);"` }
func (*Session) GetLastSessionTime ¶
func (*Session) GetSessionStatus ¶
func (*Session) TableComment ¶
type SystemNotifyMessage ¶
type SystemNotifyMessage struct { BaseModel From int64 `db:"column:来源系统用户的ID;type:bigint(20);is not null;index"` FromName string `db:"column:来源系统用户姓名;type:varchar(20);"` ToSessionID int64 `db:"column:发送的会话ID;type:bigint(20);is not null;index"` Content string `db:"column:文本内容;type:varchar(5000)"` ContentType int32 `db:"column:消息内容;type:int;"` Url string `db:"column:静态资源路径;type:varchar(500)"` Card *ActionCard `db:"column:操作面板;type:varchar(5000)"` IsReadIdSet *models.BitMap `db:"column:已读用户集合;type:varchar(5000)"` }
func (*SystemNotifyMessage) TableComment ¶
func (t *SystemNotifyMessage) TableComment() string
func (*SystemNotifyMessage) TableName ¶
func (t *SystemNotifyMessage) TableName() string
type UsersSession ¶
type UsersSession struct { BaseModel UserID int64 `db:"column:用户ID;type:bigint(20);index"` ValidSessionSet *bmodels.BitMap `db:"column:有效的会话集合;type:varchar(5000)"` EndSessionSet *bmodels.BitMap `db:"column:无效的会话集合;type:varchar(5000)"` }
func (*UsersSession) TableComment ¶
func (t *UsersSession) TableComment() string
func (*UsersSession) TableName ¶
func (t *UsersSession) TableName() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.