text.go 514 B

123456789101112
  1. package request
  2. type AddTextReq struct {
  3. Id uint `gorm:"primaryKey;autoIncrement:true" json:"id"`
  4. Content string `gorm:"type:varchar(255);not null;default:'';comment:音频名称" json:"content" binding:"required"` // 音频名称
  5. LocomotiveNumber string `gorm:"index;type:varchar(255);not null;default:'';comment:机车号" json:"locomotiveNumber" binding:"required"` // 机车号
  6. }
  7. type GetTextList struct {
  8. PageInfo
  9. Keyword string `form:"keyword"` // 关键字
  10. }