def getJobXqInfo(self): return JobDAO().getJobXq()
from flask import Flask, render_template, request, redirect, jsonify from controller.userctrl import usercontroller from controller.jobctrl import jobcontroller from controller.usermgctrl import usermgcontroller from dao.jobdao import JobDAO app = Flask(__name__) app.register_blueprint(usercontroller) app.register_blueprint(jobcontroller) app.register_blueprint(usermgcontroller) jobDAO = JobDAO() @app.route('/') def index(): return render_template('index.html') @app.route('/video') def video(): return render_template('video.html') if __name__ == '__main__': app.run(host='10.0.11.65', port="5000", debug=True) # app.run() # --host=10.0.11.99 --port=8080
def getJobWebInfo(self): return JobDAO().getJobWeb() # Web
def getCountInfo(self): return JobDAO().getJobCount() # 五种语言的职位数
def getJobAIInfo(self): return JobDAO().getJobAI() # AI
def getJobPyInfo(self): return JobDAO().getJobPy() # Python
def getJobCInfo(self): return JobDAO().getJobC() # C语言
def getJobJavaInfo(self): return JobDAO().getJobJava() # Java
def getJobNumInfo(self): return JobDAO().getJobAllNum()
def getJobYwInfo(self): return JobDAO().getJobYw()
def getJobCsInfo(self): return JobDAO().getJobCs()
def getJobKfInfo(self): return JobDAO().getJobKf()
def getJobCpInfo(self): return JobDAO().getJobCp()