mitao
2025-03-10 f46774ffa7f49d910df19530fad4465136b2e0a6
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/CustomConfigController.java
@@ -8,6 +8,7 @@
import com.ruoyi.system.api.domain.dto.MgtAfterSaleSettingDTO;
import com.ruoyi.system.domain.dto.PointsConfigDTO;
import com.ruoyi.system.domain.vo.CustomConfigVO;
import com.ruoyi.system.domain.vo.RefundOfDepositVO;
import com.ruoyi.system.domain.vo.WishSettingVO;
import com.ruoyi.system.service.ICustomConfigService;
import io.swagger.annotations.*;
@@ -182,15 +183,23 @@
    }
    /**
     * 获取保证金退还文案
     */
    @ApiOperation("获取保证金退还文案")
    @GetMapping("/refund-of-deposit")
    public R<String> getRefundOfDeposit() {
        return R.ok(iCustomConfigService.getRefundOfDeposit());
    }
    /**
     * 保存保证金退还设置
     */
    @ApiOperation(value = "保存保证金退还设置")
    @PostMapping("/save-refund-of-deposit")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "refundOfDeposit", value = "保证金退还文案", required = true)})
    public R<?> saveRefundOfDeposit(
            @RequestParam(value = "refundOfDeposit") String refundOfDeposit) {
        iCustomConfigService.saveRefundOfDeposit(refundOfDeposit);
    public R<?> saveRefundOfDeposit(@RequestBody RefundOfDepositVO refundOfDepositVO) {
        iCustomConfigService.saveRefundOfDeposit(refundOfDepositVO.getRefundOfDeposit());
        return R.ok();
    }
}