doc_file_request.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package req
  2. import (
  3. "time"
  4. "ulink-admin/pkg/base"
  5. )
  6. type DocFileQuery struct {
  7. base.GlobalQuery
  8. Id int64 `form:"id"` //
  9. CatgoryId int64 `form:"catgoryId"` //分类id
  10. UserId int64 `form:"userId"` //分类id
  11. Label string `form:"label"` //标题
  12. Keywords string `form:"keywords"` //关键字
  13. Info string `form:"info"` //简介
  14. Content string `form:"content"` //内容
  15. File string `form:"file"` //附件
  16. State int `form:"state"` //状态(1禁用 2启用)
  17. Sort int64 `form:"sort"` //排序
  18. CreateTime time.Time `form:"createTime"` //创建时间
  19. CreateBy string `form:"createBy"` //创建人
  20. UpdateTime time.Time `form:"updateTime"` //更新时间
  21. UpdateBy string `form:"updateBy"` //更新人
  22. CompanyId int64 `form:"companyId"` //公司id
  23. }
  24. type DocFileBody struct {
  25. Id int64 `json:"id" binding:"required"` //
  26. CatgoryId int64 `json:"catgoryId" ` //分类id
  27. UserId int64 `json:"userId" ` //分类id
  28. Label string `json:"label" binding:"required"` //标题
  29. Keywords string `json:"keywords" ` //关键字
  30. Info string `json:"info" ` //简介
  31. Content string `json:"content" binding:"required"` //内容
  32. File string `json:"file" ` //附件
  33. State int `json:"state" ` //状态(1禁用 2启用)
  34. Sort int64 `json:"sort" ` //排序
  35. CreateTime time.Time `json:"createTime" ` //创建时间
  36. CreateBy string `json:"createBy" ` //创建人
  37. UpdateTime time.Time `json:"updateTime" ` //更新时间
  38. UpdateBy string `json:"updateBy" ` //更新人
  39. CompanyId int64 `json:"companyId" ` //公司id
  40. }