update create order logic

This commit is contained in:
AceDataCloud committed 2023-01-29 17:28:46 +08:00
1 parent 85d4c93613
commit 6261da4f3e
8 files changed
+222 -73

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ export interface IOrder {
application_id?: string;
wechatpay_url?: string;
alipay_url?: string;
pay_way?: string;
}
export interface IOrderListResponse {
+4
View File
@@ -34,6 +34,10 @@ class OrderService {
return await httpClient.post(`/${this.key}/${id}/refresh/`);
}
async pay(id: string, data: IOrder): Promise<AxiosResponse<IOrderDetailResponse>> {
return await httpClient.post(`/${this.key}/${id}/pay/`, data);
}
async delete(id: string): Promise<AxiosResponse<null>> {
return await httpClient.delete(`/${this.key}/${id}`);
}