22 lines
630 B
TypeScript
22 lines
630 B
TypeScript
import { get, post } from '../utils/request';
|
|
|
|
export interface MerchantConfigQuery {
|
|
merchant_id?: string;
|
|
scene?: string;
|
|
}
|
|
|
|
export interface CashierOrderPayload {
|
|
merchant_id?: string;
|
|
amount: string;
|
|
remark?: string;
|
|
house_id?: string;
|
|
}
|
|
|
|
export const merchantConfig = (data: MerchantConfigQuery = {}) => get('v1/cashier/merchant', data);
|
|
|
|
export const createCashierOrder = (data: CashierOrderPayload) => post('v1/cashier/order/create', data);
|
|
|
|
export const cashierPay = (data: { order_id: string }) => post('v1/cashier/pay', data);
|
|
|
|
export const cashierRecordList = (data: any = {}) => get('v1/cashier/records', data);
|