zhengyuxuan
2025-04-07 6ae97d768948e197a89492239441feca04c1dbb9
LifePayment/LifePayment.Application/User/UserRoleService.cs
@@ -145,6 +145,7 @@
            CheckExtensions.IfTrueThrowUserFriendlyException(result != Constant.SUCCESS,
                                                             CustomeErrorMessage.ResetPasswordFail);
        }
        public async Task<int> DeleteBackClientUser(Guid id)
        {
            var entity = await _userRepository.FirstOrDefaultAsync(s => s.Id == id && s.ClientId == Constant.ClientType.Back);
@@ -159,8 +160,16 @@
        public async Task<Guid> CreateRole(CreateOrUpdateRoleInput input)
        {
            var entity = ObjectMapper.Map<CreateOrUpdateRoleInput, Role>(input);
            return await _roleRepository.InsertAndGetIdAsync(entity);
            Role role = new Role()
            {
                Id = input.Id,
                Name = input.Name,
                Sequence = input.Sequence,
                DepartmentId = input.DepartmentId,
                DataRange = input.DataRange,
                Remark = input.Remark
            };
            return await _roleRepository.InsertAndGetIdAsync(role);
        }
        public async Task<PageOutput<RoleInfo>> GetRoles(GetRolesInput input)