随机获取引导词接口添加引导词是否禁用判断

This commit is contained in:
haotian 2025-10-10 09:08:36 +08:00
parent d4a6e94498
commit f7cb62af69
2 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,9 @@ from config.enums import ExplanationContentStatus
explanationContentController = APIRouter(prefix='/system/explanation_content', dependencies=[Depends(LoginService.get_current_user)])
"""
展厅讲解权限字符 exhibitionhall:guide:query, dependencies=[Depends(CheckUserInterfaceAuth('exhibitionhall:guide:query'))]
"""
@explanationContentController.get(
'/list', response_model=PageResponseModel

View File

@ -26,6 +26,7 @@ class WordsDao:
select(GuideWords.text)
.where(
GuideWords.type == type,
GuideWords.del_flag == '0'
)
)
)