123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- package models
- type ChartUserTokenResult struct {
- AccessToken string `json:"access_token"`
- }
- type ChartUserTokenResultApi struct {
- Data ChartUserTokenResult `json:"data"`
- Code int `json:"code"`
- Msg string `json:"msg"`
- }
- // Root represents the top-level structure of the data.
- type Root struct {
- Code int `json:"code" comment:"状态码"`
- Msg string `json:"msg" comment:"操作信息"`
- Data Data `json:"data" comment:"数据详情"`
- }
- // Data represents the main content of the response.
- type Data struct {
- ID int `json:"id" comment:"文章ID"`
- Title string `json:"title" comment:"文章标题"`
- TitleEn string `json:"title_en" comment:"文章英文标题"`
- Frequency string `json:"frequency" comment:"更新频率"`
- CreateDate string `json:"create_date" comment:"创建时间"`
- UpdateDate string `json:"update_date" comment:"更新时间"`
- PublishDate string `json:"publish_date" comment:"发布时间"`
- PublishStatus int `json:"publish_status" comment:"发布状态"`
- VerifyStatus int `json:"verify_status" comment:"审核状态"`
- PublishArea string `json:"publish_area" comment:"发布区域"`
- AccessLevel int `json:"access_level" comment:"访问级别"`
- IsActive bool `json:"is_active" comment:"是否激活"`
- AuthorPhone string `json:"author_phone_number" comment:"作者手机号"`
- Cover string `json:"cover" comment:"封面图片"`
- IndustryID int `json:"industry_id" comment:"行业ID"`
- ContentID int `json:"content_id" comment:"内容ID"`
- TypeID int `json:"type_id" comment:"类型ID"`
- FieldID int `json:"field_id" comment:"领域ID"`
- SeriesID int `json:"series_id" comment:"系列ID"`
- File string `json:"file" comment:"文件链接"`
- Stock []string `json:"stock" comment:"相关股票"`
- IsFocused int `json:"is_focused" comment:"是否聚焦"`
- Content Content `json:"content" comment:"内容详情"`
- Industry Industry `json:"industry" comment:"行业详情"`
- Type ItemType `json:"type" comment:"类型详情"`
- Field Field `json:"field" comment:"领域详情"`
- Series Series `json:"series" comment:"系列详情"`
- Author Author `json:"author" comment:"作者信息"`
- CoAuthor []string `json:"co_author" comment:"协作者"`
- Corpus Corpus `json:"corpus" comment:"语料库信息"`
- }
- // Content represents the details of the content.
- type Content struct {
- ID int `json:"id" comment:"内容ID"`
- Body string `json:"body" comment:"正文"`
- Abstract string `json:"abstract" comment:"摘要"`
- Annotation string `json:"annotation" comment:"注释"`
- AutoSave string `json:"auto_save" comment:"自动保存内容"`
- }
- // Industry represents the industry details.
- type Industry struct {
- ID int `json:"id" comment:"行业ID"`
- Name string `json:"name" comment:"行业名称"`
- Description string `json:"description" comment:"行业描述"`
- }
- // ItemType represents the type of the article.
- type ItemType struct {
- ID int `json:"id" comment:"类型ID"`
- Name string `json:"name" comment:"类型名称"`
- Description string `json:"description" comment:"类型描述"`
- }
- // Field represents the field details.
- type Field struct {
- ID int `json:"id" comment:"领域ID"`
- Name string `json:"name" comment:"领域名称"`
- Description string `json:"description" comment:"领域描述"`
- IndustryID int `json:"industry_id" comment:"行业ID"`
- }
- // Series represents the series details.
- type Series struct {
- ID int `json:"id" comment:"系列ID"`
- Name string `json:"name" comment:"系列名称"`
- Description string `json:"description" comment:"系列描述"`
- IndustryID int `json:"industry_id" comment:"行业ID"`
- }
- // Author represents the author details.
- type Author struct {
- Name string `json:"name" comment:"作者姓名"`
- }
- //// Corpus represents the corpus details.
- //type Corpus struct {
- // ID int `json:"id" comment:"语料ID"`
- // ArticleID int `json:"article_id" comment:"文章ID"`
- // Corpus string `json:"corpus" comment:"语料内容"`
- //}
|