AuctionChangeController.ts 1.82 KB
import { Page } from "autumn-vue/lib/core/page/Page";
import { AxiosResponse, AxiosStatic } from "axios";
// region 前端扩展导入包
import { AuctionChange } from "lib/src/entity/auction/entity/AuctionChange";
import { AuctionVehicleChange } from "lib/src/entity/auction/entity/AuctionVehicleChange";
// endregion

/**
 */
export const AuctionChangeController = {
	/**
	 * 新增拍卖场次变更审批
	 * @param auctionChange
	 * @return AuctionChange
	 */
	addAuctionChange(axios: AxiosStatic, auctionChange: any): Promise<AxiosResponse<AuctionChange>> {
		return axios.post("auction/change/addAuctionChange", auctionChange);
	},

	/**
	 */
	addAuctionVehicleChange(
		axios: AxiosStatic,
		auctionVehicleChange: any,
	): Promise<AxiosResponse<AuctionVehicleChange>> {
		return axios.post("auction/change/addAuctionVehicleChange", auctionVehicleChange);
	},

	/**
	 */
	auditAuctionChange(axios: AxiosStatic, approveHistory: any): Promise<AxiosResponse<AuctionChange>> {
		return axios.post("auction/change/auditAuctionChange", approveHistory);
	},

	/**
	 */
	auditAuctionVehicleChange(
		axios: AxiosStatic,
		approveHistory: any,
	): Promise<AxiosResponse<AuctionVehicleChange>> {
		return axios.post("auction/change/auditAuctionVehicleChange", approveHistory);
	},

	/**
	 */
	pageAuctionChange(axios: AxiosStatic, pagination: any): Promise<AxiosResponse<Page<AuctionChange>>> {
		return axios.post("auction/change/pageAuctionChange", pagination);
	},

	PAGE_AUCTION_CHANGE : "auction/change/pageAuctionChange",

	/**
	 */
	pageAuctionVehicleChange(
		axios: AxiosStatic,
		pagination: any,
	): Promise<AxiosResponse<Page<AuctionVehicleChange>>> {
		return axios.post("auction/change/pageAuctionVehicleChange", pagination);
	},

	PAGE_AUCTION_VEHICLE_CHANGE : "auction/change/pageAuctionVehicleChange",

	// region 前端扩展代码区
	// endregion
};