支付方式接口完善

This commit is contained in:
张松
2025-03-04 17:38:09 +08:00
parent 7499cee35e
commit 97b145e0f6
5 changed files with 39 additions and 11 deletions

View File

@@ -34,6 +34,7 @@ public class ShopPayTypeDTO implements Serializable {
*/
private Integer isShowShortcut;
private String payName;
private String payType;
/**
* 0允许退款 1-不允许退款

View File

@@ -1,6 +1,9 @@
package com.czg.account.dto.paytype;
import com.czg.validator.group.InsertGroup;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
@@ -24,10 +27,12 @@ public class ShopPayTypeAddDTO {
/**
* 支付类型 cash,alipay,weixin,deposit,arrears,virtual,member-account
*/
@NotEmpty(message = "支付方式不为空", groups = InsertGroup.class)
private String payType;
/**
* 支付名称
*/
@NotEmpty(message = "支付名称不为空", groups = InsertGroup.class)
private String payName;
/**

View File

@@ -1,5 +1,6 @@
package com.czg.account.service;
import com.czg.account.dto.ShopPayTypeDTO;
import com.mybatisflex.core.service.IService;
import com.czg.account.entity.ShopPayType;
@@ -17,4 +18,5 @@ public interface ShopPayTypeService extends IService<ShopPayType> {
Boolean add(Long shopId, ShopPayType shopPayType);
Boolean edit(Long shopId, ShopPayTypeDTO shopPayTypeDTO);
}