prompt.go 469 B

12345678910111213
  1. package models
  2. //各模块的提示词拼接库0、AI问答,1、安全培训,2、AI写作,3、考试工坊
  3. type Prompt struct {
  4. BaseModel
  5. Prompt string `gorm:"type:text;not null;comment:提示词" json:"prompt"`
  6. BusinessType int `gorm:"type:tinyint;not null;comment:业务类型(0、AI问答,1、安全培训,2、AI写作,3、考试工坊)" json:"business_type"`
  7. }
  8. // TableName 指定表名
  9. func (Prompt) TableName() string {
  10. return "prompt"
  11. }