33 lines
994 B
TypeScript
33 lines
994 B
TypeScript
// @ts-ignore
|
|
/* eslint-disable */
|
|
import { request } from 'umi';
|
|
|
|
/** 此处后端没有提供注释 GET /subscription/list */
|
|
export async function subscriptioncontrollerList(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.subscriptioncontrollerListParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
return request<API.SubscriptionListRes>('/subscription/list', {
|
|
method: 'GET',
|
|
params: {
|
|
...params,
|
|
},
|
|
...(options || {}),
|
|
});
|
|
}
|
|
|
|
/** 此处后端没有提供注释 POST /subscription/sync/${param0} */
|
|
export async function subscriptioncontrollerSync(
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
params: API.subscriptioncontrollerSyncParams,
|
|
options?: { [key: string]: any },
|
|
) {
|
|
const { siteId: param0, ...queryParams } = params;
|
|
return request<API.BooleanRes>(`/subscription/sync/${param0}`, {
|
|
method: 'POST',
|
|
params: { ...queryParams },
|
|
...(options || {}),
|
|
});
|
|
}
|