支付方式接口
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
|
||||
package com.czg.account.dto;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.Serial;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 店铺支付类型 实体类。
|
||||
*
|
||||
* @author zs
|
||||
* @since 2025-02-26
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
public class ShopPayTypeDTO implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 自增id
|
||||
*/
|
||||
private Integer id;
|
||||
/**
|
||||
* 是否快捷展示1是0否
|
||||
*/
|
||||
private Integer isShowShortcut;
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private String shopId;
|
||||
|
||||
/**
|
||||
* 0允许退款 1-不允许退款
|
||||
*/
|
||||
private Integer isRefundable;
|
||||
|
||||
/**
|
||||
* 是否打开钱箱
|
||||
*/
|
||||
private Integer isOpenCashDrawer;
|
||||
|
||||
/**
|
||||
* 0不是 1是 [系统级支付]
|
||||
*/
|
||||
private Integer isSystem;
|
||||
|
||||
/**
|
||||
* 0-非虚拟 1虚拟 virtual
|
||||
*/
|
||||
private Integer isIdeal;
|
||||
|
||||
/**
|
||||
* 0-不显示1显示
|
||||
*/
|
||||
private Integer isDisplay;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sorts;
|
||||
|
||||
|
||||
/**
|
||||
* 图标
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
package com.czg.account.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
|
||||
import java.io.Serial;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* 店铺支付类型 实体类。
|
||||
*
|
||||
* @author zs
|
||||
* @since 2025-02-26
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Accessors(chain = true)
|
||||
@Table("tb_shop_pay_type")
|
||||
public class ShopPayType implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 自增id
|
||||
*/
|
||||
@Id(keyType = KeyType.Auto)
|
||||
private Integer id;
|
||||
|
||||
/**
|
||||
* 支付类型cash,alipay,weixin,deposit,arrears,virtual,member-account
|
||||
*/
|
||||
private String payType;
|
||||
|
||||
/**
|
||||
* 支付类型名称支付类型名称:现金,支付宝,刷卡deposit,挂单arrears,储值member-account自定义virtual
|
||||
*/
|
||||
private String payName;
|
||||
|
||||
/**
|
||||
* 是否快捷展示1是0否
|
||||
*/
|
||||
private Integer isShowShortcut;
|
||||
|
||||
/**
|
||||
* 店铺id
|
||||
*/
|
||||
private Long shopId;
|
||||
|
||||
/**
|
||||
* 0允许退款 1-不允许退款
|
||||
*/
|
||||
private Integer isRefundable;
|
||||
|
||||
/**
|
||||
* 是否打开钱箱
|
||||
*/
|
||||
private Integer isOpenCashDrawer;
|
||||
|
||||
/**
|
||||
* 0不是 1是 [系统级支付]
|
||||
*/
|
||||
private Integer isSystem;
|
||||
|
||||
/**
|
||||
* 0-非虚拟 1虚拟 virtual
|
||||
*/
|
||||
private Integer isIdeal;
|
||||
|
||||
/**
|
||||
* 0-不显示1显示
|
||||
*/
|
||||
private Integer isDisplay;
|
||||
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
private Integer sorts;
|
||||
|
||||
@Column(onInsertValue = "now()", onUpdateValue = "now()")
|
||||
private LocalDateTime createTime;
|
||||
@Column(onInsertValue = "now()")
|
||||
private LocalDateTime updateTime;
|
||||
|
||||
/**
|
||||
* 图标
|
||||
*/
|
||||
private String icon;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.czg.account.service;
|
||||
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.czg.account.entity.ShopPayType;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 店铺支付类型 服务层。
|
||||
*
|
||||
* @author zs
|
||||
* @since 2025-02-26
|
||||
*/
|
||||
public interface ShopPayTypeService extends IService<ShopPayType> {
|
||||
|
||||
List<ShopPayType> getList(Long shopId);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user