feat: 基本信息

This commit is contained in:
2025-10-17 17:43:42 +08:00
parent 3c7473f8d1
commit 263a7d3e20
20 changed files with 1745 additions and 492 deletions

View File

@@ -20,4 +20,849 @@ export default {
userId: 1,
},
},
"GET /admin-api/system/auth/get-permission-info": {
data: {
user: {
id: 1,
nickname: "芋道源码",
avatar:
"http://test.yudao.iocoder.cn/bf2002b38950c904243be7c825d3f82e29f25a44526583c3fde2ebdff3a87f75.png",
deptId: 103,
},
roles: ["super_admin"],
permissions: [
"",
"infra:config:create",
"system:menu:query",
"infra:file-config:query",
"infra:config:export",
"system:user:query",
"infra:file-config:create",
"system:user:export",
"system:dept:update",
"infra:api-access-log:export",
"infra:data-source-config:update",
"system:dept:query",
"infra:file-config:export",
"infra:demo01-contact:query",
"system:tenant-package:delete",
"infra:demo02-category:query",
"system:role:delete",
"system:dept:create",
"system:menu:create",
"infra:codegen:download",
"system:dict:query",
"infra:api-error-log:query",
"infra:demo03-student:delete",
"system:dict:update",
"infra:demo01-contact:delete",
"infra:job:delete",
"system:tenant:export",
"system:post:update",
"infra:api-error-log:update-status",
"system:tenant:create",
"infra:demo02-category:update",
"system:post:export",
"infra:file:delete",
"infra:data-source-config:create",
"infra:job:trigger",
"system:menu:update",
"infra:demo02-category:delete",
"system:login-log:query",
"system:role:update",
"system:login-log:export",
"system:user:create",
"system:role:export",
"infra:file-config:update",
"infra:demo01-contact:update",
"system:permission:assign-user-role",
"system:post:delete",
"infra:demo03-student:create",
"infra:config:update",
"infra:job:update",
"infra:job:export",
"infra:demo01-contact:export",
"infra:api-error-log:export",
"infra:demo02-category:export",
"infra:job:create",
"system:permission:assign-role-menu",
"infra:config:query",
"infra:demo02-category:create",
"system:dept:delete",
"system:tenant:update",
"ai:sample:tag",
"system:tenant-package:update",
"infra:codegen:create",
"infra:data-source-config:delete",
"infra:file-config:delete",
"infra:codegen:preview",
"system:dict:create",
"infra:api-access-log:query",
"infra:redis:get-monitor-info",
"infra:file:query",
"infra:config:delete",
"system:user:update-password",
"system:dict:export",
"system:post:query",
"system:post:create",
"infra:codegen:delete",
"infra:redis:get-key-list",
"system:user:delete",
"infra:build:list",
"infra:codegen:update",
"infra:data-source-config:export",
"system:user:import",
"infra:swagger:list",
"infra:job:query",
"system:user:update",
"system:menu:delete",
"infra:data-source-config:query",
"system:permission:assign-role-data-scope",
"system:tenant-package:create",
"infra:demo03-student:update",
"system:user:list",
"infra:demo01-contact:create",
"system:operate-log:query",
"infra:codegen:query",
"system:tenant:delete",
"system:tenant-package:query",
"system:role:create",
"infra:demo03-student:query",
"system:dict:delete",
"system:operate-log:export",
"system:role:query",
"infra:demo03-student:export",
],
menus: [
{
id: 5015,
parentId: 0,
name: "商品管理",
path: "/prod",
component: "",
componentName: "",
icon: "",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 5016,
parentId: 5015,
name: "商品管理",
path: "list",
component: "prod/prod-manager/index",
componentName: "ProdManagerList",
icon: "",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 5022,
parentId: 5015,
name: "类目管理",
path: "category",
component: "prod/category-manager/index",
componentName: "CategoryManager",
icon: "",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
],
},
{
id: 5001,
parentId: 0,
name: "系统管理1",
path: "/system1",
component: "",
componentName: "",
icon: "ep:setting",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 5003,
parentId: 5001,
name: "租户管理",
path: "tenant",
component: "",
componentName: "",
icon: "fa-solid:house-user",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 5004,
parentId: 5003,
name: "租户列表",
path: "list",
component: "system/tenant/list/index",
componentName: "SystemTenantListIndex",
icon: "ep:list",
visible: true,
keepAlive: false,
alwaysShow: true,
children: null,
},
{
id: 5005,
parentId: 5003,
name: "租户套餐",
path: "package",
component: "system/tenant/package/index",
componentName: "SystemPackage",
icon: "fa:align-justify",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
],
},
{
id: 5007,
parentId: 5001,
name: "用户管理",
path: "user",
component: "system/user/index",
componentName: "SystemUserIndex",
icon: "ep:user-filled",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 5006,
parentId: 5001,
name: "角色管理",
path: "role",
component: "system/role/index",
componentName: "SystemRoleIndex",
icon: "ep:user",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 5008,
parentId: 5001,
name: "菜单管理",
path: "menu",
component: "system/menu/index",
componentName: "SystemMenuIndex",
icon: "ep:menu",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 5009,
parentId: 5001,
name: "字典管理",
path: "dict",
component: "system/dict/index",
componentName: "SystemDictIndex",
icon: "ep:search",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 5019,
parentId: 5001,
name: "部门管理",
path: "dept",
component: "system/dept/index",
componentName: null,
icon: "#",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 5020,
parentId: 5001,
name: "审计日志",
path: "log",
component: "",
componentName: "",
icon: "",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 5021,
parentId: 5020,
name: "操作日志",
path: "operate",
component: "system/log/operate/index",
componentName: "SystemOperateLog",
icon: "",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
],
},
],
},
{
id: 5055,
parentId: 0,
name: "AI",
path: "/ai",
component: "",
componentName: "",
icon: "",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 5057,
parentId: 5055,
name: "样本管理",
path: "sample-tag",
component: "ai/sample-tag/index",
componentName: "AiSampleTag",
icon: "",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
],
},
{
id: 1,
parentId: 0,
name: "系统管理",
path: "/system",
component: null,
componentName: null,
icon: "ep:tools",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 1224,
parentId: 1,
name: "租户管理",
path: "tenant",
component: null,
componentName: null,
icon: "fa-solid:house-user",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 1138,
parentId: 1224,
name: "租户列表",
path: "list",
component: "system/tenant/index",
componentName: "SystemTenant",
icon: "ep:house",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 1225,
parentId: 1224,
name: "租户套餐",
path: "package",
component: "system/tenantPackage/index",
componentName: "SystemTenantPackage",
icon: "fa:bars",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
],
},
{
id: 100,
parentId: 1,
name: "用户管理",
path: "user",
component: "system/user/index",
componentName: "SystemUser",
icon: "ep:avatar",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 101,
parentId: 1,
name: "角色管理",
path: "role",
component: "system/role/index",
componentName: "SystemRole",
icon: "ep:user",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 102,
parentId: 1,
name: "菜单管理",
path: "menu",
component: "system/menu/index",
componentName: "SystemMenu",
icon: "ep:menu",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 103,
parentId: 1,
name: "部门管理",
path: "dept",
component: "system/dept/index",
componentName: "SystemDept",
icon: "fa:address-card",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 104,
parentId: 1,
name: "岗位管理",
path: "post",
component: "system/post/index",
componentName: "SystemPost",
icon: "fa:address-book-o",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 105,
parentId: 1,
name: "字典管理",
path: "dict",
component: "system/dict/index",
componentName: "SystemDictType",
icon: "ep:collection",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 5058,
parentId: 1,
name: "字典详情",
path: "dict/data/:type",
component: "system/dict/data/index",
componentName: "SyStemDictData",
icon: "#",
visible: false,
keepAlive: true,
alwaysShow: false,
children: null,
},
{
id: 108,
parentId: 1,
name: "审计日志",
path: "log",
component: "",
componentName: null,
icon: "ep:document-copy",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 500,
parentId: 108,
name: "操作日志",
path: "operate-log",
component: "system/operatelog/index",
componentName: "SystemOperateLog",
icon: "ep:position",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 501,
parentId: 108,
name: "登录日志",
path: "login-log",
component: "system/loginlog/index",
componentName: "SystemLoginLog",
icon: "ep:promotion",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
],
},
],
},
{
id: 2,
parentId: 0,
name: "基础设施",
path: "/infra",
component: null,
componentName: null,
icon: "ep:monitor",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 115,
parentId: 2,
name: "代码生成",
path: "codegen",
component: "infra/codegen/index",
componentName: "InfraCodegen",
icon: "ep:document-copy",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 1070,
parentId: 2,
name: "代码生成案例",
path: "demo",
component: "infra/testDemo/index",
componentName: null,
icon: "ep:aim",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 2478,
parentId: 1070,
name: "单表(增删改查)",
path: "demo01-contact",
component: "infra/demo/demo01/index",
componentName: "Demo01Contact",
icon: "ep:bicycle",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 2484,
parentId: 1070,
name: "树表(增删改查)",
path: "demo02-category",
component: "infra/demo/demo02/index",
componentName: "Demo02Category",
icon: "fa:tree",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 2490,
parentId: 1070,
name: "主子表(标准)",
path: "demo03-normal",
component: "infra/demo/demo03/normal/index",
componentName: "Demo03StudentNormal",
icon: "fa:battery-3",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 2497,
parentId: 1070,
name: "主子表ERP",
path: "demo03-erp",
component: "infra/demo/demo03/erp/index",
componentName: "Demo03StudentERP",
icon: "ep:calendar",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 2472,
parentId: 1070,
name: "主子表(内嵌)",
path: "demo03-inner",
component: "infra/demo/demo03/inner/index",
componentName: "Demo03StudentInner",
icon: "fa:power-off",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
],
},
{
id: 1255,
parentId: 2,
name: "数据源配置",
path: "data-source-config",
component: "infra/dataSourceConfig/index",
componentName: "InfraDataSourceConfig",
icon: "ep:data-analysis",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 114,
parentId: 2,
name: "表单构建",
path: "build",
component: "infra/build/index",
componentName: "InfraBuild",
icon: "fa:wpforms",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 116,
parentId: 2,
name: "API 接口",
path: "swagger",
component: "infra/swagger/index",
componentName: "InfraSwagger",
icon: "fa:fighter-jet",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 1083,
parentId: 2,
name: "API 日志",
path: "log",
component: null,
componentName: null,
icon: "fa:tasks",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 1078,
parentId: 1083,
name: "访问日志",
path: "api-access-log",
component: "infra/apiAccessLog/index",
componentName: "InfraApiAccessLog",
icon: "ep:place",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 1084,
parentId: 1083,
name: "错误日志",
path: "api-error-log",
component: "infra/apiErrorLog/index",
componentName: "InfraApiErrorLog",
icon: "ep:warning-filled",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
],
},
{
id: 2525,
parentId: 2,
name: "WebSocket",
path: "websocket",
component: "infra/webSocket/index",
componentName: "InfraWebSocket",
icon: "ep:connection",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 1243,
parentId: 2,
name: "文件管理",
path: "file",
component: null,
componentName: "",
icon: "ep:files",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 1237,
parentId: 1243,
name: "文件配置",
path: "file-config",
component: "infra/fileConfig/index",
componentName: "InfraFileConfig",
icon: "fa-solid:file-signature",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 1090,
parentId: 1243,
name: "文件列表",
path: "file",
component: "infra/file/index",
componentName: "InfraFile",
icon: "ep:upload-filled",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
],
},
{
id: 110,
parentId: 2,
name: "定时任务",
path: "job",
component: "infra/job/index",
componentName: "InfraJob",
icon: "fa-solid:tasks",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 106,
parentId: 2,
name: "配置管理",
path: "config",
component: "infra/config/index",
componentName: "InfraConfig",
icon: "fa:connectdevelop",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 2740,
parentId: 2,
name: "监控中心",
path: "monitors",
component: "",
componentName: "",
icon: "ep:monitor",
visible: true,
keepAlive: true,
alwaysShow: true,
children: [
{
id: 111,
parentId: 2740,
name: "MySQL 监控",
path: "druid",
component: "infra/druid/index",
componentName: "InfraDruid",
icon: "fa-solid:box",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 113,
parentId: 2740,
name: "Redis 监控",
path: "redis",
component: "infra/redis/index",
componentName: "InfraRedis",
icon: "fa:reddit-square",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 112,
parentId: 2740,
name: "Java 监控",
path: "admin-server",
component: "infra/server/index",
componentName: "InfraAdminServer",
icon: "ep:coffee-cup",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
{
id: 1077,
parentId: 2740,
name: "链路追踪",
path: "skywalking",
component: "infra/skywalking/index",
componentName: "InfraSkyWalking",
icon: "fa:eye",
visible: true,
keepAlive: true,
alwaysShow: true,
children: null,
},
],
},
],
},
],
},
},
};

