Преглед на файлове

Merge branch 'cygx_12.0.1' of http://8.136.199.33:3000/cxzhang/hongze_clpt into debug

xingzai преди 1 година
родител
ревизия
caed9043f6
променени са 2 файла, в които са добавени 28 реда и са изтрити 28 реда
  1. 6 6
      controllers/yanxuan_special.go
  2. 22 22
      models/cygx_yanxuan_special_user.go

+ 6 - 6
controllers/yanxuan_special.go

@@ -943,16 +943,16 @@ func (this *YanxuanSpecialNoLoginController) AuthorList() {
 		return
 	}
 
-	var userIds []int
+	//var userIds []int
 	for _, v := range list {
 		v.LatestPublishDate = v.LatestPublishTime.Format(utils.FormatDate) + "更新"
-		userIds = append(userIds, v.UserId)
+		//userIds = append(userIds, v.UserId)
 	}
 
-	bestNew := services.GetBestNewYanxuanSpecialByUserId(userIds)
-	for _, v := range list {
-		v.YanxuanSpecialCenter = bestNew[v.UserId]
-	}
+	//bestNew := services.GetBestNewYanxuanSpecialByUserId(userIds)
+	//for _, v := range list {
+	//	v.YanxuanSpecialCenter = bestNew[v.UserId]
+	//}
 	resp := new(models.SpecialAuthorListResp)
 	isAuthor, isImproveInformation := services.GetYanxuanSpecialAuthorInfo(sysUser) //用户是否没开通研选专栏以及,专栏信息是否完善
 	resp.IsAuthor = isAuthor

+ 22 - 22
models/cygx_yanxuan_special_user.go

@@ -23,28 +23,28 @@ type CygxYanxuanSpecialAuthor struct {
 }
 
 type CygxYanxuanSpecialAuthorItem struct {
-	Id                   int                                 `orm:"column(id);pk"`
-	UserId               int                                 // 用户ID
-	SpecialName          string                              // 专栏名称
-	Introduction         string                              // 介绍
-	Label                string                              // 标签
-	NickName             string                              // 昵称
-	RealName             string                              // 姓名
-	CompanyName          string                              // 公司名
-	Mobile               string                              // 手机号
-	CreateTime           string                              // 创建时间
-	ModifyTime           time.Time                           // 修改时间
-	HeadImg              string                              // 头像
-	BgImg                string                              // 背景图
-	BgImgPc              string                              // 背景图
-	Status               int                                 // 1启用2禁用
-	CollectNum           int                                 // 被收藏数
-	FollowNum            int                                 // 被关注数
-	SpecialArticleNum    int                                 // 文章数
-	LatestPublishTime    time.Time                           // 最近更新时间
-	LatestPublishDate    string                              // 最近更新时间
-	IsFollow             int                                 // 是否已关注 1已关注 0 未关注
-	YanxuanSpecialCenter *CygxYanxuanSpecialCenterAuthorResp // 研选专栏文章内容
+	Id                int       `orm:"column(id);pk"`
+	UserId            int       // 用户ID
+	SpecialName       string    // 专栏名称
+	Introduction      string    // 介绍
+	Label             string    // 标签
+	NickName          string    // 昵称
+	RealName          string    // 姓名
+	CompanyName       string    // 公司名
+	Mobile            string    // 手机号
+	CreateTime        string    // 创建时间
+	ModifyTime        time.Time // 修改时间
+	HeadImg           string    // 头像
+	BgImg             string    // 背景图
+	BgImgPc           string    // 背景图
+	Status            int       // 1启用2禁用
+	CollectNum        int       // 被收藏数
+	FollowNum         int       // 被关注数
+	SpecialArticleNum int       // 文章数
+	LatestPublishTime time.Time // 最近更新时间
+	LatestPublishDate string    // 最近更新时间
+	IsFollow          int       // 是否已关注 1已关注 0 未关注
+	//YanxuanSpecialCenter *CygxYanxuanSpecialCenterAuthorResp // 研选专栏文章内容
 }
 
 type CygxYanxuanSpecialCenterAuthorResp struct {