| | |
| | | |
| | | /** |
| | | * @param poleId |
| | | * @return |
| | | * @return 通过灯杆id获取配置 |
| | | */ |
| | | @GetMapping("/getWxPayConfigByPoleId/{poleId}") |
| | | public ResponseVO<Object> getWxPayConfigByPoleId(@PathVariable Long poleId) { |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * wx配置列表 |
| | | * |
| | | * @param baseConditionVO |
| | | * @param keyword |
| | | * @return |
| | | */ |
| | | @GetMapping("/WxConfigList") |
| | | public ResponseVO<Object> WxConfigList(BaseConditionVO baseConditionVO |
| | | , @RequestParam(value = "keyword", required = false) String keyword) { |
| | |
| | | return ResponseUtil.success(wxPayConfigService.configList(baseConditionVO, keyword)); |
| | | } |
| | | |
| | | /** |
| | | * wx配置的停用/启用 |
| | | */ |
| | | @PostMapping("/updateWxPayConfigStatus") |
| | | public ResponseVO<Object> updateWxPayConfigStatus(@RequestBody WxpayConfigParam wxConfigParam) { |
| | | if (!permissionConfig.check(MenuEnum.WECHAT_CONFIG_UPDATE.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | return ResponseUtil.success(wxPayConfigService.updateState(wxConfigParam.getConfigId(), wxConfigParam.getStatus())); |
| | | } |
| | | |
| | | |
| | | } |