entity

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL