update 新增标签
This commit is contained in:
parent
55788e975c
commit
1189ae95e4
|
@ -126,7 +126,19 @@ class TagsImpl(object):
|
|||
def new_tags(**kwargs):
|
||||
"""新增标签"""
|
||||
filed = kwargs['tag_name']
|
||||
category = kwargs['tag_category']
|
||||
|
||||
if kwargs['tag_category'] == 'func':
|
||||
category = '函数'
|
||||
elif kwargs['tag_category'] == 'api':
|
||||
category = '接口'
|
||||
elif kwargs['tag_category'] == 'model':
|
||||
category = '模型'
|
||||
elif kwargs['tag_category'] == 'question':
|
||||
category = '问题'
|
||||
elif kwargs['tag_category'] == 'questionnaire':
|
||||
category = '问卷'
|
||||
else:
|
||||
return '标签类别错误'
|
||||
|
||||
case = DB_TEST.find_single_column(
|
||||
"模型数据",
|
||||
|
|
Loading…
Reference in New Issue