View File

@@ -14,7 +14,7 @@ const getOrderPage = (_req: Request, res: Response) => {
userNickName: "张宁清", // 用户昵称
userAvatar: "", // 用户头像
userMobile: "18634556151", // 用户手机号
orderStatus: 2, // 订单状态
orderStatus: 10, // 订单状态
picUrl: "", // 商品图片
spuName:
"商品主标题商品主标题商品主标题商品主标题商品主题商品主标题商品主标题商品主", // 商品名称
@@ -24,7 +24,7 @@ const getOrderPage = (_req: Request, res: Response) => {
handedPrice: 80, // 到手价
payPrice: "500", // 应付金额
unit: "", // 单位
subTime: "", // 预约时间
subTime: 1760585499000, // 预约时间
serveAddress: "张宁清,18659156151,福州 台江区 鳌峰路 万达中心甲",
userRemark: "你好呀你好元", // 用户备注
payType: "wx", // 微信
@@ -34,14 +34,150 @@ const getOrderPage = (_req: Request, res: Response) => {
id: 2,
orderNum: "3214421412",
createTime: "",
orderCategoryName: "",
orderCategoryName: "宠物殡葬",
orderTerminal: 0,
userId: 0,
userName: "",
userNickName: "",
userAvatar: "",
userMobile: "",
orderStatus: 0,
orderStatus: 20,
picUrl: "",
spuName: "",
skuName: "",
subTime: 1760585499000, // 预约时间
count: 0,
price: 0,
handedPrice: 0,
payPrice: 0,
unit: "",
orderTime: "",
serveAddress: "",
userRemark: "",
payType: "",
financeStatus: "",
},
{
id: 3,
orderNum: "3214421412",
createTime: "",
orderCategoryName: "宠物殡葬",
orderTerminal: 0,
userId: 0,
userName: "",
subTime: 1760585499000, // 预约时间
userNickName: "",
userAvatar: "",
userMobile: "",
orderStatus: 30,
picUrl: "",
spuName: "",
skuName: "",
count: 0,
price: 0,
handedPrice: 0,
payPrice: 0,
unit: "",
orderTime: "",
serveAddress: "",
userRemark: "",
payType: "",
financeStatus: "",
},
{
id: 4,
orderNum: "3214421412",
createTime: "",
orderCategoryName: "宠物殡葬",
orderTerminal: 0,
userId: 0,
userName: "",
subTime: 1760585499000, // 预约时间
userNickName: "",
userAvatar: "",
userMobile: "",
orderStatus: 40,
picUrl: "",
spuName: "",
skuName: "",
count: 0,
price: 0,
handedPrice: 0,
payPrice: 0,
unit: "",
orderTime: "",
serveAddress: "",
userRemark: "",
payType: "",
financeStatus: "",
},
{
id: 5,
orderNum: "3214421412",
createTime: "",
orderCategoryName: "宠物殡葬",
orderTerminal: 0,
userId: 0,
userName: "",
subTime: 1760585499000, // 预约时间
userNickName: "",
userAvatar: "",
userMobile: "",
orderStatus: 50,
picUrl: "",
spuName: "",
skuName: "",
count: 0,
price: 0,
handedPrice: 0,
payPrice: 0,
unit: "",
orderTime: "",
serveAddress: "",
userRemark: "",
payType: "",
financeStatus: "",
},
{
id: 6,
orderNum: "3214421412",
createTime: "",
orderCategoryName: "宠物殡葬",
orderTerminal: 0,
userId: 0,
userName: "",
subTime: 1760585499000, // 预约时间
userNickName: "",
userAvatar: "",
userMobile: "",
orderStatus: 60,
picUrl: "",
spuName: "",
skuName: "",
count: 0,
price: 0,
handedPrice: 0,
payPrice: 0,
unit: "",
orderTime: "",
serveAddress: "",
userRemark: "",
payType: "",
financeStatus: "",
},
{
id: 7,
orderNum: "3214421412",
createTime: "",
orderCategoryName: "宠物殡葬",
orderTerminal: 0,
userId: 0,
userName: "",
subTime: 1760585499000, // 预约时间
userNickName: "",
userAvatar: "",
userMobile: "",
orderStatus: 70,
picUrl: "",
spuName: "",
skuName: "",
@@ -66,72 +202,70 @@ const getOrderPage = (_req: Request, res: Response) => {
const getOrderDetail = (_req: Request, res: Response) => {
res.json({
data: {
code: 0,
data: {
tradeOrderInfoBase: {
id: "",
orderNo: "",
orderStatus: "",
orderType: "",
orderCategoryNameAndId: "",
orderTerminal: "",
userInfo: "",
cancelTime: "",
cancelReason: "",
merchantRemark: "",
refundTime: "",
propertyTime: "",
propertyStatus: "",
price: "",
discountPrice: "",
payPrice: 0,
refundPrice: "",
livePrice: "",
payType: "",
payChannelCode: "",
payOrderId: "",
payTime: "",
createTime: "",
finishTime: "",
},
tradeProductInfo: {
shopLogoUrl: "",
shopName: "",
spuId: 0,
skuId: 0,
skuPicUrl: "",
spuName: "",
skuName: "",
count: 0,
price: 0,
unit: "",
handedPrice: 0,
expensePrice: 0,
properties: [""],
serveContent: "",
totalPrice: 0,
discountPrice: 0,
payPrice: 0,
refundPrice: 0,
refundCount: 0,
},
tradeServeInfo: {
properties: {
"": {},
},
},
tradeExtendServeInfo: {
properties: {
"": {},
},
},
tradeExtendCostInfo: {
properties: {
"": {},
},
tradeOrderInfoBase: {
id: "7655265",
orderNo: "BZ000548787",
orderStatus: "50",
orderType: "1",
orderCategoryName: "宠物殡葬", // 订单类目
orderCategoryId: "3232321",
orderTerminal: "微信小程序",
userInfo: null,
userAvatar: null,
cancelTime: "2025-10-16T11:28:57",
cancelReason: "非常",
merchantRemark: "测试商家备注",
refundTime: null,
propertyTime: null,
propertyStatus: null,
price: null,
discountPrice: null,
payPrice: null,
refundPrice: null,
livePrice: null,
payType: "1",
payChannelCode: "1",
payOrderId: "12323123123",
payTime: 1760585391000,
createTime: 1760585499000,
finishTime: 1760585335000,
},
tradeProductInfo: {
shopLogoUrl: "",
shopName: "",
spuId: 0,
skuId: 0,
skuPicUrl: "",
spuName: "",
skuName: "",
count: 0,
price: 0,
unit: "",
handedPrice: 0,
expensePrice: 0,
properties: [""],
serveContent: "",
totalPrice: 0,
discountPrice: 0,
payPrice: 0,
refundPrice: 0,
refundCount: 0,
},
tradeServeInfo: {
properties: {
"": {},
},
},
tradeExtendServeInfo: {
properties: {
"": {},
},
},
tradeExtendCostInfo: {
properties: {
"": {},
},
},
msg: "",
},
code: 0,
});