Skip to content

Commit

Permalink
Merge pull request #4 from yannanfeiff/main
Browse files Browse the repository at this point in the history
feat:增加用户注册接口可以填写昵称名字
  • Loading branch information
tangtaoit committed Jul 30, 2023
2 parents f808ee9 + 760e429 commit d221217
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/api/user/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,7 @@ func (u *User) register(c *wkhttp.Context) {
Sex: 1,
Zone: req.Zone,
Phone: req.Phone,
Name: req.Name,
Password: req.Password,
Flag: int(req.Flag),
Device: req.Device,
Expand Down Expand Up @@ -2390,6 +2391,7 @@ type registerReq struct {
Phone string `json:"phone"`
Code string `json:"code"`
Password string `json:"password"`
Name string `json:"name"`
Flag uint8 `json:"flag"` // 注册设备的标记 0.APP 1.PC
Device *deviceReq `json:"device"` //注册用户设备信息
}
Expand Down

0 comments on commit d221217

Please sign in to comment.