dev-v2
Joe 10 months ago
parent 95916ad439
commit 8426090206

@ -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',

@ -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<ActionType>();
const access: any = useAccess();
const [selectModalVisible, setSelectModalVisible] = useState<boolean>(false);
const [selectedBusinessIds, setSelectedBusinessIds] = useState<number[]>([]);
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<API.PbcRecommendBusiness_>[] = [
{
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) => [
<Access key="switch" accessible={!!access.recommendBusinessSave}>
<Button
type="link"
disabled={index === 0}
onClick={() => handleMove(record.pbcId || 0, 'up')}
>
</Button>,
<Button
type="link"
disabled={index === (action?.pageInfo?.total || 0) - 1}
onClick={() => handleMove(record.pbcId || 0, 'down')}
>
</Button>
</Access>,
<Access key="delete" accessible={!!access.recommendBusinessRemove}>
<Button
type="link"
danger
onClick={() => handleDelete([record.pbcId || 0])}
>
</Button>
</Access>
],
},
];
const addColumns: ProColumns<API.PbcRecommendBusiness_>[] = [
{
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 (
<PageContainer
header={{
title: '',
breadcrumb: {},
}}
>
<ProTable<API.PbcRecommendBusiness_>
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: [
<Access key="switch" accessible={!!access.recommendBusinessSave}>
<Button key="add" type="primary" onClick={handleAddRecommend}>
</Button>
</Access>
],
}}
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={() => []}
/>
<Modal
title="选择推荐商家"
open={selectModalVisible}
onCancel={() => {
setSelectModalVisible(false);
setSelectedBusinessIds([]);
}}
width={1000}
footer={[
<Button
key="cancel"
onClick={() => {
setSelectModalVisible(false);
setSelectedBusinessIds([]);
}}
>
</Button>,
<Button key="submit" type="primary" onClick={handleConfirmAdd}>
</Button>,
]}
>
<ProTable<API.PbcRecommendBusiness_>
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,
}}
/>
</Modal>
</PageContainer>
);
};
export default TableList;

@ -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<void>;
onVisibleChange: (visible: boolean) => void;
values?: API.PbcOperateInstruction_;
visible: boolean;
};
const OperateInstructionForm: React.FC<OperateInstructionFormProps> = (props) => {
const { visible, onVisibleChange, onFinish, values } = props;
return (
<DrawerForm
title={values ? '编辑操作指引' : '新建操作指引'}
width={800}
open={visible}
onOpenChange={onVisibleChange}
onFinish={(value: API.PbcContentPublishDTO) => {
return onFinish({ ...props.values, ...value })
}}
initialValues={values}
>
<ProFormText
name="pbcName"
label="操作指引名称"
placeholder="请输入操作指引名称"
rules={[{ required: true, message: '请输入操作指引名称' }]}
/>
<ProForm.Item
name="pbcContent"
label="操作指引内容"
rules={[
{
required: true,
message: '操作指引内容为必填项',
},
]}
>
<Editor />
</ProForm.Item>
</DrawerForm>
);
};
export default OperateInstructionForm;

@ -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<boolean>(false);
const [currentRow, setCurrentRow] = useState<API.PbcOperateInstruction_>();
const actionRef = useRef<ActionType>();
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<API.PbcOperateInstruction_>[] = [
{
title: '操作指引名称',
dataIndex: 'pbcName',
},
{
title: '创建时间',
dataIndex: 'pbcCreateAt',
valueType: 'dateTime',
hideInForm: true,
},
{
title: '操作',
dataIndex: 'option',
valueType: 'option',
render: (_, record) => [
<Access key="edit" accessible={!!access.operateInstructionSave}>
<a
onClick={() => {
setCurrentRow(record);
handleModalVisible(true);
}}
>
</a>
</Access>,
<Access key="delete" accessible={!!access.operateInstructionRemove}>
<a
onClick={() => {
handleRemove(record.pbcId!);
}}
>
</a>
</Access>
],
},
];
return (
<PageContainer
header={{
title: '',
breadcrumb: {},
}}
>
<ProTable<API.PbcOperateInstruction_>
actionRef={actionRef}
rowKey="id"
search={false}
toolBarRender={() => [
<Access key="primary" accessible={!!access.operateInstructionSave}>
<Button
type="primary"
onClick={() => {
setCurrentRow(undefined);
handleModalVisible(true);
}}
>
<PlusOutlined />
</Button>,
</Access>
]}
request={async () => {
const res = await getOperateInstructionListForAdminUsingGet();
return {
data: res.data || [],
success: !!res.retcode,
};
}}
columns={columns}
/>
<OperateInstructionForm
visible={createModalVisible}
onVisibleChange={handleModalVisible}
onFinish={async (value) => {
const success = await handleAdd(value);
if (success) {
handleModalVisible(false);
actionRef.current?.reload();
}
}}
values={currentRow}
/>
</PageContainer>
);
};
export default OperatingInstructions;

