| | |
| | | import com.doumee.core.model.PageData; |
| | | import com.doumee.core.model.PageWrap; |
| | | import com.doumee.core.utils.Constants; |
| | | import com.doumee.dao.system.dto.PlatformConfigDTO; |
| | | import com.doumee.dao.system.dto.QuerySystemDictDataDTO; |
| | | import com.doumee.dao.system.dto.VisitConfigDTO; |
| | | import com.doumee.dao.system.model.SystemDictData; |
| | |
| | | systemDictData.setLoginUserInfo(this.getLoginUser(token)); |
| | | systemDictData.setUpdateUser(systemDictData.getLoginUserInfo().getId()); |
| | | systemDictDataBiz.updateById(systemDictData); |
| | | systemDictDataBiz.refreshCache(); |
| | | return ApiResponse.success(null); |
| | | } |
| | | |
| | |
| | | @GetMapping("/getVisitConfigDTO") |
| | | public ApiResponse<VisitConfigDTO> getVisitConfigDTO(){ |
| | | return ApiResponse.success(systemDictDataService.getVisitConfigDTO()); |
| | | }; |
| | | } |
| | | |
| | | /** |
| | | * 修改访客来访配置 |
| | |
| | | systemDictDataService.updateVisitConfig(visitConfigDTO); |
| | | return ApiResponse.success(null); |
| | | }; |
| | | /** |
| | | * 访客来访配置 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "访客来访配置" ) |
| | | @GetMapping("/getPlatformConfigDTO") |
| | | public ApiResponse<PlatformConfigDTO> getPlatformConfigDTO(){ |
| | | return ApiResponse.success(systemDictDataService.getPlatformConfigDTO()); |
| | | }; |
| | | |
| | | /** |
| | | * 修改访客来访配置 |
| | | * @param visitConfigDTO |
| | | */ |
| | | @ApiOperation(value = "修改访客来访配置" ) |
| | | @PostMapping("/updatePlatformConfig") |
| | | public ApiResponse updatePlatformConfig(@RequestBody PlatformConfigDTO visitConfigDTO,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ |
| | | visitConfigDTO.setLoginUserInfo(this.getLoginUser(token)); |
| | | systemDictDataService.updatePlatformConfig(visitConfigDTO); |
| | | return ApiResponse.success(null); |
| | | }; |
| | | } |