classify.go 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. package response
  2. import (
  3. "hongze/hongze_yb/services/company"
  4. "time"
  5. )
  6. type ClassifyListItem struct {
  7. ClassifySecondId int `json:"classify_second_id"`
  8. ClassifySecondName string `json:"classify_second_name"`
  9. ParentId int `json:"parent_id"`
  10. ReportAuthor string `json:"report_author"`
  11. AuthorDescript string `json:"author_descript"`
  12. HomeImgUrl string `json:"home_img_url"`
  13. Stage int `description:"期数" json:"stage"`
  14. ProductName string `json:"product_name"`
  15. }
  16. type ClassifyDetail struct {
  17. ClassifyListItem
  18. AvatarImgUrl string `json:"avatar_img_url"`
  19. Abstract string `json:"abstract"`
  20. Descript string `json:"descript"`
  21. PermissionCheck *company.PermissionCheckInfo `json:"permission_check"`
  22. AuthOk bool `json:"auth_ok"`
  23. IsVip int `json:"is_vip"'`
  24. }
  25. type ClassReportListItem struct {
  26. ReportId int `description:"报告Id" json:"report_id"`
  27. ClassifyIdFirst int `description:"一级分类id" json:"classify_id_first"`
  28. ClassifyNameFirst string `description:"一级分类名称" json:"classify_name_first"`
  29. ClassifyIdSecond int `description:"二级分类id" json:"classify_id_second"`
  30. ClassifyNameSecond string `description:"二级分类名称" json:"classify_name_second"`
  31. Title string `description:"标题" json:"title"`
  32. Abstract string `description:"摘要" json:"abstract"`
  33. Author string `description:"作者" json:"author"`
  34. AuthorImageUrl string `description:"作者头像" json:"author_image_url"`
  35. PublishTime time.Time `description:"发布时间" json:"publish_time"`
  36. Stage int `description:"期数" json:"stage"`
  37. VideoUrl string `description:"音频文件URL" json:"video_url"`
  38. }
  39. type ClassReportList struct {
  40. List []*ClassReportListItem `json:"list"`
  41. PermissionCheck *company.PermissionCheckInfo `json:"permission_check"`
  42. AuthOk bool `json:"auth_ok"`
  43. }