You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.4 KiB
TypeScript

// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';
/** 添加收藏 添加收藏 POST /b2b2c/pbcusercollect/addusercollect */
export async function addUserCollectUsingPost(
body: API.PbcUserCollectDTO,
options?: { [key: string]: any },
) {
return request<API.AjaxResult>('/b2b2c/pbcusercollect/addusercollect', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(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 || {}),
});
}