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

60 lines
1.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import request from "@/utils/request";
import { Account_BaseUrl } from "@/api/config";
const baseURL = Account_BaseUrl + "/admin/freeDing";
const API = {
getList() {
return request<any>({
url: `${baseURL}`,
method: "get",
});
},
edit(data: editRequest) {
return request({
url: `${baseURL}`,
method: "put",
data: data,
});
},
}
export default API;
/**
* 修改信息
*
* FreeDineConfigEditDTO
*/
export interface editRequest {
/**
* 是否启用
*/
enable?: boolean | null;
/**
* 主键id
*/
id: number | null;
/**
* 充值说明
*/
rechargeDesc?: null | string;
/**
* 满多少可用
*/
rechargeThreshold?: number | null;
/**
* 充值倍数
*/
rechargeTimes?: number | null;
/**
* 使用类型 dine-in店内 takeout 自取 post快递takeaway外卖
*/
useType?: string[] | null;
/**
* 与优惠券同享
*/
withCoupon?: boolean | null;
/**
* 积分同享
*/
withPoints?: boolean | null;
[property: string]: any;
}