From f33f597a9ae1fa513e43645a99e1ebb1660d3301 Mon Sep 17 00:00:00 2001 From: wuxichen <17301714657@163.com> Date: Tue, 9 Sep 2025 16:58:30 +0800 Subject: [PATCH] feat: login --- config/config.ts | 49 +- config/defaultSettings.ts | 16 +- config/oneapi.json | 593 -- config/oneapi/orderapi.json | 0 config/oneapi/prodapi.json | 6627 +++++++++++++++++ config/proxy.ts | 32 +- config/routes.ts | 54 +- package.json | 12 +- pnpm-lock.yaml | 39 +- src/access.ts | 6 +- src/app.tsx | 58 +- .../RightContent/AvatarDropdown.tsx | 68 +- src/hooks/web/useCache.ts | 39 + .../table-list/components/CreateForm.tsx | 146 +- .../table-list/components/UpdateForm.tsx | 476 +- src/pages/table-list/index.tsx | 634 +- .../login/__snapshots__/login.test.tsx.snap | 1088 --- src/pages/user/login/index.tsx | 632 +- src/pages/user/login/login.test.tsx | 102 - src/services/ant-design-pro/api.ts | 94 - src/services/ant-design-pro/login.ts | 21 - src/services/ant-design-pro/typings.d.ts | 101 - src/services/login/index.ts | 153 + src/services/login/oauth2/index.ts | 41 + src/services/login/types.ts | 38 + src/services/prodApi/category.ts | 51 + .../{ant-design-pro => prodApi}/index.ts | 8 +- src/services/prodApi/product.ts | 601 ++ src/services/prodApi/typings.d.ts | 2086 ++++++ src/services/swagger/index.ts | 12 - src/services/swagger/pet.ts | 153 - src/services/swagger/store.ts | 48 - src/services/swagger/typings.d.ts | 112 - src/services/swagger/user.ts | 100 - src/services/system/index.ts | 0 src/services/system/permission/index.ts | 119 + src/services/system/typings.d.ts | 0 src/types/global.d.ts | 78 + src/utils/auth.ts | 72 + src/utils/jsencrypt.ts | 31 + tsconfig.json | 2 +- 41 files changed, 10998 insertions(+), 3594 deletions(-) delete mode 100644 config/oneapi.json create mode 100644 config/oneapi/orderapi.json create mode 100644 config/oneapi/prodapi.json create mode 100644 src/hooks/web/useCache.ts delete mode 100644 src/pages/user/login/__snapshots__/login.test.tsx.snap delete mode 100644 src/pages/user/login/login.test.tsx delete mode 100644 src/services/ant-design-pro/api.ts delete mode 100644 src/services/ant-design-pro/login.ts delete mode 100644 src/services/ant-design-pro/typings.d.ts create mode 100644 src/services/login/index.ts create mode 100644 src/services/login/oauth2/index.ts create mode 100644 src/services/login/types.ts create mode 100644 src/services/prodApi/category.ts rename src/services/{ant-design-pro => prodApi}/index.ts (50%) create mode 100644 src/services/prodApi/product.ts create mode 100644 src/services/prodApi/typings.d.ts delete mode 100644 src/services/swagger/index.ts delete mode 100644 src/services/swagger/pet.ts delete mode 100644 src/services/swagger/store.ts delete mode 100644 src/services/swagger/typings.d.ts delete mode 100644 src/services/swagger/user.ts create mode 100644 src/services/system/index.ts create mode 100644 src/services/system/permission/index.ts create mode 100644 src/services/system/typings.d.ts create mode 100644 src/types/global.d.ts create mode 100644 src/utils/auth.ts create mode 100644 src/utils/jsencrypt.ts diff --git a/config/config.ts b/config/config.ts index 9b714f0..b68bf91 100644 --- a/config/config.ts +++ b/config/config.ts @@ -1,20 +1,20 @@ // https://umijs.org/config/ -import { join } from 'node:path'; -import { defineConfig } from '@umijs/max'; -import defaultSettings from './defaultSettings'; -import proxy from './proxy'; +import { join } from "node:path"; +import { defineConfig } from "@umijs/max"; +import defaultSettings from "./defaultSettings"; +import proxy from "./proxy"; -import routes from './routes'; +import routes from "./routes"; -const { UMI_ENV = 'dev' } = process.env; +const { UMI_ENV = "dev" } = process.env; /** * @name 使用公共路径 * @description 部署时的路径,如果部署在非根目录下,需要配置这个变量 * @doc https://umijs.org/docs/api/config#publicpath */ -const PUBLIC_PATH: string = '/'; +const PUBLIC_PATH: string = "/"; export default defineConfig({ /** @@ -83,7 +83,7 @@ export default defineConfig({ * @name layout 插件 * @doc https://umijs.org/docs/max/layout-menu */ - title: 'Ant Design Pro', + title: "Ant Design Pro", layout: { locale: true, ...defaultSettings, @@ -94,8 +94,8 @@ export default defineConfig({ * @doc https://umijs.org/docs/max/moment2dayjs */ moment2dayjs: { - preset: 'antd', - plugins: ['duration'], + preset: "antd", + plugins: ["duration"], }, /** * @name 国际化插件 @@ -103,7 +103,7 @@ export default defineConfig({ */ locale: { // default zh-CN - default: 'zh-CN', + default: "zh-CN", antd: true, // default true, when it is true, will use `navigator.language` overwrite default baseNavigator: true, @@ -119,7 +119,7 @@ export default defineConfig({ theme: { cssVar: true, token: { - fontFamily: 'AlibabaSans, sans-serif', + fontFamily: "AlibabaSans, sans-serif", }, }, }, @@ -142,10 +142,10 @@ export default defineConfig({ */ headScripts: [ // 解决首次加载时白屏的问题 - { src: join(PUBLIC_PATH, 'scripts/loading.js'), async: true }, + { src: join(PUBLIC_PATH, "scripts/loading.js"), async: true }, ], //================ pro 插件配置 ================= - presets: ['umi-presets-pro'], + presets: ["umi-presets-pro"], /** * @name openAPI 插件的配置 * @description 基于 openapi 的规范生成serve 和mock,能减少很多样板代码 @@ -154,20 +154,19 @@ export default defineConfig({ openAPI: [ { requestLibPath: "import { request } from '@umijs/max'", - // 或者使用在线的版本 - // schemaPath: "https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json" - schemaPath: join(__dirname, 'oneapi.json'), + + schemaPath: join(__dirname, "oneapi/prodapi.json"), mock: false, + projectName: "prodApi", }, - { - requestLibPath: "import { request } from '@umijs/max'", - schemaPath: - 'https://gw.alipayobjects.com/os/antfincdn/CA1dOm%2631B/openapi.json', - projectName: 'swagger', - }, + // {schemaPath: "./docs/apifox-api.json", + // requestLibPath: "import { request } from '@umijs/max'", + // schemaPath: join(__dirname, "oneapi.json"), + // projectName: "login", + // }, ], mock: { - include: ['mock/**/*', 'src/pages/**/_mock.ts'], + include: ["mock/**/*", "src/pages/**/_mock.ts"], }, /** * @name 是否开启 mako @@ -179,6 +178,6 @@ export default defineConfig({ requestRecord: {}, exportStatic: {}, define: { - 'process.env.CI': process.env.CI, + "process.env.CI": process.env.CI, }, }); diff --git a/config/defaultSettings.ts b/config/defaultSettings.ts index 6710cad..04f5d81 100644 --- a/config/defaultSettings.ts +++ b/config/defaultSettings.ts @@ -1,4 +1,4 @@ -import type { ProLayoutProps } from '@ant-design/pro-components'; +import type { ProLayoutProps } from "@ant-design/pro-components"; /** * @name @@ -7,18 +7,18 @@ const Settings: ProLayoutProps & { pwa?: boolean; logo?: string; } = { - navTheme: 'light', + navTheme: "light", // 拂晓蓝 - colorPrimary: '#1890ff', - layout: 'mix', - contentWidth: 'Fluid', + colorPrimary: "#1890ff", + layout: "mix", + contentWidth: "Fluid", fixedHeader: false, fixSiderbar: true, colorWeak: false, - title: 'Ant Design Pro', + title: "tashow - 管理后台", pwa: true, - logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', - iconfontUrl: '', + logo: "https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg", + iconfontUrl: "", token: { // 参见ts声明,demo 见文档,通过token 修改样式 //https://procomponents.ant.design/components/layout#%E9%80%9A%E8%BF%87-token-%E4%BF%AE%E6%94%B9%E6%A0%B7%E5%BC%8F diff --git a/config/oneapi.json b/config/oneapi.json deleted file mode 100644 index c77d988..0000000 --- a/config/oneapi.json +++ /dev/null @@ -1,593 +0,0 @@ -{ - "openapi": "3.0.1", - "info": { - "title": "Ant Design Pro", - "version": "1.0.0" - }, - "servers": [ - { - "url": "http://localhost:8000/" - }, - { - "url": "https://localhost:8000/" - } - ], - "paths": { - "/api/currentUser": { - "get": { - "tags": ["api"], - "description": "获取当前的用户", - "operationId": "currentUser", - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CurrentUser" - } - } - } - }, - "401": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "x-swagger-router-controller": "api" - }, - "/api/login/captcha": { - "post": { - "description": "发送验证码", - "operationId": "getFakeCaptcha", - "tags": ["login"], - "parameters": [ - { - "name": "phone", - "in": "query", - "description": "手机号", - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/FakeCaptcha" - } - } - } - } - } - } - }, - "/api/login/outLogin": { - "post": { - "description": "登录接口", - "operationId": "outLogin", - "tags": ["login"], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "401": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "x-swagger-router-controller": "api" - }, - "/api/login/account": { - "post": { - "tags": ["login"], - "description": "登录接口", - "operationId": "login", - "requestBody": { - "description": "登录系统", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/LoginParams" - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/LoginResult" - } - } - } - }, - "401": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - }, - "x-codegen-request-body-name": "body" - }, - "x-swagger-router-controller": "api" - }, - "/api/notices": { - "summary": "getNotices", - "description": "NoticeIconItem", - "get": { - "tags": ["api"], - "operationId": "getNotices", - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/NoticeIconList" - } - } - } - } - } - } - }, - "/api/rule": { - "get": { - "tags": ["rule"], - "description": "获取规则列表", - "operationId": "rule", - "parameters": [ - { - "name": "current", - "in": "query", - "description": "当前的页码", - "schema": { - "type": "number" - } - }, - { - "name": "pageSize", - "in": "query", - "description": "页面的容量", - "schema": { - "type": "number" - } - } - ], - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RuleList" - } - } - } - }, - "401": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "post": { - "tags": ["rule"], - "description": "新建规则", - "operationId": "addRule", - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RuleListItem" - } - } - } - }, - "401": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "put": { - "tags": ["rule"], - "description": "新建规则", - "operationId": "updateRule", - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/RuleListItem" - } - } - } - }, - "401": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "delete": { - "tags": ["rule"], - "description": "删除规则", - "operationId": "removeRule", - "responses": { - "200": { - "description": "Success", - "content": { - "application/json": { - "schema": { - "type": "object" - } - } - } - }, - "401": { - "description": "Error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "x-swagger-router-controller": "api" - }, - "/swagger": { - "x-swagger-pipe": "swagger_raw" - } - }, - "components": { - "schemas": { - "CurrentUser": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "userid": { - "type": "string" - }, - "email": { - "type": "string" - }, - "signature": { - "type": "string" - }, - "title": { - "type": "string" - }, - "group": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "type": "object", - "properties": { - "key": { - "type": "string" - }, - "label": { - "type": "string" - } - } - } - }, - "notifyCount": { - "type": "integer", - "format": "int32" - }, - "unreadCount": { - "type": "integer", - "format": "int32" - }, - "country": { - "type": "string" - }, - "access": { - "type": "string" - }, - "geographic": { - "type": "object", - "properties": { - "province": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "key": { - "type": "string" - } - } - }, - "city": { - "type": "object", - "properties": { - "label": { - "type": "string" - }, - "key": { - "type": "string" - } - } - } - } - }, - "address": { - "type": "string" - }, - "phone": { - "type": "string" - } - } - }, - "LoginResult": { - "type": "object", - "properties": { - "status": { - "type": "string" - }, - "type": { - "type": "string" - }, - "currentAuthority": { - "type": "string" - } - } - }, - "PageParams": { - "type": "object", - "properties": { - "current": { - "type": "number" - }, - "pageSize": { - "type": "number" - } - } - }, - "RuleListItem": { - "type": "object", - "properties": { - "key": { - "type": "integer", - "format": "int32" - }, - "disabled": { - "type": "boolean" - }, - "href": { - "type": "string" - }, - "avatar": { - "type": "string" - }, - "name": { - "type": "string" - }, - "owner": { - "type": "string" - }, - "desc": { - "type": "string" - }, - "callNo": { - "type": "integer", - "format": "int32" - }, - "status": { - "type": "integer", - "format": "int32" - }, - "updatedAt": { - "type": "string", - "format": "datetime" - }, - "createdAt": { - "type": "string", - "format": "datetime" - }, - "progress": { - "type": "integer", - "format": "int32" - } - } - }, - "RuleList": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/RuleListItem" - } - }, - "total": { - "type": "integer", - "description": "列表的内容总数", - "format": "int32" - }, - "success": { - "type": "boolean" - } - } - }, - "FakeCaptcha": { - "type": "object", - "properties": { - "code": { - "type": "integer", - "format": "int32" - }, - "status": { - "type": "string" - } - } - }, - "LoginParams": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "password": { - "type": "string" - }, - "autoLogin": { - "type": "boolean" - }, - "type": { - "type": "string" - } - } - }, - "ErrorResponse": { - "required": ["errorCode"], - "type": "object", - "properties": { - "errorCode": { - "type": "string", - "description": "业务约定的错误码" - }, - "errorMessage": { - "type": "string", - "description": "业务上的错误信息" - }, - "success": { - "type": "boolean", - "description": "业务上的请求是否成功" - } - } - }, - "NoticeIconList": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/NoticeIconItem" - } - }, - "total": { - "type": "integer", - "description": "列表的内容总数", - "format": "int32" - }, - "success": { - "type": "boolean" - } - } - }, - "NoticeIconItemType": { - "title": "NoticeIconItemType", - "description": "已读未读列表的枚举", - "type": "string", - "properties": {}, - "enum": ["notification", "message", "event"] - }, - "NoticeIconItem": { - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "extra": { - "type": "string", - "format": "any" - }, - "key": { "type": "string" }, - "read": { - "type": "boolean" - }, - "avatar": { - "type": "string" - }, - "title": { - "type": "string" - }, - "status": { - "type": "string" - }, - "datetime": { - "type": "string", - "format": "date" - }, - "description": { - "type": "string" - }, - "type": { - "extensions": { - "x-is-enum": true - }, - "$ref": "#/components/schemas/NoticeIconItemType" - } - } - } - } - } -} diff --git a/config/oneapi/orderapi.json b/config/oneapi/orderapi.json new file mode 100644 index 0000000..e69de29 diff --git a/config/oneapi/prodapi.json b/config/oneapi/prodapi.json new file mode 100644 index 0000000..888448a --- /dev/null +++ b/config/oneapi/prodapi.json @@ -0,0 +1,6627 @@ +{ + "openapi": "3.1.0", + "info": { + "title": "百业到家", + "description": "", + "version": "1.0.0" + }, + "tags": [ + { + "name": "product" + }, + { + "name": "category" + } + ], + "paths": { + "/prod/create": { + "post": { + "summary": "创建商品", + "deprecated": false, + "description": "创建商品", + "tags": ["product"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProdSaveReqVO", + "description": "" + }, + "examples": {} + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultLong" + }, + "example": { + "code": 0, + "data": 0, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/prod/create": { + "post": { + "summary": "创建商品", + "deprecated": false, + "description": "创建商品", + "tags": ["product"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProdSaveReqVO", + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultLong" + }, + "example": { + "code": 0, + "data": 0, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/prod/createProdService": { + "post": { + "summary": "创建商品服务配置", + "deprecated": false, + "description": "创建商品服务配置", + "tags": ["product"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProdServiceVO", + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/prod/uptateProdService": { + "post": { + "summary": "修改商品服务配置", + "deprecated": false, + "description": "修改商品服务配置", + "tags": ["product"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProdServiceInfoVO", + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/prod/getProdService": { + "get": { + "summary": "获得商品服务信息", + "deprecated": false, + "description": "获得商品服务信息", + "tags": ["product"], + "parameters": [ + { + "name": "prodId", + "in": "query", + "description": "商品id", + "required": true, + "example": 1024, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultProdServiceVO" + }, + "example": { + "code": 0, + "data": { + "prodId": 0, + "regionSwitch": 0, + "prodServiceAreasInfo": { + "id": 0, + "prodId": 0, + "ruleType": 0, + "fee": 0, + "areaNameList": [""] + }, + "reservationSwitch": 0, + "prodReservationConfig": { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "prodId": 0, + "reservationTimeSlots": "", + "advanceHours": 0, + "reservationDateRange": 0, + "allowChange": 0, + "changeTimeRule": 0, + "maxChangeTimes": 0, + "blacklistedDates": "", + "isBlacklisted": 0, + "isBlackAppoint": 0, + "blackAppointDates": "", + "blackHappy": 0, + "blackWeekend": 0 + }, + "emergencySwitch": 0, + "prodEmergencyInfoVO": { + "id": 0, + "prodId": 0, + "responseTimeSlots": "", + "blacklistedDates": "", + "blackAppointDates": "", + "blackHappy": 0, + "blackWeekend": 0, + "prodEmergencyResponseIntervalsList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "configId": 0, + "modeName": "", + "responseHours": 0, + "chargeMode": 0, + "floatingPercentage": 0, + "price": 0 + } + ] + }, + "orderLimitSwitch": 0, + "productOrderLimitVO": { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "prodId": 0, + "limitUnit": 0, + "maxOrders": 0 + }, + "additionalSwitch": 0, + "prodAdditionalFeeDatesList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "prodId": 0, + "name": "", + "dateType": 0, + "customTimeSlots": "", + "specificDates": "", + "chargeMode": 0, + "price": 0, + "isEnabled": 0 + } + ], + "additionalFeeSwitch": 0, + "prodAdditionalFeePeriodsList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "prodId": 0, + "name": "", + "specialTimeSlots": "", + "chargeMode": 0, + "price": 0, + "floatingPercentage": 0 + } + ], + "weightSwitch": 0, + "prodWeightConfig": { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "prodId": 0, + "weightRange": "", + "price": 0, + "isEnabled": 0 + } + }, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/prod/update": { + "put": { + "summary": "更新商品", + "deprecated": false, + "description": "更新商品", + "tags": ["product"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ProdSaveReqVO", + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/prod/delete": { + "delete": { + "summary": "删除商品", + "deprecated": false, + "description": "删除商品", + "tags": ["product"], + "parameters": [ + { + "name": "id", + "in": "query", + "description": "编号", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/prod/deleteSkuList": { + "delete": { + "summary": "批量删除商品", + "deprecated": false, + "description": "批量删除商品", + "tags": ["product"], + "parameters": [ + { + "name": "ids", + "in": "query", + "description": "商品id", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "integer" + } + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/prod/updateSkuShelfList": { + "delete": { + "summary": "批量上下架", + "deprecated": false, + "description": "批量上下架", + "tags": ["product"], + "parameters": [ + { + "name": "ids", + "in": "query", + "description": "商品id", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + { + "name": "status", + "in": "query", + "description": "", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/prod/page": { + "get": { + "summary": "获得商品分页", + "deprecated": false, + "description": "获得商品分页", + "tags": ["product"], + "parameters": [ + { + "name": "pageNo", + "in": "query", + "description": "页码,从 1 开始\", example = \"1", + "required": true, + "schema": { + "type": "integer", + "minimum": 1, + "default": 1 + } + }, + { + "name": "pageSize", + "in": "query", + "description": "每页条数,最大值为 100\"", + "required": true, + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 10 + } + }, + { + "name": "prodName", + "in": "query", + "description": "商品名称", + "required": false, + "example": "赵六", + "schema": { + "type": "string", + "examples": ["赵六"] + } + }, + { + "name": "shopId", + "in": "query", + "description": "店铺id", + "required": false, + "example": 10843, + "schema": { + "type": "integer", + "format": "int64", + "examples": [10843] + } + }, + { + "name": "status", + "in": "query", + "description": "默认是1,正常状态(出售中), 0:下架(仓库中) 2:待审核", + "required": false, + "example": 2, + "schema": { + "type": "integer", + "examples": [2] + } + }, + { + "name": "categoryId", + "in": "query", + "description": "商品分类", + "required": false, + "example": 14895, + "schema": { + "type": "integer", + "format": "int64", + "examples": [14895] + } + }, + { + "name": "categoryName", + "in": "query", + "description": "商品分类名称", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "createTime", + "in": "query", + "description": "创建时间", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultPageResultProdListVO" + }, + "example": { + "code": 0, + "data": { + "list": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "prodId": 0, + "prodName": "", + "abbreviation": "", + "seoShortName": "", + "seoSearch": "", + "keyword": "", + "shopId": 0, + "brief": "", + "brand": "", + "isProhibit": 0, + "processNotes": "", + "content": "", + "prodNumber": "", + "pic": "", + "imgs": "", + "video": "", + "whiteImg": "", + "tag": [""], + "status": 0, + "categoryId": 0, + "soldNum": 0, + "shareImage": "", + "shareContent": "", + "regionSwitch": 0, + "additionalSwitch": 0, + "additionalFeeSwitch": 0, + "emergencySwitch": 0, + "reservationSwitch": 0, + "orderLimitSwitch": 0, + "weightSwitch": 0, + "version": 0, + "top": 0 + } + ], + "total": 0 + }, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/prod/getProdRecycleBinPageList": { + "get": { + "summary": "获得商品回收站分页列表", + "deprecated": false, + "description": "获得商品回收站分页列表", + "tags": ["product"], + "parameters": [ + { + "name": "pageNo", + "in": "query", + "description": "页码,从 1 开始\", example = \"1", + "required": true, + "schema": { + "type": "integer", + "minimum": 1, + "default": 1 + } + }, + { + "name": "pageSize", + "in": "query", + "description": "每页条数,最大值为 100\"", + "required": true, + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 10 + } + }, + { + "name": "prodName", + "in": "query", + "description": "商品名称", + "required": false, + "example": "18784", + "schema": { + "type": "string", + "examples": ["18784"] + } + }, + { + "name": "deleteTime", + "in": "query", + "description": "删除时间", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + } + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultPageResultProdRestoreListVO" + }, + "example": { + "code": 0, + "data": { + "list": [ + { + "skuId": 0, + "properties": "", + "remainingDays": 0, + "deleteTime": "" + } + ], + "total": 0 + }, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/prod/restoreProdList": { + "post": { + "summary": "恢复商品", + "deprecated": false, + "description": "恢复商品", + "tags": ["product"], + "parameters": [ + { + "name": "ids", + "in": "query", + "description": "商品id集合", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "integer" + } + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/category/categoryList": { + "get": { + "summary": "获取菜单页面的表", + "deprecated": false, + "description": "", + "tags": ["category"], + "parameters": [ + { + "name": "grade", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "categoryId", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "categoryName", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "status", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultListCategoryDto", + "description": "" + }, + "example": { + "code": 0, + "data": [ + { + "categoryId": 0, + "shopId": 0, + "parentId": 0, + "parentName": "", + "categoryName": "", + "icon": "", + "pic": "", + "description": "", + "tag": "", + "sort": 0, + "status": 0, + "grade": 0 + } + ], + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/category/create": { + "post": { + "summary": "创建产品类目", + "deprecated": false, + "description": "创建产品类目", + "tags": ["category"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CategorySaveReqVO", + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultLong" + }, + "example": { + "code": 0, + "data": 0, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/category/update": { + "put": { + "summary": "更新产品类目", + "deprecated": false, + "description": "更新产品类目", + "tags": ["category"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CategorySaveReqVO", + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/update": { + "put": { + "summary": "更新单品SKU", + "deprecated": false, + "description": "更新单品SKU", + "tags": ["product"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SkuSaveReqVO", + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/updateProp": { + "put": { + "summary": "新增统一保存sku规格", + "deprecated": false, + "description": "更新sku规格", + "tags": ["product"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SkuPropVO", + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/updatePropValue": { + "put": { + "summary": "修改属性下面规格值", + "deprecated": false, + "description": "修改属性下面规格值", + "tags": ["product"], + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "propValue", + "in": "query", + "description": "", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/updateProdProp": { + "put": { + "summary": "修改属性规格值", + "deprecated": false, + "description": "修改属性规格值", + "tags": ["product"], + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "propName", + "in": "query", + "description": "", + "required": true, + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/getSKuPropList": { + "get": { + "summary": "获取sku规格", + "deprecated": false, + "description": "获取sku规格", + "tags": ["product"], + "parameters": [ + { + "name": "prodId", + "in": "query", + "description": "商品id", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultSkuPropInfoVO" + }, + "example": { + "code": 0, + "data": { + "prodId": 0, + "isExpire": 0, + "isDisable": 0, + "prodPropSaveReqVO": [ + { + "id": 0, + "propId": 0, + "propName": "", + "rule": 0, + "shopId": 0, + "prodId": 0, + "sort": 0, + "deleted": 0, + "isExist": 0, + "state": 0, + "prodPropValues": [ + { + "id": 0, + "valueId": 0, + "propValue": "", + "propId": 0, + "deleted": 0, + "state": 0, + "isExpire": 0, + "sort": 0, + "isExist": 0 + } + ] + } + ] + }, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/getPropRecycleBinList": { + "get": { + "summary": "获取规格回收站", + "deprecated": false, + "description": "获取规格回收站", + "tags": ["product"], + "parameters": [ + { + "name": "pageNo", + "in": "query", + "description": "页码,从 1 开始\", example = \"1", + "required": true, + "schema": { + "type": "integer", + "minimum": 1, + "default": 1 + } + }, + { + "name": "pageSize", + "in": "query", + "description": "每页条数,最大值为 100\"", + "required": true, + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 10 + } + }, + { + "name": "propValue", + "in": "query", + "description": "属性规格名称", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "prodId", + "in": "query", + "description": "商品id", + "required": false, + "schema": { + "type": "integer", + "format": "int64" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultPageResultProPropRecycleBinVO" + }, + "example": { + "code": 0, + "data": { + "list": [ + { + "id": 0, + "propValue": "", + "propId": 0, + "remainingDays": 0, + "deleteTime": "" + } + ], + "total": 0 + }, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/restorePropList": { + "post": { + "summary": "恢复规格", + "deprecated": false, + "description": "恢复规格", + "tags": ["product"], + "parameters": [ + { + "name": "ids", + "in": "query", + "description": "skuids", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "integer" + } + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/updateSkuShelf": { + "post": { + "summary": "修改单品上下架", + "deprecated": false, + "description": "修改单品上下架", + "tags": ["product"], + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "isShelf", + "in": "query", + "description": "", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + }, + "put": { + "summary": "修改单品上下架", + "deprecated": false, + "description": "修改单品上下架", + "tags": ["product"], + "parameters": [ + { + "name": "id", + "in": "query", + "description": "编号", + "required": true, + "schema": { + "type": "integer" + } + }, + { + "name": "isShelf", + "in": "query", + "description": "", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/deleteProp": { + "put": { + "summary": "删除规格值", + "deprecated": false, + "description": "删除规格值", + "tags": ["product"], + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/updateSkuShelfList": { + "post": { + "summary": "批量上下架", + "deprecated": false, + "description": "批量上下架", + "tags": ["product"], + "parameters": [ + { + "name": "ids", + "in": "query", + "description": "编号", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + { + "name": "isShelf", + "in": "query", + "description": "", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + }, + "put": { + "summary": "批量上下架", + "deprecated": false, + "description": "批量上下架", + "tags": ["product"], + "parameters": [ + { + "name": "ids", + "in": "query", + "description": "编号", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "integer" + } + } + }, + { + "name": "isShelf", + "in": "query", + "description": "", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/disableProp": { + "put": { + "summary": "禁用或者启用规格值", + "deprecated": false, + "description": "禁用规格值", + "tags": ["product"], + "parameters": [ + { + "name": "id", + "in": "query", + "description": "", + "required": false, + "schema": { + "type": "integer" + } + }, + { + "name": "state", + "in": "query", + "description": "", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/delete": { + "delete": { + "summary": "删除单品SKU", + "deprecated": false, + "description": "删除单品SKU", + "tags": ["product"], + "parameters": [ + { + "name": "id", + "in": "query", + "description": "编号", + "required": true, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/deleteSkuList": { + "delete": { + "summary": "批量删除SKU", + "deprecated": false, + "description": "批量删除SKU", + "tags": ["product"], + "parameters": [ + { + "name": "ids", + "in": "query", + "description": "编号", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "integer" + } + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/get": { + "get": { + "summary": "获得单品SKU", + "deprecated": false, + "description": "获得单品SKU", + "tags": ["product"], + "parameters": [ + { + "name": "id", + "in": "query", + "description": "编号", + "required": true, + "example": 1024, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultSkuRespVO" + }, + "example": { + "code": 0, + "data": { + "skuId": 0, + "prodId": 0, + "properties": "", + "alias": "", + "price": 0, + "basePrice": 0, + "minPrice": 0, + "maxPrice": 0, + "originalPrice": 0, + "marketPrice": 0, + "unit": "", + "type": 0, + "overview": "", + "stocks": 0, + "warnStocks": 0, + "stocksType": false, + "skuCode": "", + "modelId": "", + "pic": "", + "skuName": "", + "prodName": "", + "version": 0, + "weight": 0, + "volume": 0, + "status": 0, + "isDelete": 0, + "moq": 0, + "createTime": "", + "isShelf": 0, + "isSpecs": 0, + "serviceContent": "", + "propIds": "" + }, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/getSkuRecycleBinPageList": { + "get": { + "summary": "获得SKU回收站分页列表", + "deprecated": false, + "description": "获得SKU回收站分页列表", + "tags": ["product"], + "parameters": [ + { + "name": "pageNo", + "in": "query", + "description": "页码,从 1 开始\", example = \"1", + "required": true, + "schema": { + "type": "integer", + "minimum": 1, + "default": 1 + } + }, + { + "name": "pageSize", + "in": "query", + "description": "每页条数,最大值为 100\"", + "required": true, + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 10 + } + }, + { + "name": "prodId", + "in": "query", + "description": "商品ID", + "required": false, + "example": 18784, + "schema": { + "type": "integer", + "format": "int64", + "examples": [18784] + } + }, + { + "name": "properties", + "in": "query", + "description": "销售属性组合字符串", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "skuId", + "in": "query", + "description": "skuID", + "required": false, + "example": 18784, + "schema": { + "type": "integer", + "format": "int64", + "examples": [18784] + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultPageResultSkuRecycleBinVO" + }, + "example": { + "code": 0, + "data": { + "list": [ + { + "skuId": 0, + "properties": "", + "remainingDays": 0, + "deleteTime": "" + } + ], + "total": 0 + }, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/restoreSkuList": { + "post": { + "summary": "恢复SKU", + "deprecated": false, + "description": "恢复SKU", + "tags": ["product"], + "parameters": [ + { + "name": "ids", + "in": "query", + "description": "skuids", + "required": true, + "schema": { + "type": "array", + "items": { + "type": "integer" + } + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/getSkuPageList": { + "get": { + "summary": "获得SKU分页列表", + "deprecated": false, + "description": "获得SKU分页列表", + "tags": ["product"], + "parameters": [ + { + "name": "pageNo", + "in": "query", + "description": "页码,从 1 开始\", example = \"1", + "required": true, + "schema": { + "type": "integer", + "minimum": 1, + "default": 1 + } + }, + { + "name": "pageSize", + "in": "query", + "description": "每页条数,最大值为 100\"", + "required": true, + "schema": { + "type": "integer", + "minimum": 1, + "maximum": 100, + "default": 10 + } + }, + { + "name": "prodId", + "in": "query", + "description": "商品ID", + "required": false, + "example": 18784, + "schema": { + "type": "integer", + "format": "int64", + "examples": [18784] + } + }, + { + "name": "properties", + "in": "query", + "description": "销售属性组合字符串", + "required": false, + "schema": { + "type": "string" + } + }, + { + "name": "skuId", + "in": "query", + "description": "skuID", + "required": false, + "example": 18784, + "schema": { + "type": "integer", + "format": "int64", + "examples": [18784] + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultPageResultSkuDO" + }, + "example": { + "code": 0, + "data": { + "list": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "skuId": 0, + "prodId": 0, + "properties": "", + "alias": "", + "price": 0, + "basePrice": 0, + "minPrice": 0, + "maxPrice": 0, + "originalPrice": 0, + "marketPrice": 0, + "serviceContent": "", + "propIds": "", + "unit": "", + "type": 0, + "overview": "", + "stocks": 0, + "warnStocks": 0, + "stocksType": 0, + "skuCode": "", + "modelId": "", + "pic": "", + "skuName": "", + "prodName": "", + "version": 0, + "weight": 0, + "volume": 0, + "status": 0, + "moq": 0, + "isShelf": 0, + "isSpecs": 0, + "formId": 0, + "isExist": 0, + "deleteTime": "" + } + ], + "total": 0 + }, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/createSkuExtend": { + "post": { + "summary": "创建sku扩展服务配置", + "deprecated": false, + "description": "创建sku扩展服务配置", + "tags": ["product"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SkuExtendVO", + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/getSkuExtend": { + "post": { + "summary": "获取sku扩展服务配置信息", + "deprecated": false, + "description": "获取sku扩展服务配置信息", + "tags": ["product"], + "parameters": [ + { + "name": "formId", + "in": "query", + "description": "表单id", + "required": true, + "example": 1, + "schema": { + "type": "integer" + } + } + ], + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultSkuExtendVO" + }, + "example": { + "code": 0, + "data": { + "skuFormName": "", + "transportCarSwitch": 0, + "transportCarList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "pic": "", + "name": "", + "price": 0, + "isCharge": 0, + "isDefault": 0, + "type": 0, + "adress": "", + "triggerName": "", + "triggerId": 0, + "isParallel": 0, + "describeContent": "" + } + ], + "transportCarMaterialList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "name": "", + "describeContent": "" + } + ], + "trafficSwitch": 0, + "trafficList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "contacts": "", + "address": "", + "province": "", + "city": "", + "area": "", + "tel": "" + } + ], + "trafficMaterialList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "name": "", + "describeContent": "" + } + ], + "cleanSwitch": 0, + "cleanList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "pic": "", + "name": "", + "price": 0, + "isCharge": 0, + "isDefault": 0, + "type": 0, + "adress": "", + "triggerName": "", + "triggerId": 0, + "isParallel": 0, + "describeContent": "" + } + ], + "cleanMaterialList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "name": "", + "describeContent": "" + } + ], + "reflectionSwitch": 0, + "reflectionList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "pic": "", + "name": "", + "price": 0, + "isCharge": 0, + "isDefault": 0, + "type": 0, + "adress": "", + "triggerName": "", + "triggerId": 0, + "isParallel": 0, + "describeContent": "" + } + ], + "reflectionMaterialList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "name": "", + "describeContent": "" + } + ], + "cremationSwitch": 0, + "cremationList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "pic": "", + "name": "", + "price": 0, + "isCharge": 0, + "isDefault": 0, + "type": 0, + "adress": "", + "triggerName": "", + "triggerId": 0, + "isParallel": 0, + "describeContent": "" + } + ], + "cremationMaterialList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "name": "", + "describeContent": "" + } + ], + "ashProcessingSwitch": 0, + "ashProcessingList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "pic": "", + "name": "", + "price": 0, + "isCharge": 0, + "isDefault": 0, + "type": 0, + "adress": "", + "triggerName": "", + "triggerId": 0, + "isParallel": 0, + "describeContent": "" + } + ], + "ashProcessingDeliverList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "type": 0, + "price": 0, + "isCharge": 0, + "address": "", + "province": "", + "city": "", + "area": "", + "tel": "" + } + ], + "ashProcessingMaterialList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "name": "", + "describeContent": "" + } + ], + "boneashSwitch": 0, + "boneashList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "pic": "", + "name": "", + "price": 0, + "isCharge": 0, + "isDefault": 0, + "type": 0, + "adress": "", + "triggerName": "", + "triggerId": 0, + "isParallel": 0, + "describeContent": "" + } + ], + "souvenirSwitch": 0, + "souvenirList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "pic": "", + "name": "", + "price": 0, + "isCharge": 0, + "isDefault": 0, + "type": 0, + "adress": "", + "triggerName": "", + "triggerId": 0, + "isParallel": 0, + "describeContent": "" + } + ], + "souvenirDeliverList": [ + { + "createTime": "", + "updateTime": "", + "creator": "", + "updater": "", + "deleted": 0, + "id": 0, + "serviceId": 0, + "type": 0, + "price": 0, + "isCharge": 0, + "address": "", + "province": "", + "city": "", + "area": "", + "tel": "" + } + ] + }, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/updateServiceDetails": { + "post": { + "summary": "修改扩展服务信息配置(遗体接运扩展服务,遗体清洁配置,追思告别配置,骨灰处理配置......)", + "deprecated": false, + "description": "修改扩展服务信息配置(遗体接运扩展服务,遗体清洁配置,追思告别配置,骨灰处理配置......)", + "tags": ["product"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceDetailsDO", + "description": "服务详情 DO" + }, + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/updateMaterial": { + "post": { + "summary": "修物料配置", + "deprecated": false, + "description": "修物料配置", + "tags": ["product"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceMaterialDO", + "description": "服务物料详情 DO" + }, + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/updateTransportAdress": { + "post": { + "summary": "修改接运地址配置", + "deprecated": false, + "description": "修改接运地址配置", + "tags": ["product"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceTransportDO", + "description": "服务遗体运输 DO" + }, + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + }, + "/product/sku/updateDeliver": { + "post": { + "summary": "修改配送方式", + "deprecated": false, + "description": "修改配送方式", + "tags": ["product"], + "parameters": [], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceDeliverDO", + "description": "服务交付方式 DO" + }, + "description": "" + } + } + } + }, + "responses": { + "200": { + "description": "", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CommonResultBoolean" + }, + "example": { + "code": 0, + "data": false, + "msg": "" + } + } + }, + "headers": {} + } + }, + "security": [] + } + } + }, + "webhooks": {}, + "components": { + "schemas": { + "CommonResultLong": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "type": "integer", + "description": "返回数据", + "format": "int64" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "CategoryDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "categoryId": { + "type": "integer", + "description": "类目ID", + "format": "int64" + }, + "shopId": { + "type": "integer", + "description": "店铺ID", + "format": "int64" + }, + "parentId": { + "type": "integer", + "description": "父节点", + "format": "int64" + }, + "parentName": { + "type": "string", + "description": "父节名称" + }, + "categoryName": { + "type": "string", + "description": "产品类目名称" + }, + "icon": { + "type": "string", + "description": "类目图标" + }, + "pic": { + "type": "string", + "description": "类目的显示图片" + }, + "description": { + "type": "string", + "description": "类目描述" + }, + "tag": { + "type": "array", + "items": { + "type": "string" + }, + "description": "标签" + }, + "sort": { + "type": "integer", + "description": "排序" + }, + "status": { + "type": "integer", + "description": "默认是1,表示正常状态,0为下线状态" + }, + "grade": { + "type": "integer", + "description": "分类层级 1、2、3级" + } + } + }, + "CategoryDto": { + "type": "object", + "properties": { + "categoryId": { + "type": "integer", + "description": "类目ID", + "format": "int64" + }, + "shopId": { + "type": "integer", + "description": "店铺ID", + "format": "int64" + }, + "parentId": { + "type": "integer", + "description": "父节点", + "format": "int64" + }, + "parentName": { + "type": "string", + "description": "父节名称" + }, + "categoryName": { + "type": "string", + "description": "产品类目名称" + }, + "icon": { + "type": "string", + "description": "类目图标" + }, + "pic": { + "type": "string", + "description": "类目的显示图片" + }, + "description": { + "type": "string", + "description": "类目描述" + }, + "tag": { + "type": "string", + "description": "标签" + }, + "sort": { + "type": "integer", + "description": "排序" + }, + "status": { + "type": "integer", + "description": "默认是1,表示正常状态,0为下线状态" + }, + "grade": { + "type": "integer", + "description": "分类层级 1、2、3级" + } + } + }, + "ProductPropertyValueDetailRespVO": { + "type": "object", + "properties": { + "propertyId": { + "type": "integer", + "description": "属性的编号 - 必填 - 示例: 1", + "format": "int64" + }, + "propertyName": { + "type": "string", + "description": "属性的名称 - 必填 - 示例: 颜色" + }, + "valueId": { + "type": "integer", + "description": "属性值的编号 - 必填 - 示例: 1024", + "format": "int64" + }, + "valueName": { + "type": "string", + "description": "属性值的名称 - 必填 - 示例: 红色" + } + } + }, + "SkuDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "skuId": { + "type": "integer", + "description": "单品ID", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "商品ID", + "format": "int64" + }, + "properties": { + "type": "string", + "description": "销售属性组合字符串 格式是p1:v1;p2:v2" + }, + "alias": { + "type": "string", + "description": "别名" + }, + "price": { + "type": "number", + "description": "价格" + }, + "basePrice": { + "type": "number", + "description": "基准价" + }, + "minPrice": { + "type": "number", + "description": "最低价格" + }, + "maxPrice": { + "type": "number", + "description": "最高价格" + }, + "originalPrice": { + "type": "number", + "description": "成本价" + }, + "marketPrice": { + "type": "number", + "description": "市场价" + }, + "serviceContent": { + "type": "string", + "description": "服务内容" + }, + "propIds": { + "type": "string", + "description": "规格id 多个用逗号分隔(1,2,3)" + }, + "unit": { + "type": "string", + "description": "单位" + }, + "type": { + "type": "integer", + "description": "0:主服务1:待定" + }, + "overview": { + "type": "string", + "description": "概述" + }, + "stocks": { + "type": "integer", + "description": "库存" + }, + "stocksFlg": { + "type": "integer", + "description": "总库存是0 无线库存是1" + }, + "stocksLockNum": { + "type": "integer", + "description": "锁定库存数" + }, + "warnStocks": { + "type": "integer", + "description": "预警库存" + }, + "stocksType": { + "type": "integer", + "description": "库存扣款时机0:付款扣1:下单扣" + }, + "skuCode": { + "type": "string", + "description": "sku编码" + }, + "modelId": { + "type": "string", + "description": "商品条形码" + }, + "pic": { + "type": "string", + "description": "sku图片" + }, + "skuName": { + "type": "string", + "description": "sku名称" + }, + "prodName": { + "type": "string", + "description": "商品名称" + }, + "version": { + "type": "integer", + "description": "版本号" + }, + "weight": { + "type": "number", + "description": "商品重量" + }, + "volume": { + "type": "number", + "description": "商品体积" + }, + "status": { + "type": "integer", + "description": "0 禁用 1 启用" + }, + "moq": { + "type": "integer", + "description": "最小购买数量" + }, + "isShelf": { + "type": "integer", + "description": "是否上下架0下架1上架" + }, + "isSpecs": { + "type": "integer", + "description": "是否默认规则0否1是" + }, + "formId": { + "type": "integer", + "description": "扩展服务表单id", + "format": "int64" + }, + "isExist": { + "type": "integer", + "description": "扩展服务表单id" + }, + "deleteTime": { + "type": "string", + "description": "删除时间" + } + } + }, + "CommonResultListCategoryDO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CategoryDO", + "description": "产品类目 DO" + }, + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "SkuServiceDetailsDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "id": { + "type": "integer", + "description": "服务详情的唯一标识符", + "format": "int64" + }, + "serviceId": { + "type": "integer", + "description": "关联的扩展服务ID", + "format": "int64" + }, + "pic": { + "type": "string", + "description": "图片" + }, + "name": { + "type": "string", + "description": "名称" + }, + "price": { + "type": "number", + "description": "价格" + }, + "isCharge": { + "type": "integer", + "description": "是否收费0:免费1收费" + }, + "isDefault": { + "type": "integer", + "description": "是否默认值0否1是" + }, + "type": { + "type": "integer", + "description": "类型:0:配置信息1:交付方式" + }, + "adress": { + "type": "string", + "description": "地点" + }, + "triggerName": { + "type": "string", + "description": "触发节点名称" + }, + "triggerId": { + "type": "integer", + "description": "触发节点id(或关联节点)", + "format": "int64" + }, + "isParallel": { + "type": "integer", + "description": "是否并行0串行1并行" + }, + "describeContent": { + "type": "string", + "description": "描述" + } + } + }, + "CommonResultListCategoryDto": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CategoryDto", + "description": "产品类目 DO" + }, + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "Item": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "编号 - 必填,示例:1", + "format": "int64" + }, + "userId": { + "type": "integer", + "description": "用户编号 - 必填,示例:1", + "format": "int64" + }, + "orderId": { + "type": "integer", + "description": "订单编号 - 必填,示例:1", + "format": "int64" + }, + "spuId": { + "type": "integer", + "description": "商品 SPU 编号 - 必填,示例:1", + "format": "int64" + }, + "spuName": { + "type": "string", + "description": "商品 SPU 名称 - 必填,示例:芋道源码" + }, + "skuId": { + "type": "integer", + "description": "商品 SKU 编号 - 必填,示例:1", + "format": "int64" + }, + "picUrl": { + "type": "string", + "description": "商品图片 - 必填,示例:https://www.iocoder.cn/1.png" + }, + "count": { + "type": "integer", + "description": "购买数量 - 必填,示例:1" + }, + "price": { + "type": "integer", + "description": "商品原价(单) - 必填,示例:100" + }, + "discountPrice": { + "type": "integer", + "description": "商品优惠(总) - 必填,示例:100" + }, + "payPrice": { + "type": "integer", + "description": "商品实付金额(总) - 必填,示例:100" + }, + "orderPartPrice": { + "type": "integer", + "description": "子订单分摊金额(总) - 必填,示例:100" + }, + "orderDividePrice": { + "type": "integer", + "description": "分摊后子订单实付金额(总) - 必填,示例:100" + }, + "afterSaleStatus": { + "type": "integer", + "description": "售后状态 - 必填,示例:1" + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProductPropertyValueDetailRespVO", + "description": "com.tashow.cloud.trade.controller.admin.base.product.property.ProductPropertyValueDetailRespVO" + }, + "description": "属性列表 - 必填" + } + } + }, + "ProdPropValueDO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "id", + "format": "int64" + }, + "valueId": { + "type": "integer", + "description": "属性值ID", + "format": "int64" + }, + "propValue": { + "type": "string", + "description": "属性值名称" + }, + "propId": { + "type": "integer", + "description": "属性ID", + "format": "int64" + }, + "deleted": { + "type": "integer", + "description": "是否删除0否1是" + }, + "state": { + "type": "integer", + "description": "状态0禁用1启用" + }, + "isExpire": { + "type": "integer", + "description": "是否失效0否1是" + }, + "sort": { + "type": "integer", + "description": "排序" + }, + "isExist": { + "type": "integer", + "description": "扩展服务表单id" + }, + "deleteTime": { + "type": "string", + "description": "删除时间" + } + } + }, + "SkuServiceMaterialDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "id": { + "type": "integer", + "description": "服务物料的唯一标识符", + "format": "int64" + }, + "serviceId": { + "type": "integer", + "description": "关联的扩展服务ID", + "format": "int64" + }, + "name": { + "type": "string", + "description": "名称" + }, + "describeContent": { + "type": "string", + "description": "描述" + } + } + }, + "MemberUserRespVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "用户 ID - 必填 - 示例: 1", + "format": "int64" + }, + "nickname": { + "type": "string", + "description": "用户昵称 - 必填 - 示例: 芋道源码" + }, + "avatar": { + "type": "string", + "description": "用户头像 - 示例: https://www.iocoder.cn/xxx.png" + } + } + }, + "ProdPropSaveReqVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "", + "format": "int64" + }, + "propId": { + "type": "integer", + "description": "属性id", + "format": "int64", + "examples": [14271] + }, + "propName": { + "type": "string", + "description": "属性名称", + "examples": ["李四"] + }, + "rule": { + "type": "integer", + "description": "ProdPropRule 1:销售属性(规格); 2:参数属性;" + }, + "shopId": { + "type": "integer", + "description": "店铺id", + "format": "int64", + "examples": [2806] + }, + "prodId": { + "type": "integer", + "description": "商品id(添加的时候不传)", + "examples": [21671] + }, + "deleted": { + "type": "integer", + "description": "是否删除0否1是" + }, + "isExist": { + "type": "integer", + "description": "扩展服务表单id" + }, + "prodPropValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdPropValueDO", + "description": "属性规则 DO" + }, + "description": "属性值" + } + }, + "required": ["prodPropValues"] + }, + "CategorySaveReqVO": { + "type": "object", + "properties": { + "categoryId": { + "type": "integer", + "description": "类目ID", + "format": "int64", + "examples": [15856] + }, + "shopId": { + "type": "integer", + "description": "店铺ID", + "format": "int64", + "examples": [22369] + }, + "parentId": { + "type": "integer", + "description": "父节点", + "format": "int64", + "examples": [16509] + }, + "parentName": { + "type": "string", + "description": "父节名称" + }, + "categoryName": { + "type": "string", + "description": "产品类目名称", + "examples": ["王五"] + }, + "icon": { + "type": "string", + "description": "类目图标" + }, + "pic": { + "type": "string", + "description": "类目的显示图片" + }, + "description": { + "type": "string", + "description": "类目描述" + }, + "tag": { + "type": "array", + "items": { + "type": "string" + }, + "description": "标签" + }, + "sort": { + "type": "integer", + "description": "排序" + }, + "status": { + "type": "integer", + "description": "默认是1,表示正常状态,0为下线状态", + "examples": [1] + }, + "grade": { + "type": "integer", + "description": "分类层级 1级 2级 3级" + } + } + }, + "SkuServiceTransportDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "id": { + "type": "integer", + "description": "服务遗体运输唯一标识符", + "format": "int64" + }, + "serviceId": { + "type": "integer", + "description": "关联的扩展服务ID", + "format": "int64" + }, + "contacts": { + "type": "string", + "description": "联系人" + }, + "address": { + "type": "string", + "description": "详细地址" + }, + "province": { + "type": "string", + "description": "省" + }, + "city": { + "type": "string", + "description": "市" + }, + "area": { + "type": "string", + "description": "区" + }, + "tel": { + "type": "string", + "description": "电话号码" + } + } + }, + "TradeOrderPageItemRespVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "订单编号 - 必填,示例:1024", + "format": "int64" + }, + "orderNum": { + "type": "string", + "description": "订单流水号 - 必填,示例:1146347329394184195" + }, + "createTime": { + "type": "string", + "description": "下单时间 - 必填" + }, + "type": { + "type": "integer", + "description": "订单类型 - 必填,示例:1" + }, + "terminal": { + "type": "integer", + "description": "订单来源 - 必填,示例:1" + }, + "userId": { + "type": "integer", + "description": "用户编号 - 必填,示例:2048", + "format": "int64" + }, + "userIp": { + "type": "string", + "description": "用户 IP - 必填,示例:127.0.0.1" + }, + "userRemark": { + "type": "string", + "description": "用户备注 - 必填,示例:你猜" + }, + "status": { + "type": "integer", + "description": "订单状态 - 必填,示例:1" + }, + "productCount": { + "type": "integer", + "description": "购买的商品数量 - 必填,示例:10" + }, + "finishTime": { + "type": "string", + "description": "订单完成时间" + }, + "cancelTime": { + "type": "string", + "description": "订单取消时间" + }, + "cancelType": { + "type": "integer", + "description": "取消类型,示例:10" + }, + "remark": { + "type": "string", + "description": "商家备注,示例:你猜一下" + }, + "payOrderId": { + "type": "integer", + "description": "支付订单编号 - 必填,示例:1024", + "format": "int64" + }, + "payStatus": { + "type": "boolean", + "description": "是否已支付 - 必填,示例:true" + }, + "payTime": { + "type": "string", + "description": "付款时间" + }, + "payChannelCode": { + "type": "string", + "description": "支付渠道 - 必填,示例:wx_lite" + }, + "totalPrice": { + "type": "integer", + "description": "商品原价(总) - 必填,示例:1000" + }, + "discountPrice": { + "type": "integer", + "description": "订单优惠(总) - 必填,示例:100" + }, + "deliveryPrice": { + "type": "integer", + "description": "运费金额 - 必填,示例:100" + }, + "adjustPrice": { + "type": "integer", + "description": "订单调价(总) - 必填,示例:100" + }, + "payPrice": { + "type": "integer", + "description": "应付金额(总) - 必填,示例:1000" + }, + "deliveryType": { + "type": "integer", + "description": "配送方式,示例:10" + }, + "pickUpStoreId": { + "type": "integer", + "description": "自提门店,示例:10", + "format": "int64" + }, + "pickUpVerifyCode": { + "type": "integer", + "description": "自提核销码,示例:10", + "format": "int64" + }, + "deliveryTemplateId": { + "type": "integer", + "description": "配送模板编号,示例:1024", + "format": "int64" + }, + "logisticsId": { + "type": "integer", + "description": "发货物流公司编号,示例:1024", + "format": "int64" + }, + "logisticsNo": { + "type": "string", + "description": "发货物流单号,示例:1024" + }, + "deliveryTime": { + "type": "string", + "description": "发货时间" + }, + "receiveTime": { + "type": "string", + "description": "收货时间" + }, + "receiverName": { + "type": "string", + "description": "收件人名称 - 必填,示例:张三" + }, + "receiverMobile": { + "type": "string", + "description": "收件人手机 - 必填,示例:13800138000" + }, + "receiverAreaId": { + "type": "integer", + "description": "收件人地区编号 - 必填,示例:110000" + }, + "receiverDetailAddress": { + "type": "string", + "description": "收件人详细地址 - 必填,示例:中关村大街 1 号" + }, + "afterSaleStatus": { + "type": "integer", + "description": "售后状态,示例:1" + }, + "refundPrice": { + "type": "integer", + "description": "退款金额 - 必填,示例:100" + }, + "couponId": { + "type": "integer", + "description": "优惠劵编号,示例:1024", + "format": "int64" + }, + "couponPrice": { + "type": "integer", + "description": "优惠劵减免金额 - 必填,示例:100" + }, + "pointPrice": { + "type": "integer", + "description": "积分抵扣的金额 - 必填,示例:100" + }, + "vipPrice": { + "type": "integer", + "description": "VIP 减免金额 - 必填,示例:888" + }, + "brokerageUserId": { + "type": "integer", + "description": "推广人编号,示例:1", + "format": "int64" + }, + "receiverAreaName": { + "type": "string", + "description": "收件人地区名字 - 必填,示例:上海 上海市 普陀区" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Item", + "description": "com.tashow.cloud.trade.controller.admin.order.vo.TradeOrderPageItemRespVO.Item" + }, + "description": "订单项列表 - 必填" + }, + "user": { + "$ref": "#/components/schemas/MemberUserRespVO", + "description": "用户信息 - 必填" + }, + "brokerageUser": { + "$ref": "#/components/schemas/MemberUserRespVO", + "description": "推广人信息" + } + } + }, + "ProdSaveReqVO": { + "type": "object", + "properties": { + "prodId": { + "type": "integer", + "description": "产品ID", + "format": "int64", + "examples": [6943] + }, + "prodName": { + "type": "string", + "description": "商品名称" + }, + "abbreviation": { + "type": "string", + "description": "商品简称" + }, + "seoShortName": { + "type": "string", + "description": "seo标题", + "examples": ["李四"] + }, + "seoSearch": { + "type": "string", + "description": "seo搜索" + }, + "keyword": { + "type": "string", + "description": "关键词" + }, + "categoryName": { + "type": "string", + "description": "商品分类名称" + }, + "shopId": { + "type": "integer", + "description": "店铺id", + "format": "int64", + "examples": [10843] + }, + "brief": { + "type": "string", + "description": "简要描述,卖点等" + }, + "brand": { + "type": "string", + "description": "品牌" + }, + "content": { + "type": "string", + "description": "详细描述" + }, + "video": { + "type": "string", + "description": "视频" + }, + "whiteImg": { + "type": "string", + "description": "商品轮播图片,以,分割" + }, + "prodNumber": { + "type": "string", + "description": "商品编号" + }, + "pic": { + "type": "string", + "description": "商品主图" + }, + "imgs": { + "type": "string", + "description": "商品轮播图片,以,分割" + }, + "status": { + "type": "integer", + "description": "默认是1,表示正常状态, -1表示删除, 0下架", + "examples": [2] + }, + "isProhibit": { + "type": "integer", + "description": "'是否置灰0否1是'" + }, + "processNotes": { + "type": "string", + "description": "审核备注" + }, + "categoryId": { + "type": "integer", + "description": "商品分类", + "format": "int64", + "examples": [14895] + }, + "soldNum": { + "type": "integer", + "description": "销量" + }, + "shareImage": { + "type": "string", + "description": "分享图" + }, + "tag": { + "type": "array", + "items": { + "type": "string" + }, + "description": "标签" + }, + "shareContent": { + "type": "string", + "description": "分享话术" + }, + "regionSwitch": { + "type": "integer", + "description": "是否开启区域0关1开" + }, + "additionalSwitch": { + "type": "integer", + "description": "是否特殊时段0关1开" + }, + "additionalFeeSwitch": { + "type": "integer", + "description": "是否特殊日期(节假日周末什么的)0关1开" + }, + "emergencySwitch": { + "type": "integer", + "description": "是否紧急响应服务0关1开" + }, + "reservationSwitch": { + "type": "integer", + "description": "是否预约0关1开" + }, + "orderLimitSwitch": { + "type": "integer", + "description": "是否接单上线0关1开" + }, + "weightSwitch": { + "type": "integer", + "description": "是否开启体重配置0关1开" + }, + "createBy": { + "type": "string", + "description": "创建人" + }, + "updateBy": { + "type": "string", + "description": "修改人" + }, + "version": { + "type": "integer", + "description": "版本 乐观锁" + }, + "top": { + "type": "integer", + "description": "展示的权重" + }, + "skuList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuDO", + "description": "单品SKU DO" + }, + "description": "sku列表" + }, + "prodPropSaveReqVO": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdPropSaveReqVO", + "description": "com.tashow.cloud.product.vo.prodprop.ProdPropSaveReqVO" + }, + "description": "规格" + } + } + }, + "CommonResultBoolean": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "type": "boolean", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "SkuServiceDeliverDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "id": { + "type": "integer", + "description": "服务遗体运输唯一标识符", + "format": "int64" + }, + "serviceId": { + "type": "integer", + "description": "关联的扩展服务ID", + "format": "int64" + }, + "type": { + "type": "integer", + "description": "交互方式0:快递物流 1:到店自提 2:商家自送" + }, + "price": { + "type": "number", + "description": "价格" + }, + "isCharge": { + "type": "integer", + "description": "是否收费0:免费1收费" + }, + "address": { + "type": "string", + "description": "详细地址" + }, + "province": { + "type": "string", + "description": "省" + }, + "city": { + "type": "string", + "description": "市" + }, + "area": { + "type": "string", + "description": "区" + }, + "tel": { + "type": "string", + "description": "电话号码" + } + } + }, + + "ProdDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "prodId": { + "type": "integer", + "description": "产品ID", + "format": "int64" + }, + "prodName": { + "type": "string", + "description": "商品名称" + }, + "abbreviation": { + "type": "string", + "description": "商品简称" + }, + "seoShortName": { + "type": "string", + "description": "seo标题" + }, + "seoSearch": { + "type": "string", + "description": "seo搜索" + }, + "keyword": { + "type": "string", + "description": "关键词" + }, + "shopId": { + "type": "integer", + "description": "店铺id", + "format": "int64" + }, + "brief": { + "type": "string", + "description": "简要描述,卖点等" + }, + "brand": { + "type": "string", + "description": "品牌" + }, + "isProhibit": { + "type": "integer", + "description": "是否置灰0否1是" + }, + "processNotes": { + "type": "string", + "description": "审核备注" + }, + "content": { + "type": "string", + "description": "详细描述" + }, + "prodNumber": { + "type": "string", + "description": "商品编号" + }, + "pic": { + "type": "string", + "description": "商品主图" + }, + "imgs": { + "type": "string", + "description": "商品轮播图片,以,分割" + }, + "video": { + "type": "string", + "description": "视频" + }, + "whiteImg": { + "type": "string", + "description": "商品轮播图片,以,分割" + }, + "tag": { + "type": "array", + "items": { + "type": "string" + }, + "description": "标签" + }, + "status": { + "type": "integer", + "description": "默认是1,正常状态(出售中), 0:下架(仓库中) 2:待审核" + }, + "categoryId": { + "type": "integer", + "description": "商品分类", + "format": "int64" + }, + "categoryName": { + "type": "string", + "description": "商品分类名称" + }, + "soldNum": { + "type": "integer", + "description": "销量" + }, + "shareImage": { + "type": "string", + "description": "分享图" + }, + "shareContent": { + "type": "string", + "description": "分享话术" + }, + "regionSwitch": { + "type": "integer", + "description": "是否开启区域0关1开" + }, + "additionalSwitch": { + "type": "integer", + "description": "是否特殊时段0关1开" + }, + "additionalFeeSwitch": { + "type": "integer", + "description": "是否特殊日期(节假日周末什么的)0关1开" + }, + "emergencySwitch": { + "type": "integer", + "description": "是否紧急响应服务0关1开" + }, + "reservationSwitch": { + "type": "integer", + "description": "是否预约0关1开" + }, + "orderLimitSwitch": { + "type": "integer", + "description": "是否接单上线0关1开" + }, + "weightSwitch": { + "type": "integer", + "description": "是否开启体重配置0关1开" + }, + "version": { + "type": "integer", + "description": "版本 乐观锁" + }, + "top": { + "type": "integer", + "description": "展示的权重" + }, + "deleteTime": { + "type": "string", + "description": "删除时间" + } + } + }, + "SkuExtendVO": { + "type": "object", + "properties": { + "skuFormName": { + "type": "string", + "description": "表单名称" + }, + "transportCarSwitch": { + "type": "integer", + "description": "遗体接运车辆配置0关1开" + }, + "transportCarList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceDetailsDO", + "description": "服务详情 DO" + }, + "description": "遗体接运扩展服务配置" + }, + "transportCarMaterialList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceMaterialDO", + "description": "服务物料详情 DO" + }, + "description": "遗体接运服务物料" + }, + "trafficSwitch": { + "type": "integer", + "description": "遗体运输目的地配置0关1开" + }, + "trafficList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceTransportDO", + "description": "服务遗体运输 DO" + }, + "description": "遗体运输目的地配置" + }, + "trafficMaterialList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceMaterialDO", + "description": "服务物料详情 DO" + }, + "description": "遗体运输目的地物料" + }, + "cleanSwitch": { + "type": "integer", + "description": "遗体清洁配置0关1开" + }, + "cleanList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceDetailsDO", + "description": "服务详情 DO" + }, + "description": "遗体清洁配置" + }, + "cleanMaterialList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceMaterialDO", + "description": "服务物料详情 DO" + }, + "description": "遗体清洁物料" + }, + "reflectionSwitch": { + "type": "integer", + "description": "追思告别配置0关1开" + }, + "reflectionList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceDetailsDO", + "description": "服务详情 DO" + }, + "description": "追思告别配置" + }, + "reflectionMaterialList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceMaterialDO", + "description": "服务物料详情 DO" + }, + "description": "追思告别物料" + }, + "cremationSwitch": { + "type": "integer", + "description": "遗体火化配置0关1开" + }, + "cremationList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceDetailsDO", + "description": "服务详情 DO" + }, + "description": "遗体火化配置" + }, + "cremationMaterialList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceMaterialDO", + "description": "服务物料详情 DO" + }, + "description": "遗体火化物料" + }, + "ashProcessingSwitch": { + "type": "integer", + "description": "骨灰处理配置0关1开" + }, + "ashProcessingList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceDetailsDO", + "description": "服务详情 DO" + }, + "description": "骨灰处理配置" + }, + "ashProcessingDeliverList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceDeliverDO", + "description": "服务交付方式 DO" + }, + "description": "骨灰处理配送方式配置" + }, + "ashProcessingMaterialList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceMaterialDO", + "description": "服务物料详情 DO" + }, + "description": "骨灰处理物料" + }, + "boneashSwitch": { + "type": "integer", + "description": "骨灰装殓配置0关1开" + }, + "boneashList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceDetailsDO", + "description": "服务详情 DO" + }, + "description": "骨灰装殓配置" + }, + "souvenirSwitch": { + "type": "integer", + "description": "纪念品配置0关1开" + }, + "souvenirList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceDetailsDO", + "description": "服务详情 DO" + }, + "description": "纪念品配置" + }, + "souvenirDeliverList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuServiceDeliverDO", + "description": "服务交付方式 DO" + }, + "description": "纪念品配送方式配置" + } + } + }, + "SkuPropVO": { + "type": "object", + "properties": { + "prodId": { + "type": "integer", + "description": "产品id", + "format": "int64" + }, + "isExpire": { + "type": "integer", + "description": "是否显示失效规格值 0否1是", + "default": 1 + }, + "isDisable": { + "type": "integer", + "description": "是否显示禁用规格值 0否1是", + "default": 1 + }, + "skuList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuDO", + "description": "单品SKU DO" + }, + "description": "sku列表" + }, + "prodPropSaveReqVO": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdPropSaveReqVO", + "description": "com.tashow.cloud.product.vo.prodprop.ProdPropSaveReqVO" + }, + "description": "规格" + } + } + }, + + "PageResultProdDO": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdDO", + "description": "商品 DO" + }, + "description": "数据" + }, + "total": { + "type": "integer", + "description": "总量", + "format": "int64" + } + } + }, + "ProdServiceOverAreaRulesDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "boolean", + "description": "是否删除" + }, + "id": { + "type": "integer", + "description": "超区规则的唯一标识符", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "关联的商品ID", + "format": "int64" + }, + "ruleType": { + "type": "boolean", + "description": "超区规则类型(0:拒单、2:接单并收取超区费、3:接单并免超区费)" + }, + "fee": { + "type": "number", + "description": "超区费用(仅在rule_type为accept_with_fee时有效)" + } + } + }, + "SkuSaveReqVO": { + "type": "object", + "properties": { + "skuId": { + "type": "integer", + "description": "单品ID", + "format": "int64", + "examples": [32230] + }, + "prodId": { + "type": "integer", + "description": "商品ID", + "format": "int64", + "examples": [18784] + }, + "properties": { + "type": "string", + "description": "销售属性组合字符串 格式是p1:v1;p2:v2" + }, + "alias": { + "type": "string", + "description": "别名" + }, + "price": { + "type": "number", + "description": "价格", + "examples": [32405] + }, + "basePrice": { + "type": "number", + "description": "基准价" + }, + "minPrice": { + "type": "number", + "description": "最低价格", + "examples": [5040] + }, + "maxPrice": { + "type": "number", + "description": "最高价格", + "examples": [11547] + }, + "originalPrice": { + "type": "number", + "description": "成本价", + "examples": [28062] + }, + "marketPrice": { + "type": "number", + "description": "市场价", + "examples": [11547] + }, + "unit": { + "type": "string", + "description": "单位" + }, + "type": { + "type": "integer", + "description": "0:主服务1:待定", + "examples": [1] + }, + "overview": { + "type": "string", + "description": "概述" + }, + "stocks": { + "type": "integer", + "description": "库存" + }, + "stocksFlg": { + "type": "integer", + "description": "总库存是0 无线库存是1" + }, + "stocksLockNum": { + "type": "integer", + "description": "锁定库存数" + }, + "warnStocks": { + "type": "integer", + "description": "预警库存" + }, + "stocksType": { + "type": "boolean", + "description": "库存扣款时机0:付款扣1:下单扣", + "examples": [true] + }, + "skuCode": { + "type": "string", + "description": "sku编码" + }, + "modelId": { + "type": "string", + "description": "商品条形码", + "examples": ["14390"] + }, + "pic": { + "type": "string", + "description": "sku图片" + }, + "skuName": { + "type": "string", + "description": "sku名称", + "examples": ["张三"] + }, + "prodName": { + "type": "string", + "description": "商品名称", + "examples": ["芋艿"] + }, + "version": { + "type": "integer", + "description": "版本号" + }, + "weight": { + "type": "number", + "description": "商品重量" + }, + "volume": { + "type": "number", + "description": "商品体积" + }, + "status": { + "type": "integer", + "description": "0 禁用 1 启用", + "examples": [1] + }, + "isDelete": { + "type": "integer", + "description": "0 正常 1 已被删除" + }, + "moq": { + "type": "integer", + "description": "最小购买数量" + }, + "isSpecs": { + "type": "integer", + "description": "是否默认规则0否1是" + }, + "formId": { + "type": "integer", + "description": "扩展服务表单id", + "format": "int64" + }, + "serviceContent": { + "type": "string", + "description": "服务内容" + }, + "propIds": { + "type": "string", + "description": "规格id 多个用逗号分隔(1,2,3)" + } + } + }, + "ProdPropDO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "属性id", + "format": "int64" + }, + "propId": { + "type": "integer", + "description": "属性id", + "format": "int64" + }, + "propName": { + "type": "string", + "description": "属性名称" + }, + "rule": { + "type": "integer", + "description": "ProdPropRule 1:销售属性(规格); 2:参数属性;" + }, + "shopId": { + "type": "integer", + "description": "店铺id", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "商品id", + "format": "int64" + }, + "sort": { + "type": "integer", + "description": "排序" + }, + "deleted": { + "type": "integer", + "description": "是否删除0否1是" + }, + "isExist": { + "type": "integer", + "description": "isExist 是否新增 0否1是" + }, + "state": { + "type": "integer", + "description": "状态0禁用1启用" + }, + "prodPropValues": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdPropValueDO", + "description": "属性规则 DO" + }, + "description": "属性值" + } + } + }, + "Item1": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "编号 - 必填,示例:1", + "format": "int64" + }, + "userId": { + "type": "integer", + "description": "用户编号 - 必填,示例:1", + "format": "int64" + }, + "orderId": { + "type": "integer", + "description": "订单编号 - 必填,示例:1", + "format": "int64" + }, + "spuId": { + "type": "integer", + "description": "商品 SPU 编号 - 必填,示例:1", + "format": "int64" + }, + "spuName": { + "type": "string", + "description": "商品 SPU 名称 - 必填,示例:芋道源码" + }, + "skuId": { + "type": "integer", + "description": "商品 SKU 编号 - 必填,示例:1", + "format": "int64" + }, + "picUrl": { + "type": "string", + "description": "商品图片 - 必填,示例:https://www.iocoder.cn/1.png" + }, + "count": { + "type": "integer", + "description": "购买数量 - 必填,示例:1" + }, + "price": { + "type": "integer", + "description": "商品原价(单) - 必填,示例:100" + }, + "discountPrice": { + "type": "integer", + "description": "商品优惠(总) - 必填,示例:100" + }, + "payPrice": { + "type": "integer", + "description": "商品实付金额(总) - 必填,示例:100" + }, + "orderPartPrice": { + "type": "integer", + "description": "子订单分摊金额(总) - 必填,示例:100" + }, + "orderDividePrice": { + "type": "integer", + "description": "分摊后子订单实付金额(总) - 必填,示例:100" + }, + "afterSaleStatus": { + "type": "integer", + "description": "售后状态 - 必填,示例:1" + }, + "properties": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProductPropertyValueDetailRespVO", + "description": "com.tashow.cloud.trade.controller.admin.base.product.property.ProductPropertyValueDetailRespVO" + }, + "description": "属性数组" + } + } + }, + "CommonResultPageResultProdDO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "$ref": "#/components/schemas/PageResultProdDO", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "ProdServiceAreasInfoVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "超区规则的唯一标识符", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "关联的商品ID", + "format": "int64" + }, + "ruleType": { + "type": "integer", + "description": "超区规则类型(0:拒单、2:接单并收取超区费、3:接单并免超区费)" + }, + "fee": { + "type": "number", + "description": "超区费用(仅在rule_type为accept_with_fee时有效)" + }, + "areaNameList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "服务区域地址名称" + } + } + }, + "SkuRespVO": { + "type": "object", + "properties": { + "skuId": { + "type": "integer", + "description": "单品ID", + "format": "int64", + "examples": [32230] + }, + "prodId": { + "type": "integer", + "description": "商品ID", + "format": "int64", + "examples": [18784] + }, + "properties": { + "type": "string", + "description": "销售属性组合字符串 格式是p1:v1;p2:v2" + }, + "alias": { + "type": "string", + "description": "别名" + }, + "price": { + "type": "number", + "description": "价格", + "examples": [32405] + }, + "basePrice": { + "type": "number", + "description": "基准价" + }, + "minPrice": { + "type": "number", + "description": "最低价格", + "examples": [5040] + }, + "maxPrice": { + "type": "number", + "description": "最高价格", + "examples": [11547] + }, + "originalPrice": { + "type": "number", + "description": "成本价", + "examples": [28062] + }, + "marketPrice": { + "type": "number", + "description": "市场价", + "examples": [11547] + }, + "unit": { + "type": "string", + "description": "单位" + }, + "type": { + "type": "integer", + "description": "0:主服务1:待定", + "examples": [1] + }, + "overview": { + "type": "string", + "description": "概述" + }, + "stocks": { + "type": "integer", + "description": "库存" + }, + "stocksFlg": { + "type": "integer", + "description": "总库存是0 无线库存是1" + }, + "stocksLockNum": { + "type": "integer", + "description": "锁定库存数" + }, + "warnStocks": { + "type": "integer", + "description": "预警库存" + }, + "stocksType": { + "type": "boolean", + "description": "库存扣款时机0:付款扣1:下单扣", + "examples": [true] + }, + "skuCode": { + "type": "string", + "description": "sku编码" + }, + "modelId": { + "type": "string", + "description": "商品条形码", + "examples": ["14390"] + }, + "pic": { + "type": "string", + "description": "sku图片" + }, + "skuName": { + "type": "string", + "description": "sku名称", + "examples": ["张三"] + }, + "prodName": { + "type": "string", + "description": "商品名称", + "examples": ["芋艿"] + }, + "version": { + "type": "integer", + "description": "版本号" + }, + "weight": { + "type": "number", + "description": "商品重量" + }, + "volume": { + "type": "number", + "description": "商品体积" + }, + "status": { + "type": "integer", + "description": "0 禁用 1 启用", + "examples": [1] + }, + "isDelete": { + "type": "integer", + "description": "0 正常 1 已被删除" + }, + "moq": { + "type": "integer", + "description": "最小购买数量" + }, + "createTime": { + "type": "string", + "description": "创建时间" + }, + "isShelf": { + "type": "integer", + "description": "是否上下架0下架1上架" + }, + "isSpecs": { + "type": "integer", + "description": "是否默认规则0否1是" + }, + "serviceContent": { + "type": "string", + "description": "服务内容" + }, + "propIds": { + "type": "string", + "description": "规格id 多个用逗号分隔(1,2,3)" + } + } + }, + "CommonResultListProdPropDO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdPropDO", + "description": "商品属性 DO" + }, + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "SkuPropInfoVO": { + "type": "object", + "properties": { + "prodId": { + "type": "integer", + "description": "产品id", + "format": "int64" + }, + "isExpire": { + "type": "integer", + "description": "是否显示失效规格值 0否1是" + }, + "isDisable": { + "type": "integer", + "description": "是否显示禁用规格值 0否1是" + }, + "prodPropSaveReqVO": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdPropDO", + "description": "商品属性 DO" + }, + "description": "规格" + } + } + }, + "TimeBookVO": { + "type": "object", + "properties": { + "reservationTimeSlots": { + "type": "array", + "items": { + "type": "string" + }, + "description": "预约时段设置" + }, + "timeSlot": { + "type": "integer", + "description": "时间段" + } + } + }, + "OrderLog": { + "type": "object", + "properties": { + "content": { + "type": "string", + "description": "操作详情 - 必填,示例:订单发货" + }, + "createTime": { + "type": "string", + "description": "创建时间 - 必填,示例:2023-06-01 10:50:20" + }, + "userType": { + "type": "integer", + "description": "用户类型 - 必填,示例:1" + } + } + }, + "ProdReservationConfigDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "id": { + "type": "integer", + "description": "预约配置的唯一标识符", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "关联的商品ID", + "format": "int64" + }, + "reservationTimeSlots": { + "type": "array", + "items": { + "type": "string" + }, + "description": "预约时段设置(JSON格式存储)" + }, + "advanceHours": { + "type": "integer", + "description": "需提前多少小时预约" + }, + "reservationDateRange": { + "type": "integer", + "description": "预约日期范围 7天 10天 15天 30天" + }, + "allowChange": { + "type": "integer", + "description": "是否允许更改预约时间 1可以 0不可以" + }, + "timeSlot": { + "type": "integer", + "description": "时间段" + }, + "changeTimeRule": { + "type": "integer", + "description": "更改预约时间的时间规则(如服务开始前1小时可更改)" + }, + "maxChangeTimes": { + "type": "integer", + "description": "允许更改预约时间的最大次数" + }, + "blacklistedDates": { + "type": "array", + "items": { + "type": "string" + }, + "description": "黑名自定义日期(JSON格式存储)" + }, + "isBlacklisted": { + "type": "integer", + "description": "'是否开启黑名单自定义0关1开'" + }, + "isBlackAppoint": { + "type": "integer", + "description": "'是否开启黑名单指定日期0关1开'" + }, + "blackAppointDates": { + "type": "array", + "items": { + "type": "string" + }, + "description": "黑名单指定日期(JSON格式存储)" + }, + "blackHappy": { + "type": "integer", + "description": "法定节假日是否开启0:关闭1开启" + }, + "blackWeekend": { + "type": "integer", + "description": "固定休息日周末是否开启0关闭1开启" + }, + "timeBook": { + "$ref": "#/components/schemas/TimeBookVO", + "description": "" + } + } + }, + "CommonResultSkuRespVO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "$ref": "#/components/schemas/SkuRespVO", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "CommonResultSkuPropInfoVO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "$ref": "#/components/schemas/SkuPropInfoVO", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "ProdAdditionalFeeBlackVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "特殊日期规则的唯一标识符", + "format": "int64" + }, + "dateType": { + "type": "integer", + "description": "日期类型0:'自定义日期范围':1:'指定日期':2:'法定节假日',3:'固定休息日'" + }, + "customTimeSlots": { + "type": "array", + "items": { + "type": "string" + }, + "description": "黑名单日期设置" + }, + "type": { + "type": "integer", + "description": "类型:1:特殊日期 2:可预约时段黑名单日期 3:紧急相应服务黑名单日期" + }, + "isEnabled": { + "type": "integer", + "description": "是否启用该规则是否启用该规则0关1开" + } + } + }, + "TradeOrderDetailRespVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "订单编号 - 必填,示例:1024", + "format": "int64" + }, + "orderNum": { + "type": "string", + "description": "订单流水号 - 必填,示例:1146347329394184195" + }, + "createTime": { + "type": "string", + "description": "下单时间 - 必填" + }, + "type": { + "type": "integer", + "description": "订单类型 - 必填,示例:1" + }, + "terminal": { + "type": "integer", + "description": "订单来源 - 必填,示例:1" + }, + "userId": { + "type": "integer", + "description": "用户编号 - 必填,示例:2048", + "format": "int64" + }, + "userIp": { + "type": "string", + "description": "用户 IP - 必填,示例:127.0.0.1" + }, + "userRemark": { + "type": "string", + "description": "用户备注 - 必填,示例:你猜" + }, + "status": { + "type": "integer", + "description": "订单状态 - 必填,示例:1" + }, + "productCount": { + "type": "integer", + "description": "购买的商品数量 - 必填,示例:10" + }, + "finishTime": { + "type": "string", + "description": "订单完成时间" + }, + "cancelTime": { + "type": "string", + "description": "订单取消时间" + }, + "cancelType": { + "type": "integer", + "description": "取消类型,示例:10" + }, + "remark": { + "type": "string", + "description": "商家备注,示例:你猜一下" + }, + "payOrderId": { + "type": "integer", + "description": "支付订单编号 - 必填,示例:1024", + "format": "int64" + }, + "payStatus": { + "type": "boolean", + "description": "是否已支付 - 必填,示例:true" + }, + "payTime": { + "type": "string", + "description": "付款时间" + }, + "payChannelCode": { + "type": "string", + "description": "支付渠道 - 必填,示例:wx_lite" + }, + "totalPrice": { + "type": "integer", + "description": "商品原价(总) - 必填,示例:1000" + }, + "discountPrice": { + "type": "integer", + "description": "订单优惠(总) - 必填,示例:100" + }, + "deliveryPrice": { + "type": "integer", + "description": "运费金额 - 必填,示例:100" + }, + "adjustPrice": { + "type": "integer", + "description": "订单调价(总) - 必填,示例:100" + }, + "payPrice": { + "type": "integer", + "description": "应付金额(总) - 必填,示例:1000" + }, + "deliveryType": { + "type": "integer", + "description": "配送方式,示例:10" + }, + "pickUpStoreId": { + "type": "integer", + "description": "自提门店,示例:10", + "format": "int64" + }, + "pickUpVerifyCode": { + "type": "integer", + "description": "自提核销码,示例:10", + "format": "int64" + }, + "deliveryTemplateId": { + "type": "integer", + "description": "配送模板编号,示例:1024", + "format": "int64" + }, + "logisticsId": { + "type": "integer", + "description": "发货物流公司编号,示例:1024", + "format": "int64" + }, + "logisticsNo": { + "type": "string", + "description": "发货物流单号,示例:1024" + }, + "deliveryTime": { + "type": "string", + "description": "发货时间" + }, + "receiveTime": { + "type": "string", + "description": "收货时间" + }, + "receiverName": { + "type": "string", + "description": "收件人名称 - 必填,示例:张三" + }, + "receiverMobile": { + "type": "string", + "description": "收件人手机 - 必填,示例:13800138000" + }, + "receiverAreaId": { + "type": "integer", + "description": "收件人地区编号 - 必填,示例:110000" + }, + "receiverDetailAddress": { + "type": "string", + "description": "收件人详细地址 - 必填,示例:中关村大街 1 号" + }, + "afterSaleStatus": { + "type": "integer", + "description": "售后状态,示例:1" + }, + "refundPrice": { + "type": "integer", + "description": "退款金额 - 必填,示例:100" + }, + "couponId": { + "type": "integer", + "description": "优惠劵编号,示例:1024", + "format": "int64" + }, + "couponPrice": { + "type": "integer", + "description": "优惠劵减免金额 - 必填,示例:100" + }, + "pointPrice": { + "type": "integer", + "description": "积分抵扣的金额 - 必填,示例:100" + }, + "vipPrice": { + "type": "integer", + "description": "VIP 减免金额 - 必填,示例:888" + }, + "brokerageUserId": { + "type": "integer", + "description": "推广人编号,示例:1", + "format": "int64" + }, + "items": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Item1", + "description": "com.tashow.cloud.trade.controller.admin.order.vo.TradeOrderDetailRespVO.Item" + }, + "description": "订单项列表" + }, + "user": { + "$ref": "#/components/schemas/MemberUserRespVO", + "description": "下单用户信息" + }, + "brokerageUser": { + "$ref": "#/components/schemas/MemberUserRespVO", + "description": "推广用户信息" + }, + "logs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OrderLog", + "description": "com.tashow.cloud.trade.controller.admin.order.vo.TradeOrderDetailRespVO.OrderLog" + }, + "description": "操作日志列表" + }, + "receiverAreaName": { + "type": "string", + "description": "收件人地区名字 - 必填,示例:上海 上海市 普陀区" + } + } + }, + "ProdEmergencyResponseDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "boolean", + "description": "是否删除" + }, + "id": { + "type": "integer", + "description": "紧急响应服务配置的唯一标识符", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "关联的商品ID", + "format": "int64" + }, + "responseTimeSlots": { + "type": "string", + "description": "可响应时间段(JSON格式存储)" + }, + "blacklistedDates": { + "type": "string", + "description": "黑名自定义日期(JSON格式存储)" + }, + "blackAppointDates": { + "type": "string", + "description": "黑名单指定日期(JSON格式存储)" + }, + "blackHappy": { + "type": "boolean", + "description": "法定节假日是否开启0:关闭1开启" + }, + "blackWeekend": { + "type": "boolean", + "description": "固定休息日周末是否开启0关闭1开启" + } + } + }, + "CommonResultSkuExtendVO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "$ref": "#/components/schemas/SkuExtendVO", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "ProdReservationInfoVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "预约配置的唯一标识符", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "关联的商品ID", + "format": "int64" + }, + "reservationTimeSlots": { + "type": "array", + "items": { + "type": "string" + }, + "description": "预约时段设置" + }, + "advanceHours": { + "type": "integer", + "description": "需提前多少小时预约" + }, + "reservationDateRange": { + "type": "integer", + "description": "预约日期范围 7天 10天 15天 30天" + }, + "allowChange": { + "type": "integer", + "description": "是否允许更改预约时间 1可以 0不可以" + }, + "timeSlot": { + "type": "integer", + "description": "时间段" + }, + "changeTimeRule": { + "type": "integer", + "description": "更改预约时间的时间规则(如服务开始前1小时可更改)" + }, + "maxChangeTimes": { + "type": "integer", + "description": "允许更改预约时间的最大次数" + }, + "timeBook": { + "$ref": "#/components/schemas/TimeBookVO", + "description": "预约时间区间设置" + }, + "prodReservationBlackList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdAdditionalFeeBlackVO", + "description": "com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates.ProdAdditionalFeeBlackVO" + }, + "description": "预约黑名单日期设置" + } + } + }, + "ProPropRecycleBinVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "规格值id", + "format": "int64" + }, + "propValue": { + "type": "string", + "description": "属性规格名称" + }, + "propId": { + "type": "integer", + "description": "关联规格属性id", + "format": "int64" + }, + "remainingDays": { + "type": "integer", + "description": "还剩多少天", + "format": "int64" + }, + "deleteTime": { + "type": "string", + "description": "删除时间" + } + } + }, + "CommonResultTradeOrderDetailRespVO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "$ref": "#/components/schemas/TradeOrderDetailRespVO", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "ProdEmergencyResponseIntervalsDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "id": { + "type": "integer", + "description": "响应时间区间的唯一标识符", + "format": "int64" + }, + "configId": { + "type": "integer", + "description": "关联的紧急响应服务配置ID", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "商品ID", + "format": "int64" + }, + "name": { + "type": "string", + "description": "响应模式名称modeName" + }, + "responseHours": { + "type": "number", + "description": "响应时间(小时)" + }, + "chargeMode": { + "type": "integer", + "description": "收费模式0:固定收费 1:浮动收费" + }, + "floatingPercentage": { + "type": "number", + "description": "浮动百分比" + }, + "price": { + "type": "number", + "description": "价格或上浮百分比" + } + } + }, + "PageResultProPropRecycleBinVO": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProPropRecycleBinVO", + "description": "com.tashow.cloud.productapi.api.product.vo.prodpropvalue.ProPropRecycleBinVO" + }, + "description": "数据" + }, + "total": { + "type": "integer", + "description": "总量", + "format": "int64" + } + } + }, + "TradeOrderSummaryRespVO": { + "type": "object", + "properties": { + "orderCount": { + "type": "integer", + "description": "订单数量 - 必填,示例:1024", + "format": "int64" + }, + "orderPayPrice": { + "type": "integer", + "description": "订单金额 - 必填,示例:1024", + "format": "int64" + }, + "afterSaleCount": { + "type": "integer", + "description": "退款单数 - 必填,示例:1024", + "format": "int64" + }, + "afterSalePrice": { + "type": "integer", + "description": "退款金额 - 必填,示例:1024", + "format": "int64" + } + } + }, + "ProdEmergencyInfoVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "紧急响应服务配置的唯一标识符", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "关联的商品ID", + "format": "int64" + }, + "responseTimeSlots": { + "type": "array", + "items": { + "type": "string" + }, + "description": "可响应时间段(JSON格式存储)" + }, + "prodEmergencyResponseIntervalsList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdEmergencyResponseIntervalsDO", + "description": "紧急响应时间区间设置 DO" + }, + "description": "紧急响应时间区间设置" + }, + "prodEmergencyResponseBlackList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdAdditionalFeeBlackVO", + "description": "com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates.ProdAdditionalFeeBlackVO" + }, + "description": "紧急响应黑名单日期设置" + } + } + }, + "SkuRecycleBinVO": { + "type": "object", + "properties": { + "skuId": { + "type": "integer", + "description": "单品ID", + "format": "int64", + "examples": [32230] + }, + "properties": { + "type": "string", + "description": "是否显示失效规格值 0否1是" + }, + "skuName": { + "type": "string", + "description": "是否显示失效规格值 0否1是" + }, + "remainingDays": { + "type": "integer", + "description": "还剩多少天", + "format": "int64" + }, + "deleteTime": { + "type": "string", + "description": "删除时间" + }, + "prodId": { + "type": "integer", + "description": "商品ID", + "format": "int64", + "examples": [18784] + }, + "alias": { + "type": "string", + "description": "别名" + }, + "price": { + "type": "number", + "description": "当前价格", + "examples": [32405] + }, + "basePrice": { + "type": "number", + "description": "基准价" + }, + "minPrice": { + "type": "number", + "description": "最低价格", + "examples": [5040] + }, + "maxPrice": { + "type": "number", + "description": "最高价格", + "examples": [11547] + }, + "originalPrice": { + "type": "number", + "description": "成本价", + "examples": [28062] + }, + "marketPrice": { + "type": "number", + "description": "市场价", + "examples": [11547] + }, + "unit": { + "type": "string", + "description": "单位" + }, + "type": { + "type": "integer", + "description": "0:主服务1:待定", + "examples": [1] + }, + "overview": { + "type": "string", + "description": "概述" + }, + "stocks": { + "type": "integer", + "description": "库存" + }, + "stocksFlg": { + "type": "integer", + "description": "总库存是0 无线库存是1" + }, + "stocksLockNum": { + "type": "integer", + "description": "锁定库存数" + }, + "warnStocks": { + "type": "integer", + "description": "预警库存" + }, + "stocksType": { + "type": "boolean", + "description": "库存扣款时机0:付款扣1:下单扣", + "examples": [true] + }, + "skuCode": { + "type": "string", + "description": "sku编码" + }, + "modelId": { + "type": "string", + "description": "商品条形码", + "examples": ["14390"] + }, + "pic": { + "type": "string", + "description": "sku图片" + }, + "prodName": { + "type": "string", + "description": "商品名称", + "examples": ["芋艿"] + }, + "version": { + "type": "integer", + "description": "版本号" + }, + "weight": { + "type": "number", + "description": "商品重量" + }, + "volume": { + "type": "number", + "description": "商品体积" + }, + "status": { + "type": "integer", + "description": "0 禁用 1 启用", + "examples": [1] + }, + "isDelete": { + "type": "integer", + "description": "0 正常 1 已被删除" + }, + "moq": { + "type": "integer", + "description": "最小购买数量" + }, + "createTime": { + "type": "string", + "description": "创建时间" + }, + "isShelf": { + "type": "integer", + "description": "是否上下架0下架1上架" + }, + "isSpecs": { + "type": "integer", + "description": "是否默认规则0否1是" + }, + "serviceContent": { + "type": "string", + "description": "服务内容" + }, + "propIds": { + "type": "string", + "description": "规格id 多个用逗号分隔(1,2,3)" + } + } + }, + "CommonResultPageResultProPropRecycleBinVO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "$ref": "#/components/schemas/PageResultProPropRecycleBinVO", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "CommonResultTradeOrderSummaryRespVO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "$ref": "#/components/schemas/TradeOrderSummaryRespVO", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "ProductOrderLimitDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "id": { + "type": "integer", + "description": "接单上限配置的唯一标识符", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "关联的商品ID", + "format": "int64" + }, + "limitUnit": { + "type": "integer", + "description": "限制单位'0:按自然天',1:'按自然周',2:'按自然月'" + }, + "maxOrders": { + "type": "integer", + "description": "上限阈值" + } + } + }, + "PageResultSkuRecycleBinVO": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuRecycleBinVO", + "description": "com.tashow.cloud.product.vo.sku.SkuRecycleBinVO" + }, + "description": "数据" + }, + "total": { + "type": "integer", + "description": "总量", + "format": "int64" + } + } + }, + "CommonResultList?": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": {} + }, + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "ProdAdditionalFeeDatesDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "id": { + "type": "integer", + "description": "特殊日期规则的唯一标识符", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "商品id", + "format": "int64" + }, + "name": { + "type": "string", + "description": "名称" + }, + "dateType": { + "type": "integer", + "description": "日期类型0:'自定义日期范围':1:'指定日期':2:'法定节假日',3:'固定休息日'" + }, + "type": { + "type": "integer", + "description": "类型:1:特殊日期 2:可预约时段黑名单日期 3:紧急相应服务黑名单日期" + }, + "customTimeSlots": { + "type": "array", + "items": { + "type": "string" + }, + "description": "自定义日期时间段(JSON格式存储)" + }, + "chargeMode": { + "type": "integer", + "description": "收费方式" + }, + "price": { + "type": "number", + "description": "价格或上浮百分比" + }, + "isEnabled": { + "type": "integer", + "description": "是否启用该规则" + } + } + }, + "CommonResultPageResultSkuRecycleBinVO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "$ref": "#/components/schemas/PageResultSkuRecycleBinVO", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "ProdAdditionalFeePeriodsDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "id": { + "type": "integer", + "description": "特殊时段规则的唯一标识符", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "商品ID", + "format": "int64" + }, + "name": { + "type": "string", + "description": "名称" + }, + "specialTimeSlots": { + "type": "array", + "items": { + "type": "string" + }, + "description": "特殊时段设置(JSON格式存储)" + }, + "chargeMode": { + "type": "integer", + "description": "收费方式0:'固定金额',1:'基准价上浮'" + }, + "price": { + "type": "number", + "description": "价格或上浮百分比" + }, + "floatingPercentage": { + "type": "number", + "description": "浮动百分比" + } + } + }, + "PageResultSkuDO": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SkuDO", + "description": "单品SKU DO" + }, + "description": "数据" + }, + "total": { + "type": "integer", + "description": "总量", + "format": "int64" + } + } + }, + "TradeOrderDeliveryReqVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "订单编号 - 必填,示例:1024", + "format": "int64" + }, + "logisticsId": { + "type": "integer", + "description": "发货物流公司编号,示例:1", + "format": "int64" + }, + "logisticsNo": { + "type": "string", + "description": "发货物流单号,示例:SF123456789" + } + }, + "required": ["id", "logisticsId"] + }, + "ProdWeightRangePricesDO": { + "type": "object", + "properties": { + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "最后更新时间" + }, + "creator": { + "type": "string", + "description": "创建者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "updater": { + "type": "string", + "description": "更新者,目前使用 SysUser 的 id 编号\n\n使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。" + }, + "deleted": { + "type": "integer", + "description": "是否删除" + }, + "id": { + "type": "integer", + "description": "体重区间价格的唯一标识符", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "关联的体重配置ID", + "format": "int64" + }, + "weightRange": { + "type": "string", + "description": "体重区间" + }, + "price": { + "type": "number", + "description": "价格" + }, + "isEnabled": { + "type": "integer", + "description": "是否启用该规则0否1是" + } + } + }, + "CommonResultPageResultSkuDO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "$ref": "#/components/schemas/PageResultSkuDO", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "TradeOrderRemarkReqVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "订单编号 - 必填,示例:1024", + "format": "int64" + }, + "remark": { + "type": "string", + "description": "商家备注,示例:你猜一下" + } + }, + "required": ["id", "remark"] + }, + "ProdServiceVO": { + "type": "object", + "properties": { + "prodId": { + "type": "integer", + "description": "产品ID", + "format": "int64", + "examples": [6943] + }, + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "修改时间" + }, + "creator": { + "type": "string", + "description": "新建人" + }, + "updater": { + "type": "string", + "description": "修改人" + }, + "categoryName": { + "type": "string", + "description": "分类名称" + }, + "regionSwitch": { + "type": "integer", + "description": "是否开启服务区域配置0关1开" + }, + "prodServiceAreasInfo": { + "$ref": "#/components/schemas/ProdServiceAreasInfoVO", + "description": "服务区域配置" + }, + "reservationSwitch": { + "type": "integer", + "description": "是否预约0关1开" + }, + "prodReservationConfig": { + "$ref": "#/components/schemas/ProdReservationInfoVO", + "description": "预约配置" + }, + "emergencySwitch": { + "type": "integer", + "description": "是否紧急响应服务0关1开" + }, + "prodEmergencyInfoVO": { + "$ref": "#/components/schemas/ProdEmergencyInfoVO", + "description": "急响应服务配置" + }, + "orderLimitSwitch": { + "type": "integer", + "description": "是否接单上线0关1开" + }, + "productOrderLimitVO": { + "$ref": "#/components/schemas/ProductOrderLimitDO", + "description": "接单上线配置" + }, + "additionalSwitch": { + "type": "integer", + "description": "是否特殊时段0关1开" + }, + "prodAdditionalFeeDatesList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdAdditionalFeeDatesDO", + "description": "特殊日期附加费用规则 DO" + }, + "description": "特殊时段规则配置" + }, + "additionalFeeSwitch": { + "type": "integer", + "description": "是否特殊日期(节假日周末什么的)0关1开" + }, + "prodAdditionalFeePeriodsList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdAdditionalFeePeriodsDO", + "description": "特殊时段附加费用规则 DO" + }, + "description": "特殊日期规则配置" + }, + "weightSwitch": { + "type": "integer", + "description": "是否开启体重配置0关1开" + }, + "prodWeightConfig": { + "$ref": "#/components/schemas/ProdWeightRangePricesSaveInfoVO", + "description": "体重配置" + } + } + }, + "ProdWeightRangePricesSaveInfoVO": { + "type": "object", + "properties": { + "isWeightCharge": { + "type": "integer", + "description": "体重是否收费0否1是" + }, + "prodWeightConfigList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdWeightRangePricesDO", + "description": "体重区间价格 DO" + }, + "description": "体重配置" + } + } + }, + "TradeOrderUpdatePriceReqVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "订单编号 - 必填,示例:1024", + "format": "int64" + }, + "adjustPrice": { + "type": "integer", + "description": "订单调价,单位:分。正数,加价;负数,减价 - 必填,示例:-100" + } + }, + "required": ["id", "adjustPrice"] + }, + "CommonResultProdServiceVO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "$ref": "#/components/schemas/ProdServiceVO", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "TradeOrderUpdateAddressReqVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "订单编号 - 必填,示例:1", + "format": "int64" + }, + "receiverName": { + "type": "string", + "description": "收件人名称 - 必填,示例:z张三" + }, + "receiverMobile": { + "type": "string", + "description": "收件人手机 - 必填,示例:19988188888" + }, + "receiverAreaId": { + "type": "integer", + "description": "收件人地区编号 - 必填,示例:7310" + }, + "receiverDetailAddress": { + "type": "string", + "description": "收件人详细地址 - 必填,示例:昆明市五华区xxx小区xxx" + } + }, + "required": [ + "id", + "receiverName", + "receiverMobile", + "receiverAreaId", + "receiverDetailAddress" + ] + }, + "ProdReservationInfoReqVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "预约配置的唯一标识符", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "关联的商品ID", + "format": "int64" + }, + "reservationTimeSlots": { + "type": "array", + "items": { + "type": "string" + }, + "description": "预约时段设置" + }, + "advanceHours": { + "type": "integer", + "description": "需提前多少小时预约" + }, + "reservationDateRange": { + "type": "integer", + "description": "预约日期范围 7天 10天 15天 30天" + }, + "allowChange": { + "type": "integer", + "description": "是否允许更改预约时间 1可以 0不可以" + }, + "timeSlot": { + "type": "integer", + "description": "时间段" + }, + "changeTimeRule": { + "type": "integer", + "description": "更改预约时间的时间规则(如服务开始前1小时可更改)" + }, + "maxChangeTimes": { + "type": "integer", + "description": "允许更改预约时间的最大次数" + }, + "timeBook": { + "$ref": "#/components/schemas/TimeBookVO", + "description": "预约时间区间设置" + }, + "prodReservationBlackList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdAdditionalFeeBlackVO", + "description": "com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates.ProdAdditionalFeeBlackVO" + }, + "description": "预约黑名单日期设置", + "default": "new ArrayList<>()" + } + } + }, + "ProdListVO": { + "type": "object", + "properties": { + "prodId": { + "type": "integer", + "description": "产品ID", + "format": "int64" + }, + "prodName": { + "type": "string", + "description": "商品名称" + }, + "categoryName": { + "type": "string", + "description": "分类名称" + }, + "shopId": { + "type": "integer", + "description": "店铺id", + "format": "int64" + }, + "shopName": { + "type": "string", + "description": "店铺id" + }, + "status": { + "type": "integer", + "description": "默认是1,正常状态(出售中), 0:下架(仓库中) 2:待审核" + }, + "isProhibit": { + "type": "integer", + "description": "是否置灰0否1是" + }, + "areaNameList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "服务区域地址名称集合" + }, + "responseHours": { + "type": "number", + "description": "紧急服务最快响应时间(小时)" + }, + "reservationTimeSlots": { + "type": "array", + "items": { + "type": "string" + }, + "description": "服务时段" + }, + "remainingDays": { + "type": "integer", + "description": "还剩多少天", + "format": "int64" + }, + "processNotes": { + "type": "string", + "description": "审核备注" + }, + "deleteTime": { + "type": "string", + "description": "删除时间" + }, + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "更新时间" + } + } + }, + "ProdRestoreListVO": { + "type": "object", + "properties": { + "prodId": { + "type": "integer", + "description": "产品ID", + "format": "int64" + }, + "prodName": { + "type": "string", + "description": "商品名称" + }, + "categoryName": { + "type": "string", + "description": "分类名称" + }, + "shopId": { + "type": "integer", + "description": "店铺id", + "format": "int64" + }, + "shopName": { + "type": "string", + "description": "店铺id" + }, + "areaNameList": { + "type": "array", + "items": { + "type": "string" + }, + "description": "服务区域地址名称集合" + }, + "responseHours": { + "type": "number", + "description": "紧急服务最快响应时间(小时)" + }, + "reservationTimeSlots": { + "type": "array", + "items": { + "type": "string" + }, + "description": "服务时段" + }, + "remainingDays": { + "type": "integer", + "description": "还剩多少天", + "format": "int64" + }, + "deleteTime": { + "type": "string", + "description": "删除时间" + }, + "createTime": { + "type": "string", + "description": "创建时间" + } + } + }, + "ProdEmergencyInfoReqVO": { + "type": "object", + "properties": { + "id": { + "type": "integer", + "description": "紧急响应服务配置的唯一标识符", + "format": "int64" + }, + "prodId": { + "type": "integer", + "description": "关联的商品ID", + "format": "int64" + }, + "responseTimeSlots": { + "type": "array", + "items": { + "type": "string" + }, + "description": "可响应时间段" + }, + "prodEmergencyResponseIntervalsList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdEmergencyResponseIntervalsDO", + "description": "紧急响应时间区间设置 DO" + }, + "description": "紧急响应时间区间设置" + }, + "prodEmergencyResponseBlackList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdAdditionalFeeBlackVO", + "description": "com.tashow.cloud.productapi.api.product.vo.prodadditionalfeedates.ProdAdditionalFeeBlackVO" + }, + "description": "紧急响应黑名单日期设置" + } + } + }, + "PageResultProdListVO": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdListVO", + "description": "com.tashow.cloud.productapi.api.product.vo.prod.ProdListVO" + }, + "description": "数据" + }, + "total": { + "type": "integer", + "description": "总量", + "format": "int64" + } + } + }, + "PageResultProdRestoreListVO": { + "type": "object", + "properties": { + "list": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdRestoreListVO", + "description": "com.tashow.cloud.productapi.api.product.vo.prod.ProdRestoreListVO" + }, + "description": "数据" + }, + "total": { + "type": "integer", + "description": "总量", + "format": "int64" + } + } + }, + "ProdServiceInfoVO": { + "type": "object", + "properties": { + "prodId": { + "type": "integer", + "description": "产品ID", + "format": "int64", + "examples": [6943] + }, + "createTime": { + "type": "string", + "description": "创建时间" + }, + "updateTime": { + "type": "string", + "description": "修改时间" + }, + "creator": { + "type": "string", + "description": "新建人" + }, + "updater": { + "type": "string", + "description": "修改人" + }, + "categoryName": { + "type": "string", + "description": "分类名称" + }, + "regionSwitch": { + "type": "integer", + "description": "是否开启服务区域配置0关1开" + }, + "prodServiceAreasInfo": { + "$ref": "#/components/schemas/ProdServiceAreasInfoVO", + "description": "服务区域配置" + }, + "reservationSwitch": { + "type": "integer", + "description": "是否预约0关1开" + }, + "prodReservationConfig": { + "$ref": "#/components/schemas/ProdReservationInfoReqVO", + "description": "预约配置" + }, + "emergencySwitch": { + "type": "integer", + "description": "是否紧急响应服务0关1开" + }, + "prodEmergencyInfoVO": { + "$ref": "#/components/schemas/ProdEmergencyInfoReqVO", + "description": "急响应服务配置" + }, + "orderLimitSwitch": { + "type": "integer", + "description": "是否接单上线0关1开" + }, + "productOrderLimitVO": { + "$ref": "#/components/schemas/ProductOrderLimitDO", + "description": "接单上线配置" + }, + "additionalSwitch": { + "type": "integer", + "description": "是否特殊时段0关1开" + }, + "prodAdditionalFeeDatesList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdAdditionalFeeDatesDO", + "description": "特殊日期附加费用规则 DO" + }, + "description": "特殊时段规则配置" + }, + "additionalFeeSwitch": { + "type": "integer", + "description": "是否特殊日期(节假日周末什么的)0关1开" + }, + "prodAdditionalFeePeriodsList": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ProdAdditionalFeePeriodsDO", + "description": "特殊时段附加费用规则 DO" + }, + "description": "特殊日期规则配置" + }, + "weightSwitch": { + "type": "integer", + "description": "是否开启体重配置0关1开" + }, + "prodWeightConfig": { + "$ref": "#/components/schemas/ProdWeightRangePricesSaveInfoVO", + "description": "体重配置" + } + } + }, + "CommonResultPageResultProdListVO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "$ref": "#/components/schemas/PageResultProdListVO", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + }, + "CommonResultPageResultProdRestoreListVO": { + "type": "object", + "properties": { + "code": { + "type": "integer", + "description": "错误码" + }, + "data": { + "$ref": "#/components/schemas/PageResultProdRestoreListVO", + "description": "返回数据" + }, + "msg": { + "type": "string", + "description": "错误提示,用户可阅读" + } + } + } + }, + "securitySchemes": {} + }, + "servers": [], + "security": [] +} diff --git a/config/proxy.ts b/config/proxy.ts index 6631789..279a12f 100644 --- a/config/proxy.ts +++ b/config/proxy.ts @@ -11,33 +11,33 @@ */ export default { // 如果需要自定义本地开发服务器 请取消注释按需调整 - // dev: { - // // localhost:8000/api/** -> https://preview.pro.ant.design/api/** - // '/api/': { - // // 要代理的地址 - // target: 'https://preview.pro.ant.design', - // // 配置了这个可以从 http 代理到 https - // // 依赖 origin 的功能可能需要这个,比如 cookie - // changeOrigin: true, - // }, - // }, + dev: { + // localhost:8000/api/** -> https://preview.pro.ant.design/api/** + "/admin-api/": { + // 要代理的地址 + target: "http://192.168.1.114:48080", + // 配置了这个可以从 http 代理到 https + // 依赖 origin 的功能可能需要这个,比如 cookie + changeOrigin: true, + }, + }, /** * @name 详细的代理配置 * @doc https://github.com/chimurai/http-proxy-middleware */ test: { // localhost:8000/api/** -> https://preview.pro.ant.design/api/** - '/api/': { - target: 'https://proapi.azurewebsites.net', + "/api/": { + target: "https://proapi.azurewebsites.net", changeOrigin: true, - pathRewrite: { '^': '' }, + pathRewrite: { "^": "" }, }, }, pre: { - '/api/': { - target: 'your pre url', + "/api/": { + target: "your pre url", changeOrigin: true, - pathRewrite: { '^': '' }, + pathRewrite: { "^": "" }, }, }, }; diff --git a/config/routes.ts b/config/routes.ts index 27ff508..ba9c580 100644 --- a/config/routes.ts +++ b/config/routes.ts @@ -12,52 +12,52 @@ */ export default [ { - path: '/user', + path: "/user", layout: false, routes: [ { - name: 'login', - path: '/user/login', - component: './user/login', + name: "login", + path: "/user/login", + component: "./user/login", }, ], }, { - path: '/welcome', - name: 'welcome', - icon: 'smile', - component: './Welcome', + path: "/welcome", + name: "welcome", + icon: "smile", + component: "./Welcome", }, { - path: '/admin', - name: 'admin', - icon: 'crown', - access: 'canAdmin', + path: "/admin", + name: "admin", + icon: "crown", + access: "canAdmin", routes: [ { - path: '/admin', - redirect: '/admin/sub-page', + path: "/admin", + redirect: "/admin/sub-page", }, { - path: '/admin/sub-page', - name: 'sub-page', - component: './Admin', + path: "/admin/sub-page", + name: "sub-page", + component: "./Admin", }, ], }, + // { + // name: 'list.table-list', + // icon: 'table', + // path: '/list', + // component: './table-list', + // }, { - name: 'list.table-list', - icon: 'table', - path: '/list', - component: './table-list', + path: "/", + redirect: "/welcome", }, { - path: '/', - redirect: '/welcome', - }, - { - component: '404', + component: "404", layout: false, - path: './*', + path: "./*", }, ]; diff --git a/package.json b/package.json index 69d5848..a863fba 100644 --- a/package.json +++ b/package.json @@ -37,22 +37,26 @@ "dependencies": { "@ant-design/icons": "^5.6.1", "@ant-design/pro-components": "^2.8.9", - "antd": "^5.26.4", "@ant-design/v5-patch-for-react-19": "^1.0.3", + "antd": "^5.26.4", "antd-style": "^3.7.0", "classnames": "^2.5.1", "dayjs": "^1.11.13", + "jsencrypt": "^3.5.4", "react": "^19.1.0", - "react-dom": "^19.1.0" + "react-dom": "^19.1.0", + "web-storage-cache": "^1.1.1" }, "devDependencies": { "@ant-design/pro-cli": "^3.3.0", + "@biomejs/biome": "^2.1.1", "@commitlint/cli": "^19.8.1", "@commitlint/config-conventional": "^19.8.1", "@testing-library/dom": "^10.4.0", "@testing-library/react": "^16.3.0", "@types/express": "^5.0.3", "@types/jest": "^30.0.0", + "@types/node": "^24.0.13", "@types/react": "^19.1.8", "@types/react-dom": "^19.1.6", "@types/react-helmet": "^6.1.11", @@ -68,9 +72,7 @@ "ts-node": "^10.9.2", "typescript": "^5.6.3", "umi-presets-pro": "^2.0.3", - "umi-serve": "^1.9.11", - "@biomejs/biome": "^2.1.1", - "@types/node": "^24.0.13" + "umi-serve": "^1.9.11" }, "engines": { "node": ">=20.0.0" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 20452d0..a1b4835 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -29,12 +29,18 @@ importers: dayjs: specifier: ^1.11.13 version: 1.11.18 + jsencrypt: + specifier: ^3.5.4 + version: 3.5.4 react: specifier: ^19.1.0 version: 19.1.1 react-dom: specifier: ^19.1.0 version: 19.1.1(react@19.1.1) + web-storage-cache: + specifier: ^1.1.1 + version: 1.1.1 devDependencies: '@ant-design/pro-cli': specifier: ^3.3.0 @@ -6624,6 +6630,9 @@ packages: canvas: optional: true + jsencrypt@3.5.4: + resolution: {integrity: sha512-kNjfYEMNASxrDGsmcSQh/rUTmcoRfSUkxnAz+MMywM8jtGu+fFEZ3nJjHM58zscVnwR0fYmG9sGkTDjqUdpiwA==} + jsesc@2.5.2: resolution: {integrity: sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==} engines: {node: '>=4'} @@ -10737,6 +10746,9 @@ packages: wcwidth@1.0.1: resolution: {integrity: sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==} + web-storage-cache@1.1.1: + resolution: {integrity: sha512-D0MieGooOs8RpsrK+vnejXnvh4OOv/+lTFB35JRkJJQt+uOjPE08XpaE0QBLMTRu47B1KGT/Nq3Gbag3Orinzw==} + web-streams-polyfill@3.3.3: resolution: {integrity: sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==} engines: {node: '>= 8'} @@ -14812,7 +14824,7 @@ snapshots: '@types/history@5.0.0': dependencies: - history: 4.10.1 + history: 5.3.0 '@types/hoist-non-react-statics@3.3.7(@types/react@19.1.12)': dependencies: @@ -14917,7 +14929,7 @@ snapshots: '@types/history': 4.7.11 '@types/react': 19.1.12 '@types/react-router': 5.1.20 - redux: 3.7.2 + redux: 4.2.1 '@types/react-router@5.1.20': dependencies: @@ -15247,7 +15259,7 @@ snapshots: '@svgr/core': 6.5.1 '@umijs/bundler-utils': 4.4.12 '@umijs/utils': 4.4.12 - '@vitejs/plugin-react': 4.0.0(vite@4.5.2(@types/node@24.3.1)(less@4.4.1)(lightningcss@1.22.1)(sugarss@2.0.0)(terser@5.44.0)) + '@vitejs/plugin-react': 4.0.0(vite@4.5.2(@types/node@24.3.1)(less@4.1.3)(lightningcss@1.22.1)(sugarss@2.0.0)(terser@5.44.0)) core-js: 3.34.0 less: 4.1.3 postcss-preset-env: 7.5.0(postcss@8.5.6) @@ -15934,13 +15946,13 @@ snapshots: '@unrs/resolver-binding-win32-x64-msvc@1.11.1': optional: true - '@vitejs/plugin-react@4.0.0(vite@4.5.2(@types/node@24.3.1)(less@4.4.1)(lightningcss@1.22.1)(sugarss@2.0.0)(terser@5.44.0))': + '@vitejs/plugin-react@4.0.0(vite@4.5.2(@types/node@24.3.1)(less@4.1.3)(lightningcss@1.22.1)(sugarss@2.0.0)(terser@5.44.0))': dependencies: '@babel/core': 7.28.4 '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.28.4) '@babel/plugin-transform-react-jsx-source': 7.27.1(@babel/core@7.28.4) react-refresh: 0.14.2 - vite: 4.5.2(@types/node@24.3.1)(less@4.4.1)(lightningcss@1.22.1)(sugarss@2.0.0)(terser@5.44.0) + vite: 4.5.2(@types/node@24.3.1)(less@4.1.3)(lightningcss@1.22.1)(sugarss@2.0.0)(terser@5.44.0) transitivePeerDependencies: - supports-color @@ -20412,6 +20424,8 @@ snapshots: - supports-color - utf-8-validate + jsencrypt@3.5.4: {} + jsesc@2.5.2: {} jsesc@3.0.2: {} @@ -25430,19 +25444,6 @@ snapshots: sugarss: 2.0.0 terser: 5.44.0 - vite@4.5.2(@types/node@24.3.1)(less@4.4.1)(lightningcss@1.22.1)(sugarss@2.0.0)(terser@5.44.0): - dependencies: - esbuild: 0.18.20 - postcss: 8.5.6 - rollup: 3.29.5 - optionalDependencies: - '@types/node': 24.3.1 - fsevents: 2.3.3 - less: 4.4.1 - lightningcss: 1.22.1 - sugarss: 2.0.0 - terser: 5.44.0 - vm-browserify@1.1.2: {} w3c-xmlserializer@5.0.0: @@ -25476,6 +25477,8 @@ snapshots: dependencies: defaults: 1.0.4 + web-storage-cache@1.1.1: {} + web-streams-polyfill@3.3.3: {} webidl-conversions@3.0.1: {} diff --git a/src/access.ts b/src/access.ts index 373d9fa..d5bb179 100644 --- a/src/access.ts +++ b/src/access.ts @@ -1,11 +1,13 @@ +import { UserVO } from "./services/login/types"; + /** * @see https://umijs.org/docs/max/access#access * */ export default function access( - initialState: { currentUser?: API.CurrentUser } | undefined, + initialState: { currentUser?: UserVO } | undefined ) { const { currentUser } = initialState ?? {}; return { - canAdmin: currentUser && currentUser.access === 'admin', + canAdmin: currentUser && currentUser.username === "admin", }; } diff --git a/src/app.tsx b/src/app.tsx index b0d0e6c..060934f 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -1,39 +1,39 @@ -import { LinkOutlined } from '@ant-design/icons'; -import type { Settings as LayoutSettings } from '@ant-design/pro-components'; -import { SettingDrawer } from '@ant-design/pro-components'; -import type { RequestConfig, RunTimeLayoutConfig } from '@umijs/max'; -import { history, Link } from '@umijs/max'; -import React from 'react'; +import { LinkOutlined } from "@ant-design/icons"; +import type { Settings as LayoutSettings } from "@ant-design/pro-components"; +import { SettingDrawer } from "@ant-design/pro-components"; +import type { RequestConfig, RunTimeLayoutConfig } from "@umijs/max"; +import { history, Link } from "@umijs/max"; +import React from "react"; import { AvatarDropdown, AvatarName, Footer, Question, SelectLang, -} from '@/components'; -import { currentUser as queryCurrentUser } from '@/services/ant-design-pro/api'; -import defaultSettings from '../config/defaultSettings'; -import { errorConfig } from './requestErrorConfig'; -import '@ant-design/v5-patch-for-react-19'; +} from "@/components"; +import { getInfo } from "@/services/login"; +import type { UserVO, TokenType } from "@/services/login/types"; +import defaultSettings from "../config/defaultSettings"; +import { errorConfig } from "./requestErrorConfig"; +import "@ant-design/v5-patch-for-react-19"; -const isDev = process.env.NODE_ENV === 'development'; +const isDev = process.env.NODE_ENV === "development"; const isDevOrTest = isDev || process.env.CI; -const loginPath = '/user/login'; +const loginPath = "/user/login"; /** * @see https://umijs.org/docs/api/runtime-config#getinitialstate * */ export async function getInitialState(): Promise<{ settings?: Partial; - currentUser?: API.CurrentUser; + currentUser?: { user: UserVO }; loading?: boolean; - fetchUserInfo?: () => Promise; + fetchUserInfo?: () => Promise<{ user: UserVO } | undefined>; }> { const fetchUserInfo = async () => { + // history.push(loginPath); try { - const msg = await queryCurrentUser({ - skipErrorHandler: true, - }); + const msg = await getInfo(); return msg.data; } catch (_error) { history.push(loginPath); @@ -43,8 +43,8 @@ export async function getInitialState(): Promise<{ // 如果不是登录页面,执行 const { location } = history; if ( - ![loginPath, '/user/register', '/user/register-result'].includes( - location.pathname, + ![loginPath, "/user/register", "/user/register-result"].includes( + location.pathname ) ) { const currentUser = await fetchUserInfo(); @@ -71,14 +71,14 @@ export const layout: RunTimeLayoutConfig = ({ , ], avatarProps: { - src: initialState?.currentUser?.avatar, + src: initialState?.currentUser?.user.avatar, title: , render: (_, avatarChildren) => ( {avatarChildren} ), }, waterMarkProps: { - content: initialState?.currentUser?.name, + content: initialState?.currentUser?.user.nickname, }, footerRender: () =>