|
|
|
|
// @ts-ignore
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
import request from '@/utils/request';
|
|
|
|
|
|
|
|
|
|
/** 添加收藏 添加收藏 GET /b2b2c/pbcusercollect/addusercollect */
|
|
|
|
|
export async function addUserCollectUsingGet(
|
|
|
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
|
|
|
params: API.addUserCollectUsingGETParams,
|
|
|
|
|
options?: { [key: string]: any },
|
|
|
|
|
) {
|
|
|
|
|
return request<API.AjaxResult>('/b2b2c/pbcusercollect/addusercollect', {
|
|
|
|
|
method: 'GET',
|
|
|
|
|
params: {
|
|
|
|
|
...params,
|
|
|
|
|
},
|
|
|
|
|
...(options || {}),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 买家是否收藏商品,买家使用 买家使用 GET /b2b2c/pbcusercollect/checkusercollectexist */
|
|
|
|
|
export async function checkUserCollectExistUsingGet(
|
|
|
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
|
|
|
params: API.checkUserCollectExistUsingGETParams,
|
|
|
|
|
options?: { [key: string]: any },
|
|
|
|
|
) {
|
|
|
|
|
return request<API.AjaxResultBoolean_>('/b2b2c/pbcusercollect/checkusercollectexist', {
|
|
|
|
|
method: 'GET',
|
|
|
|
|
params: {
|
|
|
|
|
...params,
|
|
|
|
|
},
|
|
|
|
|
...(options || {}),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 用户收藏分页,买家使用 用户收藏分页 POST /b2b2c/pbcusercollect/pbcusercollectpage */
|
|
|
|
|
export async function pbcUserCollectPageUsingPost(
|
|
|
|
|
body: API.PbcUserCollectPageDTO,
|
|
|
|
|
options?: { [key: string]: any },
|
|
|
|
|
) {
|
|
|
|
|
return request<API.AjaxResultIPagePbcUserCollect_>('/b2b2c/pbcusercollect/pbcusercollectpage', {
|
|
|
|
|
method: 'POST',
|
|
|
|
|
headers: {
|
|
|
|
|
'Content-Type': 'application/json',
|
|
|
|
|
},
|
|
|
|
|
data: body,
|
|
|
|
|
...(options || {}),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 移除收藏,收藏id是必须的 移除收藏 GET /b2b2c/pbcusercollect/removeusercollectbyid */
|
|
|
|
|
export async function removeUserCollectByIdUsingGet(
|
|
|
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
|
|
|
params: API.removeUserCollectByIdUsingGETParams,
|
|
|
|
|
options?: { [key: string]: any },
|
|
|
|
|
) {
|
|
|
|
|
return request<API.AjaxResult>('/b2b2c/pbcusercollect/removeusercollectbyid', {
|
|
|
|
|
method: 'GET',
|
|
|
|
|
params: {
|
|
|
|
|
...params,
|
|
|
|
|
},
|
|
|
|
|
...(options || {}),
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** 移除收藏,商品id是必须的 移除收藏 GET /b2b2c/pbcusercollect/removeusercollectbyproductid */
|
|
|
|
|
export async function removeUserCollectByProductIdUsingGet(
|
|
|
|
|
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
|
|
|
|
|
params: API.removeUserCollectByProductIdUsingGETParams,
|
|
|
|
|
options?: { [key: string]: any },
|
|
|
|
|
) {
|
|
|
|
|
return request<API.AjaxResult>('/b2b2c/pbcusercollect/removeusercollectbyproductid', {
|
|
|
|
|
method: 'GET',
|
|
|
|
|
params: {
|
|
|
|
|
...params,
|
|
|
|
|
},
|
|
|
|
|
...(options || {}),
|
|
|
|
|
});
|
|
|
|
|
}
|