|
@@ -35,21 +35,27 @@ type HomeArticle struct {
|
|
|
}
|
|
|
|
|
|
type HomeChartListResp struct {
|
|
|
- ChartId int `description:"图表ID"`
|
|
|
- Title string `description:"标题"`
|
|
|
- TitleEn string `description:"英文标题 "`
|
|
|
- CreateDate string `description:"创建时间"`
|
|
|
- PtagName string `description:"父类名称"`
|
|
|
- CtagName string `description:"子类名称"`
|
|
|
- PtagNameTwo string `description:"父类名称"`
|
|
|
- CtagNameTwo string `description:"子类名称"`
|
|
|
- CtagNamePc string `description:"Pc端所有的分类名称"`
|
|
|
- BodyHtml string `orm:"column(cover)";description:"图片链接"`
|
|
|
- HttpUrl string `orm:"column(iframe)";description:"文章链接跳转地址"`
|
|
|
- IsNeedJump bool `description:"是否需要跳转链接地址"`
|
|
|
- IsTop bool `description:"是否置顶"`
|
|
|
- NumTop int `description:"置顶数量"`
|
|
|
- Source int `description:"来源 1:文章, 2:图表"`
|
|
|
+ ChartId int `description:"图表ID"`
|
|
|
+ Title string `description:"标题"`
|
|
|
+ TitleEn string `description:"英文标题 "`
|
|
|
+ CreateDate string `description:"创建时间"`
|
|
|
+ PtagName string `description:"父类名称"`
|
|
|
+ CtagName string `description:"子类名称"`
|
|
|
+ PtagNameTwo string `description:"父类名称"`
|
|
|
+ CtagNameTwo string `description:"子类名称"`
|
|
|
+ CtagNamePc string `description:"Pc端所有的分类名称"`
|
|
|
+ BodyHtml string `orm:"column(cover)";description:"图片链接"`
|
|
|
+ HttpUrl string `orm:"column(iframe)";description:"文章链接跳转地址"`
|
|
|
+ IsNeedJump bool `description:"是否需要跳转链接地址"`
|
|
|
+ IsTop bool `description:"是否置顶"`
|
|
|
+ NumTop int `description:"置顶数量"`
|
|
|
+ Source int `description:"来源 1:文章, 2:图表"`
|
|
|
+ LabelList []*LabelList `description:"图表标签列表"`
|
|
|
+}
|
|
|
+
|
|
|
+type LabelList struct {
|
|
|
+ PtagName string `description:"父类名称"`
|
|
|
+ CtagName string `description:"子类名称"`
|
|
|
}
|
|
|
|
|
|
func GetHomeCount(condition string, pars []interface{}) (count int, err error) {
|