def create_team(): jsonData = request.get_json() with db.auto_commit(): team = Team() team.team_name = jsonData['team_name'] team.team_logo = jsonData['team_logo'] team.team_type = jsonData['team_type'] team.team_captain = jsonData['team_captain'] team.team_slogan = jsonData['team_slogan'] team.team_comment = jsonData['team_comment'] team.school_id = jsonData['school_id'] team.category_id = jsonData['category_id'] db.session.add(team) return Success(msg='新增成功')