Browse Source

关注产业,关注作者记录当时的用户名

xingzai 2 years ago
parent
commit
643384210a
3 changed files with 4 additions and 0 deletions
  1. 2 0
      controllers/report.go
  2. 1 0
      models/article_department_follow.go
  3. 1 0
      models/industry_fllow.go

+ 2 - 0
controllers/report.go

@@ -575,6 +575,7 @@ func (this *ReportController) Fllow() {
 		item.UserId = uid
 		item.Email = user.Email
 		item.Mobile = user.Mobile
+		item.RealName = user.RealName
 		item.CompanyId = user.CompanyId
 		item.CompanyName = user.CompanyName
 		item.Type = 1
@@ -817,6 +818,7 @@ func (this *ReportController) FllowDepartment() {
 		item.UserId = uid
 		item.Email = user.Email
 		item.Mobile = user.Mobile
+		item.RealName = user.RealName
 		item.CompanyId = user.CompanyId
 		item.CompanyName = user.CompanyName
 		item.Type = 1

+ 1 - 0
models/article_department_follow.go

@@ -16,6 +16,7 @@ type CygxArticleDepartmentFollow struct {
 	Type         int       `description:"操作方式,1报名,2取消报名"`
 	CreateTime   time.Time `description:"创建时间"`
 	ModifyTime   time.Time `description:"更新时间"`
+	RealName     string    `description:"用户实际名称"`
 }
 
 type ArticleDepartmentIdRep struct {

+ 1 - 0
models/industry_fllow.go

@@ -16,6 +16,7 @@ type CygxIndustryFllow struct {
 	Type                   int       `description:"操作方式,1报名,2取消报名"`
 	CreateTime             time.Time `description:"创建时间"`
 	ModifyTime             time.Time `description:"更新时间"`
+	RealName               string    `description:"用户实际名称"`
 }
 
 type CygxIndustryFllowRep struct {