コード例 #1
0
ファイル: libs.py プロジェクト: tony-hub/myoa
def del_category_tag_lib(c_uuid, t_uuid):
    if c_uuid is not None:
        category = Category.by_uuid(c_uuid)
        category.delete()
        return {'status': True, 'msg': u'分类删除成功'}
    if t_uuid is not None:
        tag = Tag.by_uuid(t_uuid)
        tag.delete()
        return {'status': True, 'msg': u'标签删除成功'}
    return {'status': False, 'msg': u'参数不能为空'}