mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-06 12:39:38 +00:00
ref 平台配置改版. 接口配置改版. 脚手架精简, 删除无关功能
This commit is contained in:
@@ -47,13 +47,6 @@
|
||||
<version>${bootx-platform.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 消息通知 -->
|
||||
<dependency>
|
||||
<groupId>cn.bootx.platform</groupId>
|
||||
<artifactId>service-notice</artifactId>
|
||||
<version>${bootx-platform.version}</version>
|
||||
</dependency>
|
||||
|
||||
<!-- 文件管理 -->
|
||||
<dependency>
|
||||
<groupId>cn.bootx.platform</groupId>
|
||||
|
@@ -4,11 +4,12 @@ import cn.bootx.platform.common.core.rest.Res;
|
||||
import cn.bootx.platform.common.core.rest.ResResult;
|
||||
import cn.daxpay.single.service.core.system.config.service.PayChannelConfigService;
|
||||
import cn.daxpay.single.service.dto.system.config.PayChannelConfigDto;
|
||||
import cn.daxpay.single.service.param.system.payinfo.PayChannelInfoParam;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -36,11 +37,4 @@ public class PayChannelConfigController {
|
||||
public ResResult<PayChannelConfigDto> findById(Long id){
|
||||
return Res.ok(payChannelConfigService.findById(id));
|
||||
}
|
||||
|
||||
@Operation(summary = "更新")
|
||||
@PostMapping("/update")
|
||||
public ResResult<Void> update(@RequestBody PayChannelInfoParam param){
|
||||
payChannelConfigService.update(param);
|
||||
return Res.ok();
|
||||
}
|
||||
}
|
||||
|
@@ -1,37 +0,0 @@
|
||||
package cn.daxpay.single.admin.controller.system;
|
||||
|
||||
import cn.bootx.platform.common.core.rest.Res;
|
||||
import cn.bootx.platform.common.core.rest.ResResult;
|
||||
import cn.daxpay.single.service.core.system.config.service.WechatNoticeConfigService;
|
||||
import cn.daxpay.single.service.dto.system.config.WechatNoticeConfigDto;
|
||||
import cn.daxpay.single.service.param.system.config.WechatNoticeConfigParam;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 微信消息通知配置
|
||||
* @author xxm
|
||||
* @since 2024/1/2
|
||||
*/
|
||||
@Tag(name = "微信消息通知配置")
|
||||
@RestController
|
||||
@RequestMapping("/wx/notice")
|
||||
@RequiredArgsConstructor
|
||||
public class WechatNoticeConfigController {
|
||||
private final WechatNoticeConfigService configService;
|
||||
|
||||
@Operation(summary = "获取微信消息通知配置")
|
||||
@GetMapping("/getConfig")
|
||||
public ResResult<WechatNoticeConfigDto> getConfig() {
|
||||
return Res.ok(configService.getConfig().toDto());
|
||||
}
|
||||
|
||||
@Operation(summary = "更新微信消息通知配置")
|
||||
@PostMapping("/update")
|
||||
public ResResult<Void> update(@RequestBody WechatNoticeConfigParam param) {
|
||||
configService.update(param);
|
||||
return Res.ok();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user