dev-v2
parent
95916ad439
commit
8426090206
@ -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;
|
||||||
@ -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 || {}),
|
||||||
|
});
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue