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.

276 lines
7.8 KiB
TypeScript

// @ts-ignore
/* eslint-disable */
import request from '@/utils/request';
/** addOrUpdateUserRecord 后台新增或者修改用户 POST /b2b2c/pbcusers/addorupdateuserrecord */
export async function addOrUpdateUserRecordUsingPost(
body: API.UserAddDTO,
options?: { [key: string]: any },
) {
return request<API.AjaxResult>('/b2b2c/pbcusers/addorupdateuserrecord', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** applyVip POST /b2b2c/pbcusers/applyvip */
export async function applyVipUsingPost(
body: API.AjaxRequestJSONObject_,
options?: { [key: string]: any },
) {
return request<API.AjaxResult>('/b2b2c/pbcusers/applyvip', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** business POST /b2b2c/pbcusers/businesslist */
export async function businessUsingPost(
body: API.AjaxRequestJSONObject_,
options?: { [key: string]: any },
) {
return request<API.AjaxResult>('/b2b2c/pbcusers/businesslist', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** current 当前用户信息 POST /b2b2c/pbcusers/current */
export async function currentUsingPost(options?: { [key: string]: any }) {
return request<API.AjaxResultPbcUsersVO_>('/b2b2c/pbcusers/current', {
method: 'POST',
...(options || {}),
});
}
/** deleteUser 删除用户 POST /b2b2c/pbcusers/deleteUser */
export async function deleteUserUsingPost(body: API.PbcUsers, options?: { [key: string]: any }) {
return request<API.AjaxResult>('/b2b2c/pbcusers/deleteUser', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** editPersonalInformation 卖家或者买家编辑个人资料 POST /b2b2c/pbcusers/editpersonalinformation */
export async function editPersonalInformationUsingPost(
body: API.UserDTO,
options?: { [key: string]: any },
) {
return request<API.AjaxResult>('/b2b2c/pbcusers/editpersonalinformation', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** getpage 后台按照搜索条件查询用户分页记录(不要用这个) POST /b2b2c/pbcusers/getpage */
export async function getPageUsingPost3(body: API.UserPageDTO, options?: { [key: string]: any }) {
return request<API.AjaxResultPagePbcUsers_>('/b2b2c/pbcusers/getpage', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** getUserRecordById 使用id查询出用户信息 GET /b2b2c/pbcusers/getuserrecordbyid */
export async function getUserRecordByIdUsingGet(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.getUserRecordByIdUsingGETParams,
options?: { [key: string]: any },
) {
return request<API.AjaxResultPbcUsers_>('/b2b2c/pbcusers/getuserrecordbyid', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 导入店铺会员 import POST /b2b2c/pbcusers/importMember */
export async function importMemberUsingPost(
body: {},
file?: File,
options?: { [key: string]: any },
) {
const formData = new FormData();
if (file) {
formData.append('file', file);
}
Object.keys(body).forEach((ele) => {
const item = (body as any)[ele];
if (item !== undefined && item !== null) {
if (typeof item === 'object' && !(item instanceof File)) {
if (item instanceof Array) {
item.forEach((f) => formData.append(ele, f || ''));
} else {
formData.append(ele, JSON.stringify(item));
}
} else {
formData.append(ele, item);
}
}
});
return request<string>('/b2b2c/pbcusers/importMember', {
method: 'POST',
data: formData,
requestType: 'form',
...(options || {}),
});
}
/** pbcUsersPage 分页,按照搜索条件查询出用户记录 POST /b2b2c/pbcusers/pbcUsersPage */
export async function pbcUsersPageUsingPost(body: API.PageVO, options?: { [key: string]: any }) {
return request<API.AjaxResultIPagePbcUsers_>('/b2b2c/pbcusers/pbcUsersPage', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** 用户注册 用户注册 POST /b2b2c/pbcusers/register */
export async function registerUsingPost(
body: API.PbcUserRegisterDTO,
options?: { [key: string]: any },
) {
return request<API.AjaxResult>('/b2b2c/pbcusers/register', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** resetPassword,后台重置用户密码成123456 后台重置用户密码成123456 GET /b2b2c/pbcusers/resetpassword */
export async function resetPasswordUsingGet(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.resetPasswordUsingGETParams,
options?: { [key: string]: any },
) {
return request<API.AjaxResult>('/b2b2c/pbcusers/resetpassword', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 用户忘记密码重新设置密码,需要传邮箱/手机号和验证码 重新设置密码 POST /b2b2c/pbcusers/resetpasswordbyuser */
export async function resetPasswordByUserUsingPost(
body: API.PbcUserRegisterDTO,
options?: { [key: string]: any },
) {
return request<API.AjaxResult>('/b2b2c/pbcusers/resetpasswordbyuser', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** saveUser 修改用户 POST /b2b2c/pbcusers/saveUser */
export async function saveUserUsingPost(body: API.PbcUsers, options?: { [key: string]: any }) {
return request<API.AjaxResult>('/b2b2c/pbcusers/saveUser', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** searchUseList 后台条件搜索用户列表 POST /b2b2c/pbcusers/searchuselist */
export async function searchUseListUsingPost(
body: API.UserPageDTO,
options?: { [key: string]: any },
) {
return request<API.AjaxResultListPbcUsers_>('/b2b2c/pbcusers/searchuselist', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}
/** updateMemberRecordState 后台修改会员状态,保存前端传过来的状态 GET /b2b2c/pbcusers/updateMemberRecordState */
export async function updateMemberRecordStateUsingGet(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.updateMemberRecordStateUsingGETParams,
options?: { [key: string]: any },
) {
return request<API.AjaxResult>('/b2b2c/pbcusers/updateMemberRecordState', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** updateRecordState 后台修改用户状态,保存前端传过来的状态 GET /b2b2c/pbcusers/updaterecordstate */
export async function updateUserRecordStateUsingGet(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
params: API.updateUserRecordStateUsingGETParams,
options?: { [key: string]: any },
) {
return request<API.AjaxResult>('/b2b2c/pbcusers/updaterecordstate', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** userListByCondition 当前用户信息 POST /b2b2c/pbcusers/userListByCondition */
export async function userListByConditionUsingPost(
body: API.PbcUserDTO,
options?: { [key: string]: any },
) {
return request<API.AjaxResultIPagePbcUsers_>('/b2b2c/pbcusers/userListByCondition', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
data: body,
...(options || {}),
});
}