|
@@ -210,3 +210,54 @@ func GetReportByCode(reportCode string) (item *Report, err error) {
|
|
|
type ReportShareDetailResp struct {
|
|
|
Report *Report `description:"报告"`
|
|
|
}
|
|
|
+
|
|
|
+type PcReport struct {
|
|
|
+ Id int `description:"报告Id"`
|
|
|
+ AddType int `description:"新增方式:1:新增报告,2:继承报告"`
|
|
|
+ ClassifyIdFirst int `description:"一级分类id"`
|
|
|
+ ClassifyNameFirst string `description:"一级分类名称"`
|
|
|
+ ClassifyIdSecond int `description:"二级分类id"`
|
|
|
+ ClassifyNameSecond string `description:"二级分类名称"`
|
|
|
+ Title string `description:"标题"`
|
|
|
+ Abstract string `description:"摘要"`
|
|
|
+ Author string `description:"作者"`
|
|
|
+ Frequency string `description:"频度"`
|
|
|
+ CreateTime string `description:"创建时间"`
|
|
|
+ ModifyTime time.Time `description:"修改时间"`
|
|
|
+ State int `description:"1:未发布,2:已发布"`
|
|
|
+ PublishTime string `description:"发布时间"`
|
|
|
+ Stage int `description:"期数"`
|
|
|
+ MsgIsSend int `description:"消息是否已发送,0:否,1:是"`
|
|
|
+ Content string `json:"-" description:"内容"`
|
|
|
+ VideoUrl string `description:"音频文件URL"`
|
|
|
+ VideoName string `description:"音频文件名称"`
|
|
|
+ VideoPlaySeconds string `description:"音频播放时长"`
|
|
|
+ ContentSub string `json:"-" description:"内容前两个章节"`
|
|
|
+ IsShowNewLabel int `description:"是否显示新标签"`
|
|
|
+ IsCurrentDate int `description:"是否当前日期"`
|
|
|
+ ClassifyName string `description:"分类名称"`
|
|
|
+ TitleType string `description:"标题类型,FICC或者权益"`
|
|
|
+ ReportAuthor
|
|
|
+}
|
|
|
+
|
|
|
+type ReportAuthor struct {
|
|
|
+ ReportAuthor string `description:"报告作者名称"`
|
|
|
+ AuthorTitle string `description:"标题"`
|
|
|
+ AuthorSummaryBase string `description:"基础介绍"`
|
|
|
+ AuthorHeadSmallUrl string `description:"小头像"`
|
|
|
+ AuthorHeadSmallDoubleUrl string `description:"两倍小头像"`
|
|
|
+ AuthorHeadBigUrl string `description:"大头像"`
|
|
|
+ AuthorHeadBigDoubleUrl string `description:"两倍大头像"`
|
|
|
+ AuthorSummaryExt string `description:"扩展介绍"`
|
|
|
+ SpeakerBase string `description:"主讲人"`
|
|
|
+ SpeakerExt string `description:"主讲人"`
|
|
|
+ AuthorHeadSquare string `description:"方形头像"`
|
|
|
+}
|
|
|
+
|
|
|
+func GetReportAuthor(reportAuthor string) (item *ReportAuthor, err error) {
|
|
|
+ o := orm.NewOrm()
|
|
|
+ o.Using("rddp")
|
|
|
+ sql := `SELECT * FROM report_author WHERE report_author=? `
|
|
|
+ err = o.Raw(sql, reportAuthor).QueryRow(&item)
|
|
|
+ return
|
|
|
+}
|