def post(self): skill_id = self.get_argument("skill_id", "") from optsql.deleteMySQL import delete_one_info result = delete_one_info(info_id=skill_id, table="skill") #删除该skill_id的一行信息 if result: rt_info = {"status": 0, result: "删除成功!"} else: rt_info = {"status": 1, result: "删除失败!"} self.write(base.get_json(rt_info))
def post(self): project_id = self.get_argument("id", "") from optsql.deleteMySQL import delete_one_info result = delete_one_info(info_id=project_id, table="project_experience") if result: rtinfo = dict(status=0, result=result) else: rtinfo = dict(status=1, result="删除失败") self.write(base.get_json(rtinfo))
def post(self): baseinfo_id = self.get_argument("baseinfo_id", "") if baseinfo_id: from optsql.deleteMySQL import delete_one_info rt_info = delete_one_info(info_id=baseinfo_id, table="user_baseinfo") if rt_info: result = {"status": 0, "rtinfo": "删除成功!"} else: result = {"status": 1, "rtinfo": "删除失败!"} else: result = {"status": 2, "rtinfo": "未知原因,删除失败!"} self.write(base.get_json(result))