Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Commit

Permalink
feat(auth):auth sdk add updateUserPassword updateUserBaseInfo (#88)
Browse files Browse the repository at this point in the history
* feat(auth):add updateUserPassword updateUserBaseInfo

* refactor:refactor code

* refactor:refactor code
  • Loading branch information
wuweilaiya authored Jul 4, 2022
1 parent 49374b7 commit ede3b87
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// 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.BasicAbility.Auth.Contracts.Model;

public class UpdateUserBasicInfoModel
{
public Guid Id { get; set; }

public string DisplayName { get; set; } = "";

public string Avatar { get; set; } = "";

public string PhoneNumber { get; set; } = "";

public string Email { get; set; } = "";

public GenderTypes Gender { get; set; }
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// 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.BasicAbility.Auth.Contracts.Model;

public class UpdateUserPasswordModel
{
public Guid Id { get; set; }

public string OldPassword { get; set; } = "";

public string NewPassword { get; set; } = "";
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ public interface IUserService

Task VisitedAsync(string url);

Task<List<UserVisitedModel>> GetUserVisitedListAsync();
Task<List<UserVisitedModel>> GetVisitedListAsync();

Task UpdatePasswordAsync(UpdateUserPasswordModel user);

Task UpdateBasicInfoAsync(UpdateUserBasicInfoModel user);
}

0 comments on commit ede3b87

Please sign in to comment.