Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatMessage ¶
type ChatMessage struct { entity.BaseEntity `xorm:"extends"` MessageId string `xorm:"varchar(255) notnull" json:",omitempty"` Content string `xorm:"varchar(32)" json:",omitempty"` }
* 定义了两个实体和他们对应的表名
* 会话历史记录
func (ChatMessage) IdName ¶
func (ChatMessage) IdName() string
func (ChatMessage) TableName ¶
func (ChatMessage) TableName() string
type ChatReceive ¶
type ChatReceive struct { entity.BaseEntity `xorm:"extends"` MessageId string `xorm:"varchar(255) notnull" json:",omitempty"` ReceivedTime time.Time }
* 定义了两个实体和他们对应的表名
* 会话历史记录
func (ChatReceive) IdName ¶
func (ChatReceive) IdName() string
func (ChatReceive) TableName ¶
func (ChatReceive) TableName() string
Click to show internal directories.
Click to hide internal directories.