正在显示
3 个修改的文件
包含
5 行增加
和
0 行删除
| @@ -17,6 +17,8 @@ type UserSignUpCommand struct { | @@ -17,6 +17,8 @@ type UserSignUpCommand struct { | ||
| 17 | Password string `cname:"密码" json:"password" valid:"Required"` | 17 | Password string `cname:"密码" json:"password" valid:"Required"` |
| 18 | // 密码 | 18 | // 密码 |
| 19 | SmsCode string `cname:"短信验证码" json:"smsCode" valid:"Required"` | 19 | SmsCode string `cname:"短信验证码" json:"smsCode" valid:"Required"` |
| 20 | + // 推荐人 | ||
| 21 | + Referrer string `cname:"推荐人" json:"referrer"` | ||
| 20 | } | 22 | } |
| 21 | 23 | ||
| 22 | func (companySignUpCommand *UserSignUpCommand) Valid(validation *validation.Validation) { | 24 | func (companySignUpCommand *UserSignUpCommand) Valid(validation *validation.Validation) { |
| @@ -427,6 +427,7 @@ func (svr AuthService) UserSignUp(signUpCommand *command.UserSignUpCommand) (int | @@ -427,6 +427,7 @@ func (svr AuthService) UserSignUp(signUpCommand *command.UserSignUpCommand) (int | ||
| 427 | Name: signUpCommand.Name, | 427 | Name: signUpCommand.Name, |
| 428 | Phone: signUpCommand.Phone, | 428 | Phone: signUpCommand.Phone, |
| 429 | Password: signUpCommand.Password, | 429 | Password: signUpCommand.Password, |
| 430 | + Referrer: signUpCommand.Referrer, | ||
| 430 | }) | 431 | }) |
| 431 | if err != nil { | 432 | if err != nil { |
| 432 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) | 433 | return nil, application.ThrowError(application.BUSINESS_ERROR, err.Error()) |
| @@ -24,6 +24,8 @@ type ( | @@ -24,6 +24,8 @@ type ( | ||
| 24 | Phone string `cname:"手机号码" json:"phone" valid:"Required"` | 24 | Phone string `cname:"手机号码" json:"phone" valid:"Required"` |
| 25 | // 密码 | 25 | // 密码 |
| 26 | Password string `cname:"密码" json:"password" valid:"Required"` | 26 | Password string `cname:"密码" json:"password" valid:"Required"` |
| 27 | + // 推荐人 | ||
| 28 | + Referrer string `cname:"推荐人" json:"referrer"` | ||
| 27 | } | 29 | } |
| 28 | 30 | ||
| 29 | DataAuthUserSignUp struct { | 31 | DataAuthUserSignUp struct { |
-
请 注册 或 登录 后发表评论