瀏覽代碼

添加用户 产品ID 返回

kobe6258 4 月之前
父節點
當前提交
4f3d4c077b
共有 1 個文件被更改,包括 9 次插入8 次删除
  1. 9 8
      models/user.go

+ 9 - 8
models/user.go

@@ -32,14 +32,15 @@ func (u User) FillUserInfo(user *TemplateUser) UserView {
 }
 
 type UserView struct {
-	Id            int
-	RealName      string `description:"姓名"`
-	Mobile        string `description:"手机号码"`
-	FollowingGzh  bool
-	LastReadTime  string
-	ReadCount     int
-	AccountStatus AccountStatus `description:"账号状态"`
-	CreatedTime   string
+	Id             int
+	templateUserId int
+	RealName       string `description:"姓名"`
+	Mobile         string `description:"手机号码"`
+	FollowingGzh   bool
+	LastReadTime   string
+	ReadCount      int
+	AccountStatus  AccountStatus `description:"账号状态"`
+	CreatedTime    string
 }
 
 func GetPageOfficialUserList(condition string, pars []interface{}, sortStr string, startSize int, pageSize int) (total int, userList []*UserView, err error) {