feat: 更新依赖版本,修复路由 ID 字段,优化获取 mark 详情逻辑
This commit is contained in:
@@ -35,7 +35,7 @@ export const addAuth = (app: App) => {
|
||||
app
|
||||
.route({
|
||||
path: 'auth',
|
||||
id: 'auth',
|
||||
rid: 'auth',
|
||||
description: '验证token,必须成功, 错误返回401,正确赋值到ctx.state.tokenUser',
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
@@ -71,7 +71,7 @@ export const addAuth = (app: App) => {
|
||||
.route({
|
||||
path: 'auth',
|
||||
key: 'can',
|
||||
id: 'auth-can',
|
||||
rid: 'auth-can',
|
||||
description: '验证token,可以不成功,错误不返回401,正确赋值到ctx.state.tokenUser,失败赋值null',
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
@@ -107,7 +107,7 @@ app
|
||||
.route({
|
||||
path: 'auth',
|
||||
key: 'admin',
|
||||
id: 'auth-admin',
|
||||
rid: 'auth-admin',
|
||||
isDebug: true,
|
||||
middleware: ['auth'],
|
||||
description: '验证token,必须是admin用户, 错误返回403,正确赋值到ctx.state.tokenAdmin',
|
||||
@@ -154,7 +154,7 @@ app
|
||||
.route({
|
||||
path: 'auth-check',
|
||||
key: 'admin',
|
||||
id: 'check-auth-admin',
|
||||
rid: 'check-auth-admin',
|
||||
middleware: ['auth'],
|
||||
})
|
||||
.define(async (ctx) => {
|
||||
|
||||
Reference in New Issue
Block a user