front/src/api/TrackContent/trackContent.ts
2026-02-06 12:01:39 +08:00

160 lines
4.0 KiB
TypeScript

// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';
/** 轨迹内容编辑 POST /Track/Content/Edit */
export async function postEdit(
body: API.EditTrackContentInput,
options?: { [key: string]: any }
) {
return request<any>(`Track/Track/Content/Edit`, {
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
},
data: body,
...(options || {}),
});
}
/** 轨迹内容映射编辑 POST /Track/Content/EditMap */
export async function postEditMap(
body: API.EditTrackContentMapInput,
options?: { [key: string]: any }
) {
return request<boolean>(`Track/Track/Content/EditMap`, {
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
},
data: body,
...(options || {}),
});
}
/** 创建轨迹时获取可用的轨迹内容 POST /Track/Content/GetAvailableContent */
export async function postGetAvailableContent(
body: API.GetAvailableContentInput,
options?: { [key: string]: any }
) {
return request<API.GetAvailableContentOutput[]>(
`Track/Track/Content/GetAvailableContent`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
},
data: body,
...(options || {}),
}
);
}
/** 根据应用、单号、订单类型、轨迹发生时间、轨迹code获取轨迹内容 POST /Track/Content/GetContentDetail */
export async function postGetContentDetail(
body: API.GetContentDetailInput,
options?: { [key: string]: any }
) {
return request<API.GetContentDetailOutput>(
`Track/Track/Content/GetContentDetail`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
},
data: body,
...(options || {}),
}
);
}
/** 根据内容id获取轨迹内容 GET /Track/Content/GetDetail */
export async function getGetDetail(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.getGetDetailParams,
options?: { [key: string]: any }
) {
return request<API.GetTrackContentDetailDto>(
`Track/Track/Content/GetDetail`,
{
method: 'GET',
params: {
...params,
},
...(options || {}),
}
);
}
/** 获取分页轨迹内容 POST /Track/Content/GetList */
export async function postGetList(
body: API.GetPageTrackContentInput,
options?: { [key: string]: any }
) {
return request<API.GetTrackContentListDtoPagedResult>(
`Track/Track/Content/GetList`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
},
data: body,
...(options || {}),
}
);
}
/** 轨迹内容映射详情 GET /Track/Content/GetMapDetail */
export async function getGetMapDetail(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.getGetMapDetailParams,
options?: { [key: string]: any }
) {
return request<API.GetTrackContentMapDetailOutputVO>(
`Track/Track/Content/GetMapDetail`,
{
method: 'GET',
params: {
...params,
},
...(options || {}),
}
);
}
/** 轨迹内容映射列表 POST /Track/Content/GetMapPage */
export async function postGetMapPage(
body: API.GetTrackContentMapPageInputVO,
options?: { [key: string]: any }
) {
return request<API.GetTrackContentMapPageOutputVOPagedResult>(
`Track/Track/Content/GetMapPage`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
},
data: body,
...(options || {}),
}
);
}
/** 根据轨迹内容code获取轨迹内容 POST /Track/Content/GetTrackContentByCode */
export async function postGetTrackContentByCode(
body: API.GetTrackContentByCodeInput,
options?: { [key: string]: any }
) {
return request<API.GetTrackContentByCodeOutput>(
`Track/Track/Content/GetTrackContentByCode`,
{
method: 'POST',
headers: {
'Content-Type': 'application/json-patch+json',
},
data: body,
...(options || {}),
}
);
}