AuctionOrderController.ts
2.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
import { Page } from "autumn-vue/lib/core/page/Page";
import { AxiosResponse, AxiosStatic } from "axios";
// region 前端扩展导入包
import { AuctionOrder } from "lib/src/entity/auction/entity/AuctionOrder";
import { Contract } from "lib/src/entity/auction/entity/Contract";
// endregion
/**
* 拍卖订单(AuctionOrder) PI接口
* @author gonglei
* @since 2025-10-13 12:18:11
*/
export const AuctionOrderController= {
/**
* 发起E签宝合国签署流程
* @param signOrder
* @return Contract
*/
esignAuctionOrderContract(axios:AxiosStatic, signOrder: any): Promise<AxiosResponse<Contract>> {
return axios.post("order/esignAuctionOrderContract", signOrder);
},
/**
* 根据id查询拍卖订单
* @param orderId
* @return AuctionOrder
*/
getAuctionOrderById(axios:AxiosStatic, orderId: number): Promise<AxiosResponse<AuctionOrder>> {
return axios.get("order/getAuctionOrderById", { params: { orderId } });
},
/**
* 取消拍卖订单
* @param vehicleId
* @return int
*/
getAuctionOrderByVehicleId(axios:AxiosStatic, vehicleId: number): Promise<AxiosResponse<number>> {
return axios.get("order/getAuctionOrderByVehicleId", { params: { vehicleId } });
},
/**
*/
getAuctionOrderDetailById(axios:AxiosStatic, orderId: number): Promise<AxiosResponse<AuctionOrder>> {
return axios.get("order/getAuctionOrderDetailById", { params: { orderId } });
},
/**
* 查询订单状态,用于轮循操作
* @param orderId
* @return AuctionOrder.OrderState
*/
getAuctionOrderStateById(axios:AxiosStatic, orderId: number): Promise<AxiosResponse<AuctionOrder.OrderState>> {
return axios.get("order/getAuctionOrderStateById", { params: { orderId } });
},
/**
*/
getContractsByOrderId(axios:AxiosStatic, orderId: number): Promise<AxiosResponse<Contract[]>> {
return axios.get("order/getContractsByOrderId", { params: { orderId } });
},
/**
*/
getLatestAuctionOrders(axios:AxiosStatic): Promise<AxiosResponse<AuctionOrder[]>> {
return axios.get("order/getLatestAuctionOrders");
},
/**
* 分页查询拍卖订单
* @param pagination
* @return Page
*/
pageAuctionOrder(axios:AxiosStatic, pagination: any): Promise<AxiosResponse<Page<AuctionOrder>>> {
return axios.post("order/pageAuctionOrder", pagination);
},
PAGE_AUCTION_ORDER : "order/pageAuctionOrder",
/**
* 上传过户资料
* @param auctionOrder
* @return AuctionOrder
* @throws FieldException
*/
uploadTransferAuctionOrder(axios:AxiosStatic, auctionOrder: any): Promise<AxiosResponse<AuctionOrder>> {
return axios.post("order/uploadTransferAuctionOrder", auctionOrder);
},
// region 前端扩展代码区
// endregion
};