diff --git a/config/routes.ts b/config/routes.ts index 3d1ebdf..2484642 100644 --- a/config/routes.ts +++ b/config/routes.ts @@ -8,7 +8,7 @@ export default [ { name: '用户管理', path: '/user-list', - icon: 'team', + icon: 'user', access: 'userQuery', component: './UserList', }, @@ -55,6 +55,26 @@ export default [ }, ] }, + { + name: '会员管理', + path: '/member', + icon: 'team', + // access: 'member', + routes: [ + { + name: '会员管理', + path: 'list', + access: 'memberQuery', + component: './MemberList', + }, + { + name: '会员等级', + path: 'grade', + access: 'memberGradeQuery', + component: './MemberList/grade', + }, + ] + }, { path: '/' }, { path: '*', layout: false, component: './404' }, ]; diff --git a/src/access.ts b/src/access.ts index 6c4c725..8238644 100644 --- a/src/access.ts +++ b/src/access.ts @@ -23,6 +23,12 @@ export default function access(initialState: { currentUser?: API.PbcUsersVO | un businessQuery: false, businessSave: false, businessUpdateState: false, + member: false, + memberQuery: false, + memberUpdateState: false, + memberGrade: false, + memberGradeQuery: false, + memberGradeSave: false, }; for (let i = 0; i < currentUser?.currentAuthority.length; i++) { const element = currentUser?.currentAuthority[i]; diff --git a/src/app.tsx b/src/app.tsx index ceb7fd5..f04d147 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -16,9 +16,9 @@ const loginPath = '/user/login'; * */ export async function getInitialState(): Promise<{ settings?: Partial; - currentUser?: API.PbcUsers ; + currentUser?: API.PbcUsersVO ; loading?: boolean; - fetchUserInfo?: () => Promise; + fetchUserInfo?: () => Promise; }> { const fetchUserInfo = async () => { try { diff --git a/src/pages/BusinessList/detail.tsx b/src/pages/BusinessList/detail.tsx index e706a29..8ce2590 100644 --- a/src/pages/BusinessList/detail.tsx +++ b/src/pages/BusinessList/detail.tsx @@ -3,15 +3,15 @@ import { Button, Descriptions, Image, Switch, Tag, message } from 'antd'; import { PageContainer } from '@ant-design/pro-layout'; import { Access, useAccess, useParams } from '@umijs/max'; import { CheckCircleOutlined, FormOutlined, InfoCircleOutlined } from '@ant-design/icons'; -import { getPbcBusinessByIdUsingPost, updateBusinessRecordLevelUsingGet, updateRecordStateUsingGet } from '@/services/pop-b2b2c/pbcBusinessController'; -import { ModalForm, ProFormDigit, ProFormText } from '@ant-design/pro-components'; +import { getPbcBusinessByIdUsingPost, updateBusinessRecordLevelUsingGet, updateBusinessRecordStateUsingGet } from '@/services/pop-b2b2c/pbcBusinessController'; +import { ModalForm, ProFormSelect } from '@ant-design/pro-components'; const handleUpdateState = async (id: string, state: number) => { const hide = message.loading('正在保存'); if (!id) return false; try { - const msg = await updateRecordStateUsingGet({ pbcId: id, state: state }); + const msg = await updateBusinessRecordStateUsingGet({ pbcId: id, state: state }); hide(); if (msg.retcode) { message.success(!id ? '新增成功!' : '保存成功!'); @@ -134,7 +134,7 @@ const Detail: React.FC<{}> = () => { } }} > - = () => { message: '商户等级为必填项', }, ]} + options={['1级', '2级', '3级', '4级', '5级']} width="md" name="pbcBusinessLevel" /> diff --git a/src/pages/BusinessList/index.tsx b/src/pages/BusinessList/index.tsx index c7882c6..b68b3ab 100644 --- a/src/pages/BusinessList/index.tsx +++ b/src/pages/BusinessList/index.tsx @@ -6,7 +6,7 @@ import Constants from '@/constants'; import { ActionType, ProColumns, ProTable } from '@ant-design/pro-components'; import { handlePageQuery } from '@/utils/utils'; import { Access, Link, useAccess } from '@umijs/max'; -import { pbcBusinessPageUsingPost, updateRecordStateUsingGet } from '@/services/pop-b2b2c/pbcBusinessController'; +import { pbcBusinessPageUsingPost, updateBusinessRecordStateUsingGet } from '@/services/pop-b2b2c/pbcBusinessController'; /** * 查询表格 @@ -25,7 +25,7 @@ const handleUpdateState = async (id: string, state: number) => { const hide = message.loading('正在保存'); if (!id) return false; try { - const msg = await updateRecordStateUsingGet({ pbcId: id, state: state }); + const msg = await updateBusinessRecordStateUsingGet({ pbcId: id, state: state }); hide(); if (msg.retcode) { message.success(!id ? '新增成功!' : '保存成功!'); diff --git a/src/pages/MemberList/components/UpdateForm.tsx b/src/pages/MemberList/components/UpdateForm.tsx new file mode 100644 index 0000000..3923e89 --- /dev/null +++ b/src/pages/MemberList/components/UpdateForm.tsx @@ -0,0 +1,75 @@ +import React, { useEffect, useRef, useState } from 'react'; +import { DrawerForm, ProFormDigit, ProFormInstance, ProFormSelect, ProFormText } from '@ant-design/pro-components'; +import { queryAllRoleUsingPost } from '@/services/pop-b2b2c/pbcRoleController'; +import { Button, message } from 'antd'; +import { resetPasswordUsingGet } from '@/services/pop-b2b2c/pbcUsersController'; +export type FormValueType = { + target?: string; + template?: string; + type?: string; + time?: string; + frequency?: string; +} & Partial; +export type UpdateFormProps = { + onCancel: (flag?: boolean, formVals?: FormValueType) => void; + onSubmit: (values: FormValueType) => Promise; + updateModalVisible: boolean; + values: Partial; +}; + +const UpdateForm: React.FC = (props) => { + const formRef = useRef(); + return ( + { + return props.onSubmit({ ...value,pbcVipGradeDiscount: value.pbcVipGradeDiscount ? value.pbcVipGradeDiscount / 10 : 1, pbcId: props.values.pbcId }) + }} + drawerProps={{ + destroyOnClose: true, + }} + initialValues={{ + pbcVipGradeName: props.values.pbcVipGradeName, + pbcVipGradeDiscount: props.values.pbcVipGradeDiscount ? props.values.pbcVipGradeDiscount * 10 : 1 + }} + onOpenChange={(visible) => { + formRef.current?.resetFields(); + if (!visible) { + props.onCancel(); + } + }} + > + + + + ); +}; + +export default UpdateForm; diff --git a/src/pages/MemberList/grade.tsx b/src/pages/MemberList/grade.tsx new file mode 100644 index 0000000..1801ea2 --- /dev/null +++ b/src/pages/MemberList/grade.tsx @@ -0,0 +1,147 @@ +import React, { useRef, useState } from 'react'; +import { Button, message } from 'antd'; +import UpdateForm from './components/UpdateForm'; +import { Access, useAccess } from 'umi'; +import { PageContainer } from '@ant-design/pro-layout'; +import { ActionType, ProColumns, ProTable } from '@ant-design/pro-components'; +import { pbcVipGradePageUsingPost, saveOrUpdateGradeUsingPost } from '@/services/pop-b2b2c/pbcVipGradeController'; +import { handlePageQuery } from '@/utils/utils'; + +/** + * 查询表格 + * @param param0 + */ +const fetchData = async (params: API.PageVO) => { + const msg = await pbcVipGradePageUsingPost(params); + return { + data: msg.data?.records, + total: msg.data?.total, + success: msg.retcode, + } as any; +}; + +/** + * 更新节点 + * @param fields + */ +const handleUpdate = async (fields: API.PbcVipGrade) => { + const hide = message.loading('正在保存'); + + try { + const msg = await saveOrUpdateGradeUsingPost({ ...fields }); + hide(); + if (msg.retcode) { + message.success(!fields.pbcId ? '添加成功' : '保存成功'); + return true; + } + message.error(msg.retmsg); + return false; + } catch (error) { + hide(); + message.error(!fields.pbcId ? '添加失败请重试!' : '保存失败请重试!'); + return false; + } +}; + +const TableList: React.FC<{}> = () => { + const access: any = useAccess(); + const actionRef = useRef(); + const [stepFormValues, setStepFormValues] = useState({}); + const [updateModalVisible, handleUpdateModalVisible] = useState(false); + + const columns: ProColumns[] = [ + { + title: '会员等级名称', + dataIndex: 'pbcVipGradeName', + search: false, + }, + { + title: '折扣权益', + dataIndex: 'pbcVipGradeDiscount', + search: false, + render: (text, record) => record.pbcVipGradeDiscount ? record.pbcVipGradeDiscount * 10 + '折' : '-' + }, + { + title: '入会时长', + dataIndex: 'pbcBusinessId', + search: false, + }, + { + title: '采购金额', + dataIndex: 'pbcBusinessId', + search: false, + }, + { + title: '操作', + fixed: 'right', + valueType: 'option', + render: (text, record) => ( + + + + + + ), + }, + ]; + return ( + + + columns={columns} + actionRef={actionRef} + request={(param: any) => { + const queryParam = handlePageQuery(param); + return fetchData(queryParam); + }} + rowKey="pbcId" + size="small" + bordered + search={{ + labelWidth: 'auto', + span: 6 + }} + pagination={{ + pageSize: 20, + showSizeChanger: true, + }} + scroll={{ + y: 'calc(100vh - 320px)', + }} + dateFormatter="string" + options={false} + toolBarRender={() => []} + /> + {stepFormValues && Object.keys(stepFormValues).length ? ( + { + const success = await handleUpdate(value); + + if (success) { + handleUpdateModalVisible(false); + setStepFormValues({}); + actionRef.current?.reload(); + } + }} + onCancel={() => { + message.destroy(); + handleUpdateModalVisible(false); + }} + updateModalVisible={updateModalVisible} + values={stepFormValues} + /> + ) : null} + + ); +}; + +export default TableList; diff --git a/src/pages/MemberList/index.tsx b/src/pages/MemberList/index.tsx new file mode 100644 index 0000000..c1e7a09 --- /dev/null +++ b/src/pages/MemberList/index.tsx @@ -0,0 +1,151 @@ +import React, { useRef } from 'react'; +import { Switch, message } from 'antd'; +import { PageContainer } from '@ant-design/pro-layout'; +import Constants from '@/constants'; +import { ActionType, ProColumns, ProTable } from '@ant-design/pro-components'; +import { handlePageQuery } from '@/utils/utils'; +import { Access, useAccess } from '@umijs/max'; +import { pbcUsersPageUsingPost, updateMemberRecordStateUsingGet } from '@/services/pop-b2b2c/pbcUsersController'; +import { gradeListUsingPost } from '@/services/pop-b2b2c/pbcVipGradeController'; + +/** + * 查询表格 + * @param param0 + */ +const fetchData = async (params: API.PageVO) => { + const msg = await pbcUsersPageUsingPost(params); + return { + data: msg.data?.records, + total: msg.data?.total, + success: msg.retcode, + } as any; +}; + +const handleUpdateState = async (id: string, state: number) => { + const hide = message.loading('正在保存'); + if (!id) return false; + try { + const msg = await updateMemberRecordStateUsingGet({ pbcId: id, state: state }); + hide(); + if (msg.retcode) { + message.success(!id ? '新增成功!' : '保存成功!'); + return true; + } + message.error(msg.retmsg); + return false; + } catch (error) { + hide(); + message.error(!id ? '新增失败,请重试!' : '保存失败,请重试!'); + return false; + } +}; + +// eslint-disable-next-line @typescript-eslint/ban-types +const TableList: React.FC<{}> = () => { + const actionRef = useRef(); + const access: any = useAccess(); + + const columns: ProColumns[] = [ + { + title: '会员昵称', + dataIndex: 'pbcUserNickName', + }, + { + title: '手机号', + dataIndex: 'pbcUserMobile', + }, + { + title: '入口', + dataIndex: 'pbcUserSourceType', + search: false + }, + { + title: '会员等级', + dataIndex: 'pbcVipGradeName', + valueType: 'select', + request: async () => { + const msg = await gradeListUsingPost(); + if (msg.retcode && msg.data) { + return msg.data.map((e) => { + return { + label: e.pbcVipGradeName, + value: e.pbcVipGradeName, + }; + }); + } + return []; + }, + }, + { + title: '注册日期', + dataIndex: 'pbcCreateAt', + valueType: 'dateTimeRange', + render: (text, record) => record.pbcCreateAt + }, + { + title: '状态', + dataIndex: 'pbcState', + valueType: 'select', + valueEnum: Constants.state, + render: (_, record) => { + return + { + const success = await handleUpdateState(record.pbcId || '', value ? 1 : 2 ); + + if (success) { + if (actionRef.current) { + actionRef.current.reload(); + } + } + }} + /> + + } + } + ]; + return ( + + + columns={columns} + actionRef={actionRef} + request={(param: any) => { + const queryParam = handlePageQuery(param); + if (queryParam.filters) { + queryParam.filters.push({ + key: 'pbcUserType'.replace(/([A-Z])/g, '_$1').toLowerCase(), + value: 0, + action: '=', + }) + } + return fetchData(queryParam); + }} + rowKey="pbcId" + size="small" + bordered + search={{ + labelWidth: 'auto', + span: 6 + }} + pagination={{ + pageSize: 20, + showSizeChanger: true, + }} + scroll={{ + y: 'calc(100vh - 320px)', + }} + dateFormatter="string" + options={false} + toolBarRender={() => []} + /> + + ); +}; + +export default TableList; diff --git a/src/pages/UserList/index.tsx b/src/pages/UserList/index.tsx index ff12f49..a978cdf 100644 --- a/src/pages/UserList/index.tsx +++ b/src/pages/UserList/index.tsx @@ -4,7 +4,7 @@ import { PlusOutlined } from '@ant-design/icons'; import UpdateForm from './components/UpdateForm'; import { Access, useAccess, useModel } from 'umi'; import { PageContainer } from '@ant-design/pro-layout'; -import { addOrUpdateUserRecordUsingPost, deleteUserUsingPost, saveUserUsingPost, updateRecordStateUsingGet1, userListByConditionUsingPost } from '@/services/pop-b2b2c/pbcUsersController'; +import { deleteUserUsingPost, saveUserUsingPost, updateUserRecordStateUsingGet, userListByConditionUsingPost } from '@/services/pop-b2b2c/pbcUsersController'; import { freshAuthorityUsingPost, queryAllRoleUsingPost } from '@/services/pop-b2b2c/pbcRoleController'; import Constants from '@/constants'; import { ActionType, ProColumns, ProTable } from '@ant-design/pro-components'; @@ -49,7 +49,7 @@ const handleUpdateState = async (id: string, state: number) => { const hide = message.loading('正在保存'); if (!id) return false; try { - const msg = await updateRecordStateUsingGet1({ pbcId: id, state: state }); + const msg = await updateUserRecordStateUsingGet({ pbcId: id, state: state }); hide(); if (msg.retcode) { message.success(!id ? '新增成功!' : '保存成功!'); diff --git a/src/services/pop-b2b2c/errorController.ts b/src/services/pop-b2b2c/errorController.ts index 5f0967b..f29cc7f 100644 --- a/src/services/pop-b2b2c/errorController.ts +++ b/src/services/pop-b2b2c/errorController.ts @@ -2,41 +2,41 @@ /* eslint-disable */ import request from '@/utils/request'; -/** errorHtml GET /error */ -export async function errorHtmlUsingGet(options?: { [key: string]: any }) { - return request('/error', { +/** error GET /error */ +export async function errorUsingGet(options?: { [key: string]: any }) { + return request>('/error', { method: 'GET', ...(options || {}), }); } -/** errorHtml PUT /error */ -export async function errorHtmlUsingPut(options?: { [key: string]: any }) { - return request('/error', { +/** error PUT /error */ +export async function errorUsingPut(options?: { [key: string]: any }) { + return request>('/error', { method: 'PUT', ...(options || {}), }); } -/** errorHtml POST /error */ -export async function errorHtmlUsingPost(options?: { [key: string]: any }) { - return request('/error', { +/** error POST /error */ +export async function errorUsingPost(options?: { [key: string]: any }) { + return request>('/error', { method: 'POST', ...(options || {}), }); } -/** errorHtml DELETE /error */ -export async function errorHtmlUsingDelete(options?: { [key: string]: any }) { - return request('/error', { +/** error DELETE /error */ +export async function errorUsingDelete(options?: { [key: string]: any }) { + return request>('/error', { method: 'DELETE', ...(options || {}), }); } -/** errorHtml PATCH /error */ -export async function errorHtmlUsingPatch(options?: { [key: string]: any }) { - return request('/error', { +/** error PATCH /error */ +export async function errorUsingPatch(options?: { [key: string]: any }) { + return request>('/error', { method: 'PATCH', ...(options || {}), }); diff --git a/src/services/pop-b2b2c/index.ts b/src/services/pop-b2b2c/index.ts index 5d86c8d..208fed0 100644 --- a/src/services/pop-b2b2c/index.ts +++ b/src/services/pop-b2b2c/index.ts @@ -6,8 +6,10 @@ import * as errorController from './errorController'; import * as pbcBusinessApprovalController from './pbcBusinessApprovalController'; import * as pbcBusinessController from './pbcBusinessController'; import * as pbcCategoryController from './pbcCategoryController'; +import * as pbcCommonDataController from './pbcCommonDataController'; import * as pbcContentPublishController from './pbcContentPublishController'; import * as pbcContentTypeController from './pbcContentTypeController'; +import * as pbcEmailController from './pbcEmailController'; import * as pbcImageController from './pbcImageController'; import * as pbcLoginController from './pbcLoginController'; import * as pbcOssImgController from './pbcOssImgController'; @@ -25,6 +27,7 @@ export default { pbcSmsLogController, pbcImageController, pbcLoginController, + pbcCommonDataController, pbcRoleController, pbcVipGradeController, pbcBusinessController, @@ -32,6 +35,7 @@ export default { pbcCategoryController, pbcContentPublishController, pbcContentTypeController, + pbcEmailController, pbcProductController, pbcProductHotController, pbcQrController, diff --git a/src/services/pop-b2b2c/pbcBusinessApprovalController.ts b/src/services/pop-b2b2c/pbcBusinessApprovalController.ts index 0b2dd1f..36f335e 100644 --- a/src/services/pop-b2b2c/pbcBusinessApprovalController.ts +++ b/src/services/pop-b2b2c/pbcBusinessApprovalController.ts @@ -17,37 +17,7 @@ export async function addBusinessApprovalUsingPost( }); } -/** approvalSignNAdmin 审核不通过,传入商户认证申请的id,单个--后台 POST /b2b2c/pbcbusinessapproval/admin/approvalSignN */ -export async function approvalSignNAdminUsingPost( - body: API.PbcBusinessPageDTO, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcbusinessapproval/admin/approvalSignN', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** approvalSignYAdmin 审核通过,传入商户认证申请的id,单个--后台 GET /b2b2c/pbcbusinessapproval/admin/approvalSignY */ -export async function approvalSignYAdminUsingGet( - // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.approvalSignYAdminUsingGETParams, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcbusinessapproval/admin/approvalSignY', { - method: 'GET', - params: { - ...params, - }, - ...(options || {}), - }); -} - -/** getRecordByBusinessIdAdmin 使用商户id查询商户申请记录,买家卖家特供 GET /b2b2c/pbcbusinessapproval/admin/getrecordbybusinessid */ +/** getRecordByBusinessIdAdmin 使用商户id查询商户申请记录,买家卖家特供---后台 GET /b2b2c/pbcbusinessapproval/admin/getrecordbybusinessid */ export async function getRecordByBusinessIdAdminUsingGet( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.getRecordByBusinessIdAdminUsingGETParams, diff --git a/src/services/pop-b2b2c/pbcBusinessController.ts b/src/services/pop-b2b2c/pbcBusinessController.ts index 5edc733..c7c536d 100644 --- a/src/services/pop-b2b2c/pbcBusinessController.ts +++ b/src/services/pop-b2b2c/pbcBusinessController.ts @@ -49,7 +49,7 @@ export async function hotpPoductsUsingPost( /** 商家首页 商家首页 POST /b2b2c/pbcbusiness/index */ export async function businessIndexUsingPost( - body: API.PbcBusinessPageDTO, + body: API.PbcBusinessIndexDTO, options?: { [key: string]: any }, ) { return request('/b2b2c/pbcbusiness/index', { @@ -220,9 +220,9 @@ export async function updateMemberUsingPatch( } /** updateRecordState 后台修改状态,保存前端传过来的状态 GET /b2b2c/pbcbusiness/updaterecordstate */ -export async function updateRecordStateUsingGet( +export async function updateBusinessRecordStateUsingGet( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.updateRecordStateUsingGETParams, + params: API.updateBusinessRecordStateUsingGETParams, options?: { [key: string]: any }, ) { return request('/b2b2c/pbcbusiness/updaterecordstate', { @@ -233,3 +233,43 @@ export async function updateRecordStateUsingGet( ...(options || {}), }); } + +/** vipbusinesses 会员所有的商铺 GET /b2b2c/pbcbusiness/vipbusinesses */ +export async function vipbusinessesUsingGet(options?: { [key: string]: any }) { + return request('/b2b2c/pbcbusiness/vipbusinesses', { + method: 'GET', + ...(options || {}), + }); +} + +/** vipbusinesses 会员所有的商铺 PUT /b2b2c/pbcbusiness/vipbusinesses */ +export async function vipbusinessesUsingPut(options?: { [key: string]: any }) { + return request('/b2b2c/pbcbusiness/vipbusinesses', { + method: 'PUT', + ...(options || {}), + }); +} + +/** vipbusinesses 会员所有的商铺 POST /b2b2c/pbcbusiness/vipbusinesses */ +export async function vipbusinessesUsingPost(options?: { [key: string]: any }) { + return request('/b2b2c/pbcbusiness/vipbusinesses', { + method: 'POST', + ...(options || {}), + }); +} + +/** vipbusinesses 会员所有的商铺 DELETE /b2b2c/pbcbusiness/vipbusinesses */ +export async function vipbusinessesUsingDelete(options?: { [key: string]: any }) { + return request('/b2b2c/pbcbusiness/vipbusinesses', { + method: 'DELETE', + ...(options || {}), + }); +} + +/** vipbusinesses 会员所有的商铺 PATCH /b2b2c/pbcbusiness/vipbusinesses */ +export async function vipbusinessesUsingPatch(options?: { [key: string]: any }) { + return request('/b2b2c/pbcbusiness/vipbusinesses', { + method: 'PATCH', + ...(options || {}), + }); +} diff --git a/src/services/pop-b2b2c/pbcCategoryController.ts b/src/services/pop-b2b2c/pbcCategoryController.ts index b8d1dce..dff01a4 100644 --- a/src/services/pop-b2b2c/pbcCategoryController.ts +++ b/src/services/pop-b2b2c/pbcCategoryController.ts @@ -2,7 +2,7 @@ /* eslint-disable */ import request from '@/utils/request'; -/** 查看单个类目信息 单个 GET /b2b2c/pbccategory/categoryInfo */ +/** 后台查看单个类目信息 单个 GET /b2b2c/pbccategory/categoryInfo */ export async function categoryInfoUsingGet( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.categoryInfoUsingGETParams, @@ -17,7 +17,7 @@ export async function categoryInfoUsingGet( }); } -/** 删除 单个 GET /b2b2c/pbccategory/delete */ +/** 后台删除类目 单个 GET /b2b2c/pbccategory/delete */ export async function deleteUsingGet( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.deleteUsingGETParams, @@ -32,15 +32,36 @@ export async function deleteUsingGet( }); } -/** 树形结构获取类目 树形结构获取类目 GET /b2b2c/pbccategory/list/tree */ -export async function listTreeUsingGet(options?: { [key: string]: any }) { - return request('/b2b2c/pbccategory/list/tree', { +/** 后台搜索获取类目 获取类目 GET /b2b2c/pbccategory/list/searchcategory */ +export async function searchCategoryUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.searchCategoryUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbccategory/list/searchcategory', { method: 'GET', + params: { + ...params, + }, ...(options || {}), }); } -/** 保存或者修改类目 保存或者修改类目 POST /b2b2c/pbccategory/saveOrUpdateCategory */ +/** 前端后台都使用,树形结构获取类目,路径参数是1则前端使用,2后台使用 树形结构获取类目 GET /b2b2c/pbccategory/list/tree/${param0} */ +export async function listTreeUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.listTreeUsingGETParams, + options?: { [key: string]: any }, +) { + const { type: param0, ...queryParams } = params; + return request(`/b2b2c/pbccategory/list/tree/${param0}`, { + method: 'GET', + params: { ...queryParams }, + ...(options || {}), + }); +} + +/** 后台保存或者修改类目 保存或者修改类目 POST /b2b2c/pbccategory/saveOrUpdateCategory */ export async function saveOrUpdateCategoryUsingPost( body: API.PbcCategory, options?: { [key: string]: any }, @@ -54,3 +75,18 @@ export async function saveOrUpdateCategoryUsingPost( ...(options || {}), }); } + +/** 后台修改状态,保存前端传过来的状态 后台修改状态,保存前端传过来的状态 GET /b2b2c/pbccategory/updatecategoryrecordstate */ +export async function updateCategoryRecordStateUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.updateCategoryRecordStateUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbccategory/updatecategoryrecordstate', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} diff --git a/src/services/pop-b2b2c/pbcCommonDataController.ts b/src/services/pop-b2b2c/pbcCommonDataController.ts new file mode 100644 index 0000000..225663b --- /dev/null +++ b/src/services/pop-b2b2c/pbcCommonDataController.ts @@ -0,0 +1,21 @@ +// @ts-ignore +/* eslint-disable */ +import request from '@/utils/request'; + +/** 利用三级类目id查询对应的颜色、规格参数 获取规格 GET /b2b2c/pbcCommonData/getRecordByL3CategoryId */ +export async function getRecordByL3CategoryIdUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.getRecordByL3CategoryIdUsingGETParams, + options?: { [key: string]: any }, +) { + return request( + '/b2b2c/pbcCommonData/getRecordByL3CategoryId', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }, + ); +} diff --git a/src/services/pop-b2b2c/pbcEmailController.ts b/src/services/pop-b2b2c/pbcEmailController.ts new file mode 100644 index 0000000..f4e49d9 --- /dev/null +++ b/src/services/pop-b2b2c/pbcEmailController.ts @@ -0,0 +1,33 @@ +// @ts-ignore +/* eslint-disable */ +import request from '@/utils/request'; + +/** 验证邮箱验证码 邮箱 GET /b2b2c/pbcemail/checkemailverificationcode */ +export async function checkEmailVerificationCodeUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.checkEmailVerificationCodeUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcemail/checkemailverificationcode', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} + +/** 获得邮箱验证码 邮箱 GET /b2b2c/pbcemail/getemailverificationcode */ +export async function getEmailVerificationCodeUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.getEmailVerificationCodeUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcemail/getemailverificationcode', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} diff --git a/src/services/pop-b2b2c/pbcProductController.ts b/src/services/pop-b2b2c/pbcProductController.ts index 77acbc4..7cbae8f 100644 --- a/src/services/pop-b2b2c/pbcProductController.ts +++ b/src/services/pop-b2b2c/pbcProductController.ts @@ -2,10 +2,13 @@ /* eslint-disable */ import request from '@/utils/request'; -/** collect GET /b2b2c/pbcproduct/collect */ -export async function collectUsingGet(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/collect', { - method: 'GET', +/** 卖家新增或者修改商品 卖家新增或者修改商品 POST /b2b2c/pbcproduct/addorupdateproduct */ +export async function addOrUpdateProductUsingPost( + body: API.PbcProductDTO, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcproduct/addorupdateproduct', { + method: 'POST', headers: { 'Content-Type': 'application/json', }, @@ -14,14 +17,17 @@ export async function collectUsingGet(body: API.AjaxRequest, options?: { [key: s }); } -/** collect PUT /b2b2c/pbcproduct/collect */ -export async function collectUsingPut(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/collect', { - method: 'PUT', - headers: { - 'Content-Type': 'application/json', +/** 上架或者下架,state 1是上架,2是下架 卖家上架或者下架商品 GET /b2b2c/pbcproduct/changeProductState */ +export async function changeProductStateUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.changeProductStateUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcproduct/changeProductState', { + method: 'GET', + params: { + ...params, }, - data: body, ...(options || {}), }); } @@ -38,117 +44,42 @@ export async function collectUsingPost(body: API.AjaxRequest, options?: { [key: }); } -/** collect DELETE /b2b2c/pbcproduct/collect */ -export async function collectUsingDelete(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/collect', { - method: 'DELETE', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** collect PATCH /b2b2c/pbcproduct/collect */ -export async function collectUsingPatch(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/collect', { - method: 'PATCH', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** detail GET /b2b2c/pbcproduct/detail */ -export async function detailUsingGet(body: API.PbcProductDTO, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/detail', { +/** 删除商品 卖家删除商品 GET /b2b2c/pbcproduct/deleteProduct */ +export async function deleteProductUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.deleteProductUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcproduct/deleteProduct', { method: 'GET', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** detail PUT /b2b2c/pbcproduct/detail */ -export async function detailUsingPut(body: API.PbcProductDTO, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/detail', { - method: 'PUT', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** detail POST /b2b2c/pbcproduct/detail */ -export async function detailUsingPost(body: API.PbcProductDTO, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/detail', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** detail DELETE /b2b2c/pbcproduct/detail */ -export async function detailUsingDelete(body: API.PbcProductDTO, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/detail', { - method: 'DELETE', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** detail PATCH /b2b2c/pbcproduct/detail */ -export async function detailUsingPatch(body: API.PbcProductDTO, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/detail', { - method: 'PATCH', - headers: { - 'Content-Type': 'application/json', + params: { + ...params, }, - data: body, ...(options || {}), }); } -/** list GET /b2b2c/pbcproduct/list */ -export async function listUsingGet1(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/list', { +/** 根据商品id获取商品信息 卖家或者买家 GET /b2b2c/pbcproduct/detail */ +export async function detailUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.detailUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcproduct/detail', { method: 'GET', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** list PUT /b2b2c/pbcproduct/list */ -export async function listUsingPut1(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/list', { - method: 'PUT', - headers: { - 'Content-Type': 'application/json', + params: { + ...params, }, - data: body, ...(options || {}), }); } -/** list POST /b2b2c/pbcproduct/list */ -export async function listUsingPost2(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/list', { +/** 获取商品分页 分页 POST /b2b2c/pbcproduct/getProductPage */ +export async function getProductPageUsingPost( + body: API.PbcProductPageDTO, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcproduct/getProductPage', { method: 'POST', headers: { 'Content-Type': 'application/json', @@ -158,54 +89,6 @@ export async function listUsingPost2(body: API.AjaxRequest, options?: { [key: st }); } -/** list DELETE /b2b2c/pbcproduct/list */ -export async function listUsingDelete1(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/list', { - method: 'DELETE', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** list PATCH /b2b2c/pbcproduct/list */ -export async function listUsingPatch1(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/list', { - method: 'PATCH', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** poster GET /b2b2c/pbcproduct/poster */ -export async function posterUsingGet(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/poster', { - method: 'GET', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** poster PUT /b2b2c/pbcproduct/poster */ -export async function posterUsingPut(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/poster', { - method: 'PUT', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - /** poster POST /b2b2c/pbcproduct/poster */ export async function posterUsingPost(body: API.AjaxRequest, options?: { [key: string]: any }) { return request('/b2b2c/pbcproduct/poster', { @@ -218,60 +101,6 @@ export async function posterUsingPost(body: API.AjaxRequest, options?: { [key: s }); } -/** poster DELETE /b2b2c/pbcproduct/poster */ -export async function posterUsingDelete(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/poster', { - method: 'DELETE', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** poster PATCH /b2b2c/pbcproduct/poster */ -export async function posterUsingPatch(body: API.AjaxRequest, options?: { [key: string]: any }) { - return request('/b2b2c/pbcproduct/poster', { - method: 'PATCH', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** searchCondition GET /b2b2c/pbcproduct/searchcondition */ -export async function searchConditionUsingGet( - body: API.AjaxRequest, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcproduct/searchcondition', { - method: 'GET', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** searchCondition PUT /b2b2c/pbcproduct/searchcondition */ -export async function searchConditionUsingPut( - body: API.AjaxRequest, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcproduct/searchcondition', { - method: 'PUT', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - /** searchCondition POST /b2b2c/pbcproduct/searchcondition */ export async function searchConditionUsingPost( body: API.AjaxRequest, @@ -287,28 +116,13 @@ export async function searchConditionUsingPost( }); } -/** searchCondition DELETE /b2b2c/pbcproduct/searchcondition */ -export async function searchConditionUsingDelete( - body: API.AjaxRequest, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcproduct/searchcondition', { - method: 'DELETE', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** searchCondition PATCH /b2b2c/pbcproduct/searchcondition */ -export async function searchConditionUsingPatch( - body: API.AjaxRequest, +/** 查看商品列表 通用 POST /b2b2c/pbcproduct/searchProductList */ +export async function searchProductListUsingPost( + body: API.PbcProductPageDTO, options?: { [key: string]: any }, ) { - return request('/b2b2c/pbcproduct/searchcondition', { - method: 'PATCH', + return request('/b2b2c/pbcproduct/searchProductList', { + method: 'POST', headers: { 'Content-Type': 'application/json', }, diff --git a/src/services/pop-b2b2c/pbcProductHotController.ts b/src/services/pop-b2b2c/pbcProductHotController.ts index 1e98fba..acb8a5f 100644 --- a/src/services/pop-b2b2c/pbcProductHotController.ts +++ b/src/services/pop-b2b2c/pbcProductHotController.ts @@ -3,7 +3,7 @@ import request from '@/utils/request'; /** list GET /b2b2c/pbcproducthot/list */ -export async function listUsingGet2(body: API.AjaxRequest, options?: { [key: string]: any }) { +export async function listUsingGet1(body: API.AjaxRequest, options?: { [key: string]: any }) { return request('/b2b2c/pbcproducthot/list', { method: 'GET', headers: { @@ -15,7 +15,7 @@ export async function listUsingGet2(body: API.AjaxRequest, options?: { [key: str } /** list PUT /b2b2c/pbcproducthot/list */ -export async function listUsingPut2(body: API.AjaxRequest, options?: { [key: string]: any }) { +export async function listUsingPut1(body: API.AjaxRequest, options?: { [key: string]: any }) { return request('/b2b2c/pbcproducthot/list', { method: 'PUT', headers: { @@ -27,7 +27,7 @@ export async function listUsingPut2(body: API.AjaxRequest, options?: { [key: str } /** list POST /b2b2c/pbcproducthot/list */ -export async function listUsingPost3(body: API.AjaxRequest, options?: { [key: string]: any }) { +export async function listUsingPost2(body: API.AjaxRequest, options?: { [key: string]: any }) { return request('/b2b2c/pbcproducthot/list', { method: 'POST', headers: { @@ -39,7 +39,7 @@ export async function listUsingPost3(body: API.AjaxRequest, options?: { [key: st } /** list DELETE /b2b2c/pbcproducthot/list */ -export async function listUsingDelete2(body: API.AjaxRequest, options?: { [key: string]: any }) { +export async function listUsingDelete1(body: API.AjaxRequest, options?: { [key: string]: any }) { return request('/b2b2c/pbcproducthot/list', { method: 'DELETE', headers: { @@ -51,7 +51,7 @@ export async function listUsingDelete2(body: API.AjaxRequest, options?: { [key: } /** list PATCH /b2b2c/pbcproducthot/list */ -export async function listUsingPatch2(body: API.AjaxRequest, options?: { [key: string]: any }) { +export async function listUsingPatch1(body: API.AjaxRequest, options?: { [key: string]: any }) { return request('/b2b2c/pbcproducthot/list', { method: 'PATCH', headers: { diff --git a/src/services/pop-b2b2c/pbcSmsController.ts b/src/services/pop-b2b2c/pbcSmsController.ts index 2dd2962..50588f1 100644 --- a/src/services/pop-b2b2c/pbcSmsController.ts +++ b/src/services/pop-b2b2c/pbcSmsController.ts @@ -31,43 +31,3 @@ export async function getVerificationCodeUsingGet( ...(options || {}), }); } - -/** test GET /b2b2c/pbcsms/send */ -export async function testUsingGet(options?: { [key: string]: any }) { - return request('/b2b2c/pbcsms/send', { - method: 'GET', - ...(options || {}), - }); -} - -/** test PUT /b2b2c/pbcsms/send */ -export async function testUsingPut(options?: { [key: string]: any }) { - return request('/b2b2c/pbcsms/send', { - method: 'PUT', - ...(options || {}), - }); -} - -/** test POST /b2b2c/pbcsms/send */ -export async function testUsingPost(options?: { [key: string]: any }) { - return request('/b2b2c/pbcsms/send', { - method: 'POST', - ...(options || {}), - }); -} - -/** test DELETE /b2b2c/pbcsms/send */ -export async function testUsingDelete(options?: { [key: string]: any }) { - return request('/b2b2c/pbcsms/send', { - method: 'DELETE', - ...(options || {}), - }); -} - -/** test PATCH /b2b2c/pbcsms/send */ -export async function testUsingPatch(options?: { [key: string]: any }) { - return request('/b2b2c/pbcsms/send', { - method: 'PATCH', - ...(options || {}), - }); -} diff --git a/src/services/pop-b2b2c/pbcSmsLogController.ts b/src/services/pop-b2b2c/pbcSmsLogController.ts index 1e4f967..9b28f07 100644 --- a/src/services/pop-b2b2c/pbcSmsLogController.ts +++ b/src/services/pop-b2b2c/pbcSmsLogController.ts @@ -3,7 +3,7 @@ import request from '@/utils/request'; /** test GET /api/b2b2c/pbcsmslog/send */ -export async function testUsingGet1(options?: { [key: string]: any }) { +export async function testUsingGet(options?: { [key: string]: any }) { return request('/api/b2b2c/pbcsmslog/send', { method: 'GET', ...(options || {}), @@ -11,7 +11,7 @@ export async function testUsingGet1(options?: { [key: string]: any }) { } /** test PUT /api/b2b2c/pbcsmslog/send */ -export async function testUsingPut1(options?: { [key: string]: any }) { +export async function testUsingPut(options?: { [key: string]: any }) { return request('/api/b2b2c/pbcsmslog/send', { method: 'PUT', ...(options || {}), @@ -19,7 +19,7 @@ export async function testUsingPut1(options?: { [key: string]: any }) { } /** test POST /api/b2b2c/pbcsmslog/send */ -export async function testUsingPost1(options?: { [key: string]: any }) { +export async function testUsingPost(options?: { [key: string]: any }) { return request('/api/b2b2c/pbcsmslog/send', { method: 'POST', ...(options || {}), @@ -27,7 +27,7 @@ export async function testUsingPost1(options?: { [key: string]: any }) { } /** test DELETE /api/b2b2c/pbcsmslog/send */ -export async function testUsingDelete1(options?: { [key: string]: any }) { +export async function testUsingDelete(options?: { [key: string]: any }) { return request('/api/b2b2c/pbcsmslog/send', { method: 'DELETE', ...(options || {}), @@ -35,7 +35,7 @@ export async function testUsingDelete1(options?: { [key: string]: any }) { } /** test PATCH /api/b2b2c/pbcsmslog/send */ -export async function testUsingPatch1(options?: { [key: string]: any }) { +export async function testUsingPatch(options?: { [key: string]: any }) { return request('/api/b2b2c/pbcsmslog/send', { method: 'PATCH', ...(options || {}), diff --git a/src/services/pop-b2b2c/pbcUserMessageController.ts b/src/services/pop-b2b2c/pbcUserMessageController.ts index 917e754..405002e 100644 --- a/src/services/pop-b2b2c/pbcUserMessageController.ts +++ b/src/services/pop-b2b2c/pbcUserMessageController.ts @@ -2,6 +2,21 @@ /* eslint-disable */ import request from '@/utils/request'; +/** 更改某商户的留言查看状态为已查看 更改某商户的留言查看状态为已查看 GET /b2b2c/pbcusermesssage/changeUnreadState */ +export async function changeUnreadStateUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.changeUnreadStateUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcusermesssage/changeUnreadState', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} + /** 留言详情 使用主题id查询主题的回复详情 GET /b2b2c/pbcusermesssage/getmessagedetail */ export async function getMessageDetailUsingGet( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) @@ -79,3 +94,18 @@ export async function searchMessageByKeyWordUsingPost( }, ); } + +/** 查询商家未读留言数量 查询商家未读留言数量 GET /b2b2c/pbcusermesssage/searchUnreadNum */ +export async function searchUnreadNumUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.searchUnreadNumUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcusermesssage/searchUnreadNum', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} diff --git a/src/services/pop-b2b2c/pbcUsersController.ts b/src/services/pop-b2b2c/pbcUsersController.ts index 0f96c2b..017ec7f 100644 --- a/src/services/pop-b2b2c/pbcUsersController.ts +++ b/src/services/pop-b2b2c/pbcUsersController.ts @@ -109,21 +109,6 @@ export async function getUserRecordByIdUsingGet( }); } -/** init POST /b2b2c/pbcusers/init */ -export async function initUsingPost( - body: API.AjaxRequestJSONObject_, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcusers/init', { - method: 'POST', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - /** pbcUsersPage 分页,按照搜索条件查询出用户记录 POST /b2b2c/pbcusers/pbcUsersPage */ export async function pbcUsersPageUsingPost(body: API.PageVO, options?: { [key: string]: any }) { return request('/b2b2c/pbcusers/pbcUsersPage', { @@ -193,10 +178,25 @@ export async function searchUseListUsingPost( }); } +/** updateMemberRecordState 后台修改会员状态,保存前端传过来的状态 GET /b2b2c/pbcusers/updateMemberRecordState */ +export async function updateMemberRecordStateUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.updateMemberRecordStateUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcusers/updateMemberRecordState', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} + /** updateRecordState 后台修改用户状态,保存前端传过来的状态 GET /b2b2c/pbcusers/updaterecordstate */ -export async function updateRecordStateUsingGet1( +export async function updateUserRecordStateUsingGet( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.updateRecordStateUsingGET1Params, + params: API.updateUserRecordStateUsingGETParams, options?: { [key: string]: any }, ) { return request('/b2b2c/pbcusers/updaterecordstate', { diff --git a/src/services/pop-b2b2c/pbcVipGradeController.ts b/src/services/pop-b2b2c/pbcVipGradeController.ts index d3128a1..73ed9d9 100644 --- a/src/services/pop-b2b2c/pbcVipGradeController.ts +++ b/src/services/pop-b2b2c/pbcVipGradeController.ts @@ -2,112 +2,7 @@ /* eslint-disable */ import request from '@/utils/request'; -/** 删除 单个 GET /b2b2c/pbcVipGrade/delete */ -export async function deleteUsingGet1( - // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.deleteUsingGET1Params, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcVipGrade/delete', { - method: 'GET', - params: { - ...params, - }, - ...(options || {}), - }); -} - -/** 删除 单个 PUT /b2b2c/pbcVipGrade/delete */ -export async function deleteUsingPut( - // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.deleteUsingPUTParams, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcVipGrade/delete', { - method: 'PUT', - params: { - ...params, - }, - ...(options || {}), - }); -} - -/** 删除 单个 POST /b2b2c/pbcVipGrade/delete */ -export async function deleteUsingPost( - // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.deleteUsingPOSTParams, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcVipGrade/delete', { - method: 'POST', - params: { - ...params, - }, - ...(options || {}), - }); -} - -/** 删除 单个 DELETE /b2b2c/pbcVipGrade/delete */ -export async function deleteUsingDelete( - // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.deleteUsingDELETEParams, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcVipGrade/delete', { - method: 'DELETE', - params: { - ...params, - }, - ...(options || {}), - }); -} - -/** 删除 单个 PATCH /b2b2c/pbcVipGrade/delete */ -export async function deleteUsingPatch( - // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.deleteUsingPATCHParams, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcVipGrade/delete', { - method: 'PATCH', - params: { - ...params, - }, - ...(options || {}), - }); -} - -/** 查看单个类目信息 单个 GET /b2b2c/pbcVipGrade/gradeInfo */ -export async function gradeInfoUsingGet( - // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.gradeInfoUsingGETParams, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcVipGrade/gradeInfo', { - method: 'GET', - params: { - ...params, - }, - ...(options || {}), - }); -} - -/** 查看单个类目信息 单个 PUT /b2b2c/pbcVipGrade/gradeInfo */ -export async function gradeInfoUsingPut( - // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.gradeInfoUsingPUTParams, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcVipGrade/gradeInfo', { - method: 'PUT', - params: { - ...params, - }, - ...(options || {}), - }); -} - -/** 查看单个类目信息 单个 POST /b2b2c/pbcVipGrade/gradeInfo */ +/** 后台查看单个等级信息 单个 POST /b2b2c/pbcVipGrade/gradeInfo */ export async function gradeInfoUsingPost( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) params: API.gradeInfoUsingPOSTParams, @@ -122,53 +17,7 @@ export async function gradeInfoUsingPost( }); } -/** 查看单个类目信息 单个 DELETE /b2b2c/pbcVipGrade/gradeInfo */ -export async function gradeInfoUsingDelete( - // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.gradeInfoUsingDELETEParams, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcVipGrade/gradeInfo', { - method: 'DELETE', - params: { - ...params, - }, - ...(options || {}), - }); -} - -/** 查看单个类目信息 单个 PATCH /b2b2c/pbcVipGrade/gradeInfo */ -export async function gradeInfoUsingPatch( - // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.gradeInfoUsingPATCHParams, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcVipGrade/gradeInfo', { - method: 'PATCH', - params: { - ...params, - }, - ...(options || {}), - }); -} - -/** 等级列表 获取等级列表 GET /b2b2c/pbcVipGrade/gradelist */ -export async function gradeListUsingGet(options?: { [key: string]: any }) { - return request('/b2b2c/pbcVipGrade/gradelist', { - method: 'GET', - ...(options || {}), - }); -} - -/** 等级列表 获取等级列表 PUT /b2b2c/pbcVipGrade/gradelist */ -export async function gradeListUsingPut(options?: { [key: string]: any }) { - return request('/b2b2c/pbcVipGrade/gradelist', { - method: 'PUT', - ...(options || {}), - }); -} - -/** 等级列表 获取等级列表 POST /b2b2c/pbcVipGrade/gradelist */ +/** 后台查看等级列表 获取等级列表 POST /b2b2c/pbcVipGrade/gradelist */ export async function gradeListUsingPost(options?: { [key: string]: any }) { return request('/b2b2c/pbcVipGrade/gradelist', { method: 'POST', @@ -176,29 +25,10 @@ export async function gradeListUsingPost(options?: { [key: string]: any }) { }); } -/** 等级列表 获取等级列表 DELETE /b2b2c/pbcVipGrade/gradelist */ -export async function gradeListUsingDelete(options?: { [key: string]: any }) { - return request('/b2b2c/pbcVipGrade/gradelist', { - method: 'DELETE', - ...(options || {}), - }); -} - -/** 等级列表 获取等级列表 PATCH /b2b2c/pbcVipGrade/gradelist */ -export async function gradeListUsingPatch(options?: { [key: string]: any }) { - return request('/b2b2c/pbcVipGrade/gradelist', { - method: 'PATCH', - ...(options || {}), - }); -} - -/** 保存或者修改等级 保存或者修改等级 GET /b2b2c/pbcVipGrade/saveOrUpdategrade */ -export async function saveOrUpdateGradeUsingGet( - body: API.PbcVipGrade, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcVipGrade/saveOrUpdategrade', { - method: 'GET', +/** pbcVipGradePage 分页,按照搜索条件查询出会员等级记录 POST /b2b2c/pbcVipGrade/pbcVipGradePage */ +export async function pbcVipGradePageUsingPost(body: API.PageVO, options?: { [key: string]: any }) { + return request('/b2b2c/pbcVipGrade/pbcVipGradePage', { + method: 'POST', headers: { 'Content-Type': 'application/json', }, @@ -207,22 +37,22 @@ export async function saveOrUpdateGradeUsingGet( }); } -/** 保存或者修改等级 保存或者修改等级 PUT /b2b2c/pbcVipGrade/saveOrUpdategrade */ -export async function saveOrUpdateGradeUsingPut( - body: API.PbcVipGrade, +/** 后台删除等级记录 单个 POST /b2b2c/pbcVipGrade/removeGradeById */ +export async function removeGradeByIdUsingPost( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.removeGradeByIdUsingPOSTParams, options?: { [key: string]: any }, ) { - return request('/b2b2c/pbcVipGrade/saveOrUpdategrade', { - method: 'PUT', - headers: { - 'Content-Type': 'application/json', + return request('/b2b2c/pbcVipGrade/removeGradeById', { + method: 'POST', + params: { + ...params, }, - data: body, ...(options || {}), }); } -/** 保存或者修改等级 保存或者修改等级 POST /b2b2c/pbcVipGrade/saveOrUpdategrade */ +/** 后台保存或者修改等级 保存或者修改等级 POST /b2b2c/pbcVipGrade/saveOrUpdategrade */ export async function saveOrUpdateGradeUsingPost( body: API.PbcVipGrade, options?: { [key: string]: any }, @@ -236,33 +66,3 @@ export async function saveOrUpdateGradeUsingPost( ...(options || {}), }); } - -/** 保存或者修改等级 保存或者修改等级 DELETE /b2b2c/pbcVipGrade/saveOrUpdategrade */ -export async function saveOrUpdateGradeUsingDelete( - body: API.PbcVipGrade, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcVipGrade/saveOrUpdategrade', { - method: 'DELETE', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} - -/** 保存或者修改等级 保存或者修改等级 PATCH /b2b2c/pbcVipGrade/saveOrUpdategrade */ -export async function saveOrUpdateGradeUsingPatch( - body: API.PbcVipGrade, - options?: { [key: string]: any }, -) { - return request('/b2b2c/pbcVipGrade/saveOrUpdategrade', { - method: 'PATCH', - headers: { - 'Content-Type': 'application/json', - }, - data: body, - ...(options || {}), - }); -} diff --git a/src/services/pop-b2b2c/typings.d.ts b/src/services/pop-b2b2c/typings.d.ts index 26b558e..7291404 100644 --- a/src/services/pop-b2b2c/typings.d.ts +++ b/src/services/pop-b2b2c/typings.d.ts @@ -37,6 +37,12 @@ declare namespace API { retmsg?: string; }; + type AjaxResultIPagePbcProduct_ = { + data?: IPagePbcProduct_; + retcode?: number; + retmsg?: string; + }; + type AjaxResultIPagePbcRole_ = { data?: IPagePbcRole_; retcode?: number; @@ -61,6 +67,12 @@ declare namespace API { retmsg?: string; }; + type AjaxResultIPagePbcVipGrade_ = { + data?: IPagePbcVipGrade_; + retcode?: number; + retmsg?: string; + }; + type AjaxResultListPbcAuthority_ = { data?: PbcAuthority[]; retcode?: number; @@ -85,6 +97,12 @@ declare namespace API { retmsg?: string; }; + type AjaxResultListPbcProduct_ = { + data?: PbcProduct[]; + retcode?: number; + retmsg?: string; + }; + type AjaxResultListPbcRole_ = { data?: PbcRole[]; retcode?: number; @@ -109,6 +127,12 @@ declare namespace API { retmsg?: string; }; + type AjaxResultLong_ = { + data?: string; + retcode?: number; + retmsg?: string; + }; + type AjaxResultPagePbcBusiness_ = { data?: PagePbcBusiness_; retcode?: number; @@ -151,6 +175,18 @@ declare namespace API { retmsg?: string; }; + type AjaxResultPbcCategoryCommonDataVo_ = { + data?: PbcCategoryCommonDataVo; + retcode?: number; + retmsg?: string; + }; + + type AjaxResultPbcProduct_ = { + data?: PbcProduct; + retcode?: number; + retmsg?: string; + }; + type AjaxResultPbcUserMessage_ = { data?: PbcUserMessage; retcode?: number; @@ -181,11 +217,6 @@ declare namespace API { retmsg?: string; }; - type approvalSignYAdminUsingGETParams = { - /** pbcId */ - pbcId: string; - }; - type approvalSignYUsingGETParams = { /** pbcId */ pbcId: string; @@ -196,39 +227,43 @@ declare namespace API { id: string; }; - type deleteRoleUsingPOSTParams = { - /** roleId */ - roleId: string; + type changeProductStateUsingGETParams = { + /** pcbId */ + pcbId: string; + /** state */ + state: number; }; - type deleteUsingDELETEParams = { - /** id */ - id: string; + type changeUnreadStateUsingGETParams = { + /** businessId */ + businessId: string; }; - type deleteUsingGET1Params = { - /** id */ - id: string; + type checkEmailVerificationCodeUsingGETParams = { + /** email */ + email: string; + /** verificationCode */ + verificationCode: string; }; - type deleteUsingGETParams = { - /** id */ - id: string; + type deleteProductUsingGETParams = { + /** pcbId */ + pcbId: string; }; - type deleteUsingPATCHParams = { - /** id */ - id: string; + type deleteRoleUsingPOSTParams = { + /** roleId */ + roleId: string; }; - type deleteUsingPOSTParams = { + type deleteUsingGETParams = { /** id */ id: string; }; - type deleteUsingPUTParams = { - /** id */ - id: string; + type detailUsingGETParams = { + /** pcbId */ + pcbId: string; }; type FilterVO = { @@ -240,6 +275,11 @@ declare namespace API { values?: string[]; }; + type getEmailVerificationCodeUsingGETParams = { + /** email */ + email: string; + }; + type getMessageDetailUsingGETParams = { /** id */ id: string; @@ -260,6 +300,11 @@ declare namespace API { businessId: string; }; + type getRecordByL3CategoryIdUsingGETParams = { + /** l3CategoryId */ + l3CategoryId: string; + }; + type getUserRecordByIdUsingGETParams = { /** id */ id: string; @@ -270,31 +315,11 @@ declare namespace API { phone: string; }; - type gradeInfoUsingDELETEParams = { - /** id */ - id: string; - }; - - type gradeInfoUsingGETParams = { - /** id */ - id: string; - }; - - type gradeInfoUsingPATCHParams = { - /** id */ - id: string; - }; - type gradeInfoUsingPOSTParams = { /** id */ id: string; }; - type gradeInfoUsingPUTParams = { - /** id */ - id: string; - }; - type headFileUploadUsingDELETEParams = { /** base64 */ base64?: string; @@ -368,6 +393,14 @@ declare namespace API { total?: string; }; + type IPagePbcProduct_ = { + current?: string; + pages?: string; + records?: PbcProduct[]; + size?: string; + total?: string; + }; + type IPagePbcRole_ = { current?: string; pages?: string; @@ -400,8 +433,21 @@ declare namespace API { total?: string; }; + type IPagePbcVipGrade_ = { + current?: string; + pages?: string; + records?: PbcVipGrade[]; + size?: string; + total?: string; + }; + type JSONObject = true; + type listTreeUsingGETParams = { + /** type */ + type: number; + }; + type ModelAndView = { empty?: boolean; model?: Record; @@ -588,19 +634,23 @@ declare namespace API { pbcBusinessBank?: string; /** 商户城市 */ pbcBusinessCity?: string; + /** 商户编号, 审核通过后生成 */ + pbcBusinessCode?: string; /** 商户联系人 */ pbcBusinessContact?: string; /** 商户手机号 */ pbcBusinessContactMobile?: string; /** 商户联系人身份证 */ pbcBusinessContactUserNo?: string; + /** 商户门牌号, 新增字段 */ + pbcBusinessDoorLabel?: string; /** 商户负责人 */ pbcBusinessHead?: string; /** 商户负责人身份证号码 */ pbcBusinessHeadUserNo?: string; - /** 商户负责人身份证反面图片 */ + /** 商户负责人身份证人像面图片 */ pbcBusinessHeadUserNoBackUrl?: string; - /** 商户负责人身份证正面图片 */ + /** 商户负责人身份证国徽面图片 */ pbcBusinessHeadUserNoFrontUrl?: string; /** 商户图片 */ pbcBusinessImage?: string; @@ -665,9 +715,9 @@ declare namespace API { pbcBusinessHead?: string; /** 商户负责人身份证号码 */ pbcBusinessHeadUserNo?: string; - /** 商户负责人身份证反面图片 */ + /** 商户负责人身份证人像面图片 */ pbcBusinessHeadUserNoBackUrl?: string; - /** 商户负责人身份证正面图片 */ + /** 商户负责人身份证国徽面图片 */ pbcBusinessHeadUserNoFrontUrl?: string; /** 商户营业执照url */ pbcBusinessLicenseUrl?: string; @@ -728,9 +778,9 @@ declare namespace API { pbcBusinessHead?: string; /** 商户负责人身份证号码 */ pbcBusinessHeadUserNo?: string; - /** 商户负责人身份证反面图片 */ + /** 商户负责人身份证人像面图片 */ pbcBusinessHeadUserNoBackUrl?: string; - /** 商户负责人身份证正面图片 */ + /** 商户负责人身份证国徽面图片 */ pbcBusinessHeadUserNoFrontUrl?: string; /** 商户营业执照url */ pbcBusinessLicenseUrl?: string; @@ -768,6 +818,11 @@ declare namespace API { pbcUpdateByUserName?: string; }; + type PbcBusinessIndexDTO = { + pbcBusinessCode?: string; + pbcId?: string; + }; + type PbcBusinessPageDTO = { /** 当前页 */ current?: number; @@ -812,7 +867,7 @@ declare namespace API { pbcCategoryLevel?: number; /** 类目名称 */ pbcCategoryName?: string; - /** 父级类目id */ + /** 父级类目id,没有就填写0 */ pbcCategoryParentId?: string; /** 父级类目名称 */ pbcCategoryParentName?: string; @@ -836,13 +891,259 @@ declare namespace API { pbcUpdateByUserName?: string; }; + type PbcCategoryCommonDataVo = { + colorData?: PbcCommonData; + /** 规格列表 */ + commonDataList?: PbcCommonData[]; + }; + + type PbcCommonData = { + /** 颜色列表 */ + commonDataValueList?: PbcCommonDataValue[]; + /** 三级类别id */ + pbcCategoryId?: string; + /** 三级类别名称 */ + pbcCategoryName?: string; + /** 创建时间 */ + pbcCreateAt?: string; + /** 创建人 */ + pbcCreateBy?: string; + /** 创建人 */ + pbcCreateByUserName?: string; + /** 主键 */ + pbcId?: string; + /** 排序 */ + pbcSort?: number; + /** 状态,0是删除,1是正常,2是作废 */ + pbcState?: number; + /** 输入类型:select , text */ + pbcSystemInputType?: number; + /** 系统key */ + pbcSystemKey?: string; + /** 系统名称 */ + pbcSystemName?: string; + /** 系统类型对应前端: 系统定义, 一个用户自定义(暂不考虑) */ + pbcSystemType?: number; + /** 更新时间 */ + pbcUpdateAt?: string; + /** 更新人 */ + pbcUpdateBy?: string; + /** 更新人 */ + pbcUpdateByUserName?: string; + }; + + type PbcCommonDataValue = { + /** 元数据id */ + pbcCommonDataId?: string; + /** 创建时间 */ + pbcCreateAt?: string; + /** 创建人 */ + pbcCreateBy?: string; + /** 创建人 */ + pbcCreateByUserName?: string; + /** 主键 */ + pbcId?: string; + /** 排序 */ + pbcSort?: number; + /** 状态,0是删除,1是正常,2是作废 */ + pbcState?: number; + /** 数据值 */ + pbcSystemValue?: string; + /** 更新时间 */ + pbcUpdateAt?: string; + /** 更新人 */ + pbcUpdateBy?: string; + /** 更新人 */ + pbcUpdateByUserName?: string; + }; + type PbcContentPublishDTO = { /** 内容类型 */ pbcContentTypeValue?: string; }; + type PbcProduct = { + /** 颜色列表 */ + colorDataList?: PbcProductCommonData[]; + /** 颜色名称,列表时返回给前端,格式如红色/绿色 */ + colorName?: string; + /** 规格列表 */ + commonDataList?: PbcCommonData[]; + /** 是否可见,针对的是私密商品,如果查询对象是会员且会员无权限查看,值为0,前端应不可点进去查看且图片是默认的,值是1表示可见 */ + isVisible?: number; + /** 商户id */ + pbcBusinessId?: string; + /** 商户名称 */ + pbcBusinessName?: string; + /** 创建时间 */ + pbcCreateAt?: string; + /** 创建人 */ + pbcCreateBy?: string; + /** 创建人 */ + pbcCreateByUserName?: string; + /** 主键 */ + pbcId?: string; + /** 商品细分类id */ + pbcProductCategoryId?: string; + /** 商品细分类 */ + pbcProductCategoryName?: string; + /** 商品编号 */ + pbcProductCode?: string; + /** 商品详细 */ + pbcProductDetail?: string; + /** 商品详情图 */ + pbcProductDetailImages?: string; + /** 浏览量 */ + pbcProductHot?: string; + /** 商品相册图 */ + pbcProductImages?: string; + /** 产地城市 */ + pbcProductOriginalCity?: string; + /** 产地省份 */ + pbcProductOriginalProvince?: string; + /** 商品中类的id */ + pbcProductParentCategoryId?: string; + /** 商品中类 */ + pbcProductParentCategoryName?: string; + /** 商品价格 */ + pbcProductPrice?: number; + /** 货架号 */ + pbcProductShelfNumber?: string; + /** 商品库存 */ + pbcProductStock?: string; + /** 商品标题 */ + pbcProductTitle?: string; + /** 商品大类的id */ + pbcProductTopCategoryId?: string; + /** 商品大类 */ + pbcProductTopCategoryName?: string; + /** 产品类型:私密、公开 */ + pbcProductType?: string; + /** 逗号分割字符串,私密商品,对应会员等级 */ + pbcProductVipLevels?: string; + /** 状态,0是删除,1是正常,2是作废 */ + pbcState?: number; + /** 更新时间 */ + pbcUpdateAt?: string; + /** 更新人 */ + pbcUpdateBy?: string; + /** 更新人 */ + pbcUpdateByUserName?: string; + /** 规格列表 */ + productCommonDataList?: PbcProductCommonData[]; + }; + + type PbcProductCommonData = { + /** 颜色图片地址 */ + pbcColorImageUrl?: string; + /** 元数据id */ + pbcCommonDataId?: string; + /** 输入值 */ + pbcCommonDataSystem?: string; + /** 元数据值 */ + pbcCommonDataSystemValue?: string; + /** 元数据值id */ + pbcCommonDataValueId?: string; + /** 创建时间 */ + pbcCreateAt?: string; + /** 创建人 */ + pbcCreateBy?: string; + /** 创建人 */ + pbcCreateByUserName?: string; + /** 主键 */ + pbcId?: string; + /** 排序 */ + pbcSort?: number; + /** 状态,0是删除,1是正常,2是作废 */ + pbcState?: number; + /** 输入类型:选择、文本 */ + pbcSystemInputType?: number; + /** 元数据名称 */ + pbcSystemName?: string; + /** 更新时间 */ + pbcUpdateAt?: string; + /** 更新人 */ + pbcUpdateBy?: string; + /** 更新人 */ + pbcUpdateByUserName?: string; + /** 商品id */ + productId?: string; + }; + type PbcProductDTO = { - pbcProductId?: string; + /** 商户id */ + pbcBusinessId?: string; + /** 主键 */ + pbcId?: string; + /** 商品细分类id */ + pbcProductCategoryId?: string; + /** 商品细分类 */ + pbcProductCategoryName?: string; + /** 商品编号 */ + pbcProductCode?: string; + /** 商品详细 */ + pbcProductDetail?: string; + /** 商品详情图 */ + pbcProductDetailImages?: string; + /** 浏览量 */ + pbcProductHot?: string; + /** 商品相册图 */ + pbcProductImages?: string; + /** 产地城市 */ + pbcProductOriginalCity?: string; + /** 产地省份 */ + pbcProductOriginalProvince?: string; + /** 商品中类的id */ + pbcProductParentCategoryId?: string; + /** 商品中类 */ + pbcProductParentCategoryName?: string; + /** 商品价格 */ + pbcProductPrice?: number; + /** 货架号 */ + pbcProductShelfNumber?: string; + /** 商品库存 */ + pbcProductStock?: string; + /** 商品标题 */ + pbcProductTitle?: string; + /** 商品大类的id */ + pbcProductTopCategoryId?: string; + /** 商品大类 */ + pbcProductTopCategoryName?: string; + /** 产品类型:私密、公开 */ + pbcProductType?: string; + /** 逗号分割字符串,私密商品,对应会员等级 */ + pbcProductVipLevels?: string; + /** 接收规格、颜色 */ + productCommonDataList?: PbcProductCommonData[]; + }; + + type PbcProductPageDTO = { + /** 当前页 */ + current?: number; + /** 条数 */ + pageSize?: number; + /** 商户id */ + pbcBusinessId?: string; + /** 主键 */ + pbcId?: string; + /** 商品细分类id,也就是三级类目id */ + pbcProductCategoryId?: string; + /** 商品细分类,也就是三级类目名称 */ + pbcProductCategoryName?: string; + /** 产地城市 */ + pbcProductOriginalCity?: string; + /** 产地省份 */ + pbcProductOriginalProvince?: string; + /** 商品标题 */ + pbcProductTitle?: string; + /** 产品类型:私密private、公开public */ + pbcProductType?: string; + /** 状态,0是删除,1是上架,2是下架 */ + pbcState?: number; + /** 排序方式 asc desc */ + sort?: string; + /** 排序列,用表字段名称 */ + sortField?: string; }; type PbcRole = { @@ -979,6 +1280,10 @@ declare namespace API { pbcUserSourceUserId?: string; /** 0表示商户,1表示会员, 2管理员 */ pbcUserType?: number; + /** 用户等级id */ + pbcVipGradeId?: string; + /** 用户等级名称 */ + pbcVipGradeName?: string; /** 模糊搜索条件,可以是用户名、手机号 */ searchKey?: string; }; @@ -1148,6 +1453,10 @@ declare namespace API { pbcUserSourceUserId?: string; /** 0表示商户,1表示会员, 2管理员 */ pbcUserType?: number; + /** 用户等级id */ + pbcVipGradeId?: string; + /** 用户等级名称 */ + pbcVipGradeName?: string; }; type PbcUsersVO = { @@ -1201,6 +1510,10 @@ declare namespace API { pbcUserSourceUserId?: string; /** 0表示商户,1表示会员, 2管理员 */ pbcUserType?: number; + /** 用户等级id */ + pbcVipGradeId?: string; + /** 用户等级名称 */ + pbcVipGradeName?: string; }; type PbcVipGrade = { @@ -1241,11 +1554,26 @@ declare namespace API { roleId: string; }; + type removeGradeByIdUsingPOSTParams = { + /** id */ + id: string; + }; + type resetPasswordUsingGETParams = { /** id */ id: string; }; + type searchCategoryUsingGETParams = { + /** searchName */ + searchName: string; + }; + + type searchUnreadNumUsingGETParams = { + /** businessId */ + businessId: string; + }; + type updateBusinessRecordLevelUsingGETParams = { /** businessLevel */ businessLevel: string; @@ -1253,14 +1581,28 @@ declare namespace API { pbcId: string; }; - type updateRecordStateUsingGET1Params = { + type updateBusinessRecordStateUsingGETParams = { /** pbcId */ pbcId: string; /** state */ state: number; }; - type updateRecordStateUsingGETParams = { + type updateCategoryRecordStateUsingGETParams = { + /** pbcId */ + pbcId: string; + /** state */ + state: number; + }; + + type updateMemberRecordStateUsingGETParams = { + /** pbcId */ + pbcId: string; + /** state */ + state: number; + }; + + type updateUserRecordStateUsingGETParams = { /** pbcId */ pbcId: string; /** state */ @@ -1322,8 +1664,10 @@ declare namespace API { pbcTitle?: string; /** 用户id */ pbcUserId?: string; - /** 模糊搜索条件,可以是会员昵称、手机号 */ - searchKey?: string; + /** 用户手机号 */ + pbcUserMobile?: string; + /** 用户昵称 */ + pbcUserNickName?: string; }; type UserPageDTO = {