From 84260902069a6cd5a5d43ccd909fc8e3739c04f6 Mon Sep 17 00:00:00 2001 From: Joe Date: Wed, 5 Mar 2025 17:34:26 +0800 Subject: [PATCH] up --- config/routes.ts | 17 +- src/pages/BusinessList/recommend.tsx | 297 ++++++++++++++++++ .../components/OperateInstructionForm.tsx | 48 +++ src/pages/OperatingInstructions/index.tsx | 140 +++++++++ src/services/pop-b2b2c/errorController.ts | 30 +- src/services/pop-b2b2c/index.ts | 6 + .../pop-b2b2c/pbcCategoryController.ts | 25 ++ .../pop-b2b2c/pbcFashionTrendController.ts | 107 +++++++ .../pbcOperateInstructionController.ts | 94 ++++++ .../pop-b2b2c/pbcOrderAddressController.ts | 18 +- src/services/pop-b2b2c/pbcOrderController.ts | 146 ++++++++- .../pbcRecommendBusinessController.ts | 88 ++++++ .../pop-b2b2c/pbcUserRecordLogController.ts | 17 + src/services/pop-b2b2c/pbcUsersController.ts | 14 + src/services/pop-b2b2c/typings.d.ts | 293 ++++++++++++++++- 15 files changed, 1298 insertions(+), 42 deletions(-) create mode 100644 src/pages/BusinessList/recommend.tsx create mode 100644 src/pages/OperatingInstructions/components/OperateInstructionForm.tsx create mode 100644 src/pages/OperatingInstructions/index.tsx create mode 100644 src/services/pop-b2b2c/pbcFashionTrendController.ts create mode 100644 src/services/pop-b2b2c/pbcOperateInstructionController.ts create mode 100644 src/services/pop-b2b2c/pbcRecommendBusinessController.ts diff --git a/config/routes.ts b/config/routes.ts index 713c09e..6a53aa7 100644 --- a/config/routes.ts +++ b/config/routes.ts @@ -116,13 +116,19 @@ export default [ name: '商家管理', path: '/business', icon: 'shop', - access: 'businessQuery', routes: [ { - path: '', + path: 'list', name: '商家管理', + access: 'businessQuery', component: './BusinessList', }, + { + path: 'recommend', + name: '推荐商家', + access: 'recommendBusinessQuery', + component: './BusinessList/recommend', + }, { name: '详情', path: 'detail/:id', @@ -253,6 +259,13 @@ export default [ access: 'dictionaryQuery', component: './Dictionary', }, + { + name: '操作指引', + path: '/operating-instructions', + icon: 'message', + access: 'operateInstructionQuery', + component: './OperatingInstructions', + }, { name: '广告设置', path: '/ad', diff --git a/src/pages/BusinessList/recommend.tsx b/src/pages/BusinessList/recommend.tsx new file mode 100644 index 0000000..1949899 --- /dev/null +++ b/src/pages/BusinessList/recommend.tsx @@ -0,0 +1,297 @@ +import { useRef, useState } from 'react'; +import { Button, message, Modal } from 'antd'; +import { PageContainer } from '@ant-design/pro-layout'; +import type { ActionType, ProColumns } from '@ant-design/pro-table'; +import ProTable from '@ant-design/pro-table'; +import { Access, useAccess } from 'umi'; +import { + addBatchRecommendBusinessUsingPost, + deleteBatchRecommendBusinessUsingPost, + getRecommendBusinessListForAdminUsingGet, + getUnRecommendBusinessListUsingGet, + moveRecommendBusinessUsingGet +} from '@/services/pop-b2b2c/pbcRecommendBusinessController'; + +const TableList: React.FC = () => { + const actionRef = useRef(); + const access: any = useAccess(); + + const [selectModalVisible, setSelectModalVisible] = useState(false); + const [selectedBusinessIds, setSelectedBusinessIds] = useState([]); + + const handleAddRecommend = async () => { + const res = await getUnRecommendBusinessListUsingGet(); + if (res.retcode && res.data) { + if (res.data.length === 0) { + message.warning('没有可推荐的商家'); + return; + } + setSelectModalVisible(true); + } + }; + + const handleConfirmAdd = async () => { + if (selectedBusinessIds.length === 0) { + message.warning('请选择要添加的商家'); + return; + } + Modal.confirm({ + title: '确认添加', + content: `确定要添加${selectedBusinessIds.length}个商家到推荐列表吗?`, + onOk: async () => { + const result = await addBatchRecommendBusinessUsingPost(selectedBusinessIds); + if (result.retcode) { + message.success('添加成功'); + setSelectModalVisible(false); + setSelectedBusinessIds([]); + actionRef.current?.reload(); + } else { + message.error(result.retmsg); + } + }, + }); + }; + + const handleMove = async (id: number, type: 'up' | 'down') => { + const res = await moveRecommendBusinessUsingGet({ recommendBusinessId: id, type }); + if (res.retcode) { + message.success('移动成功'); + actionRef.current?.reload(); + } else { + message.error(res.retmsg); + } + }; + + const handleDelete = async (ids: number[]) => { + Modal.confirm({ + title: '确认删除', + content: `确定要删除选中的${ids.length}个推荐商家吗?`, + onOk: async () => { + const res = await deleteBatchRecommendBusinessUsingPost(ids); + if (res.retcode) { + message.success('删除成功'); + actionRef.current?.reload(); + } else { + message.error(res.retmsg); + } + }, + }); + }; + + const columns: ProColumns[] = [ + { + title: '序号', + dataIndex: 'index', + valueType: 'index', + width: 80, + }, + { + title: '商户名称', + dataIndex: 'pbcBusinessName', + render: (_, record) => { + return record.pbcBusiness?.pbcBusinessName ?? '-'; + }, + }, + { + title: '联系人', + width: 100, + dataIndex: 'pbcBusinessContact', + render: (_, record) => { + return record.pbcBusiness?.pbcBusinessContact ?? '-'; + }, + }, + { + title: '商户手机号', + width: 110, + dataIndex: 'pbcBusinessContactMobile', + render: (_, record) => { + return record.pbcBusiness?.pbcBusinessContactMobile ?? '-'; + }, + }, + { + title: '主营品类', + dataIndex: 'pbcBusinessMainCategory', + ellipsis: true, + render: (_, record) => { + return record.pbcBusiness?.pbcBusinessMainCategory ?? '-'; + }, + }, + { + title: '商户等级', + width: 80, + dataIndex: 'pbcBusinessLevel', + render: (_, record) => { + return record.pbcBusiness?.pbcBusinessLevel ?? '-'; + }, + }, + { + title: '操作', + fixed: 'right', + width: 180, + valueType: 'option', + render: (_, record, index, action) => [ + + , + + , + + + + ], + }, + ]; + const addColumns: ProColumns[] = [ + { + title: '序号', + dataIndex: 'index', + valueType: 'index', + width: 80, + }, + { + title: '商户名称', + dataIndex: 'pbcBusinessName' + }, + { + title: '联系人', + width: 100, + dataIndex: 'pbcBusinessContact' + }, + { + title: '商户手机号', + width: 110, + dataIndex: 'pbcBusinessContactMobile' + }, + { + title: '主营品类', + dataIndex: 'pbcBusinessMainCategory', + ellipsis: true + }, + { + title: '商户等级', + width: 80, + dataIndex: 'pbcBusinessLevel' + } + ]; + + return ( + + + columns={columns} + actionRef={actionRef} + request={async (params) => { + const res = await getRecommendBusinessListForAdminUsingGet({ + ...params, + }); + return { + data: res.data || [], + success: !!res.retcode, + total: res.data?.length, + }; + }} + rowKey="pbcId" + size="small" + bordered + search={false} + toolbar={{ + actions: [ + + + + ], + }} + rowSelection={{ + onChange: (selectedRowKeys) => { + if (selectedRowKeys.length > 0) { + handleDelete(selectedRowKeys as number[]); + } + }, + }} + pagination={{ + defaultPageSize: 20, + showSizeChanger: true, + }} + scroll={{ + y: 'calc(100vh - 320px)', + }} + dateFormatter="string" + options={false} + toolBarRender={() => []} + /> + { + setSelectModalVisible(false); + setSelectedBusinessIds([]); + }} + width={1000} + footer={[ + , + , + ]} + > + + columns={addColumns} + request={async () => { + const res = await getUnRecommendBusinessListUsingGet(); + return { + data: res.data || [], + success: !!res.retcode, + }; + }} + rowKey="pbcId" + size="small" + bordered + search={false} + options={false} + pagination={false} + rowSelection={{ + selectedRowKeys: selectedBusinessIds, + onChange: (selectedRowKeys) => { + setSelectedBusinessIds(selectedRowKeys as number[]); + }, + }} + scroll={{ + y: 400, + }} + /> + + + ); +}; +export default TableList; \ No newline at end of file diff --git a/src/pages/OperatingInstructions/components/OperateInstructionForm.tsx b/src/pages/OperatingInstructions/components/OperateInstructionForm.tsx new file mode 100644 index 0000000..f4f653c --- /dev/null +++ b/src/pages/OperatingInstructions/components/OperateInstructionForm.tsx @@ -0,0 +1,48 @@ +import { Editor } from '@/components/Editor'; +import { DrawerForm, ProForm, ProFormText } from '@ant-design/pro-components'; +import React from 'react'; + +export type OperateInstructionFormProps = { + onFinish: (values: API.PbcOperateInstruction_) => Promise; + onVisibleChange: (visible: boolean) => void; + values?: API.PbcOperateInstruction_; + visible: boolean; +}; + +const OperateInstructionForm: React.FC = (props) => { + const { visible, onVisibleChange, onFinish, values } = props; + + return ( + { + return onFinish({ ...props.values, ...value }) + }} + initialValues={values} + > + + + + + + ); +}; + +export default OperateInstructionForm; \ No newline at end of file diff --git a/src/pages/OperatingInstructions/index.tsx b/src/pages/OperatingInstructions/index.tsx new file mode 100644 index 0000000..3604e53 --- /dev/null +++ b/src/pages/OperatingInstructions/index.tsx @@ -0,0 +1,140 @@ +import { PlusOutlined } from '@ant-design/icons'; +import { ActionType, PageContainer, ProColumns, ProTable } from '@ant-design/pro-components'; +import { Button, message, Modal } from 'antd'; +import React, { useRef, useState } from 'react'; +import { + addOrUpdateOperateInstructionUsingPost, + getOperateInstructionListForAdminUsingGet, + removeInstructionDetailUsingGet, +} from '@/services/pop-b2b2c/pbcOperateInstructionController'; +import OperateInstructionForm from './components/OperateInstructionForm'; +import { Access, useAccess } from '@umijs/max'; + +const OperatingInstructions: React.FC = () => { + const [createModalVisible, handleModalVisible] = useState(false); + const [currentRow, setCurrentRow] = useState(); + const actionRef = useRef(); + const access: any = useAccess(); + + const handleAdd = async (fields: API.PbcOperateInstruction_) => { + const hide = message.loading('正在保存'); + try { + await addOrUpdateOperateInstructionUsingPost(fields); + hide(); + message.success('保存成功'); + return true; + } catch (error) { + hide(); + message.error('保存失败,请重试'); + return false; + } + }; + + const handleRemove = async (id: number) => { + Modal.confirm({ + title: '确认删除', + content: '确定要删除这条操作指引吗?', + onOk: async () => { + const hide = message.loading('正在删除'); + try { + await removeInstructionDetailUsingGet({ pbcId: id }); + hide(); + message.success('删除成功'); + actionRef.current?.reload(); + } catch (error) { + hide(); + message.error('删除失败,请重试'); + } + }, + }); + }; + + const columns: ProColumns[] = [ + { + title: '操作指引名称', + dataIndex: 'pbcName', + }, + { + title: '创建时间', + dataIndex: 'pbcCreateAt', + valueType: 'dateTime', + hideInForm: true, + }, + { + title: '操作', + dataIndex: 'option', + valueType: 'option', + render: (_, record) => [ + + { + setCurrentRow(record); + handleModalVisible(true); + }} + > + 编辑 + + , + + { + handleRemove(record.pbcId!); + }} + > + 删除 + + + ], + }, + ]; + + return ( + + + actionRef={actionRef} + rowKey="id" + search={false} + toolBarRender={() => [ + + , + + ]} + request={async () => { + const res = await getOperateInstructionListForAdminUsingGet(); + return { + data: res.data || [], + success: !!res.retcode, + }; + }} + columns={columns} + /> + { + const success = await handleAdd(value); + if (success) { + handleModalVisible(false); + actionRef.current?.reload(); + } + }} + values={currentRow} + /> + + ); +}; + +export default OperatingInstructions; \ No newline at end of file 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 cac2d1d..ff21ab3 100644 --- a/src/services/pop-b2b2c/index.ts +++ b/src/services/pop-b2b2c/index.ts @@ -13,9 +13,11 @@ import * as pbcCommonDataController from './pbcCommonDataController'; import * as pbcContentPublishController from './pbcContentPublishController'; import * as pbcContentTypeController from './pbcContentTypeController'; import * as pbcEmailController from './pbcEmailController'; +import * as pbcFashionTrendController from './pbcFashionTrendController'; import * as pbcImageController from './pbcImageController'; import * as pbcLoginController from './pbcLoginController'; import * as pbcLogisticsController from './pbcLogisticsController'; +import * as pbcOperateInstructionController from './pbcOperateInstructionController'; import * as pbcOrderAddressController from './pbcOrderAddressController'; import * as pbcOrderController from './pbcOrderController'; import * as pbcOssImgController from './pbcOssImgController'; @@ -26,6 +28,7 @@ import * as pbcProductLabelConfigTypeController from './pbcProductLabelConfigTyp import * as pbcProductLabelHotController from './pbcProductLabelHotController'; import * as pbcProductShopCartController from './pbcProductShopCartController'; import * as pbcQrController from './pbcQrController'; +import * as pbcRecommendBusinessController from './pbcRecommendBusinessController'; import * as pbcRequirementController from './pbcRequirementController'; import * as pbcRequirementReplyController from './pbcRequirementReplyController'; import * as pbcRoleController from './pbcRoleController'; @@ -53,13 +56,16 @@ export default { pbcLoginController, pbcBannerController, pbcBusinessPostConfigController, + pbcFashionTrendController, pbcLogisticsController, + pbcOperateInstructionController, pbcOrderController, pbcOrderAddressController, pbcProductLabelConfigController, pbcProductLabelConfigTypeController, pbcProductLabelHotController, pbcProductShopCartController, + pbcRecommendBusinessController, pbcRequirementController, pbcRequirementReplyController, pbcRoleController, diff --git a/src/services/pop-b2b2c/pbcCategoryController.ts b/src/services/pop-b2b2c/pbcCategoryController.ts index fdfa482..6c17e77 100644 --- a/src/services/pop-b2b2c/pbcCategoryController.ts +++ b/src/services/pop-b2b2c/pbcCategoryController.ts @@ -32,6 +32,23 @@ export async function removeCategoryByIdUsingGet( }); } +/** 首页使用,根据第三级类目的id获取商户列表 GET /b2b2c/pbccategory/getBusinessListByCategoryId/${param0} */ +export async function getBusinessListByCategoryIdUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.getBusinessListByCategoryIdUsingGETParams, + options?: { [key: string]: any }, +) { + const { lv3CategoryId: param0, ...queryParams } = params; + return request( + `/b2b2c/pbccategory/getBusinessListByCategoryId/${param0}`, + { + method: 'GET', + params: { ...queryParams }, + ...(options || {}), + }, + ); +} + /** 后台使用,树形结构获取类目,路径参数是2则前端使用 树形结构获取类目 GET /b2b2c/pbccategory/list/adminTree */ export async function listAdminTreeUsingGet( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) @@ -114,6 +131,14 @@ export async function lv3CategoryListUsingGet( ); } +/** 首页使用,获取第三级的类别列表 只获取商品用到的 GET /b2b2c/pbccategory/lv3CategoryListForFront */ +export async function lv3CategoryListForFrontUsingGet(options?: { [key: string]: any }) { + return request('/b2b2c/pbccategory/lv3CategoryListForFront', { + method: 'GET', + ...(options || {}), + }); +} + /** 后台保存或者修改类目 保存或者修改类目 POST /b2b2c/pbccategory/saveOrUpdateCategory */ export async function saveOrUpdateCategoryUsingPost( body: API.PbcCategory, diff --git a/src/services/pop-b2b2c/pbcFashionTrendController.ts b/src/services/pop-b2b2c/pbcFashionTrendController.ts new file mode 100644 index 0000000..687a9fe --- /dev/null +++ b/src/services/pop-b2b2c/pbcFashionTrendController.ts @@ -0,0 +1,107 @@ +// @ts-ignore +/* eslint-disable */ +import request from '@/utils/request'; + +/** 后台新增或者修改流行趋势 POST /b2b2c/pbcFashionTrend/addOrUpdateFashionTrend */ +export async function addOrUpdateFashionTrendUsingPost( + body: API.PbcFashionTrend_, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcFashionTrend/addOrUpdateFashionTrend', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 后台根据id获取流行趋势详情 后台 GET /b2b2c/pbcFashionTrend/admin/fashionTrendDetail */ +export async function fashionTrendDetailForAdminUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.fashionTrendDetailForAdminUsingGETParams, + options?: { [key: string]: any }, +) { + return request( + '/b2b2c/pbcFashionTrend/admin/fashionTrendDetail', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }, + ); +} + +/** 更改趋势状态,就是那个按钮 GET /b2b2c/pbcFashionTrend/changeFashionTrendState */ +export async function changeFashionTrendStateUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.changeFashionTrendStateUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcFashionTrend/changeFashionTrendState', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} + +/** 前端根据id获取流行趋势详情 前端 GET /b2b2c/pbcFashionTrend/fashionTrendDetail */ +export async function fashionTrendDetailUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.fashionTrendDetailUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcFashionTrend/fashionTrendDetail', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} + +/** 前端使用获取可用的流行趋势列表 列表 GET /b2b2c/pbcFashionTrend/getFashionTrendList */ +export async function getFashionTrendListUsingGet(options?: { [key: string]: any }) { + return request('/b2b2c/pbcFashionTrend/getFashionTrendList', { + method: 'GET', + ...(options || {}), + }); +} + +/** 后台获取流行趋势分页 分页 POST /b2b2c/pbcFashionTrend/getFashionTrendPage */ +export async function getFashionTrendPageUsingPost( + body: API.PbcFashionTrend_, + options?: { [key: string]: any }, +) { + return request( + '/b2b2c/pbcFashionTrend/getFashionTrendPage', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }, + ); +} + +/** h后台根据id删除单个趋势详情 GET /b2b2c/pbcFashionTrend/removeFashionTrend */ +export async function removeFashionTrendUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.removeFashionTrendUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcFashionTrend/removeFashionTrend', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} diff --git a/src/services/pop-b2b2c/pbcOperateInstructionController.ts b/src/services/pop-b2b2c/pbcOperateInstructionController.ts new file mode 100644 index 0000000..54084f8 --- /dev/null +++ b/src/services/pop-b2b2c/pbcOperateInstructionController.ts @@ -0,0 +1,94 @@ +// @ts-ignore +/* eslint-disable */ +import request from '@/utils/request'; + +/** 后台新增或者修改操作指引 POST /b2b2c/pbcOperateInstruction/addOrUpdateOperateInstruction */ +export async function addOrUpdateOperateInstructionUsingPost( + body: API.PbcOperateInstruction_, + options?: { [key: string]: any }, +) { + return request( + '/b2b2c/pbcOperateInstruction/addOrUpdateOperateInstruction', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }, + ); +} + +/** 后台根据id获取操作指引详情 前端 GET /b2b2c/pbcOperateInstruction/admin/getOperateInstructionDetail */ +export async function getOperateInstructionDetailForAdminUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.getOperateInstructionDetailForAdminUsingGETParams, + options?: { [key: string]: any }, +) { + return request( + '/b2b2c/pbcOperateInstruction/admin/getOperateInstructionDetail', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }, + ); +} + +/** 后台获取操作指引列表 列表 GET /b2b2c/pbcOperateInstruction/admin/getOperateInstructionList */ +export async function getOperateInstructionListForAdminUsingGet(options?: { [key: string]: any }) { + return request( + '/b2b2c/pbcOperateInstruction/admin/getOperateInstructionList', + { + method: 'GET', + ...(options || {}), + }, + ); +} + +/** 根据id获取操作指引详情 前端 GET /b2b2c/pbcOperateInstruction/getOperateInstructionDetail */ +export async function getOperateInstructionDetailUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.getOperateInstructionDetailUsingGETParams, + options?: { [key: string]: any }, +) { + return request( + '/b2b2c/pbcOperateInstruction/getOperateInstructionDetail', + { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }, + ); +} + +/** 获取操作指引列表 列表 GET /b2b2c/pbcOperateInstruction/getOperateInstructionList */ +export async function getOperateInstructionListUsingGet(options?: { [key: string]: any }) { + return request( + '/b2b2c/pbcOperateInstruction/getOperateInstructionList', + { + method: 'GET', + ...(options || {}), + }, + ); +} + +/** 根据id删除单个指引详情 GET /b2b2c/pbcOperateInstruction/removeInstructionDetail */ +export async function removeInstructionDetailUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.removeInstructionDetailUsingGETParams, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcOperateInstruction/removeInstructionDetail', { + method: 'GET', + params: { + ...params, + }, + ...(options || {}), + }); +} diff --git a/src/services/pop-b2b2c/pbcOrderAddressController.ts b/src/services/pop-b2b2c/pbcOrderAddressController.ts index e7c6d96..858932d 100644 --- a/src/services/pop-b2b2c/pbcOrderAddressController.ts +++ b/src/services/pop-b2b2c/pbcOrderAddressController.ts @@ -48,31 +48,17 @@ export async function changeDefaultAddressUsingGet( } /** 根据user id获取默认收货地址 GET /b2b2c/pbcOrderAddress/getDefaultAddress */ -export async function getDefaultAddressUsingGet( - // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.getDefaultAddressUsingGETParams, - options?: { [key: string]: any }, -) { +export async function getDefaultAddressUsingGet(options?: { [key: string]: any }) { return request('/b2b2c/pbcOrderAddress/getDefaultAddress', { method: 'GET', - params: { - ...params, - }, ...(options || {}), }); } /** 根据user id获取收货地址列表 列表 GET /b2b2c/pbcOrderAddress/getOrderAddressList */ -export async function getOrderAddressListUsingGet( - // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) - params: API.getOrderAddressListUsingGETParams, - options?: { [key: string]: any }, -) { +export async function getOrderAddressListUsingGet(options?: { [key: string]: any }) { return request('/b2b2c/pbcOrderAddress/getOrderAddressList', { method: 'GET', - params: { - ...params, - }, ...(options || {}), }); } diff --git a/src/services/pop-b2b2c/pbcOrderController.ts b/src/services/pop-b2b2c/pbcOrderController.ts index d80cf14..d84a20f 100644 --- a/src/services/pop-b2b2c/pbcOrderController.ts +++ b/src/services/pop-b2b2c/pbcOrderController.ts @@ -2,9 +2,153 @@ /* eslint-disable */ import request from '@/utils/request'; +/** 买家取消订单。这里暂时限定只有待出样状态的订单才能够取消掉 GET /b2b2c/pbcOrder/cancelOrderForBuyer/${param0} */ +export async function cancelOrderForBuyerUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.cancelOrderForBuyerUsingGETParams, + options?: { [key: string]: any }, +) { + const { orderId: param0, ...queryParams } = params; + return request(`/b2b2c/pbcOrder/cancelOrderForBuyer/${param0}`, { + method: 'GET', + params: { ...queryParams }, + ...(options || {}), + }); +} + +/** 后台把订单状态更改为已完成,不做任何校验 买家 GET /b2b2c/pbcOrder/confirmReceiveForAdmin/${param0} */ +export async function confirmReceiveForAdminUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.confirmReceiveForAdminUsingGETParams, + options?: { [key: string]: any }, +) { + const { orderId: param0, ...queryParams } = params; + return request(`/b2b2c/pbcOrder/confirmReceiveForAdmin/${param0}`, { + method: 'GET', + params: { ...queryParams }, + ...(options || {}), + }); +} + +/** 买家确认收货 买家 GET /b2b2c/pbcOrder/confirmReceiveForBuyer/${param0} */ +export async function confirmReceiveForBuyerUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.confirmReceiveForBuyerUsingGETParams, + options?: { [key: string]: any }, +) { + const { orderId: param0, ...queryParams } = params; + return request(`/b2b2c/pbcOrder/confirmReceiveForBuyer/${param0}`, { + method: 'GET', + params: { ...queryParams }, + ...(options || {}), + }); +} + +/** 后台导出多订单 POST /b2b2c/pbcOrder/exportOperationalDashboard */ +export async function exportOrderPageForAdminUsingPost( + body: API.PbcOrder_, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcOrder/exportOperationalDashboard', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 后台获取订单分页 分页 POST /b2b2c/pbcOrder/getOrderPageForAdmin */ +export async function getOrderPageForAdminUsingPost( + body: API.PbcOrder_, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcOrder/getOrderPageForAdmin', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 卖家家获取订单分页 分页 POST /b2b2c/pbcOrder/getOrderPageForBusiness */ +export async function getOrderPageForBusinessUsingPost( + body: API.PbcOrder_, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcOrder/getOrderPageForBusiness', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 买家获取订单分页 分页 POST /b2b2c/pbcOrder/getOrderPageForBuyer */ +export async function getOrderPageForBuyerUsingPost( + body: API.PbcOrder_, + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcOrder/getOrderPageForBuyer', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 后台获取订单详情 分页 GET /b2b2c/pbcOrder/orderDetailForAdmin/${param0} */ +export async function orderDetailForAdminUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.orderDetailForAdminUsingGETParams, + options?: { [key: string]: any }, +) { + const { orderId: param0, ...queryParams } = params; + return request(`/b2b2c/pbcOrder/orderDetailForAdmin/${param0}`, { + method: 'GET', + params: { ...queryParams }, + ...(options || {}), + }); +} + +/** 卖家获取订单详情 分页 GET /b2b2c/pbcOrder/orderDetailForBusiness/${param0} */ +export async function orderDetailForBusinessUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.orderDetailForBusinessUsingGETParams, + options?: { [key: string]: any }, +) { + const { orderId: param0, ...queryParams } = params; + return request(`/b2b2c/pbcOrder/orderDetailForBusiness/${param0}`, { + method: 'GET', + params: { ...queryParams }, + ...(options || {}), + }); +} + +/** 买家根据id获取订单详情,暂时缺少快递 买家 GET /b2b2c/pbcOrder/orderDetailForBuyer/${param0} */ +export async function orderDetailForBuyerUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.orderDetailForBuyerUsingGETParams, + options?: { [key: string]: any }, +) { + const { orderId: param0, ...queryParams } = params; + return request(`/b2b2c/pbcOrder/orderDetailForBuyer/${param0}`, { + method: 'GET', + params: { ...queryParams }, + ...(options || {}), + }); +} + /** 买家下单接口 POST /b2b2c/pbcOrder/saveOrderForBuyer */ export async function saveOrderForBuyerUsingPost( - body: API.PbcOrder_, + body: API.PbcOrder_[], options?: { [key: string]: any }, ) { return request('/b2b2c/pbcOrder/saveOrderForBuyer', { diff --git a/src/services/pop-b2b2c/pbcRecommendBusinessController.ts b/src/services/pop-b2b2c/pbcRecommendBusinessController.ts new file mode 100644 index 0000000..2f0f21c --- /dev/null +++ b/src/services/pop-b2b2c/pbcRecommendBusinessController.ts @@ -0,0 +1,88 @@ +// @ts-ignore +/* eslint-disable */ +import request from '@/utils/request'; + +/** 后台批量新增推荐商家 POST /b2b2c/pbcRecommendBusiness/addBatchRecommendBusiness */ +export async function addBatchRecommendBusinessUsingPost( + body: number[], + options?: { [key: string]: any }, +) { + return request('/b2b2c/pbcRecommendBusiness/addBatchRecommendBusiness', { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }); +} + +/** 后台获取在推荐列表的商户列表 GET /b2b2c/pbcRecommendBusiness/admin/getRecommendBusinessList */ +export async function getRecommendBusinessListForAdminUsingGet(options?: { [key: string]: any }) { + return request( + '/b2b2c/pbcRecommendBusiness/admin/getRecommendBusinessList', + { + method: 'GET', + ...(options || {}), + }, + ); +} + +/** 后台批量删除推荐商家,传入推荐商户表的id列表,不是商户表的id POST /b2b2c/pbcRecommendBusiness/deleteBatchRecommendBusiness */ +export async function deleteBatchRecommendBusinessUsingPost( + body: number[], + options?: { [key: string]: any }, +) { + return request( + '/b2b2c/pbcRecommendBusiness/deleteBatchRecommendBusiness', + { + method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, + data: body, + ...(options || {}), + }, + ); +} + +/** 前端获取在推荐列表的商户列表 GET /b2b2c/pbcRecommendBusiness/getRecommendBusinessList */ +export async function getRecommendBusinessListUsingGet(options?: { [key: string]: any }) { + return request( + '/b2b2c/pbcRecommendBusiness/getRecommendBusinessList', + { + method: 'GET', + ...(options || {}), + }, + ); +} + +/** 获取没有在推荐列表的商户列表,这里返回的是商户列表 GET /b2b2c/pbcRecommendBusiness/getUnRecommendBusinessList */ +export async function getUnRecommendBusinessListUsingGet(options?: { [key: string]: any }) { + return request( + '/b2b2c/pbcRecommendBusiness/getUnRecommendBusinessList', + { + method: 'GET', + ...(options || {}), + }, + ); +} + +/** 卖家上下移动推荐商家,路径参数up上移,down下移 卖家移动单个 GET /b2b2c/pbcRecommendBusiness/moveRecommendBusiness/${param0} */ +export async function moveRecommendBusinessUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.moveRecommendBusinessUsingGETParams, + options?: { [key: string]: any }, +) { + const { type: param0, ...queryParams } = params; + return request( + `/b2b2c/pbcRecommendBusiness/moveRecommendBusiness/${param0}`, + { + method: 'GET', + params: { + ...queryParams, + }, + ...(options || {}), + }, + ); +} diff --git a/src/services/pop-b2b2c/pbcUserRecordLogController.ts b/src/services/pop-b2b2c/pbcUserRecordLogController.ts index 145f644..7889ff7 100644 --- a/src/services/pop-b2b2c/pbcUserRecordLogController.ts +++ b/src/services/pop-b2b2c/pbcUserRecordLogController.ts @@ -170,6 +170,23 @@ export async function exportPeopleScanDetailUsingPost( }); } +/** 获取用户的浏览日志 GET /b2b2c/statical/getUserProductScanRecord/${param0} */ +export async function getUserProductScanRecordUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.getUserProductScanRecordUsingGETParams, + options?: { [key: string]: any }, +) { + const { userId: param0, ...queryParams } = params; + return request( + `/b2b2c/statical/getUserProductScanRecord/${param0}`, + { + method: 'GET', + params: { ...queryParams }, + ...(options || {}), + }, + ); +} + /** 获取运营人员的导入商户数据 POST /b2b2c/statical/operationalBusinessData */ export async function operationalBusinessDataUsingPost( body: API.PbcOperationalDashboardDTO, diff --git a/src/services/pop-b2b2c/pbcUsersController.ts b/src/services/pop-b2b2c/pbcUsersController.ts index ab898a6..4918f3e 100644 --- a/src/services/pop-b2b2c/pbcUsersController.ts +++ b/src/services/pop-b2b2c/pbcUsersController.ts @@ -94,6 +94,20 @@ export async function getPageUsingPost3(body: API.UserPageDTO, options?: { [key: }); } +/** 会员详情 GET /b2b2c/pbcusers/getUserDetailInfo/${param0} */ +export async function getUserDetailInfoUsingGet( + // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) + params: API.getUserDetailInfoUsingGETParams, + options?: { [key: string]: any }, +) { + const { userId: param0, ...queryParams } = params; + return request(`/b2b2c/pbcusers/getUserDetailInfo/${param0}`, { + method: 'GET', + params: { ...queryParams }, + ...(options || {}), + }); +} + /** getUserRecordById 使用id查询出用户信息 GET /b2b2c/pbcusers/getuserrecordbyid */ export async function getUserRecordByIdUsingGet( // 叠加生成的Param类型 (非body参数swagger默认没有生成对象) diff --git a/src/services/pop-b2b2c/typings.d.ts b/src/services/pop-b2b2c/typings.d.ts index c339d81..08e548e 100644 --- a/src/services/pop-b2b2c/typings.d.ts +++ b/src/services/pop-b2b2c/typings.d.ts @@ -105,6 +105,12 @@ declare namespace API { retmsg?: string; }; + type AjaxResultIPagePbcFashionTrend_ = { + data?: IPagePbcFashionTrend_; + retcode?: number; + retmsg?: string; + }; + type AjaxResultIPagePbcOperationalBusinessDataVO_ = { data?: IPagePbcOperationalBusinessDataVO_; retcode?: number; @@ -117,6 +123,12 @@ declare namespace API { retmsg?: string; }; + type AjaxResultIPagePbcOrder_ = { + data?: IPagePbcOrder_; + retcode?: number; + retmsg?: string; + }; + type AjaxResultIPagePbcPeopleScanDetailVO_ = { data?: IPagePbcPeopleScanDetailVO_; retcode?: number; @@ -255,6 +267,18 @@ declare namespace API { retmsg?: string; }; + type AjaxResultListPbcFashionTrend_ = { + data?: PbcFashionTrend_[]; + retcode?: number; + retmsg?: string; + }; + + type AjaxResultListPbcOperateInstruction_ = { + data?: PbcOperateInstruction_[]; + retcode?: number; + retmsg?: string; + }; + type AjaxResultListPbcOrderAddress_ = { data?: PbcOrderAddress_[]; retcode?: number; @@ -273,6 +297,12 @@ declare namespace API { retmsg?: string; }; + type AjaxResultListPbcRecommendBusiness_ = { + data?: PbcRecommendBusiness_[]; + retcode?: number; + retmsg?: string; + }; + type AjaxResultListPbcRole_ = { data?: PbcRole[]; retcode?: number; @@ -303,6 +333,12 @@ declare namespace API { retmsg?: string; }; + type AjaxResultListPbcUserProductScanRecordVO_ = { + data?: PbcUserProductScanRecordVO[]; + retcode?: number; + retmsg?: string; + }; + type AjaxResultListPbcUsers_ = { data?: PbcUsers[]; retcode?: number; @@ -405,6 +441,24 @@ declare namespace API { retmsg?: string; }; + type AjaxResultPbcFashionTrend_ = { + data?: PbcFashionTrend_; + retcode?: number; + retmsg?: string; + }; + + type AjaxResultPbcOperateInstruction_ = { + data?: PbcOperateInstruction_; + retcode?: number; + retmsg?: string; + }; + + type AjaxResultPbcOrder_ = { + data?: PbcOrder_; + retcode?: number; + retmsg?: string; + }; + type AjaxResultPbcOrderAddress_ = { data?: PbcOrderAddress_; retcode?: number; @@ -540,6 +594,11 @@ declare namespace API { pbcId: number; }; + type cancelOrderForBuyerUsingGETParams = { + /** orderId */ + orderId: number; + }; + type categoryInfoUsingGETParams = { /** id */ id: number; @@ -571,6 +630,13 @@ declare namespace API { pbcId: number; }; + type changeFashionTrendStateUsingGETParams = { + /** pbcId */ + pbcId: number; + /** pbcState */ + pbcState: number; + }; + type changeIndexPageTemplateForBusinessUsingGETParams = { /** businessId */ businessId: number; @@ -658,6 +724,16 @@ declare namespace API { pbcId: number; }; + type confirmReceiveForAdminUsingGETParams = { + /** orderId */ + orderId: number; + }; + + type confirmReceiveForBuyerUsingGETParams = { + /** orderId */ + orderId: number; + }; + type deleteAliyunVideoUsingDELETEParams = { /** id */ id: string; @@ -688,6 +764,16 @@ declare namespace API { id: number; }; + type fashionTrendDetailForAdminUsingGETParams = { + /** pbcId */ + pbcId: number; + }; + + type fashionTrendDetailUsingGETParams = { + /** pbcId */ + pbcId: number; + }; + type FilterVO = { action?: string; key?: string; @@ -707,9 +793,9 @@ declare namespace API { businessId: number; }; - type getDefaultAddressUsingGETParams = { - /** userId */ - userId: number; + type getBusinessListByCategoryIdUsingGETParams = { + /** lv3CategoryId */ + lv3CategoryId: number; }; type getEmailVerificationCodeUsingGETParams = { @@ -722,9 +808,14 @@ declare namespace API { id: number; }; - type getOrderAddressListUsingGETParams = { - /** userId */ - userId: number; + type getOperateInstructionDetailForAdminUsingGETParams = { + /** pbcId */ + pbcId: number; + }; + + type getOperateInstructionDetailUsingGETParams = { + /** pbcId */ + pbcId: number; }; type getPbcBusinessByIdUsingPOSTParams = { @@ -769,6 +860,16 @@ declare namespace API { teamId: number; }; + type getUserDetailInfoUsingGETParams = { + /** userId */ + userId: number; + }; + + type getUserProductScanRecordUsingGETParams = { + /** userId */ + userId: number; + }; + type getUserRecordByIdUsingGETParams = { /** id */ id: number; @@ -918,6 +1019,14 @@ declare namespace API { total?: number; }; + type IPagePbcFashionTrend_ = { + current?: number; + pages?: number; + records?: PbcFashionTrend_[]; + size?: number; + total?: number; + }; + type IPagePbcOperationalBusinessDataVO_ = { current?: number; pages?: number; @@ -934,6 +1043,14 @@ declare namespace API { total?: number; }; + type IPagePbcOrder_ = { + current?: number; + pages?: number; + records?: PbcOrder_[]; + size?: number; + total?: number; + }; + type IPagePbcPeopleScanDetailVO_ = { current?: number; pages?: number; @@ -1167,6 +1284,28 @@ declare namespace API { type: string; }; + type moveRecommendBusinessUsingGETParams = { + /** recommendBusinessId */ + recommendBusinessId: number; + /** type */ + type: string; + }; + + type orderDetailForAdminUsingGETParams = { + /** orderId */ + orderId: number; + }; + + type orderDetailForBusinessUsingGETParams = { + /** orderId */ + orderId: number; + }; + + type orderDetailForBuyerUsingGETParams = { + /** orderId */ + orderId: number; + }; + type OrderItem = { asc?: boolean; column?: string; @@ -1994,6 +2133,39 @@ declare namespace API { startDate?: string; }; + type PbcFashionTrend_ = { + /** 当前页 */ + current?: number; + /** 条数 */ + pageSize?: number; + /** 简介 */ + pbcContent?: string; + /** 创建时间 */ + pbcCreateAt?: string; + /** 创建人 */ + pbcCreateBy?: number; + /** 创建人 */ + pbcCreateByUserName?: string; + /** 主键 */ + pbcId?: number; + /** 图片或者视频的地址 */ + pbcPicAddress?: string; + /** 查看次数 */ + pbcScanCnt?: number; + /** 状态,0是删除,1是正常,2是作废 */ + pbcState?: number; + /** 标题 */ + pbcTitle?: string; + /** 类型,1是图片,2是视频 */ + pbcType?: number; + /** 更新时间 */ + pbcUpdateAt?: string; + /** 更新人 */ + pbcUpdateBy?: number; + /** 更新人 */ + pbcUpdateByUserName?: string; + }; + type PbcGenerateBusinessPosterDTO = { /** 图片地址,不传默认使用商户第一张图片 */ image?: string; @@ -2013,6 +2185,29 @@ declare namespace API { pbcViewTotalNumber?: number; }; + type PbcOperateInstruction_ = { + /** 内容 */ + pbcContent?: string; + /** 创建时间 */ + pbcCreateAt?: string; + /** 创建人 */ + pbcCreateBy?: number; + /** 创建人 */ + pbcCreateByUserName?: string; + /** 主键 */ + pbcId?: number; + /** 名称 */ + pbcName?: string; + /** 状态,0是删除,1是正常,2是作废 */ + pbcState?: number; + /** 更新时间 */ + pbcUpdateAt?: string; + /** 更新人 */ + pbcUpdateBy?: number; + /** 更新人 */ + pbcUpdateByUserName?: string; + }; + type PbcOperationalBusinessDataVO = { /** 商户id */ businessId?: number; @@ -2117,7 +2312,18 @@ declare namespace API { }; type PbcOrder_ = { + /** 当前页 */ + current?: number; + /** 下单结束时间 */ + endTime?: string; + /** 期望交货开始结束时间 */ + expectedEndTime?: string; + /** 期望交货开始开始时间 */ + expectedStartTime?: string; orderItemList?: PbcOrderItem_[]; + /** 条数 */ + pageSize?: number; + pbcBusiness?: PbcBusiness; /** 商家地址 */ pbcBusinessAddress?: string; /** 商户联系人 */ @@ -2134,8 +2340,16 @@ declare namespace API { pbcCreateBy?: number; /** 创建人 */ pbcCreateByUserName?: string; + /** 配货完成时间 */ + pbcDistributionCompletionTime?: string; + /** 期望交货日期 */ + pbcExpectedDeliveryDate?: string; /** 主键 */ pbcId?: number; + /** 订单取消时间 */ + pbcOrderCancelTime?: string; + /** 订单完成时间 */ + pbcOrderCompletionTime?: string; /** 快递公司编码 */ pbcOrderExpressCompanyCode?: string; /** 快递公司 */ @@ -2160,12 +2374,12 @@ declare namespace API { pbcOrderReceiverStreet?: string; /** 订单状态:枚举值 */ pbcOrderState?: number; - /** 订单金额 */ - pbcOrderSums?: string; /** 订单类型,分为1:到店自取和2:快递邮寄两种 */ pbcOrderType?: number; /** 自取时间 */ pbcPickupTime?: string; + /** 订单里商品名称的组合,用于应付后台筛选,不用传 */ + pbcProductCombine?: string; /** 状态,0是删除,1是正常,2是作废 */ pbcState?: number; /** 更新时间 */ @@ -2176,6 +2390,13 @@ declare namespace API { pbcUpdateByUserName?: string; /** 用户ID,不用传,后台得到 */ pbcUserId?: number; + /** 用户手机号,不用传,后台得到 */ + pbcUserMobile?: string; + /** 商品名称 */ + productName?: string; + shopCartList?: PbcProductShopCart_[]; + /** 下单开始时间 */ + startTime?: string; }; type PbcOrderAddress_ = { @@ -2302,6 +2523,8 @@ declare namespace API { pbcProductDetail?: string; /** 商品详情图 */ pbcProductDetailImages?: string; + /** 细节视频 */ + pbcProductDetailVideos?: string; /** 浏览量 */ pbcProductHot?: number; /** 商品相册图 */ @@ -2429,6 +2652,8 @@ declare namespace API { pbcProductDetail?: string; /** 商品详情图 */ pbcProductDetailImages?: string; + /** 细节视频 */ + pbcProductDetailVideos?: string; /** 商品相册图 */ pbcProductImages?: string; /** 产地城市 */ @@ -2757,6 +2982,8 @@ declare namespace API { pbcProductDetail?: string; /** 商品详情图 */ pbcProductDetailImages?: string; + /** 细节视频 */ + pbcProductDetailVideos?: string; /** 浏览量 */ pbcProductHot?: number; /** 商品相册图 */ @@ -2805,6 +3032,30 @@ declare namespace API { productCommonDataList?: PbcProductCommonData[]; }; + type PbcRecommendBusiness_ = { + pbcBusiness?: PbcBusiness; + /** 商户id */ + pbcBusinessId?: number; + /** 创建时间 */ + pbcCreateAt?: string; + /** 创建人 */ + pbcCreateBy?: number; + /** 创建人 */ + pbcCreateByUserName?: string; + /** 主键 */ + pbcId?: number; + /** 排序 */ + pbcSort?: number; + /** 状态,0是删除,1是正常,2是作废 */ + pbcState?: number; + /** 更新时间 */ + pbcUpdateAt?: string; + /** 更新人 */ + pbcUpdateBy?: number; + /** 更新人 */ + pbcUpdateByUserName?: string; + }; + type PbcRegisterStaticalVO = { businessNumber?: number; vipNumber?: number; @@ -3323,6 +3574,7 @@ declare namespace API { pbcId?: number; /** 用户小程序的open id */ pbcOpenId?: string; + pbcSourceUser?: PbcUsers; /** 状态,0是删除,1是正常,2是作废 */ pbcState?: number; /** 用户微信的union id */ @@ -3499,6 +3751,19 @@ declare namespace API { serialNumber?: number; }; + type PbcUserProductScanDTO = { + createDate?: string; + productId?: number; + productImages?: string; + }; + + type PbcUserProductScanRecordVO = { + /** 日期,格式是YYYY年MM月DD日 */ + createDate?: string; + /** 当天浏览的商品 */ + pbcProductList?: PbcUserProductScanDTO[]; + }; + type PbcUserRegisterDTO = { /** 商户id */ pbcBusinessId?: number; @@ -3537,6 +3802,7 @@ declare namespace API { pbcId?: number; /** 用户小程序的open id */ pbcOpenId?: string; + pbcSourceUser?: PbcUsers; /** 状态,0是删除,1是正常,2是作废 */ pbcState?: number; /** 用户微信的union id */ @@ -3596,6 +3862,7 @@ declare namespace API { pbcId?: number; /** 用户小程序的open id */ pbcOpenId?: string; + pbcSourceUser?: PbcUsers; /** 状态,0是删除,1是正常,2是作废 */ pbcState?: number; /** 用户微信的union id */ @@ -3735,11 +4002,21 @@ declare namespace API { pbcId: number; }; + type removeFashionTrendUsingGETParams = { + /** pbcId */ + pbcId: number; + }; + type removeGradeByIdUsingPOSTParams = { /** id */ id: number; }; + type removeInstructionDetailUsingGETParams = { + /** pbcId */ + pbcId: number; + }; + type removeLabelConfigTypeUsingGETParams = { /** pbcId */ pbcId: number;