mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-04-24 12:04:31 +08:00
文本审核记录功能完成
This commit is contained in:
@@ -5,7 +5,8 @@ import "time"
|
||||
type Moderation struct {
|
||||
Id uint `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
||||
UserId uint `gorm:"column:user_id;type:int(11);not null;comment:用户ID" json:"user_id"`
|
||||
Input string `gorm:"column:prompt;type:text;not null;comment:用户输入" json:"input"`
|
||||
Source string `gorm:"column:source;type:varchar(255);not null;comment:敏感词来源" json:"source"`
|
||||
Input string `gorm:"column:input;type:text;not null;comment:用户输入" json:"input"`
|
||||
Output string `gorm:"column:output;type:text;not null;comment:AI 输出" json:"output"`
|
||||
Result string `gorm:"column:result;type:text;not null;comment:鉴别结果" json:"result"`
|
||||
CreatedAt time.Time `gorm:"column:created_at;type:datetime;not null" json:"created_at"`
|
||||
|
||||
Reference in New Issue
Block a user