| | |
| | | using LifePayment.Application.Contracts; |
| | | using LifePayment.Domain.Shared; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Identity; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Nest; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Threading.Tasks; |
| | | using Volo.Abp.AspNetCore.Mvc; |
| | | using Volo.Abp.Identity; |
| | |
| | | Sequence = input.Sequence, |
| | | Note = input.Remark, |
| | | }); |
| | | var newInput = ObjectMapper.Map<CreateBaseRoleInput, CreateOrUpdateRoleInput>(input); |
| | | newInput.Id = res.Id; |
| | | CreateOrUpdateRoleInput newInput = new CreateOrUpdateRoleInput() |
| | | { |
| | | Id = res.Id, |
| | | Name = input.Name, |
| | | Sequence = input.Sequence, |
| | | DepartmentId = input.DepartmentId, |
| | | DataRange = input.DataRange, |
| | | Remark = input.Remark, |
| | | }; |
| | | await _userRoleService.CreateRole(newInput); |
| | | return res.Id; |
| | | } |
| | |
| | | return await _userRoleService.DeleteRole(id); |
| | | } |
| | | |
| | | //[HttpGet] |
| | | //public async Task<UserChannelOutput> GetUserChannel() |
| | | //{ |
| | | // return await _accountService.GetUserChannel(); |
| | | //} |
| | | /// <summary> |
| | | /// 获取用户账号详情 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | public async Task<BackClientUserInfoOutput> GetBackClientUserInfo() |
| | | { |
| | | return await _accountService.GetBackClientUserInfo(); |
| | | } |
| | | } |
| | | } |