AuctionOrderController.ts
3.04 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 {AxiosResponse, AxiosStatic} from 'axios';
import dayjs, {Dayjs} from 'dayjs';
// region 前端扩展导入包
import {AuctionOrder} from "lib/src/entity/auction/entity/AuctionOrder";
import {Page} from "lib/src/core/page/Page";
import {Contract} from "lib/src/entity/auction/entity/Contract";
import {SignOrder} from "lib/src/entity/auction/domain/SignOrder";
// endregion
/**
* 拍卖订单(AuctionOrder) PI接口
* @since 2025-10-13 12:18:11
*/
export class AuctionOrderController {
/**
* 发起E签宝合国签署流程
* @param signOrder
* @return Contract
*/
static esignAuctionOrderContract(axios: AxiosStatic, signOrder: SignOrder): Promise<AxiosResponse<Contract>> {
return axios.post('order/esignAuctionOrderContract', signOrder);
}
/**
* 根据id查询拍卖订单
* @param orderId
* @return AuctionOrder
*/
static getAuctionOrderById(axios: AxiosStatic, orderId: number): Promise<AxiosResponse<AuctionOrder>> {
return axios.get('order/getAuctionOrderById', {params: {orderId: orderId}});
}
/**
* 取消拍卖订单
* @param vehicleId
* @return int
*/
static getAuctionOrderByVehicleId(axios: AxiosStatic, vehicleId: number): Promise<AxiosResponse<number>> {
return axios.get('order/getAuctionOrderByVehicleId', {params: {vehicleId: vehicleId}});
}
/**
*/
static getAuctionOrderDetailById(axios: AxiosStatic, orderId: number): Promise<AxiosResponse<AuctionOrder>> {
return axios.get('order/getAuctionOrderDetailById', {params: {orderId: orderId}});
}
/**
* 查询订单状态,用于轮循操作
* @param orderId
* @return AuctionOrder.OrderState
*/
static getAuctionOrderStateById(axios: AxiosStatic, orderId: number): Promise<AxiosResponse<AuctionOrder.OrderState>> {
return axios.get('order/getAuctionOrderStateById', {params: {orderId: orderId}});
}
/**
*/
static getContractsByOrderId(axios: AxiosStatic, orderId: number): Promise<AxiosResponse<Contract[]>> {
return axios.get('order/getContractsByOrderId', {params: {orderId: orderId}});
}
/**
*/
static getLatestAuctionOrders(axios: AxiosStatic): Promise<AxiosResponse<AuctionOrder[]>> {
return axios.get('order/getLatestAuctionOrders');
}
/**
* 分页查询拍卖订单
* @param pagination
* @return Page
*/
static pageAuctionOrder(axios: AxiosStatic, pagination: Pagination<AuctionOrder>): Promise<AxiosResponse<Page<AuctionOrder>>> {
return axios.post('order/pageAuctionOrder', pagination);
}
static PAGE_AUCTION_ORDER = 'order/pageAuctionOrder';
/**
* 上传过户资料
* @param auctionOrder
* @return AuctionOrder
* @throws FieldException
*/
static uploadTransferAuctionOrder(axios: AxiosStatic, auctionOrder: AuctionOrder): Promise<AxiosResponse<AuctionOrder>> {
return axios.post('order/uploadTransferAuctionOrder', auctionOrder);
}
// region 前端扩展代码区
// endregion
}