Files
cashier-web/src/api/account/shopMerchant.ts

54 lines
1.0 KiB
TypeScript

import request from "@/utils/request";
import { Account_BaseUrl, Order_BaseUrl } from "@/api/config";
const baseURL = Account_BaseUrl + "/admin/shopMerchant";
const orderURL = Order_BaseUrl + "/admin/shopMerchant";
const API = {
get(shopId: string | number) {
return request({
url: `${orderURL}`,
method: "get",
params: {
shopId: shopId
}
});
},
edit(shopId: string | number, data: shopMerchantType) {
delete data.id
return request({
url: `${orderURL}`,
method: "put",
data: { ...data, 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;
}