-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(user): add updateUseremailModel (#220)
* feat(user): add updateUseremailModel * refactor:refactor code * feat(user):upsertUserModel add roleNames * refactor:refactor code
- Loading branch information
1 parent
dd29c77
commit 5f53d23
Showing
12 changed files
with
88 additions
and
74 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
...ocks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Enum/SendMsgCodeTypes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.StackSdks.Auth.Contracts.Enum; | ||
|
||
public enum SendMsgCodeTypes | ||
{ | ||
VerifiyPhoneNumber = 1, | ||
UpdatePhoneNumber | ||
} |
17 changes: 0 additions & 17 deletions
17
...asa.BuildingBlocks.StackSdks.Auth.Contracts/Model/SendMsgCodeForUpdatePhoneNumberModel.cs
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
...uth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/SendMsgCodeForVerificationModel.cs
This file was deleted.
Oops, something went wrong.
24 changes: 24 additions & 0 deletions
24
...cks/StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/SendMsgCodeModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.StackSdks.Auth.Contracts.Model; | ||
|
||
public class SendMsgCodeModel | ||
{ | ||
public Guid UserId { get; set; } | ||
|
||
public string PhoneNumber { get; set; } = ""; | ||
|
||
public SendMsgCodeTypes SendMsgCodeType { get; set; } = SendMsgCodeTypes.VerifiyPhoneNumber; | ||
|
||
public SendMsgCodeModel() | ||
{ | ||
} | ||
|
||
public SendMsgCodeModel(Guid userId, string phoneNumber, SendMsgCodeTypes sendMsgCodeType) | ||
{ | ||
UserId = userId; | ||
PhoneNumber = phoneNumber; | ||
SendMsgCodeType = sendMsgCodeType; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...StackSdks/Auth/Masa.BuildingBlocks.StackSdks.Auth.Contracts/Model/UpdateUserEmailModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// Copyright (c) MASA Stack All rights reserved. | ||
// Licensed under the MIT License. See LICENSE.txt in the project root for license information. | ||
|
||
namespace Masa.BuildingBlocks.StackSdks.Auth.Contracts.Model; | ||
|
||
public class UpdateUserEmailModel | ||
{ | ||
public Guid Id { get; set; } | ||
|
||
public string Email { get; set; } = ""; | ||
|
||
public UpdateUserEmailModel() | ||
{ | ||
|
||
} | ||
|
||
public UpdateUserEmailModel(Guid id, string email) | ||
{ | ||
Id = id; | ||
Email = email; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters