Skip to content

添加邮箱登录模型及服务接口实现 - #117

Merged
MayueCif merged 2 commits into
mainfrom
feature/login-by-email
Oct 10, 2026
Merged

MayueCif merged 2 commits into
mainfrom
feature/login-by-email

Conversation

@MayueCif

Copy link
Copy Markdown
Contributor
  • 新增 LoginByEmailModel.cs(含 MIT 许可证头),定义 LoginByEmailModel,包含 Email、Code 字符串属性,默认值为空字符串。
  • 在 IUserService 接口中新增方法签名 Task<UserModel?> LoginByEmailAsync(LoginByEmailModel login)。
  • 在 UserService 中实现 LoginByEmailAsync,调用 _caller.PostAsync("api/user/loginByEmail", login) 并返回结果。
  • 补丁中包含 RemoveUserRolesAsync 的上下文片段且 UserService 的实现片段有重复,但未改变量现有行为。

- 新增 LoginByEmailModel.cs(含 MIT 许可证头),定义 LoginByEmailModel,包含 Email、Code 字符串属性,默认值为空字符串。
- 在 IUserService 接口中新增方法签名 Task<UserModel?> LoginByEmailAsync(LoginByEmailModel login)。
- 在 UserService 中实现 LoginByEmailAsync,调用 _caller.PostAsync<UserModel>("api/user/loginByEmail", login) 并返回结果。
- 补丁中包含 RemoveUserRolesAsync 的上下文片段且 UserService 的实现片段有重复,但未改变量现有行为。
@MayueCif
MayueCif merged commit 81ff26a into main Oct 10, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant