/// <summary> /// 获取字典集合 /// </summary> /// <param name="request"></param> /// <returns></returns> public GetDictionaryResponse GetDictionary(GetDictionaryRequest request) { GetDictionaryResponse response = new GetDictionaryResponse(); List <DictionaryItem> list = dictionaryRepository.GetDictionary(request); response.dataList = list; return(response); }
public BaseResponse GetDictionary(GetDictionaryRequest request) { try { GetDictionaryResponse response = dictionaryDomainService.GetDictionary(request); return(ApiSuccessResult(response)); } catch (Exception ex) { _Log4Net.Error("GetDictionary--异常信息", ex); return(ApiErrorResult(ex.Message)); } }