| | |
| | | package request |
| | | |
| | | import "aps_crm/constvar" |
| | | import ( |
| | | "aps_crm/constvar" |
| | | ) |
| | | |
| | | type ( |
| | | Login struct { |
| | |
| | | } |
| | | |
| | | 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 { |