public async Task <IResponseEntity> GetItemAsync(string id)
        {
            var result = await _sysRoleRepository.GetAsync(id);

            var data = _mapper.Map <RoleForItemResponse>(result);

            return(ResponseEntity.Ok(data));
        }
示例#2
0
        public async Task <IResponseOutput> GetAsync(string id)
        {
            var result = await sysRoleRepository.GetAsync <RoleGetOutput>(id);

            return(ResponseOutput.Ok(result, "查询成功"));
        }