|  |  |  | 
|---|
|  |  |  | package com.doumee.api.system; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.azure.core.annotation.Post; | 
|---|
|  |  |  | import com.doumee.api.BaseController; | 
|---|
|  |  |  | import com.doumee.biz.system.SystemDictDataBiz; | 
|---|
|  |  |  | import com.doumee.core.annotation.pr.PreventRepeat; | 
|---|
|  |  |  | 
|---|
|  |  |  | import com.doumee.core.model.PageData; | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.dao.common.dto.UpdateSortDTO; | 
|---|
|  |  |  | import com.doumee.dao.dto.PlatformConfigDTO; | 
|---|
|  |  |  | import com.doumee.dao.system.dto.QuerySystemDictDataDTO; | 
|---|
|  |  |  | import com.doumee.dao.system.model.SystemDictData; | 
|---|
|  |  |  | import com.doumee.dao.system.vo.SystemDictDataListVO; | 
|---|
|  |  |  | 
|---|
|  |  |  | public ApiResponse<List<SystemDictData>> findByCode (@RequestParam String dictCode) { | 
|---|
|  |  |  | return ApiResponse.success(systemDictDataService.findByDictCode(dictCode)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("获取平台配置项") | 
|---|
|  |  |  | @GetMapping("/getPlatformConfig") | 
|---|
|  |  |  | public ApiResponse<PlatformConfigDTO> getPlatformConfig () { | 
|---|
|  |  |  | return ApiResponse.success(systemDictDataService.getPlatformConfigDTO()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @ApiOperation("更新平台配置项") | 
|---|
|  |  |  | @PostMapping("/updPlatformConfig") | 
|---|
|  |  |  | public ApiResponse updPlatformConfig (@RequestBody PlatformConfigDTO platformConfigDTO) { | 
|---|
|  |  |  | systemDictDataService.updPlatformConfig(platformConfigDTO); | 
|---|
|  |  |  | return ApiResponse.success("操作成功"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|