AppealController.ts
1.4 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
import {AxiosResponse, AxiosStatic} from 'axios';
import dayjs, {Dayjs} from 'dayjs';
// region 前端扩展导入包
import {Appeal} from "lib/src/entity/auction/entity/Appeal";
import {Pagination} from "lib/src/core/page/Pagination";
// endregion
/**
* 申诉(Appeal) PI接口
* @since 2025-10-13 12:18:11
*/
export class AppealController {
/**
* 新增申诉
* @param appeal
* @return Appeal
*/
static addAppeal(axios: AxiosStatic, appeal: Appeal): Promise<AxiosResponse<Appeal>> {
return axios.post('appeal/addAppeal', appeal);
}
/**
* 根据id查询申诉
* @param appealId
* @return Appeal
*/
static getAppealById(axios: AxiosStatic, appealId: number): Promise<AxiosResponse<Appeal>> {
return axios.get('appeal/getAppealById', {params: {appealId: appealId}});
}
/**
*/
static getAppealByOrderId(axios: AxiosStatic, orderId: number): Promise<AxiosResponse<Appeal>> {
return axios.get('appeal/getAppealByOrderId', {params: {orderId: orderId}});
}
/**
* 分页查询申诉
* @param pagination
* @return Page
*/
static pageAppeal(axios: AxiosStatic, pagination: Pagination<Appeal>): Promise<AxiosResponse<Page<Appeal>>> {
return axios.post('appeal/pageAppeal', pagination);
}
static PAGE_APPEAL = 'appeal/pageAppeal';
// region 前端扩展代码区
// endregion
}