@ -2,41 +2,41 @@
/* eslint-disable */
import request from '@/utils/request';
/** errorHtml GET /error */
export async function errorHtmlUsingGet(options?: { [key: string]: any }) {
return request<API.ModelAndView>('/error', {
/** error GET /error */
export async function errorUsingGet(options?: { [key: string]: any }) {
return request<Record<string, any>>('/error', {
method: 'GET',
...(options || {}),
});
}
/** errorHtml PUT /error */
export async function errorHtmlUsingPut(options?: { [key: string]: any }) {
return request<API.ModelAndView>('/error', {
/** error PUT /error */
export async function errorUsingPut(options?: { [key: string]: any }) {
return request<Record<string, any>>('/error', {
method: 'PUT',
...(options || {}),
});
}
/** errorHtml POST /error */
export async function errorHtmlUsingPost(options?: { [key: string]: any }) {
return request<API.ModelAndView>('/error', {
/** error POST /error */
export async function errorUsingPost(options?: { [key: string]: any }) {
return request<Record<string, any>>('/error', {
method: 'POST',
...(options || {}),
});
}
/** errorHtml DELETE /error */
export async function errorHtmlUsingDelete(options?: { [key: string]: any }) {
return request<API.ModelAndView>('/error', {
/** error DELETE /error */
export async function errorUsingDelete(options?: { [key: string]: any }) {
return request<Record<string, any>>('/error', {
method: 'DELETE',
...(options || {}),
});
}
/** errorHtml PATCH /error */
export async function errorHtmlUsingPatch(options?: { [key: string]: any }) {
return request<API.ModelAndView>('/error', {
/** error PATCH /error */
export async function errorUsingPatch(options?: { [key: string]: any }) {
return request<Record<string, any>>('/error', {
method: 'PATCH',
...(options || {}),
});

@ -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,

@ -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<API.AjaxResultListPbcBusiness_>(
`/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<API.AjaxResultListPbcCategory_>('/b2b2c/pbccategory/lv3CategoryListForFront', {
method: 'GET',
...(options || {}),
});
}
/** 后台保存或者修改类目 保存或者修改类目 POST /b2b2c/pbccategory/saveOrUpdateCategory */
export async function saveOrUpdateCategoryUsingPost(
body: API.PbcCategory,

@ -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<API.AjaxResultString_>('/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<API.AjaxResultPbcFashionTrend_>(
'/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<API.AjaxResultString_>('/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<API.AjaxResultPbcFashionTrend_>('/b2b2c/pbcFashionTrend/fashionTrendDetail', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}
/** 前端使用获取可用的流行趋势列表 列表 GET /b2b2c/pbcFashionTrend/getFashionTrendList */
export async function getFashionTrendListUsingGet(options?: { [key: string]: any }) {
return request<API.AjaxResultListPbcFashionTrend_>('/b2b2c/pbcFashionTrend/getFashionTrendList', {
method: 'GET',
...(options || {}),
});
}
/** 后台获取流行趋势分页 分页 POST /b2b2c/pbcFashionTrend/getFashionTrendPage */
export async function getFashionTrendPageUsingPost(
body: API.PbcFashionTrend_,
options?: { [key: string]: any },
) {
return request<API.AjaxResultIPagePbcFashionTrend_>(
'/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<API.AjaxResultString_>('/b2b2c/pbcFashionTrend/removeFashionTrend', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}

@ -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<API.AjaxResultString_>(
'/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<API.AjaxResultPbcOperateInstruction_>(
'/b2b2c/pbcOperateInstruction/admin/getOperateInstructionDetail',
{
method: 'GET',
params: {
...params,
},
...(options || {}),
},
);
}
/** 后台获取操作指引列表 列表 GET /b2b2c/pbcOperateInstruction/admin/getOperateInstructionList */
export async function getOperateInstructionListForAdminUsingGet(options?: { [key: string]: any }) {
return request<API.AjaxResultListPbcOperateInstruction_>(
'/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<API.AjaxResultPbcOperateInstruction_>(
'/b2b2c/pbcOperateInstruction/getOperateInstructionDetail',
{
method: 'GET',
params: {
...params,
},
...(options || {}),
},
);
}
/** 获取操作指引列表 列表 GET /b2b2c/pbcOperateInstruction/getOperateInstructionList */
export async function getOperateInstructionListUsingGet(options?: { [key: string]: any }) {
return request<API.AjaxResultListPbcOperateInstruction_>(
'/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<API.AjaxResultString_>('/b2b2c/pbcOperateInstruction/removeInstructionDetail', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}

@ -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<API.AjaxResultPbcOrderAddress_>('/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<API.AjaxResultListPbcOrderAddress_>('/b2b2c/pbcOrderAddress/getOrderAddressList', {
method: 'GET',
params: {
...params,
},
...(options || {}),
});
}

@ -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<API.AjaxResultString_>(`/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<API.AjaxResultString_>(`/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<API.AjaxResultString_>(`/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<API.AjaxResultString_>('/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<API.AjaxResultIPagePbcOrder_>('/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<API.AjaxResultIPagePbcOrder_>('/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<API.AjaxResultIPagePbcOrder_>('/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<API.AjaxResultPbcOrder_>(`/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<API.AjaxResultPbcOrder_>(`/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<API.AjaxResultPbcOrder_>(`/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<API.AjaxResultString_>('/b2b2c/pbcOrder/saveOrderForBuyer', {

@ -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<API.AjaxResultString_>('/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<API.AjaxResultListPbcRecommendBusiness_>(
'/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<API.AjaxResultString_>(
'/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<API.AjaxResultListPbcRecommendBusiness_>(
'/b2b2c/pbcRecommendBusiness/getRecommendBusinessList',
{
method: 'GET',
...(options || {}),
},
);
}
/** 获取没有在推荐列表的商户列表,这里返回的是商户列表 GET /b2b2c/pbcRecommendBusiness/getUnRecommendBusinessList */
export async function getUnRecommendBusinessListUsingGet(options?: { [key: string]: any }) {
return request<API.AjaxResultListPbcBusiness_>(
'/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<API.AjaxResultString_>(
`/b2b2c/pbcRecommendBusiness/moveRecommendBusiness/${param0}`,
{
method: 'GET',
params: {
...queryParams,
},
...(options || {}),
},
);
}

@ -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<API.AjaxResultListPbcUserProductScanRecordVO_>(
`/b2b2c/statical/getUserProductScanRecord/${param0}`,
{
method: 'GET',
params: { ...queryParams },
...(options || {}),
},
);
}
/** 获取运营人员的导入商户数据 POST /b2b2c/statical/operationalBusinessData */
export async function operationalBusinessDataUsingPost(
body: API.PbcOperationalDashboardDTO,

@ -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<API.AjaxResultPbcUsers_>(`/b2b2c/pbcusers/getUserDetailInfo/${param0}`, {
method: 'GET',
params: { ...queryParams },
...(options || {}),
});
}
/** getUserRecordById 使用id查询出用户信息 GET /b2b2c/pbcusers/getuserrecordbyid */
export async function getUserRecordByIdUsingGet(
// 叠加生成的Param类型 (非body参数swagger默认没有生成对象)

@ -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;

Loading…
Cancel
Save