Beispiel #1
0
        public async Task UpdateStatus(UpdateRoleStatusInput input)
        {
            var role = await _roleRepository.GetAsync(input.Id);

            role.Status = input.Status;
            await _roleRepository.UpdateAsync(role);
        }
Beispiel #2
0
        public async Task UpdateStatus(UpdateRoleStatusInput input)
        {
            var role = await _roleRepository.GetAsync(input.Id);

            role.Status = input.Status;
            await _roleRepository.UpdateAsync(role);

            await RemoveRoleCheckPemissionCache(role.Id);
        }
Beispiel #3
0
        public async Task <string> Status(UpdateRoleStatusInput input)
        {
            await _roleDomainService.UpdateStatus(input);

            if (input.Status == Common.Status.Valid)
            {
                return("启用角色成功");
            }
            return("禁用角色成功");
        }