|
@@ -22,30 +22,31 @@ type CygxYanxuanSpecial struct {
|
|
}
|
|
}
|
|
|
|
|
|
type CygxYanxuanSpecialItem struct {
|
|
type CygxYanxuanSpecialItem struct {
|
|
- Id int `orm:"column(id);pk"`
|
|
+ Id int `orm:"column(id);pk"`
|
|
- UserId int
|
|
+ UserId int
|
|
- CreateTime string
|
|
+ CreateTime string
|
|
- ModifyTime string
|
|
+ ModifyTime string
|
|
- PublishTime string
|
|
+ PublishTime string
|
|
- Content string
|
|
+ Content string
|
|
- Tags string
|
|
+ Tags string
|
|
- Status int
|
|
+ Status int
|
|
- ImgUrl string
|
|
+ ImgUrl string
|
|
- DocUrl string
|
|
+ DocUrl string
|
|
- SpecialName string
|
|
+ SpecialName string
|
|
- Introduction string
|
|
+ Introduction string
|
|
- Label string
|
|
+ Label string
|
|
- NickName string
|
|
+ NickName string
|
|
- RealName string
|
|
+ RealName string
|
|
- Mobile string
|
|
+ Mobile string
|
|
- HeadImg string
|
|
+ HeadImg string
|
|
- BgImg string
|
|
+ BgImg string
|
|
- Reason string
|
|
+ Reason string
|
|
- Title string
|
|
+ Title string
|
|
- Type string
|
|
+ Type string
|
|
- CollectNum int
|
|
+ CollectNum int
|
|
- MyCollectNum int
|
|
+ MyCollectNum int
|
|
- IsCollect int
|
|
+ IsCollect int
|
|
|
|
+ ContentHasImg int
|
|
}
|
|
}
|
|
|
|
|
|
func GetYanxuanSpecialList(userId int, condition string, pars []interface{}) (items []*CygxYanxuanSpecialItem, err error) {
|
|
func GetYanxuanSpecialList(userId int, condition string, pars []interface{}) (items []*CygxYanxuanSpecialItem, err error) {
|
|
@@ -61,7 +62,7 @@ JOIN cygx_yanxuan_special_author AS b ON a.user_id = b.user_id
|
|
sql += condition
|
|
sql += condition
|
|
}
|
|
}
|
|
sql += `ORDER BY a.publish_time DESC `
|
|
sql += `ORDER BY a.publish_time DESC `
|
|
- _, err = o.Raw(sql, userId,pars).QueryRows(&items)
|
|
+ _, err = o.Raw(sql, userId, pars).QueryRows(&items)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|