feat: 新增系统方式支付设置
This commit is contained in:
78
src/api/account/payType.ts
Normal file
78
src/api/account/payType.ts
Normal file
@@ -0,0 +1,78 @@
|
||||
import request from "@/utils/request";
|
||||
import { Account_BaseUrl } from "@/api/config";
|
||||
const baseURL = Account_BaseUrl + "/admin/payType";
|
||||
const Api = {
|
||||
getList() {
|
||||
return request<any>({
|
||||
url: `${baseURL}`,
|
||||
method: "get",
|
||||
});
|
||||
},
|
||||
get(params: getRequset) {
|
||||
return request<any>({
|
||||
url: `${baseURL}/detail`,
|
||||
method: "get",
|
||||
});
|
||||
},
|
||||
edit(data: payType) {
|
||||
return request<any>({
|
||||
url: `${baseURL}`,
|
||||
method: "put",
|
||||
data
|
||||
});
|
||||
},
|
||||
add(data: payType) {
|
||||
return request<any>({
|
||||
url: `${baseURL}`,
|
||||
method: "post",
|
||||
data
|
||||
});
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
export default Api;
|
||||
|
||||
interface getRequset {
|
||||
id?: string
|
||||
}
|
||||
|
||||
export interface payType {
|
||||
/**
|
||||
* 图标
|
||||
*/
|
||||
icon?: null | string;
|
||||
/**
|
||||
* 自增id
|
||||
*/
|
||||
id?: number | null;
|
||||
/**
|
||||
* 0-不显示1显示
|
||||
*/
|
||||
isDisplay?: number | null;
|
||||
/**
|
||||
* 0-非虚拟 1虚拟 virtual
|
||||
*/
|
||||
isIdeal?: number | null;
|
||||
/**
|
||||
* 是否打开钱箱
|
||||
*/
|
||||
isOpenCashDrawer?: number | null;
|
||||
/**
|
||||
* 0允许退款 1-不允许退款
|
||||
*/
|
||||
isRefundable?: number | null;
|
||||
/**
|
||||
* 是否快捷展示1是0否
|
||||
*/
|
||||
isShowShortcut?: number | null;
|
||||
/**
|
||||
* 0不是 1是 [系统级支付]
|
||||
*/
|
||||
isSystem?: number | null;
|
||||
/**
|
||||
* 排序
|
||||
*/
|
||||
sorts?: number | null;
|
||||
[property: string]: any;
|
||||
}
|
||||
Reference in New Issue
Block a user