|
@@ -21,31 +21,32 @@ type CygxYanxuanSpecial struct {
|
|
|
Type string // 类型1:笔记,2:观点
|
|
|
}
|
|
|
|
|
|
-type CygxYanxuanSpecialItem struct {
|
|
|
- Id int `orm:"column(id);pk"`
|
|
|
- UserId int // 用户ID
|
|
|
- CreateTime string // 创建时间
|
|
|
- ModifyTime string // 修改时间
|
|
|
- PublishTime string // 提审过审或驳回时间
|
|
|
- Content string // 内容
|
|
|
- Tags string // 标签
|
|
|
- Status int // 1:未发布,2:审核中 3:已发布 4:驳回
|
|
|
- ImgUrl string // 图片链接
|
|
|
- DocUrl string // 文档链接
|
|
|
- SpecialName string // 专栏名称
|
|
|
- Introduction string // 介绍
|
|
|
- Label string // 标签
|
|
|
- NickName string // 昵称
|
|
|
- RealName string // 姓名
|
|
|
- Mobile string // 手机号
|
|
|
- HeadImg string // 头像
|
|
|
- BgImg string // 背景图
|
|
|
- Reason string // 理由
|
|
|
- Title string // 标题
|
|
|
- Type int // 类型1:笔记,2:观点
|
|
|
+type CygxYanxuanSpeciaResplItem struct {
|
|
|
+ Id int `orm:"column(id);pk"`
|
|
|
+ UserId int // 用户ID
|
|
|
+ CreateTime string // 创建时间
|
|
|
+ ModifyTime string // 修改时间
|
|
|
+ PublishTime string // 提审过审或驳回时间
|
|
|
+ Content string // 内容
|
|
|
+ Tags string // 标签
|
|
|
+ Status int // 1:未发布,2:审核中 3:已发布 4:驳回
|
|
|
+ ImgUrl string // 图片链接
|
|
|
+ DocUrl string // 文档链接
|
|
|
+ SpecialName string // 专栏名称
|
|
|
+ Introduction string // 介绍
|
|
|
+ Label string // 标签
|
|
|
+ NickName string // 昵称
|
|
|
+ RealName string // 姓名
|
|
|
+ Mobile string // 手机号
|
|
|
+ HeadImg string // 头像
|
|
|
+ BgImg string // 背景图
|
|
|
+ Reason string // 理由
|
|
|
+ Title string // 标题
|
|
|
+ Type int // 类型1:笔记,2:观点
|
|
|
+ ContentHasImg int //正文是否包含图片 1包含 0不包含
|
|
|
}
|
|
|
|
|
|
-func GetYanxuanSpecialList(condition string, pars []interface{}) (items []*CygxYanxuanSpecialItem, err error) {
|
|
|
+func GetYanxuanSpecialList(condition string, pars []interface{}) (items []*CygxYanxuanSpeciaResplItem, err error) {
|
|
|
o := orm.NewOrm()
|
|
|
sql := ``
|
|
|
sql = `SELECT a.*,b.bg_img,b.head_img,b.introduction,b.label,b.mobile,b.nick_name,b.real_name,b.special_name
|