@@ -162,6 +162,37 @@ export default defineConfig({ | |||
path: '/htmls/API/Order/Add', | |||
component: './htmls/API/Order/Add', | |||
}, | |||
//称重 | |||
{ | |||
path: '/htmls/API/GroupMeal/DiningPlate/Edit', | |||
component: './htmls/API/GroupMeal/DiningPlate/Edit', | |||
}, | |||
{ | |||
path: '/htmls/API/GroupMeal/DiningPlateOrder/CreateWeighOrder', | |||
component: './htmls/API/GroupMeal/DiningPlateOrder/CreateWeighOrder', | |||
}, | |||
{ | |||
path: '/htmls/API/GroupMeal/DiningPlateOrder/AddWeighOrderGoods', | |||
component: './htmls/API/GroupMeal/DiningPlateOrder/AddWeighOrderGoods', | |||
}, | |||
{ | |||
path: '/htmls/API/GroupMeal/DiningPlateOrder/AddWeighOrderDiningPlate', | |||
component: './htmls/API/GroupMeal/DiningPlateOrder/AddWeighOrderDiningPlate', | |||
}, | |||
{ | |||
path: '/htmls/API/GroupMeal/DiningPlateOrder/GetWeighOrderByChipCode', | |||
component: './htmls/API/GroupMeal/DiningPlateOrder/GetWeighOrderByChipCode', | |||
}, | |||
{ | |||
path: '/htmls/API/GroupMeal/DiningPlateOrder/GetWeighOrderByOrderId', | |||
component: './htmls/API/GroupMeal/DiningPlateOrder/GetWeighOrderByOrderId', | |||
}, | |||
{ | |||
path: '/htmls/API/GroupMeal/DiningPlateOrder/GetWeighOrderByOpenId', | |||
component: './htmls/API/GroupMeal/DiningPlateOrder/GetWeighOrderByOpenId', | |||
}, | |||
], | |||
npmClient: "pnpm", | |||
}); |
@@ -506,6 +506,47 @@ const group={ | |||
}, | |||
], | |||
}, | |||
{ | |||
title: '餐盘管理', | |||
key: '/htmls/API/GroupMeal/DiningPlate', | |||
children: [ | |||
{ | |||
title: '编辑', | |||
key: '/htmls/API/GroupMeal/DiningPlate/Edit', | |||
} | |||
], | |||
}, | |||
{ | |||
title: '餐盘订单', | |||
key: '/htmls/API/GroupMeal/DiningPlateOrder', | |||
children: [ | |||
{ | |||
title: '创建订单', | |||
key: '/htmls/API/GroupMeal/DiningPlateOrder/CreateWeighOrder', | |||
}, | |||
{ | |||
title: '新增订单商品', | |||
key: '/htmls/API/GroupMeal/DiningPlateOrder/AddWeighOrderGoods', | |||
}, | |||
{ | |||
title: '根据芯片码查询订单', | |||
key: '/htmls/API/GroupMeal/DiningPlateOrder/GetWeighOrderByChipCode', | |||
}, | |||
{ | |||
title: '根据订单id查询订单', | |||
key: '/htmls/API/GroupMeal/DiningPlateOrder/GetWeighOrderByOrderId', | |||
}, | |||
{ | |||
title: '根据订单OpenId查询订单', | |||
key: '/htmls/API/GroupMeal/DiningPlateOrder/GetWeighOrderByOpenId', | |||
} | |||
], | |||
}, | |||
] | |||
} | |||
const [treeData,settreeData] = useState([]); | |||
@@ -0,0 +1,163 @@ | |||
import React from 'react'; | |||
import { Divider, Typography, Table } from 'antd'; | |||
const { Title, Paragraph, Text, Link } = Typography; | |||
import Field from '@ant-design/pro-field'; | |||
import styles from './index.less'; | |||
import { ProField } from '@ant-design/pro-components'; | |||
import { Descriptions, Radio, Space, Switch } from 'antd'; | |||
import dayjs from 'dayjs'; | |||
import { useState } from 'react'; | |||
const requeststr = '{ "qrCode": "string", "chipCode": "string" }'; | |||
const returnstr = '{ "statusCode": 0, "data": true, "succeeded": true, "errors": "string", "extras": "string", "timestamp": 0 }'; | |||
const publicrequestData = [ | |||
{ attribute: 'key', type: 'string', isrequired: "是", explicate: '平台秘钥' } | |||
]; | |||
const requestData = [ | |||
{ attribute: 'qrCode', type: 'string', isrequired: "是", explicate: '二维码' }, | |||
{ attribute: 'chipCode', type: 'string', isrequired: "是", explicate: '芯片码' }, | |||
]; | |||
const returnData = [ | |||
{ attribute: 'statusCode', type: 'int', isrequired: "是", explicate: '状态码' }, | |||
{ attribute: 'data', type: 'bool', isrequired: "否", explicate: 'bool 是否成功' }, | |||
{ attribute: 'succeeded', type: 'bool', isrequired: "是", explicate: '状态' }, | |||
{ attribute: 'errors', type: 'string', isrequired: "否", explicate: '错误信息' }, | |||
{ attribute: 'extras', type: 'string', isrequired: "否", explicate: '' }, | |||
{ attribute: 'timestamp', type: 'long', isrequired: "是", explicate: '时间戳' }, | |||
]; | |||
const requestColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '必填', | |||
dataIndex: 'isrequired', | |||
key: 'isrequired', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const returnColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const App = () => ( | |||
<> | |||
<Title>餐盘管理-编辑</Title> | |||
<Title level={4}>接口说明</Title> | |||
<Paragraph> | |||
编辑餐盘信息有就修改没有就新增 | |||
</Paragraph> | |||
<Title level={4}>接口英文名</Title> | |||
<Paragraph> | |||
<Text strong>EditDiningPlateByQRCode</Text> | |||
</Paragraph> | |||
<Title level={4}>功能描述</Title> | |||
<Paragraph> | |||
编辑餐盘信息有就修改没有就新增 | |||
</Paragraph> | |||
<Title level={4}>注意事项</Title> | |||
<Paragraph> | |||
1、该接口仅支持POST调用<br /> | |||
</Paragraph> | |||
<Title level={4}>调用方式</Title> | |||
<Paragraph> | |||
<blockquote>{" POST http://localhost:5002/api/ExternalPlatform/DiningPlate/EditDiningPlateByQRCode"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求参数</Title> | |||
HTTP头参数 | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} | |||
columns={requestColumns} dataSource={publicrequestData} /> | |||
</Paragraph> | |||
<Title level={4}>请求参数</Title> | |||
Body | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} columns={requestColumns} | |||
// expandable={{ | |||
// expandedRowRender: (record) => ( | |||
// <Table columns={requestColumns} dataSource={requestInfoData} pagination={false} /> | |||
// ), | |||
// rowExpandable: (record) => record.attribute == 'dataInfo', | |||
// }} | |||
dataSource={requestData} /> | |||
</Paragraph> | |||
<Title level={4}>返回参数</Title> | |||
<Paragraph> | |||
{/* <pre>{"66666666666666666666666"}</pre> */} | |||
<Table pagination={{ position: ["none"] }} columns={returnColumns} dataSource={returnData} /> | |||
</Paragraph> | |||
<Title level={4}>调用示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"请求头添加如下信息"}</blockquote> | |||
<pre>{' "key: a92370b8-a633-47e6-9662-7755b8fe9ee4" '}</pre> | |||
</Paragraph> | |||
<Title level={4}>请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(requeststr), null, 4)}</pre> | |||
</Paragraph> | |||
<Title level={4}>返回数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(returnstr), null, 4)}</pre> | |||
</Paragraph> | |||
</> | |||
); | |||
export default App; |
@@ -0,0 +1,163 @@ | |||
import React from 'react'; | |||
import { Divider, Typography, Table } from 'antd'; | |||
const { Title, Paragraph, Text, Link } = Typography; | |||
import Field from '@ant-design/pro-field'; | |||
import styles from './index.less'; | |||
import { ProField } from '@ant-design/pro-components'; | |||
import { Descriptions, Radio, Space, Switch } from 'antd'; | |||
import dayjs from 'dayjs'; | |||
import { useState } from 'react'; | |||
const requeststr = '{ "orderId": "string", "qrCode": "string" }'; | |||
const returnstr = '{ "statusCode": 0, "data": true, "succeeded": true, "errors": "string", "extras": "string", "timestamp": 0 }'; | |||
const publicrequestData = [ | |||
{ attribute: 'key', type: 'string', isrequired: "是", explicate: '平台秘钥' } | |||
]; | |||
const requestData = [ | |||
{ attribute: 'orderId', type: 'string', isrequired: "是", explicate: '订单号' }, | |||
{ attribute: 'qrCode', type: 'string', isrequired: "是", explicate: '二维码' }, | |||
]; | |||
const returnData = [ | |||
{ attribute: 'statusCode', type: 'int', isrequired: "是", explicate: '状态码' }, | |||
{ attribute: 'data', type: 'string', isrequired: "否", explicate: 'bool值 是否成功' }, | |||
{ attribute: 'succeeded', type: 'bool', isrequired: "是", explicate: '状态' }, | |||
{ attribute: 'errors', type: 'string', isrequired: "否", explicate: '错误信息' }, | |||
{ attribute: 'extras', type: 'string', isrequired: "否", explicate: '' }, | |||
{ attribute: 'timestamp', type: 'long', isrequired: "是", explicate: '时间戳' }, | |||
]; | |||
const requestColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '必填', | |||
dataIndex: 'isrequired', | |||
key: 'isrequired', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const returnColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const App = () => ( | |||
<> | |||
<Title>称重订单-新增餐盘</Title> | |||
<Title level={4}>接口说明</Title> | |||
<Paragraph> | |||
新增餐盘 | |||
</Paragraph> | |||
<Title level={4}>接口英文名</Title> | |||
<Paragraph> | |||
<Text strong>AddWeighOrderDiningPlate</Text> | |||
</Paragraph> | |||
<Title level={4}>功能描述</Title> | |||
<Paragraph> | |||
新增商品 | |||
</Paragraph> | |||
<Title level={4}>注意事项</Title> | |||
<Paragraph> | |||
1、该接口仅支持POST调用<br /> | |||
</Paragraph> | |||
<Title level={4}>调用方式</Title> | |||
<Paragraph> | |||
<blockquote>{" POST http://localhost:5003/api/ExternalPlatform/WeighOrder/AddWeighOrderDiningPlate"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求参数</Title> | |||
HTTP头参数 | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} | |||
columns={requestColumns} dataSource={publicrequestData} /> | |||
</Paragraph> | |||
<Title level={4}>请求参数</Title> | |||
Body | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} columns={requestColumns} | |||
// expandable={{ | |||
// expandedRowRender: (record) => ( | |||
// <Table columns={requestColumns} dataSource={requestInfoData} pagination={false} /> | |||
// ), | |||
// rowExpandable: (record) => record.attribute == 'dataInfo', | |||
// }} | |||
dataSource={requestData} /> | |||
</Paragraph> | |||
<Title level={4}>返回参数</Title> | |||
<Paragraph> | |||
{/* <pre>{"66666666666666666666666"}</pre> */} | |||
<Table pagination={{ position: ["none"] }} columns={returnColumns} dataSource={returnData} /> | |||
</Paragraph> | |||
<Title level={4}>调用示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"请求头添加如下信息"}</blockquote> | |||
<pre>{' "key: a92370b8-a633-47e6-9662-7755b8fe9ee4" '}</pre> | |||
</Paragraph> | |||
<Title level={4}>请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(requeststr), null, 4)}</pre> | |||
</Paragraph> | |||
<Title level={4}>返回数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(returnstr), null, 4)}</pre> | |||
</Paragraph> | |||
</> | |||
); | |||
export default App; |
@@ -0,0 +1,166 @@ | |||
import React from 'react'; | |||
import { Divider, Typography, Table } from 'antd'; | |||
const { Title, Paragraph, Text, Link } = Typography; | |||
import Field from '@ant-design/pro-field'; | |||
import styles from './index.less'; | |||
import { ProField } from '@ant-design/pro-components'; | |||
import { Descriptions, Radio, Space, Switch } from 'antd'; | |||
import dayjs from 'dayjs'; | |||
import { useState } from 'react'; | |||
const requeststr = '{ "data": [ { "goodsId": "string", "goodsName": "string", "goodsWeight": 0, "chipCode": "string", "orderId": "string" } ] }'; | |||
const returnstr = '{ "statusCode": 0, "data": true, "succeeded": true, "errors": "string", "extras": "string", "timestamp": 0 }'; | |||
const publicrequestData = [ | |||
{ attribute: 'key', type: 'string', isrequired: "是", explicate: '平台秘钥' } | |||
]; | |||
const requestData = [ | |||
{ attribute: 'goodsId', type: 'string', isrequired: "是", explicate: '商品id' }, | |||
{ attribute: 'goodsName', type: 'string', isrequired: "是", explicate: '商品名称' }, | |||
{ attribute: 'goodsWeight', type: 'double', isrequired: "是", explicate: '商品重量' }, | |||
{ attribute: 'chipCode', type: 'string', isrequired: "是", explicate: '芯片码' }, | |||
{ attribute: 'orderId', type: 'string', isrequired: "是", explicate: '订单号' }, | |||
]; | |||
const returnData = [ | |||
{ attribute: 'statusCode', type: 'int', isrequired: "是", explicate: '状态码' }, | |||
{ attribute: 'data', type: 'string', isrequired: "否", explicate: 'bool值 是否成功' }, | |||
{ attribute: 'succeeded', type: 'bool', isrequired: "是", explicate: '状态' }, | |||
{ attribute: 'errors', type: 'string', isrequired: "否", explicate: '错误信息' }, | |||
{ attribute: 'extras', type: 'string', isrequired: "否", explicate: '' }, | |||
{ attribute: 'timestamp', type: 'long', isrequired: "是", explicate: '时间戳' }, | |||
]; | |||
const requestColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '必填', | |||
dataIndex: 'isrequired', | |||
key: 'isrequired', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const returnColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const App = () => ( | |||
<> | |||
<Title>称重订单-新增商品</Title> | |||
<Title level={4}>接口说明</Title> | |||
<Paragraph> | |||
新增商品 | |||
</Paragraph> | |||
<Title level={4}>接口英文名</Title> | |||
<Paragraph> | |||
<Text strong>AddWeighOrderGoods</Text> | |||
</Paragraph> | |||
<Title level={4}>功能描述</Title> | |||
<Paragraph> | |||
新增商品 | |||
</Paragraph> | |||
<Title level={4}>注意事项</Title> | |||
<Paragraph> | |||
1、该接口仅支持POST调用<br /> | |||
</Paragraph> | |||
<Title level={4}>调用方式</Title> | |||
<Paragraph> | |||
<blockquote>{" POST http://localhost:5003/api/ExternalPlatform/WeighOrder/AddWeighOrderGoods"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求参数</Title> | |||
HTTP头参数 | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} | |||
columns={requestColumns} dataSource={publicrequestData} /> | |||
</Paragraph> | |||
<Title level={4}>请求参数</Title> | |||
Body | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} columns={requestColumns} | |||
// expandable={{ | |||
// expandedRowRender: (record) => ( | |||
// <Table columns={requestColumns} dataSource={requestInfoData} pagination={false} /> | |||
// ), | |||
// rowExpandable: (record) => record.attribute == 'dataInfo', | |||
// }} | |||
dataSource={requestData} /> | |||
</Paragraph> | |||
<Title level={4}>返回参数</Title> | |||
<Paragraph> | |||
{/* <pre>{"66666666666666666666666"}</pre> */} | |||
<Table pagination={{ position: ["none"] }} columns={returnColumns} dataSource={returnData} /> | |||
</Paragraph> | |||
<Title level={4}>调用示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"请求头添加如下信息"}</blockquote> | |||
<pre>{' "key: a92370b8-a633-47e6-9662-7755b8fe9ee4" '}</pre> | |||
</Paragraph> | |||
<Title level={4}>请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(requeststr), null, 4)}</pre> | |||
</Paragraph> | |||
<Title level={4}>返回数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(returnstr), null, 4)}</pre> | |||
</Paragraph> | |||
</> | |||
); | |||
export default App; |
@@ -0,0 +1,163 @@ | |||
import React from 'react'; | |||
import { Divider, Typography, Table } from 'antd'; | |||
const { Title, Paragraph, Text, Link } = Typography; | |||
import Field from '@ant-design/pro-field'; | |||
import styles from './index.less'; | |||
import { ProField } from '@ant-design/pro-components'; | |||
import { Descriptions, Radio, Space, Switch } from 'antd'; | |||
import dayjs from 'dayjs'; | |||
import { useState } from 'react'; | |||
const requeststr = '{ "createId": "string", "qrCode": "string" }'; | |||
const returnstr = '{ "statusCode": 0, "data": { "id": "string", "groupId": "string", "orderNumber": "string", "totalAmount": 0, "subject": "string", "sceneId": "string", "states": 0, "payStates": 0, "createAt": "2024-03-15T02:23:30.164Z", "createId": "string", "goodsInfo": [ { "id": "string", "groupId": "string", "orderId": "string", "diningPlateId": "string", "goodsId": "string", "goodsName": "string", "totalAmount": 0, "goodsWeight": 0, "goodsAttribute": [ { "attributeId": "string", "attributeName": "string" } ] } ], "diningPlateInfo": [ { "orderId": "string", "diningPlateId": "string", "qrCode": "string", "chipCode": "string", "goodsInfo": [ { "id": "string", "groupId": "string", "orderId": "string", "diningPlateId": "string", "goodsId": "string", "goodsName": "string", "totalAmount": 0, "goodsWeight": 0, "goodsAttribute": [ { "attributeId": "string", "attributeName": "string" } ] } ] } ], "memberInfo": { "isMember": true, "name": "string" } }, "succeeded": true, "errors": "string", "extras": "string", "timestamp": 0 }'; | |||
const publicrequestData = [ | |||
{ attribute: 'key', type: 'string', isrequired: "是", explicate: '平台秘钥' } | |||
]; | |||
const requestData = [ | |||
{ attribute: 'createId', type: 'string', isrequired: "是", explicate: '创建人' }, | |||
{ attribute: 'qrCode', type: 'string', isrequired: "是", explicate: '二维码' }, | |||
]; | |||
const returnData = [ | |||
{ attribute: 'statusCode', type: 'int', isrequired: "是", explicate: '状态码' }, | |||
{ attribute: 'data', type: 'string', isrequired: "否", explicate: '订单具体信息' }, | |||
{ attribute: 'succeeded', type: 'bool', isrequired: "是", explicate: '状态' }, | |||
{ attribute: 'errors', type: 'string', isrequired: "否", explicate: '错误信息' }, | |||
{ attribute: 'extras', type: 'string', isrequired: "否", explicate: '' }, | |||
{ attribute: 'timestamp', type: 'long', isrequired: "是", explicate: '时间戳' }, | |||
]; | |||
const requestColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '必填', | |||
dataIndex: 'isrequired', | |||
key: 'isrequired', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const returnColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const App = () => ( | |||
<> | |||
<Title>称重订单-创建</Title> | |||
<Title level={4}>接口说明</Title> | |||
<Paragraph> | |||
创建订单 | |||
</Paragraph> | |||
<Title level={4}>接口英文名</Title> | |||
<Paragraph> | |||
<Text strong>CreateWeighOrder</Text> | |||
</Paragraph> | |||
<Title level={4}>功能描述</Title> | |||
<Paragraph> | |||
创建订单 | |||
</Paragraph> | |||
<Title level={4}>注意事项</Title> | |||
<Paragraph> | |||
1、该接口仅支持POST调用<br /> | |||
</Paragraph> | |||
<Title level={4}>调用方式</Title> | |||
<Paragraph> | |||
<blockquote>{" POST http://localhost:5003/api/ExternalPlatform/WeighOrder/CreateWeighOrder"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求参数</Title> | |||
HTTP头参数 | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} | |||
columns={requestColumns} dataSource={publicrequestData} /> | |||
</Paragraph> | |||
<Title level={4}>请求参数</Title> | |||
Body | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} columns={requestColumns} | |||
// expandable={{ | |||
// expandedRowRender: (record) => ( | |||
// <Table columns={requestColumns} dataSource={requestInfoData} pagination={false} /> | |||
// ), | |||
// rowExpandable: (record) => record.attribute == 'dataInfo', | |||
// }} | |||
dataSource={requestData} /> | |||
</Paragraph> | |||
<Title level={4}>返回参数</Title> | |||
<Paragraph> | |||
{/* <pre>{"66666666666666666666666"}</pre> */} | |||
<Table pagination={{ position: ["none"] }} columns={returnColumns} dataSource={returnData} /> | |||
</Paragraph> | |||
<Title level={4}>调用示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"请求头添加如下信息"}</blockquote> | |||
<pre>{' "key: a92370b8-a633-47e6-9662-7755b8fe9ee4" '}</pre> | |||
</Paragraph> | |||
<Title level={4}>请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(requeststr), null, 4)}</pre> | |||
</Paragraph> | |||
<Title level={4}>返回数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(returnstr), null, 4)}</pre> | |||
</Paragraph> | |||
</> | |||
); | |||
export default App; |
@@ -0,0 +1,163 @@ | |||
import React from 'react'; | |||
import { Divider, Typography, Table } from 'antd'; | |||
const { Title, Paragraph, Text, Link } = Typography; | |||
import Field from '@ant-design/pro-field'; | |||
import styles from './index.less'; | |||
import { ProField } from '@ant-design/pro-components'; | |||
import { Descriptions, Radio, Space, Switch } from 'antd'; | |||
import dayjs from 'dayjs'; | |||
import { useState } from 'react'; | |||
const requeststr = '{ "orderId": "string" }'; | |||
const returnstr = '{ "statusCode": 0, "data": { "id": "string", "groupId": "string", "orderNumber": "string", "totalAmount": 0, "subject": "string", "sceneId": "string", "states": 0, "payStates": 0, "createAt": "2024-03-15T02:23:30.164Z", "createId": "string", "goodsInfo": [ { "id": "string", "groupId": "string", "orderId": "string", "diningPlateId": "string", "goodsId": "string", "goodsName": "string", "totalAmount": 0, "goodsWeight": 0, "goodsAttribute": [ { "attributeId": "string", "attributeName": "string" } ] } ], "diningPlateInfo": [ { "orderId": "string", "diningPlateId": "string", "qrCode": "string", "chipCode": "string", "goodsInfo": [ { "id": "string", "groupId": "string", "orderId": "string", "diningPlateId": "string", "goodsId": "string", "goodsName": "string", "totalAmount": 0, "goodsWeight": 0, "goodsAttribute": [ { "attributeId": "string", "attributeName": "string" } ] } ] } ], "memberInfo": { "isMember": true, "name": "string" } }, "succeeded": true, "errors": "string", "extras": "string", "timestamp": 0 }'; | |||
const publicrequestData = [ | |||
{ attribute: 'key', type: 'string', isrequired: "是", explicate: '平台秘钥' } | |||
]; | |||
const requestData = [ | |||
{ attribute: 'createId', type: 'string', isrequired: "是", explicate: '创建人' }, | |||
{ attribute: 'qrCode', type: 'string', isrequired: "是", explicate: '二维码' }, | |||
]; | |||
const returnData = [ | |||
{ attribute: 'statusCode', type: 'int', isrequired: "是", explicate: '状态码' }, | |||
{ attribute: 'data', type: 'string', isrequired: "否", explicate: '订单具体信息' }, | |||
{ attribute: 'succeeded', type: 'bool', isrequired: "是", explicate: '状态' }, | |||
{ attribute: 'errors', type: 'string', isrequired: "否", explicate: '错误信息' }, | |||
{ attribute: 'extras', type: 'string', isrequired: "否", explicate: '' }, | |||
{ attribute: 'timestamp', type: 'long', isrequired: "是", explicate: '时间戳' }, | |||
]; | |||
const requestColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '必填', | |||
dataIndex: 'isrequired', | |||
key: 'isrequired', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const returnColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const App = () => ( | |||
<> | |||
<Title>称重订单-根据订单芯片码获取订单信息</Title> | |||
<Title level={4}>接口说明</Title> | |||
<Paragraph> | |||
根据订单芯片码获取订单信息 | |||
</Paragraph> | |||
<Title level={4}>接口英文名</Title> | |||
<Paragraph> | |||
<Text strong>GetWeighOrderByChipCode</Text> | |||
</Paragraph> | |||
<Title level={4}>功能描述</Title> | |||
<Paragraph> | |||
根据订单芯片码获取订单信息 | |||
</Paragraph> | |||
<Title level={4}>注意事项</Title> | |||
<Paragraph> | |||
1、该接口仅支持POST调用<br /> | |||
</Paragraph> | |||
<Title level={4}>调用方式</Title> | |||
<Paragraph> | |||
<blockquote>{" POST http://localhost:5003/api/ExternalPlatform/WeighOrder/GetWeighOrderByChipCode"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求参数</Title> | |||
HTTP头参数 | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} | |||
columns={requestColumns} dataSource={publicrequestData} /> | |||
</Paragraph> | |||
<Title level={4}>请求参数</Title> | |||
Body | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} columns={requestColumns} | |||
// expandable={{ | |||
// expandedRowRender: (record) => ( | |||
// <Table columns={requestColumns} dataSource={requestInfoData} pagination={false} /> | |||
// ), | |||
// rowExpandable: (record) => record.attribute == 'dataInfo', | |||
// }} | |||
dataSource={requestData} /> | |||
</Paragraph> | |||
<Title level={4}>返回参数</Title> | |||
<Paragraph> | |||
{/* <pre>{"66666666666666666666666"}</pre> */} | |||
<Table pagination={{ position: ["none"] }} columns={returnColumns} dataSource={returnData} /> | |||
</Paragraph> | |||
<Title level={4}>调用示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"请求头添加如下信息"}</blockquote> | |||
<pre>{' "key: a92370b8-a633-47e6-9662-7755b8fe9ee4" '}</pre> | |||
</Paragraph> | |||
<Title level={4}>请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(requeststr), null, 4)}</pre> | |||
</Paragraph> | |||
<Title level={4}>返回数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(returnstr), null, 4)}</pre> | |||
</Paragraph> | |||
</> | |||
); | |||
export default App; |
@@ -0,0 +1,163 @@ | |||
import React from 'react'; | |||
import { Divider, Typography, Table } from 'antd'; | |||
const { Title, Paragraph, Text, Link } = Typography; | |||
import Field from '@ant-design/pro-field'; | |||
import styles from './index.less'; | |||
import { ProField } from '@ant-design/pro-components'; | |||
import { Descriptions, Radio, Space, Switch } from 'antd'; | |||
import dayjs from 'dayjs'; | |||
import { useState } from 'react'; | |||
const requeststr = '{ "openId": "string" }'; | |||
const returnstr = '{ "statusCode": 0, "data": { "id": "string", "groupId": "string", "orderNumber": "string", "totalAmount": 0, "subject": "string", "sceneId": "string", "states": 0, "payStates": 0, "createAt": "2024-03-15T02:23:30.164Z", "createId": "string", "goodsInfo": [ { "id": "string", "groupId": "string", "orderId": "string", "diningPlateId": "string", "goodsId": "string", "goodsName": "string", "totalAmount": 0, "goodsWeight": 0, "goodsAttribute": [ { "attributeId": "string", "attributeName": "string" } ] } ], "diningPlateInfo": [ { "orderId": "string", "diningPlateId": "string", "qrCode": "string", "chipCode": "string", "goodsInfo": [ { "id": "string", "groupId": "string", "orderId": "string", "diningPlateId": "string", "goodsId": "string", "goodsName": "string", "totalAmount": 0, "goodsWeight": 0, "goodsAttribute": [ { "attributeId": "string", "attributeName": "string" } ] } ] } ], "memberInfo": { "isMember": true, "name": "string" } }, "succeeded": true, "errors": "string", "extras": "string", "timestamp": 0 }'; | |||
const publicrequestData = [ | |||
{ attribute: 'key', type: 'string', isrequired: "是", explicate: '平台秘钥' } | |||
]; | |||
const requestData = [ | |||
{ attribute: 'createId', type: 'string', isrequired: "是", explicate: '创建人' }, | |||
{ attribute: 'qrCode', type: 'string', isrequired: "是", explicate: '二维码' }, | |||
]; | |||
const returnData = [ | |||
{ attribute: 'statusCode', type: 'int', isrequired: "是", explicate: '状态码' }, | |||
{ attribute: 'data', type: 'string', isrequired: "否", explicate: '订单具体信息' }, | |||
{ attribute: 'succeeded', type: 'bool', isrequired: "是", explicate: '状态' }, | |||
{ attribute: 'errors', type: 'string', isrequired: "否", explicate: '错误信息' }, | |||
{ attribute: 'extras', type: 'string', isrequired: "否", explicate: '' }, | |||
{ attribute: 'timestamp', type: 'long', isrequired: "是", explicate: '时间戳' }, | |||
]; | |||
const requestColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '必填', | |||
dataIndex: 'isrequired', | |||
key: 'isrequired', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const returnColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const App = () => ( | |||
<> | |||
<Title>称重订单-根据订单openId获取订单信息</Title> | |||
<Title level={4}>接口说明</Title> | |||
<Paragraph> | |||
根据订单openId获取订单信息 | |||
</Paragraph> | |||
<Title level={4}>接口英文名</Title> | |||
<Paragraph> | |||
<Text strong>GetWeighOrderByOpenId</Text> | |||
</Paragraph> | |||
<Title level={4}>功能描述</Title> | |||
<Paragraph> | |||
根据订单ID获取订单信息 | |||
</Paragraph> | |||
<Title level={4}>注意事项</Title> | |||
<Paragraph> | |||
1、该接口仅支持POST调用<br /> | |||
</Paragraph> | |||
<Title level={4}>调用方式</Title> | |||
<Paragraph> | |||
<blockquote>{" POST http://localhost:5003/api/ExternalPlatform/WeighOrder/GetWeighOrderByOpenId"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求参数</Title> | |||
HTTP头参数 | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} | |||
columns={requestColumns} dataSource={publicrequestData} /> | |||
</Paragraph> | |||
<Title level={4}>请求参数</Title> | |||
Body | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} columns={requestColumns} | |||
// expandable={{ | |||
// expandedRowRender: (record) => ( | |||
// <Table columns={requestColumns} dataSource={requestInfoData} pagination={false} /> | |||
// ), | |||
// rowExpandable: (record) => record.attribute == 'dataInfo', | |||
// }} | |||
dataSource={requestData} /> | |||
</Paragraph> | |||
<Title level={4}>返回参数</Title> | |||
<Paragraph> | |||
{/* <pre>{"66666666666666666666666"}</pre> */} | |||
<Table pagination={{ position: ["none"] }} columns={returnColumns} dataSource={returnData} /> | |||
</Paragraph> | |||
<Title level={4}>调用示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"请求头添加如下信息"}</blockquote> | |||
<pre>{' "key: a92370b8-a633-47e6-9662-7755b8fe9ee4" '}</pre> | |||
</Paragraph> | |||
<Title level={4}>请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(requeststr), null, 4)}</pre> | |||
</Paragraph> | |||
<Title level={4}>返回数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(returnstr), null, 4)}</pre> | |||
</Paragraph> | |||
</> | |||
); | |||
export default App; |
@@ -0,0 +1,163 @@ | |||
import React from 'react'; | |||
import { Divider, Typography, Table } from 'antd'; | |||
const { Title, Paragraph, Text, Link } = Typography; | |||
import Field from '@ant-design/pro-field'; | |||
import styles from './index.less'; | |||
import { ProField } from '@ant-design/pro-components'; | |||
import { Descriptions, Radio, Space, Switch } from 'antd'; | |||
import dayjs from 'dayjs'; | |||
import { useState } from 'react'; | |||
const requeststr = '{ "orderId": "string" }'; | |||
const returnstr = '{ "statusCode": 0, "data": { "id": "string", "groupId": "string", "orderNumber": "string", "totalAmount": 0, "subject": "string", "sceneId": "string", "states": 0, "payStates": 0, "createAt": "2024-03-15T02:23:30.164Z", "createId": "string", "goodsInfo": [ { "id": "string", "groupId": "string", "orderId": "string", "diningPlateId": "string", "goodsId": "string", "goodsName": "string", "totalAmount": 0, "goodsWeight": 0, "goodsAttribute": [ { "attributeId": "string", "attributeName": "string" } ] } ], "diningPlateInfo": [ { "orderId": "string", "diningPlateId": "string", "qrCode": "string", "chipCode": "string", "goodsInfo": [ { "id": "string", "groupId": "string", "orderId": "string", "diningPlateId": "string", "goodsId": "string", "goodsName": "string", "totalAmount": 0, "goodsWeight": 0, "goodsAttribute": [ { "attributeId": "string", "attributeName": "string" } ] } ] } ], "memberInfo": { "isMember": true, "name": "string" } }, "succeeded": true, "errors": "string", "extras": "string", "timestamp": 0 }'; | |||
const publicrequestData = [ | |||
{ attribute: 'key', type: 'string', isrequired: "是", explicate: '平台秘钥' } | |||
]; | |||
const requestData = [ | |||
{ attribute: 'createId', type: 'string', isrequired: "是", explicate: '创建人' }, | |||
{ attribute: 'qrCode', type: 'string', isrequired: "是", explicate: '二维码' }, | |||
]; | |||
const returnData = [ | |||
{ attribute: 'statusCode', type: 'int', isrequired: "是", explicate: '状态码' }, | |||
{ attribute: 'data', type: 'string', isrequired: "否", explicate: '订单具体信息' }, | |||
{ attribute: 'succeeded', type: 'bool', isrequired: "是", explicate: '状态' }, | |||
{ attribute: 'errors', type: 'string', isrequired: "否", explicate: '错误信息' }, | |||
{ attribute: 'extras', type: 'string', isrequired: "否", explicate: '' }, | |||
{ attribute: 'timestamp', type: 'long', isrequired: "是", explicate: '时间戳' }, | |||
]; | |||
const requestColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '必填', | |||
dataIndex: 'isrequired', | |||
key: 'isrequired', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const returnColumns = [ | |||
{ | |||
title: '属性', | |||
dataIndex: 'attribute', | |||
key: 'attribute', | |||
}, | |||
{ | |||
title: '类型', | |||
dataIndex: 'type', | |||
key: 'type', | |||
}, | |||
{ | |||
title: '说明', | |||
dataIndex: 'explicate', | |||
key: 'explicate', | |||
} | |||
]; | |||
const App = () => ( | |||
<> | |||
<Title>称重订单-根据订单ID获取订单信息</Title> | |||
<Title level={4}>接口说明</Title> | |||
<Paragraph> | |||
根据订单ID获取订单信息 | |||
</Paragraph> | |||
<Title level={4}>接口英文名</Title> | |||
<Paragraph> | |||
<Text strong>GetWeighOrderByOrderId</Text> | |||
</Paragraph> | |||
<Title level={4}>功能描述</Title> | |||
<Paragraph> | |||
根据订单ID获取订单信息 | |||
</Paragraph> | |||
<Title level={4}>注意事项</Title> | |||
<Paragraph> | |||
1、该接口仅支持POST调用<br /> | |||
</Paragraph> | |||
<Title level={4}>调用方式</Title> | |||
<Paragraph> | |||
<blockquote>{" POST http://localhost:5003/api/ExternalPlatform/WeighOrder/GetWeighOrderByOrderId"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求参数</Title> | |||
HTTP头参数 | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} | |||
columns={requestColumns} dataSource={publicrequestData} /> | |||
</Paragraph> | |||
<Title level={4}>请求参数</Title> | |||
Body | |||
<Paragraph> | |||
<Table pagination={{ position: ["none"] }} columns={requestColumns} | |||
// expandable={{ | |||
// expandedRowRender: (record) => ( | |||
// <Table columns={requestColumns} dataSource={requestInfoData} pagination={false} /> | |||
// ), | |||
// rowExpandable: (record) => record.attribute == 'dataInfo', | |||
// }} | |||
dataSource={requestData} /> | |||
</Paragraph> | |||
<Title level={4}>返回参数</Title> | |||
<Paragraph> | |||
{/* <pre>{"66666666666666666666666"}</pre> */} | |||
<Table pagination={{ position: ["none"] }} columns={returnColumns} dataSource={returnData} /> | |||
</Paragraph> | |||
<Title level={4}>调用示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
</Paragraph> | |||
<Title level={4}>公共请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"请求头添加如下信息"}</blockquote> | |||
<pre>{' "key: a92370b8-a633-47e6-9662-7755b8fe9ee4" '}</pre> | |||
</Paragraph> | |||
<Title level={4}>请求数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(requeststr), null, 4)}</pre> | |||
</Paragraph> | |||
<Title level={4}>返回数据示例</Title> | |||
<Paragraph> | |||
<blockquote>{"示例说明: post请求"}</blockquote> | |||
<pre>{JSON.stringify(JSON.parse(returnstr), null, 4)}</pre> | |||
</Paragraph> | |||
</> | |||
); | |||
export default App; |