“mitao”
2026-03-26 d3a8db99998e5e3d8fbcafa7a8f3cf0915063bd9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
/**
 * @name umi 的路由配置
 * @description 只支持 path,component,routes,redirect,wrappers,name,icon 的配置
 * @param path  path 只支持两种占位符配置,第一种是动态参数 :id 的形式,第二种是 * 通配符,通配符只能出现路由字符串的最后。
 * @param component 配置 location 和 path 匹配后用于渲染的 React 组件路径。可以是绝对路径,也可以是相对路径,如果是相对路径,会从 src/pages 开始找起。
 * @param routes 配置子路由,通常在需要为多个路径增加 layout 组件时使用。
 * @param redirect 配置路由跳转
 * @param wrappers 配置路由组件的包装组件,通过包装组件可以为当前的路由组件组合进更多的功能。 比如,可以用于路由级别的权限校验
 * @param name 配置路由的标题,默认读取国际化文件 menu.ts 中 menu.xxxx 的值,如配置 name 为 login,则读取 menu.ts 中 menu.login 的取值作为标题
 * @param icon 配置路由的图标,取值参考 https://ant.design/components/icon-cn, 注意去除风格后缀和大小写,如想要配置图标为 <StepBackwardOutlined /> 则取值应为 stepBackward 或 StepBackward,如想要配置图标为 <UserOutlined /> 则取值应为 user 或者 User
 * @doc https://umijs.org/docs/guides/routes
 */
