完善 用户注册 用户更新

This commit is contained in:
欧阳氏
2022-08-14 22:53:41 +08:00
parent 39606248a1
commit ac7f905248
5 changed files with 135 additions and 50 deletions
+6
View File
@@ -59,6 +59,8 @@ type AlterUserRequest struct {
PhoneNumber string `json:"phone_number" validate:"len=11"`
Email string `json:"email"`
Birth string `json:"birth"`
Gender string `json:"gender"`
Photo string `json:"photo"`
}
type AlterUserResponse struct {
@@ -68,6 +70,10 @@ type AddUserRequest struct {
PhoneNumber string `json:"phone_number" binding:"required"`
UserId string `json:"user_id" binding:"required"`
Name string `json:"name" binding:"required"`
Email string `json:"email"`
Birth string `json:"birth"`
Gender string `json:"gender"`
Photo string `json:"photo"`
}
type AddUserResponse struct {