|
@@ -4,6 +4,7 @@ import (
|
|
|
"github.com/beego/beego/v2/client/orm"
|
|
|
"hongze/hongze_web_mfyx/models/order"
|
|
|
"strings"
|
|
|
+ "time"
|
|
|
)
|
|
|
|
|
|
type CygxArticle struct {
|
|
@@ -556,3 +557,70 @@ func GetCygxCygxArticleIdList(condition string, pars []interface{}) (items []*Cy
|
|
|
_, err = o.Raw(sql, pars).QueryRows(&items)
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
+type ArticleDetailResultApi struct {
|
|
|
+ Data ArticleResultApidate `json:"data"`
|
|
|
+ Code int `json:"code"`
|
|
|
+ Msg string `json:"msg"`
|
|
|
+}
|
|
|
+
|
|
|
+type ArticleResultApidate struct {
|
|
|
+ ArticleId int `json:"id"`
|
|
|
+ Title string `json:"title"`
|
|
|
+ File string `json:"file"`
|
|
|
+ TitleEn string `json:"title_en"`
|
|
|
+ Frequency string `json:"frequency"`
|
|
|
+ CreateDate string `json:"create_date"`
|
|
|
+ UpdateDate string `json:"update_date"`
|
|
|
+ PublishDate time.Time `json:"publish_date"`
|
|
|
+ PublishStatus int `json:"publish_status"`
|
|
|
+ IndustrId int `json:"industry_id"`
|
|
|
+ SeriesId int `json:"series_id"`
|
|
|
+ Series ArticleSeries `json:"series"`
|
|
|
+ Content ArticleResultApiContent `json:"content"`
|
|
|
+ Author ArticleResultApiAuthor `json:"author"`
|
|
|
+ Industry ArticleResultApiIndustry `json:"industry"`
|
|
|
+ Type ArticleResultApiType `json:"type"`
|
|
|
+ Stock []string `json:"stock"`
|
|
|
+ Field ArticleField `json:"field"`
|
|
|
+ Corpus Corpus `json:"corpus"`
|
|
|
+ Cover string `json:"cover"`
|
|
|
+ TypeId int `json:"type_id"`
|
|
|
+ IsActive bool `json:"is_active"`
|
|
|
+}
|
|
|
+
|
|
|
+type ArticleSeries struct {
|
|
|
+ Name string `json:"name"`
|
|
|
+}
|
|
|
+type ArticleResultApiContent struct {
|
|
|
+ ArticleId int `json:"id"`
|
|
|
+ Body string `json:"body"`
|
|
|
+ Abstract string `json:"abstract"`
|
|
|
+ Annotation string `json:"annotation"`
|
|
|
+}
|
|
|
+
|
|
|
+type ArticleResultApiAuthor struct {
|
|
|
+ PhoneNumber string `json:"phone_number"`
|
|
|
+ Name string `json:"name"`
|
|
|
+}
|
|
|
+
|
|
|
+type ArticleResultApiIndustry struct {
|
|
|
+ Name string `json:"name"`
|
|
|
+}
|
|
|
+
|
|
|
+type ArticleResultApiType struct {
|
|
|
+ Name string `json:"name"`
|
|
|
+}
|
|
|
+
|
|
|
+type ArticleField struct {
|
|
|
+ Id int `json:"id"`
|
|
|
+ Name string `json:"name"`
|
|
|
+ Description string `json:"description"`
|
|
|
+ IndustryId int `json:"industry_id"`
|
|
|
+}
|
|
|
+
|
|
|
+type Corpus struct {
|
|
|
+ Id int `json:"id"`
|
|
|
+ ArticleId int `json:"article_id"`
|
|
|
+ Corpus string `json:"corpus"`
|
|
|
+}
|