first commit
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
/* eslint-disable */
|
||||
// @ts-ignore
|
||||
import request from '@/http/vue-query';
|
||||
import type { CustomRequestOptions } from '@/http/types';
|
||||
|
||||
import * as API from './types';
|
||||
|
||||
/** 收藏 POST /app/collect/collect */
|
||||
export async function appCollectCollectPost({
|
||||
body,
|
||||
options,
|
||||
}: {
|
||||
body: API.UserCollectBo;
|
||||
options?: CustomRequestOptions;
|
||||
}) {
|
||||
return request<API.RBoolean>('/app/collect/collect', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 收藏列表 POST /app/collect/list */
|
||||
export async function appCollectListPost({
|
||||
params,
|
||||
body,
|
||||
options,
|
||||
}: {
|
||||
// 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
|
||||
params: API.AppCollectListPostParams;
|
||||
body: API.UserCollectBo;
|
||||
options?: CustomRequestOptions;
|
||||
}) {
|
||||
return request<API.TableDataInfoUserCollectVo>('/app/collect/list', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user