支付方式接口完善
This commit is contained in:
@@ -34,6 +34,7 @@ public class ShopPayTypeDTO implements Serializable {
|
||||
*/
|
||||
private Integer isShowShortcut;
|
||||
private String payName;
|
||||
private String payType;
|
||||
|
||||
/**
|
||||
* 0允许退款 1-不允许退款
|
||||
|
||||
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user