|
@@ -40,7 +40,7 @@ type ReportList struct {
|
|
|
Id int `description:"报告Id"`
|
|
|
Title string `description:"标题"`
|
|
|
Author string `description:"作者"`
|
|
|
- Stage int `description:"期数" json:"-"`
|
|
|
+ Stage int `description:"期数" json:"stage"`
|
|
|
CreateTime time.Time `description:"创建时间" json:"create_time"`
|
|
|
HttpUrl string `description:"跳转地址" json:"http_url"`
|
|
|
}
|
|
@@ -57,7 +57,7 @@ func GetReportList(condition string, pars []interface{}, startSize, pageSize int
|
|
|
sql += condition
|
|
|
}
|
|
|
|
|
|
- err = o.Raw(totalSql, pars).QueryRow(&totalSql)
|
|
|
+ err = o.Raw(totalSql, pars).QueryRow(&total)
|
|
|
if err != nil {
|
|
|
return
|
|
|
}
|