Skip to content

Commit e322882

Browse files
committed
fix: /cms/user/permissions 响应异常
1 parent ee364eb commit e322882

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

app/api/cms/user.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
LoginSchema,
3939
LoginTokenSchema,
4040
UserBaseInfoSchema,
41-
UserPermissionSchema,
4241
UserRegisterSchema,
4342
UserSchema,
4443
)
@@ -215,7 +214,7 @@ def refresh():
215214
@api.validate(
216215
tags=["用户"],
217216
security=[AuthorizationBearerSecurity],
218-
resp=DocResponse(r=UserPermissionSchema),
217+
# resp=DocResponse(r=UserPermissionSchema), # 当前数据接口无法使用OpenAPI表示
219218
)
220219
def get_allowed_apis():
221220
"""

0 commit comments

Comments
 (0)