public async Task <IResponseEntity> GetItemAsync(string id) { var result = await _sysRoleRepository.GetAsync(id); var data = _mapper.Map <RoleForItemResponse>(result); return(ResponseEntity.Ok(data)); }
public async Task <IResponseOutput> GetAsync(string id) { var result = await sysRoleRepository.GetAsync <RoleGetOutput>(id); return(ResponseOutput.Ok(result, "查询成功")); }