支付方式接口修改哦

This commit is contained in:
张松 2025-02-26 15:12:01 +08:00
parent 472d6b8371
commit c7f8f467f0
2 changed files with 12 additions and 2 deletions

View File

@ -2,6 +2,7 @@ package com.czg.controller.admin;
import cn.hutool.core.bean.BeanUtil;
import com.czg.account.dto.ShopPayTypeDTO;
import com.czg.account.dto.paytype.ShopPayTypeAddDTO;
import com.czg.account.entity.ShopPayType;
import com.czg.account.service.ShopPayTypeService;
import com.czg.annotation.SaAdminCheckPermission;
@ -56,8 +57,8 @@ public class ShopPayTypeController {
*/
@SaAdminCheckPermission(value = "shopPayType:save", name = "支付方式添加")
@PostMapping
public CzgResult<Boolean> add(@RequestBody ShopPayTypeDTO shopPayTypeDTO) {
ShopPayType shopPayType = BeanUtil.copyProperties(shopPayTypeDTO, ShopPayType.class);
public CzgResult<Boolean> add(@RequestBody ShopPayTypeAddDTO shopPayTypeAddDTO) {
ShopPayType shopPayType = BeanUtil.copyProperties(shopPayTypeAddDTO, ShopPayType.class);
return CzgResult.success(shopPayTypeService.add(StpKit.USER.getShopId(),shopPayType));
}

View File

@ -21,6 +21,15 @@ import java.io.Serializable;
@AllArgsConstructor
public class ShopPayTypeAddDTO {
/**
* 支付类型 cash,alipay,weixin,deposit,arrears,virtual,member-account
*/
private String payType;
/**
* 支付名称
*/
private String payName;
/**
* 是否快捷展示1是0否
*/