mirror of
https://gitee.com/dromara/dax-pay.git
synced 2025-09-09 13:59:05 +00:00
feat 对接前端支付通道和方式
This commit is contained in:
@@ -5,8 +5,10 @@ import cn.bootx.platform.common.mybatisplus.base.MpBaseEntity;
|
||||
import cn.bootx.platform.daxpay.service.core.system.payinfo.convert.PayWayInfoConvert;
|
||||
import cn.bootx.platform.daxpay.service.dto.system.payinfo.PayWayInfoDto;
|
||||
import cn.bootx.table.modify.annotation.DbColumn;
|
||||
import cn.bootx.table.modify.annotation.DbTable;
|
||||
import com.baomidou.mybatisplus.annotation.FieldStrategy;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
@@ -20,6 +22,8 @@ import lombok.experimental.Accessors;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@DbTable(comment = "支付方式")
|
||||
@TableName("pay_way_info")
|
||||
public class PayWayInfo extends MpBaseEntity implements EntityBaseFunction<PayWayInfoDto> {
|
||||
|
||||
/** 需要与系统中配置的枚举一致 */
|
||||
|
@@ -29,7 +29,7 @@ public class PayChannelInfoService {
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
public List<PayChannelInfoDto> list(){
|
||||
public List<PayChannelInfoDto> findAll(){
|
||||
return manager.findAll().stream()
|
||||
.map(PayChannelInfo::toDto)
|
||||
.collect(Collectors.toList());
|
||||
|
@@ -29,7 +29,7 @@ public class PayWayInfoService {
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
public List<PayWayInfoDto> list(){
|
||||
public List<PayWayInfoDto> findAll(){
|
||||
return manager.findAll().stream()
|
||||
.map(PayWayInfo::toDto)
|
||||
.collect(Collectors.toList());
|
||||
|
@@ -14,7 +14,26 @@ import lombok.experimental.Accessors;
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "")
|
||||
@Schema(title = "支付通道信息")
|
||||
public class PayChannelInfoDto extends BaseDto {
|
||||
|
||||
/** 需要与系统中配置的枚举一致 */
|
||||
@Schema(description = "代码")
|
||||
private String code;
|
||||
|
||||
/** 需要与系统中配置的枚举一致 */
|
||||
@Schema(description = "名称")
|
||||
private String name;
|
||||
|
||||
/** logo图片 */
|
||||
@Schema(description = "logo图片")
|
||||
private Long iconId;
|
||||
|
||||
/** 卡牌背景色 */
|
||||
@Schema(description = "卡牌背景色")
|
||||
private String bgColor;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
}
|
||||
|
@@ -7,13 +7,25 @@ import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
*
|
||||
* 支付方式信息
|
||||
* @author xxm
|
||||
* @since 2024/1/8
|
||||
*/
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "")
|
||||
@Schema(title = "支付方式信息")
|
||||
public class PayWayInfoDto extends BaseDto {
|
||||
|
||||
/** 需要与系统中配置的枚举一致 */
|
||||
@Schema(description = "代码")
|
||||
private String code;
|
||||
|
||||
/** 需要与系统中配置的枚举一致 */
|
||||
@Schema(description = "名称")
|
||||
private String name;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
}
|
||||
|
@@ -16,4 +16,16 @@ public class PayChannelInfoParam {
|
||||
|
||||
@Schema(description= "主键")
|
||||
private Long id;
|
||||
|
||||
/** logo图片 */
|
||||
@Schema(description = "logo图片")
|
||||
private Long iconId;
|
||||
|
||||
/** 卡牌背景色 */
|
||||
@Schema(description = "卡牌背景色")
|
||||
private String bgColor;
|
||||
|
||||
/** 备注 */
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
}
|
||||
|
@@ -11,9 +11,12 @@ import lombok.experimental.Accessors;
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
@Schema(title = "")
|
||||
@Schema(title = "支付方式信息")
|
||||
public class PayWayInfoParam {
|
||||
|
||||
@Schema(description= "主键")
|
||||
private Long id;
|
||||
|
||||
@Schema(description = "备注")
|
||||
private String remark;
|
||||
}
|
||||
|
Reference in New Issue
Block a user