增减用户列表页面,修改crud部分代码,修改店铺列表页面增加三方配置弹窗
This commit is contained in:
55
src/api/account/shopMerchant.ts
Normal file
55
src/api/account/shopMerchant.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
import request from "@/utils/request";
|
||||
import { Account_BaseUrl } from "@/api/config";
|
||||
const baseURL = Account_BaseUrl + "/admin/shopMerchant";
|
||||
const API = {
|
||||
get(shopId: string | number) {
|
||||
return request({
|
||||
url: `${baseURL}`,
|
||||
method: "get",
|
||||
headers: {
|
||||
shopId: shopId
|
||||
}
|
||||
});
|
||||
},
|
||||
edit(shopId: string | number, data: shopMerchantType) {
|
||||
return request({
|
||||
url: `${baseURL}`,
|
||||
method: "put",
|
||||
data: data,
|
||||
headers: {
|
||||
shopId: shopId
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
export default API;
|
||||
/**
|
||||
* ShopMerchantEditDTO
|
||||
*/
|
||||
export interface shopMerchantType {
|
||||
/**
|
||||
* 支付宝appid
|
||||
*/
|
||||
alipaySmallAppid: null | string;
|
||||
/**
|
||||
* 商户应用id
|
||||
*/
|
||||
appId: null | string;
|
||||
/**
|
||||
* 商户秘钥
|
||||
*/
|
||||
appSecret: null | string;
|
||||
/**
|
||||
* 支付密码
|
||||
*/
|
||||
payPassword: null | string;
|
||||
/**
|
||||
* 支付系统商户id
|
||||
*/
|
||||
storeId: null | string;
|
||||
/**
|
||||
* 微信appid
|
||||
*/
|
||||
wechatSmallAppid: null | string;
|
||||
[property: string]: any;
|
||||
}
|
||||
Reference in New Issue
Block a user