first commit
This commit is contained in:
@@ -0,0 +1,105 @@
|
||||
/* eslint-disable */
|
||||
// @ts-ignore
|
||||
import request from '@/http/vue-query';
|
||||
import type { CustomRequestOptions } from '@/http/types';
|
||||
|
||||
import * as API from './types';
|
||||
|
||||
/** 修改精选商家 PUT /xjpmj/featuredMerchant */
|
||||
export async function xjpmjFeaturedMerchantPut({
|
||||
body,
|
||||
options,
|
||||
}: {
|
||||
body: API.FeaturedMerchantBoEditGroup;
|
||||
options?: CustomRequestOptions;
|
||||
}) {
|
||||
return request<API.RVoid>('/xjpmj/featuredMerchant', {
|
||||
method: 'PUT',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 新增精选商家 POST /xjpmj/featuredMerchant */
|
||||
export async function xjpmjFeaturedMerchantPost({
|
||||
body,
|
||||
options,
|
||||
}: {
|
||||
body: API.FeaturedMerchantBoAddGroup;
|
||||
options?: CustomRequestOptions;
|
||||
}) {
|
||||
return request<API.RVoid>('/xjpmj/featuredMerchant', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 获取精选商家详细信息 GET /xjpmj/featuredMerchant/${param0} */
|
||||
export async function xjpmjFeaturedMerchantIdGet({
|
||||
params,
|
||||
options,
|
||||
}: {
|
||||
// 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
|
||||
params: API.XjpmjFeaturedMerchantidGetParams;
|
||||
options?: CustomRequestOptions;
|
||||
}) {
|
||||
const { id: param0, ...queryParams } = params;
|
||||
|
||||
return request<API.RFeaturedMerchantVo>(`/xjpmj/featuredMerchant/${param0}`, {
|
||||
method: 'GET',
|
||||
params: { ...queryParams },
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 删除精选商家 DELETE /xjpmj/featuredMerchant/${param0} */
|
||||
export async function xjpmjFeaturedMerchantIdsDelete({
|
||||
params,
|
||||
options,
|
||||
}: {
|
||||
// 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
|
||||
params: API.XjpmjFeaturedMerchantidsDeleteParams;
|
||||
options?: CustomRequestOptions;
|
||||
}) {
|
||||
const { ids: param0, ...queryParams } = params;
|
||||
|
||||
return request<API.RVoid>(`/xjpmj/featuredMerchant/${param0}`, {
|
||||
method: 'DELETE',
|
||||
params: { ...queryParams },
|
||||
...(options || {}),
|
||||
});
|
||||
}
|
||||
|
||||
/** 查询精选商家列表 POST /xjpmj/featuredMerchant/list */
|
||||
export async function xjpmjFeaturedMerchantListPost({
|
||||
params,
|
||||
body,
|
||||
options,
|
||||
}: {
|
||||
// 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
|
||||
params: API.XjpmjFeaturedMerchantListPostParams;
|
||||
body: API.FeaturedMerchantBo;
|
||||
options?: CustomRequestOptions;
|
||||
}) {
|
||||
return request<API.TableDataInfoFeaturedMerchantVo>(
|
||||
'/xjpmj/featuredMerchant/list',
|
||||
{
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
params: {
|
||||
...params,
|
||||
},
|
||||
data: body,
|
||||
...(options || {}),
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user