import request from '@/utils/request'; import { AxiosPromise } from 'axios'; import { ListOfWinningBidsVO, ListOfWinningBidsForm, ListOfWinningBidsQuery } from '@/api/bidding/listOfWinningBids/types'; /** * 查询中标项目一览列表 * @param query * @returns {*} */ export const listListOfWinningBids = (query) => { return request({ url: '/bidding/listOfWinningBids/list', method: 'get', params: query }); }; /** * 查询中标项目一览详细 * @param id */ export const getListOfWinningBids = (id: string | number): AxiosPromise => { 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) => { return request({ url: '/bidding/listOfWinningBids/' + id, method: 'delete' }); };