File was renamed from FlexJobApi.User.Application/UserInfos/Commands/SetUserInfoStatusCommandHandler.cs |
| | |
| | | namespace FlexJobApi.User.Application.UserInfos.Commands |
| | | { |
| | | /// <summary> |
| | | /// 设置用户信息状态 |
| | | /// 用户信息命令处理器 |
| | | /// </summary> |
| | | public class SetUserInfoStatusCommandHandler( |
| | | public class UserInfoCommandHandler( |
| | | IRepository<UserInfo> rep |
| | | ) : IRequestHandler<SetUserInfoStatusCommand, int> |
| | | ) : |
| | | IRequestHandler<SetUserInfoStatusCommand, int> |
| | | { |
| | | private readonly IRepository<UserInfo> rep = rep; |
| | | |
| | | /// <inheritdoc/> |
| | | /// <summary> |
| | | /// 设置用户信息状态 |
| | | /// </summary> |
| | | /// <param name="request"></param> |
| | | /// <param name="cancellationToken"></param> |
| | | /// <returns></returns> |
| | | public async Task<int> Handle(SetUserInfoStatusCommand request, CancellationToken cancellationToken) |
| | | { |
| | | var entities = await rep.AsQueryable() |