|
@@ -55,8 +55,9 @@ type CygxYanxuanSpecialItem struct {
|
|
ContentHasImg int //正文是否包含图片 1包含 0不包含
|
|
ContentHasImg int //正文是否包含图片 1包含 0不包含
|
|
ContentHasStyle bool //正文是否包含格式
|
|
ContentHasStyle bool //正文是否包含格式
|
|
Docs []Doc
|
|
Docs []Doc
|
|
- Pv string `description:"Pv"`
|
|
|
|
- Uv string `description:"Uv"`
|
|
|
|
|
|
+ Pv int `description:"Pv"`
|
|
|
|
+ Uv int `description:"Uv"`
|
|
|
|
+ HzPv int `description:"HzPv"`
|
|
}
|
|
}
|
|
|
|
|
|
type CygxYanxuanSpecialResp struct {
|
|
type CygxYanxuanSpecialResp struct {
|
|
@@ -104,6 +105,7 @@ type CygxYanxuanSpecialCenterResp struct {
|
|
Source string `description:"来源"`
|
|
Source string `description:"来源"`
|
|
Pv int `description:"Pv"`
|
|
Pv int `description:"Pv"`
|
|
Uv int `description:"Uv"`
|
|
Uv int `description:"Uv"`
|
|
|
|
+ HzPv int `description:"HzPv"`
|
|
PublishDate string // 提审过审或驳回时间 string `description:"核心观点"`
|
|
PublishDate string // 提审过审或驳回时间 string `description:"核心观点"`
|
|
BodyHighlight []string `description:"搜索高亮展示结果"`
|
|
BodyHighlight []string `description:"搜索高亮展示结果"`
|
|
LikeCount int `description:"点赞数量"`
|
|
LikeCount int `description:"点赞数量"`
|
|
@@ -311,6 +313,14 @@ func UpdateYanxuanSpecialPv(id int) (err error) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// UpdateYanxuanSpecialHzPv 修改研选专栏的阅读弘则Pv
|
|
|
|
+func UpdateYanxuanSpecialHzPv(id int) (err error) {
|
|
|
|
+ o := orm.NewOrm()
|
|
|
|
+ sql := `UPDATE cygx_yanxuan_special SET hz_pv=hz_pv+1 WHERE id = ? `
|
|
|
|
+ _, err = o.Raw(sql, id).Exec()
|
|
|
|
+ return
|
|
|
|
+}
|
|
|
|
+
|
|
// UpdateYanxuanSpecialUv 修改研选专栏的阅读Uv
|
|
// UpdateYanxuanSpecialUv 修改研选专栏的阅读Uv
|
|
func UpdateYanxuanSpecialUv(id int) (err error) {
|
|
func UpdateYanxuanSpecialUv(id int) (err error) {
|
|
o := orm.NewOrm()
|
|
o := orm.NewOrm()
|
|
@@ -319,6 +329,14 @@ func UpdateYanxuanSpecialUv(id int) (err error) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// UpdateYanxuanSpecialHzUv 修改研选专栏的阅读弘则Uv
|
|
|
|
+func UpdateYanxuanSpecialHzUv(id int) (err error) {
|
|
|
|
+ o := orm.NewOrm()
|
|
|
|
+ sql := `UPDATE cygx_yanxuan_special SET hz_uv=hz_uv+1 WHERE id = ? `
|
|
|
|
+ _, err = o.Raw(sql, id).Exec()
|
|
|
|
+ return
|
|
|
|
+}
|
|
|
|
+
|
|
func UpdateYanxuanSpecialPvNUm(pv, id int) (err error) {
|
|
func UpdateYanxuanSpecialPvNUm(pv, id int) (err error) {
|
|
o := orm.NewOrm()
|
|
o := orm.NewOrm()
|
|
sql := `UPDATE cygx_yanxuan_special SET pv = ? WHERE id = ? `
|
|
sql := `UPDATE cygx_yanxuan_special SET pv = ? WHERE id = ? `
|