收款方式架构
平台管理端配置
原型
点击编辑
点击微信支付-子应用编辑(独有)
文字描述:
- 读取所有的支付方式
- 点击编辑、修改支付方式的设置
- 微信支付的特殊处理
伪代码
//平台管理
public class ThirdPlatformAdminController {
//平台Service
private ThirdPlatformManager thirdPlatformManager;
//平台appService
private ThirdPlatformAppManager thirdPlatformAppManager;
//读取第三方平台
//入参 type类型
public List<ThirdPlatformDO> getList(String type){
//thirdPlatformManager.getList();
}
//修改平台配置参数
public String edit(Long platformId){
//thirdPlatformManager.edit();
}
//根据平台ID读取app列表
public List<ThirdPlatformAppDO> getList(Long platformId){
//thirdPlatformAppManager.getList()
}
//修改app配置
public String editApp(Long appId){
//thirdPlatformAppManager.edit()
}
}
客户端读取支付方式
APP端 举例:
public class ThirdPlatformBuyerController{
//读取已启用的支付方式
//入参:type
public List<ThirdPlatformDO> getList(String type) {
//select * from es_third_platform where open_flag = 1 type={type}
}
}
微信小程序支付插件读取配置
public class