doc_file_response.go 2.2 KB

123456789101112131415161718192021
  1. package response
  2. import "time"
  3. type DocFileResponse struct {
  4. Id int64 `excel:"name= " xorm:"pk autoincr notnull comment('')" json:"id" binding:"required"` //
  5. CatgoryId int64 `excel:"name=分类id " xorm:"bigint(20) comment('分类id')" json:"catgoryId" ` //分类id
  6. UserId int64 `excel:"name=分类id " xorm:"bigint(20) comment('分类id')" json:"userId" ` //分类id
  7. Label string `excel:"name=标题 " xorm:"varchar(64) comment('标题')" json:"label" binding:"required"` //标题
  8. Keywords string `excel:"name=关键字 " xorm:"varchar(255) comment('关键字')" json:"keywords" ` //关键字
  9. Info string `excel:"name=简介 " xorm:"varchar(255) comment('简介')" json:"info" ` //简介
  10. Content string `excel:"name=内容 " xorm:"longtext comment('内容')" json:"content" binding:"required"` //内容
  11. File string `excel:"name=附件 " xorm:"text comment('附件')" json:"file" ` //附件
  12. State int `excel:"name=状态 ,format=1=禁用,2=启用" xorm:"int(1) notnull default(2) comment('状态')" json:"state" ` //状态(1禁用 2启用)
  13. Sort int64 `excel:"name=排序 " xorm:"bigint(20) default(0) comment('排序')" json:"sort" ` //排序
  14. CreateTime time.Time `excel:"name=创建时间 " xorm:"datetime comment('创建时间')" json:"createTime" ` //创建时间
  15. CreateBy string `excel:"name=创建人 " xorm:"varchar(255) comment('创建人')" json:"createBy" ` //创建人
  16. UpdateTime time.Time `excel:"name=更新时间 " xorm:"datetime comment('更新时间')" json:"updateTime" ` //更新时间
  17. UpdateBy string `excel:"name=更新人 " xorm:"varchar(255) comment('更新人')" json:"updateBy" ` //更新人
  18. CompanyId int64 `excel:"name=公司id " xorm:"bigint(20) comment('公司id')" json:"companyId" ` //公司id
  19. }