vmp.go 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. package models
  2. type ChartUserTokenResult struct {
  3. AccessToken string `json:"access_token"`
  4. }
  5. type ChartUserTokenResultApi struct {
  6. Data ChartUserTokenResult `json:"data"`
  7. Code int `json:"code"`
  8. Msg string `json:"msg"`
  9. }
  10. // Root represents the top-level structure of the data.
  11. type Root struct {
  12. Code int `json:"code" comment:"状态码"`
  13. Msg string `json:"msg" comment:"操作信息"`
  14. Data Data `json:"data" comment:"数据详情"`
  15. }
  16. // Data represents the main content of the response.
  17. type Data struct {
  18. ID int `json:"id" comment:"文章ID"`
  19. Title string `json:"title" comment:"文章标题"`
  20. TitleEn string `json:"title_en" comment:"文章英文标题"`
  21. Frequency string `json:"frequency" comment:"更新频率"`
  22. CreateDate string `json:"create_date" comment:"创建时间"`
  23. UpdateDate string `json:"update_date" comment:"更新时间"`
  24. PublishDate string `json:"publish_date" comment:"发布时间"`
  25. PublishStatus int `json:"publish_status" comment:"发布状态"`
  26. VerifyStatus int `json:"verify_status" comment:"审核状态"`
  27. PublishArea string `json:"publish_area" comment:"发布区域"`
  28. AccessLevel int `json:"access_level" comment:"访问级别"`
  29. IsActive bool `json:"is_active" comment:"是否激活"`
  30. AuthorPhone string `json:"author_phone_number" comment:"作者手机号"`
  31. Cover string `json:"cover" comment:"封面图片"`
  32. IndustryID int `json:"industry_id" comment:"行业ID"`
  33. ContentID int `json:"content_id" comment:"内容ID"`
  34. TypeID int `json:"type_id" comment:"类型ID"`
  35. FieldID int `json:"field_id" comment:"领域ID"`
  36. SeriesID int `json:"series_id" comment:"系列ID"`
  37. File string `json:"file" comment:"文件链接"`
  38. Stock []string `json:"stock" comment:"相关股票"`
  39. IsFocused int `json:"is_focused" comment:"是否聚焦"`
  40. Content Content `json:"content" comment:"内容详情"`
  41. Industry Industry `json:"industry" comment:"行业详情"`
  42. Type ItemType `json:"type" comment:"类型详情"`
  43. Field Field `json:"field" comment:"领域详情"`
  44. Series Series `json:"series" comment:"系列详情"`
  45. Author Author `json:"author" comment:"作者信息"`
  46. CoAuthor []string `json:"co_author" comment:"协作者"`
  47. Corpus Corpus `json:"corpus" comment:"语料库信息"`
  48. }
  49. // Content represents the details of the content.
  50. type Content struct {
  51. ID int `json:"id" comment:"内容ID"`
  52. Body string `json:"body" comment:"正文"`
  53. Abstract string `json:"abstract" comment:"摘要"`
  54. Annotation string `json:"annotation" comment:"注释"`
  55. AutoSave string `json:"auto_save" comment:"自动保存内容"`
  56. }
  57. // Industry represents the industry details.
  58. type Industry struct {
  59. ID int `json:"id" comment:"行业ID"`
  60. Name string `json:"name" comment:"行业名称"`
  61. Description string `json:"description" comment:"行业描述"`
  62. }
  63. // ItemType represents the type of the article.
  64. type ItemType struct {
  65. ID int `json:"id" comment:"类型ID"`
  66. Name string `json:"name" comment:"类型名称"`
  67. Description string `json:"description" comment:"类型描述"`
  68. }
  69. // Field represents the field details.
  70. type Field struct {
  71. ID int `json:"id" comment:"领域ID"`
  72. Name string `json:"name" comment:"领域名称"`
  73. Description string `json:"description" comment:"领域描述"`
  74. IndustryID int `json:"industry_id" comment:"行业ID"`
  75. }
  76. // Series represents the series details.
  77. type Series struct {
  78. ID int `json:"id" comment:"系列ID"`
  79. Name string `json:"name" comment:"系列名称"`
  80. Description string `json:"description" comment:"系列描述"`
  81. IndustryID int `json:"industry_id" comment:"行业ID"`
  82. }
  83. // Author represents the author details.
  84. type Author struct {
  85. Name string `json:"name" comment:"作者姓名"`
  86. }
  87. //// Corpus represents the corpus details.
  88. //type Corpus struct {
  89. // ID int `json:"id" comment:"语料ID"`
  90. // ArticleID int `json:"article_id" comment:"文章ID"`
  91. // Corpus string `json:"corpus" comment:"语料内容"`
  92. //}