update create order logic
This commit is contained in:
1 parent
85d4c93613
commit
6261da4f3e
8 files changed
+222
-73
No files matched your search
@@ -20,6 +20,7 @@ export interface IOrder {
|
||||
application_id?: string;
|
||||
wechatpay_url?: string;
|
||||
alipay_url?: string;
|
||||
pay_way?: string;
|
||||
}
|
||||
|
||||
export interface IOrderListResponse {
|
||||
|
||||
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user