切换导航条
此项目
正在载入...
登录
allied-creation
/
allied-creation-gateway
·
提交
转到一个项目
GitLab
转到群组
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
yangfu
3 years ago
提交
09b63c75e39479e75f0c5e10514c216f49ccd888
1 个父辈
41016ec3
个人注册 推荐人
隐藏空白字符变更
内嵌
并排对比
正在显示
3 个修改的文件
包含
5 行增加
和
0 行删除
pkg/application/auth/command/user_sign_up.go
pkg/application/auth/service/service.go
pkg/infrastructure/service_gateway/allied_creation_user/param_auth.go
pkg/application/auth/command/user_sign_up.go
查看文件 @
09b63c7
...
...
@@ -17,6 +17,8 @@ type UserSignUpCommand struct {
Password
string
`cname:"密码" json:"password" valid:"Required"`
// 密码
SmsCode
string
`cname:"短信验证码" json:"smsCode" valid:"Required"`
// 推荐人
Referrer
string
`cname:"推荐人" json:"referrer"`
}
func
(
companySignUpCommand
*
UserSignUpCommand
)
Valid
(
validation
*
validation
.
Validation
)
{
...
...
pkg/application/auth/service/service.go
查看文件 @
09b63c7
...
...
@@ -427,6 +427,7 @@ func (svr AuthService) UserSignUp(signUpCommand *command.UserSignUpCommand) (int
Name
:
signUpCommand
.
Name
,
Phone
:
signUpCommand
.
Phone
,
Password
:
signUpCommand
.
Password
,
Referrer
:
signUpCommand
.
Referrer
,
})
if
err
!=
nil
{
return
nil
,
application
.
ThrowError
(
application
.
BUSINESS_ERROR
,
err
.
Error
())
...
...
pkg/infrastructure/service_gateway/allied_creation_user/param_auth.go
查看文件 @
09b63c7
...
...
@@ -24,6 +24,8 @@ type (
Phone
string
`cname:"手机号码" json:"phone" valid:"Required"`
// 密码
Password
string
`cname:"密码" json:"password" valid:"Required"`
// 推荐人
Referrer
string
`cname:"推荐人" json:"referrer"`
}
DataAuthUserSignUp
struct
{
...
...
请
注册
或
登录
后发表评论