doc_article_request.go 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. package req
  2. import (
  3. "time"
  4. "ulink-admin/pkg/base"
  5. )
  6. type DocArticleQuery struct {
  7. base.GlobalQuery
  8. Id int64 `form:"id"` //主键id
  9. Label string `form:"label"` //文章标题
  10. CatId int64 `form:"catId"` //文章分类
  11. Profile string `form:"profile"` //简介
  12. Url string `form:"url"` //封面图
  13. IsTop int `form:"isTop"` //是否推荐(1否 2是)
  14. IsHot int `form:"isHot"` //是否热门(1否 2是)
  15. Content string `form:"content"` //内容
  16. Sort int `form:"sort"` //排序
  17. CreateBy string `form:"createBy"` //创建者
  18. CreateTime time.Time `form:"createTime"` //创建时间
  19. UpdateBy string `form:"updateBy"` //更新者
  20. UpdateTime time.Time `form:"updateTime"` //更新时间
  21. }
  22. type DocArticleBody struct {
  23. Id int64 `json:"id"` //主键id
  24. Label string `json:"label"` //文章标题
  25. CatId int64 `json:"catId"` //文章分类
  26. Profile string `json:"profile"` //简介
  27. Url string `json:"url"` //封面图
  28. IsTop int `json:"isTop"` //是否推荐(1否 2是)
  29. IsHot int `json:"isHot"` //是否热门(1否 2是)
  30. Content string `json:"content"` //内容
  31. Sort int `json:"sort"` //排序
  32. CreateBy string `json:"createBy"` //创建者
  33. CreateTime time.Time `json:"createTime"` //创建时间
  34. UpdateBy string `json:"updateBy"` //更新者
  35. UpdateTime time.Time `json:"updateTime"` //更新时间
  36. }