From 5fac03fb857cf9a160e1736a25de2c5f95f5e44f Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期二, 18 七月 2023 17:18:18 +0800
Subject: [PATCH] add

---
 model/request/user.go |   27 ++++++++++++++++++++-------
 1 files changed, 20 insertions(+), 7 deletions(-)

diff --git a/model/request/user.go b/model/request/user.go
index 35660db..6211e5e 100644
--- a/model/request/user.go
+++ b/model/request/user.go
@@ -1,6 +1,8 @@
 package request
 
-import "aps_crm/constvar"
+import (
+	"aps_crm/constvar"
+)
 
 type (
 	Login struct {
@@ -11,12 +13,23 @@
 	}
 
 	Register struct {
-		Username  string `json:"userName" example:"鐢ㄦ埛鍚�"`
-		Password  string `json:"passWord" example:"瀵嗙爜"`
-		NickName  string `json:"nickName" example:"鏄电О"`
-		HeaderImg string `json:"headerImg" example:"澶村儚閾炬帴"`
-		Phone     string `json:"phone" example:"鐢佃瘽鍙风爜"`
-		Email     string `json:"email" example:"鐢靛瓙閭"`
+		User
+		RePassword string `json:"rePassword"` // 纭瀵嗙爜
+	}
+
+	User struct {
+		ID           string            `json:"id"`
+		Username     string            `json:"username"`
+		UserType     constvar.UserType `json:"userType"`
+		Password     string            `json:"password"`
+		NickName     string            `json:"nickName"`
+		RealName     string            `json:"realName"`
+		DepartmentId int               `json:"departmentId"`
+		HeaderImg    string            `json:"headerImg"`
+		Phone        string            `json:"phone" `
+		Email        string            `json:"email" `
+		Pos          string            `json:"pos"`
+		AuthorityId  uint              `json:"authorityId"` // 鐢ㄦ埛瑙掕壊ID
 	}
 
 	ChangePasswordReq struct {

--
Gitblit v1.8.0