Skip to content

Commit

Permalink
fix: SignUpDto and SignUpOptionsDto
Browse files Browse the repository at this point in the history
  • Loading branch information
廖长江 committed Oct 22, 2022
1 parent a5189f8 commit 2e2c997
Show file tree
Hide file tree
Showing 2 changed files with 324 additions and 185 deletions.
16 changes: 8 additions & 8 deletions authentication/authentication_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -779,11 +779,11 @@ func (client *AuthenticationClient) SignInByAD(sAMAccountName string, passCode s
return &response
}

func (client *AuthenticationClient) SignUpByEmailPassCode(email string, passCode string, options dto.SignupOptionsDto) *dto.UserSingleRespDto {
func (client *AuthenticationClient) SignUpByEmailPassCode(email string, passCode string, options dto.SignUpOptionsDto) *dto.UserSingleRespDto {
body, err := client.SendHttpRequest(
"/api/v3/signup",
fasthttp.MethodPost,
&dto.SignupDto{
&dto.SignUpDto{
Connection: "PASSCODE",
PassCodePayload: dto.SignUpByPassCodeDto{
PassCode: passCode,
Expand All @@ -805,11 +805,11 @@ func (client *AuthenticationClient) SignUpByEmailPassCode(email string, passCode
return &response
}

func (client *AuthenticationClient) SignUpByPhonePassCode(phone string, passCode string, phoneCountryCode string, options dto.SignupOptionsDto) *dto.UserSingleRespDto {
func (client *AuthenticationClient) SignUpByPhonePassCode(phone string, passCode string, phoneCountryCode string, options dto.SignUpOptionsDto) *dto.UserSingleRespDto {
body, err := client.SendHttpRequest(
"/api/v3/signup",
fasthttp.MethodPost,
&dto.SignupDto{
&dto.SignUpDto{
Connection: "PASSCODE",
PassCodePayload: dto.SignUpByPassCodeDto{
PassCode: passCode,
Expand All @@ -832,11 +832,11 @@ func (client *AuthenticationClient) SignUpByPhonePassCode(phone string, passCode
return &response
}

func (client *AuthenticationClient) SignUpByEmailPassword(email string, password string, options dto.SignupOptionsDto) *dto.UserSingleRespDto {
func (client *AuthenticationClient) SignUpByEmailPassword(email string, password string, options dto.SignUpOptionsDto) *dto.UserSingleRespDto {
body, err := client.SendHttpRequest(
"/api/v3/signup",
fasthttp.MethodPost,
&dto.SignupDto{
&dto.SignUpDto{
Connection: "PASSWORD",
PasswordPayload: dto.SignUpByPasswordDto{
Email: email,
Expand All @@ -858,11 +858,11 @@ func (client *AuthenticationClient) SignUpByEmailPassword(email string, password
return &response
}

func (client *AuthenticationClient) SignUpByUsernamePassword(username string, password string, options dto.SignupOptionsDto) *dto.UserSingleRespDto {
func (client *AuthenticationClient) SignUpByUsernamePassword(username string, password string, options dto.SignUpOptionsDto) *dto.UserSingleRespDto {
body, err := client.SendHttpRequest(
"/api/v3/signup",
fasthttp.MethodPost,
&dto.SignupDto{
&dto.SignUpDto{
Connection: "PASSWORD",
PasswordPayload: dto.SignUpByPasswordDto{
Username: username,
Expand Down
Loading

0 comments on commit 2e2c997

Please sign in to comment.