/// <summary> /// 更新角色信息 /// </summary> /// <param name="command"></param> /// <param name="cancellationToken"></param> /// <returns></returns> public async Task <Result <int> > UpdateRoleAsync(AdminRoleUpdateCommand command, CancellationToken cancellationToken = default) { var res = await adminRoleService.UpdateAsync(command, cancellationToken); if (res > 0) { return(RestFull.Success(data: res)); } else { return(RestFull.Fail(data: res)); } }