export default [
  {
    path: '/Welcome',
    routes: [
      {
        name: 'Welcome',
        path: '/Welcome',
        hideInMenu: true,
        component: './system/welco',
      },
    ],
  },
  {
    path: '/system',
    name: '系统与安全',
    icon: 'setting',
    access: 'canViewSystemSecurity',
    routes: [
      {
        path: '/system',
        redirect: '/system/account',
      },
      {
        name: '帐号管理',
        path: '/system/account',
        access: 'system:account:view',
        component: './system/account',
      },
      {
        name: '角色管理',
        path: '/system/role',
        access: 'system:role:view',
        component: './system/role',
      },
      {
        name: '新增角色',
        path: '/system/role/create',
        hideInMenu: true,
        access: 'system:role:add',
        component: './system/role/manage',
      },
      {
        name: '编辑角色',
        path: '/system/role/:id/edit',
        hideInMenu: true,
        access: 'system:role:edit',
        component: './system/role/manage',
      },
      {
        name: '角色详情',
        path: '/system/role/:id/detail',
        hideInMenu: true,
        access: 'system:role:detail',
        component: './system/role/manage',
      },
      {
        path: '/system/settings',
        name: '系统设置',
        routes: [
          {
            path: '/system/settings',
            hideInMenu: true,
            component: './system/settings-redirect',
          },
          {
            name: '系统设置',
            path: '/system/settings/basic',
            access: 'system:basic-settings:view',
            component: './system/basic-settings',
          },
          {
            name: 'APP版本设置',
            path: '/system/settings/app-version',
            access: 'system:app-version:view',
            component: './system/app-version-settings',
          },
          {
            name: 'Banner配置',
            path: '/system/settings/banner',
            access: 'system:banner:view',
            component: './system/banner-settings',
          },
          {
            name: '活动通知',
            path: '/system/settings/activity-notice',
            access: 'system:activity-notice:view',
            component: './system/activity-notice',
          },
          {
            name: '平台资质',
            path: '/system/settings/platform-qualification',
            access: 'system:platform-qualification:view',
            component: './system/platform-qualification',
          },
          {
            name: '协议内容',
            path: '/system/settings/agreement-content',
            access: 'system:agreement-content:view',
            component: './system/agreement-content',
          },
          {
            name: '常见问题',
            path: '/system/settings/common-question',
            access: 'system:common-question:view',
            component: './system/common-question',
          },
          {
            name: '用户意见反馈',
            path: '/system/settings/user-feedback',
            access: 'system:user-feedback:view',
            component: './system/user-feedback',
          },
          {
            name: '消息推送配置',
            path: '/system/settings/message-push',
            access: 'system:message-push:view',
            component: './system/message-push-settings',
          },
          {
            name: '积分设置',
            path: '/system/settings/points',
            access: 'system:points-settings:view',
            component: './system/points-settings',
          },
        ],
      },
    ],
  },
  {
    path: '/member',
    name: '用户与会员',
    icon: 'team',
    access: 'canViewMemberModule',
    routes: [
      {
        path: '/member',
        hideInMenu: true,
        component: './member/redirect',
      },
      {
        path: '/member/user',
        name: '用户',
        access: 'canViewMemberUserGroup',
        routes: [
          {
            path: '/member/user',
            hideInMenu: true,
            component: './member/user/redirect',
          },
          {
            name: '用户管理',
            path: '/member/user/manage',
            access: 'member:user:view',
            component: './member/user',
          },
          {
            name: '诊所管理',
            path: '/member/user/clinic',
            access: 'member:clinic:view',
            component: './member/clinic',
          },
          {
            name: '诊所详情',
            path: '/member/user/clinic/:id',
            hideInMenu: true,
            access: 'member:clinic:view',
            component: './member/clinic/detail',
          },
          {
            name: '会员用户',
            path: '/member/user/member-users',
            access: 'member:user:member:view',
            component: './member/user/member-users',
          },
          {
            name: '会员用户详情',
            path: '/member/user/member-users/:id',
            hideInMenu: true,
            access: 'member:user:detail',
            component: './member/user/member-users/detail',
          },
          {
            name: '用户详情',
            path: '/member/user/:id',
            hideInMenu: true,
            access: 'member:user:detail',
            component: './member/user/detail',
          },
        ],
      },
      {
        path: '/member/vip',
        name: '会员',
        access: 'canViewMemberVipGroup',
        routes: [
          {
            path: '/member/vip',
            hideInMenu: true,
            component: './member/vip/redirect',
          },
          {
            name: '会员价格设置',
            path: '/member/vip/price',
            access: 'member:vip-price:view',
            component: './member/vip/price',
          },
          {
            name: '会员介绍设置',
            path: '/member/vip/intro',
            access: 'member:vip-intro:view',
            component: './member/vip/intro',
          },
        ],
      },
    ],
  },
  {
    path: '/live',
    name: '课程与学习',
    icon: 'read',
    access: 'canViewLiveModule',
    routes: [
      {
        path: '/live',
        redirect: '/live/course',
      },
      {
        path: '/live/expert',
        redirect: '/live/course/expert',
      },
      {
        path: '/live/course',
        name: '课程管理',
        routes: [
          {
            path: '/live/course',
            redirect: '/live/course/broadcast',
          },
          {
            name: '养生直播',
            path: '/live/course/broadcast',
            access: 'live:course:view',
            component: './live/broadcast',
          },
          {
            name: '养生直播详情',
            path: '/live/course/broadcast/:id',
            hideInMenu: true,
            access: 'live:course:detail',
            component: './live/broadcast/detail',
          },
          {
            name: '编辑养生直播',
            path: '/live/course/broadcast/:id/edit',
            hideInMenu: true,
            access: 'live:course:edit',
            component: './live/broadcast/edit',
          },
          {
            name: '直播预约记录',
            path: '/live/course/reserve-records',
            access: 'live:reserve:view',
            component: './live/reserve-records',
          },
          {
            name: '直播观看记录',
            path: '/live/course/watch-records',
            access: 'live:watch:view',
            component: './live/watch-records',
          },
          {
            name: '分类管理',
            path: '/live/course/category',
            access: 'live:category:view',
            component: './live/category',
          },
          {
            name: '养生课程',
            path: '/live/course/health',
            access: 'live:health-course:view',
            component: './live/health',
          },
          {
            name: '健康科普',
            path: '/live/course/health-popularization',
            access: 'live:health-popularization:view',
            component: './live/health-popularization',
          },
          {
            name: '新增健康科普',
            path: '/live/course/health-popularization/create',
            hideInMenu: true,
            access: 'live:health-popularization:add',
            component: './live/health-popularization/manage',
          },
          {
            name: '编辑健康科普',
            path: '/live/course/health-popularization/:id/edit',
            hideInMenu: true,
            access: 'live:health-popularization:edit',
            component: './live/health-popularization/manage',
          },
          {
            name: '视频与课程资源管理',
            path: '/live/course/video-resources',
            access: 'live:health-course:view',
            component: './live/video-resources',
          },
          {
            name: '新增视频与课程资源',
            path: '/live/course/video-resources/create',
            hideInMenu: true,
            access: 'live:health-course:video:add',
            component: './live/video-resources/manage',
          },
          {
            name: '编辑视频与课程资源',
            path: '/live/course/video-resources/:id/edit',
            hideInMenu: true,
            access: 'live:health-course:video:edit',
            component: './live/video-resources/manage',
          },
          {
            name: '新增养生课程',
            path: '/live/course/health/create',
            hideInMenu: true,
            access: 'live:health-course:add',
            component: './live/health/manage',
          },
          {
            name: '养生课程详情',
            path: '/live/course/health/:id',
            hideInMenu: true,
            access: 'live:health-course:detail',
            component: './live/health/detail',
          },
          {
            name: '编辑养生课程',
            path: '/live/course/health/:id/edit',
            hideInMenu: true,
            access: 'live:health-course:edit',
            component: './live/health/manage',
          },
          {
            name: '新增视频课程',
            path: '/live/course/health/:courseId/videos/create',
            hideInMenu: true,
            access: 'live:health-course:video:add',
            component: './live/health/video-manage',
          },
          {
            name: '编辑视频课程',
            path: '/live/course/health/:courseId/videos/:videoId/edit',
            hideInMenu: true,
            access: 'live:health-course:video:edit',
            component: './live/health/video-manage',
          },
          {
            name: '直播预约记录跳转',
            path: '/live/course/broadcast/:courseId/sessions/:sessionId/reserves',
            hideInMenu: true,
            access: 'live:reserve:view',
            component: './live/record-redirect',
          },
          {
            name: '直播观看记录跳转',
            path: '/live/course/broadcast/:courseId/sessions/:sessionId/watch-records',
            hideInMenu: true,
            access: 'live:watch:view',
            component: './live/record-redirect',
          },
          {
            name: '授课专家管理',
            path: '/live/course/expert',
            access: 'live:expert:view',
            component: './live/expert',
          },
        ],
      },
    ],
  },
  {
    path: '/trade',
    name: '交易与财务',
    icon: 'moneyCollect',
    access: 'canViewTradeFinanceModule',
    routes: [
      {
        path: '/trade',
        component: './trade/redirect',
      },
      {
        path: '/trade/order',
        name: '订单',
        routes: [
          {
            path: '/trade/order',
            component: './trade/order-redirect',
          },
          {
            name: '养生课程购买订单',
            path: '/trade/order/course-purchase',
            access: 'course:purchase-order:view',
            component: './trade/course-purchase',
          },
          {
            name: '会员购买订单',
            path: '/trade/order/member-purchase',
            access: 'member:purchase-order:view',
            component: './trade/member-purchase',
          },
          {
            name: '积分兑换',
            path: '/trade/order/points-exchange',
            access: 'points:exchange:view',
            component: './trade/points-exchange',
          },
          {
            name: '用户明细列表',
            path: '/trade/order/points-exchange/items',
            hideInMenu: true,
            access: 'points:exchange:view',
            component: './trade/points-exchange/items',
          },
          {
            name: '兑换明细详情',
            path: '/trade/order/points-exchange/items/:id',
            hideInMenu: true,
            access: 'points:exchange:detail',
            component: './trade/points-exchange/detail',
          },
        ],
      },
      {
        path: '/trade/flow',
        name: '财务流水',
        routes: [
          {
            path: '/trade/flow',
            component: './trade/flow-redirect',
          },
          {
            name: '支付流水',
            path: '/trade/flow/payment-flow',
            access: 'payment:flow:view',
            component: './trade/payment-flow',
          },
          {
            name: '退费流水',
            path: '/trade/flow/refund-flow',
            access: 'refund:flow:view',
            component: './trade/refund-flow',
          },
          {
            name: '积分收支明细',
            path: '/trade/flow/points-ledger',
            access: 'points:ledger:view',
            component: './trade/points-ledger',
          },
        ],
      },
    ],
  },
  {
    path: '/login',
    layout: false,
    routes: [
      {
        name: 'login',
        path: '/login',
        component: './Login',
      },
    ],
  },
];