|
@@ -30,16 +30,18 @@ type HomeArticle struct {
|
|
|
}
|
|
|
|
|
|
type ArticleDetail struct {
|
|
|
- ArticleId int `description:"报告id"`
|
|
|
- Title string `description:"标题"`
|
|
|
- TitleEn string `description:"英文标题 "`
|
|
|
- UpdateFrequency string `description:"更新周期"`
|
|
|
- CreateDate string `description:"创建时间"`
|
|
|
- PublishDate string `description:"发布时间"`
|
|
|
- Body string `description:"内容"`
|
|
|
- Abstract string `description:"摘要"`
|
|
|
- CategoryName string `description:"一级分类"`
|
|
|
- SubCategoryName string `description:"二级分类"`
|
|
|
+ ArticleId int `description:"报告id"`
|
|
|
+ Title string `description:"标题"`
|
|
|
+ TitleEn string `description:"英文标题 "`
|
|
|
+ UpdateFrequency string `description:"更新周期"`
|
|
|
+ CreateDate string `description:"创建时间"`
|
|
|
+ PublishDate string `description:"发布时间"`
|
|
|
+ Body string `description:"内容"`
|
|
|
+ Abstract string `description:"摘要"`
|
|
|
+ CategoryName string `description:"一级分类"`
|
|
|
+ SubCategoryName string `description:"二级分类"`
|
|
|
+ IsCollect bool `description:"是否收藏:true,已收藏,false:未收藏"`
|
|
|
+ IsInterviewApply bool `description:"是否申请访谈:true,已申请,false:未申请"`
|
|
|
}
|
|
|
|
|
|
func GetArticleDetailById(articleId int) (item *ArticleDetail, err error) {
|
|
@@ -55,3 +57,4 @@ func GetArticleDetailByIdStr(articleIdStr string) (items []*ArticleDetail, err e
|
|
|
_, err = o.Raw(sql).QueryRows(&items)
|
|
|
return
|
|
|
}
|
|
|
+
|