BidController.ts
1.64 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
import { Page } from "autumn-vue/lib/core/page/Page";
import { AxiosResponse, AxiosStatic } from "axios";
import dayjs, { Dayjs } from "dayjs";
import { IndexValue } from "lib/src/entity/analysis/domain/IndexValue";
// region 前端扩展导入包
import { Bid } from "lib/src/entity/auction/entity/Bid";
// endregion
/**
* 投标竞价(Bid) PI接口
* @author gonglei
* @since 2025-10-13 12:18:11
*/
export const BidController = {
/**
*/
getAccountCountByCreateTimeAfter(axios: AxiosStatic): Promise<AxiosResponse<any>> {
return axios.get("bid/getAccountCountByCreateTimeAfter");
},
/**
*/
getBidAccountCountGroupByHour(
axios: AxiosStatic,
date: Dayjs | string,
): Promise<AxiosResponse<IndexValue[]>> {
if (date instanceof Object) {
date = dayjs(date).format("YYYY-MM-DD");
}
return axios.get("bid/getBidAccountCountGroupByHour", { params: { date } });
},
/**
* 根据订单id查询投标竞价最后一条出价
* @param orderId
* @return List
*/
getLastBidsByOrderId(axios: AxiosStatic, orderId: number): Promise<AxiosResponse<Bid[]>> {
return axios.get("bid/getLastBidsByOrderId", { params: { orderId } });
},
/**
* 分页查询投标竞价
* @param pagination
* @return Page
*/
pageBid(axios: AxiosStatic, pagination: any): Promise<AxiosResponse<Page<Bid>>> {
return axios.post("bid/pageBid", pagination);
},
PAGE_BID : "bid/pageBid",
/**
* 删除投标竞价
* @param bidId
* @return int
*/
removeBidById(axios: AxiosStatic, bidId: number): Promise<AxiosResponse<number>> {
return axios.delete("bid/removeBidById", { params: { bidId } });
},
// region 前端扩展代码区
// endregion
};