Files
td_official/src/api/bidding/listOfWinningBids/index.ts

64 lines
1.3 KiB
TypeScript
Raw Normal View History

2025-08-20 21:09:18 +08:00
import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { ListOfWinningBidsVO, ListOfWinningBidsForm, ListOfWinningBidsQuery } from '@/api/bidding/listOfWinningBids/types';
/**
*
* @param query
* @returns {*}
*/
2025-08-21 21:39:21 +08:00
export const listListOfWinningBids = (query) => {
2025-08-20 21:09:18 +08:00
return request({
url: '/bidding/listOfWinningBids/list',
method: 'get',
params: query
});
};
/**
*
* @param id
*/
export const getListOfWinningBids = (id: string | number): AxiosPromise<ListOfWinningBidsVO> => {
return request({
url: '/bidding/listOfWinningBids/' + id,
method: 'get'
});
};
/**
*
* @param data
*/
export const addListOfWinningBids = (data: ListOfWinningBidsForm) => {
return request({
url: '/bidding/listOfWinningBids',
method: 'post',
data: data
});
};
/**
*
* @param data
*/
export const updateListOfWinningBids = (data: ListOfWinningBidsForm) => {
return request({
url: '/bidding/listOfWinningBids',
method: 'put',
data: data
});
};
/**
*
* @param id
*/
export const delListOfWinningBids = (id: string | number | Array<string | number>) => {
return request({
url: '/bidding/listOfWinningBids/' + id,
method: 'delete'
});
};