{"definitions":{},"info":{"description":"powered by Flasgger","termsOfService":"/tos","title":"A swagger API","version":"0.0.1"},"paths":{"/api/get_filter":{"get":{"consumes":["application/json"],"description":"此接口返回当前用户的筛选器设置。如果没有设置过筛选器，则会返回默认的筛选器设置。","produces":["application/json"],"responses":{"200":{"description":"成功返回当前或默认的筛选器设置。","schema":{"example":{"CompanyList":["TD"],"Index":null,"JobCatCode":["111","222"],"JobType":"Newgrads","Keyword":null,"Locations":[],"MaxYOE":1,"MinYOE":null,"OrderBy":[{"ID":"DESC"}],"Stats":"Open","ViewFlag":"Viewed"},"type":"object"}}},"summary":"    获取当前用户的筛选器设置","tags":["筛选器管理"]}},"/api/update_filter":{"post":{"consumes":["application/x-www-form-urlencoded"],"parameters":[{"description":"标志指示是否更新筛选器设置。设置为'true'时，需要提供'filter'字段。","in":"formData","name":"apply_filters","required":false,"type":"string"},{"description":"要应用的新筛选器设置的JSON字符串。此字段仅在'apply_filters'为'true'时存在和必需。必须进行URL编码。","in":"formData","name":"filter","required":false,"type":"string"},{"description":"标志指示是否将筛选器重置为默认设置。此操作与'apply_filters'互斥，设置为'true'时，忽略其他字段。","in":"formData","name":"reset_filters","required":false,"type":"string"}],"produces":["application/json"],"responses":{"200":{"description":"筛选器成功更新或重置。","schema":{"properties":{"message":{"example":"筛选器更新成功！","type":"string"}},"type":"object"}},"400":{"description":"由于筛filter参数无效而导致的错误，或者请求参数配置错误。","schema":{"properties":{"message":{"example":"公司列表：['未知公司'] 是无效的","type":"string"}},"type":"object"}}},"summary":"    更新或重置用户筛选器","tags":["筛选器管理"]}},"/get_job_detail":{"get":{"consumes":["application/json"],"description":"此接口根据提供的工作职位索引返回详细的职位信息。如果指定的职位不存在，则返回错误信息。","parameters":[{"description":"工作职位的索引标识符，用于查询特定职位的详细信息。","in":"query","name":"job_index","required":true,"type":"integer"}],"produces":["application/json"],"responses":{"200":{"description":"成功返回指定工作职位的详细信息，包括职位描述的各个部分。","schema":{"example":{"Section_1":"Content 1","Section_2":"Content 2","Section_3":"Content 3","Section_4":"Content 4","Section_5":"Content 5"},"properties":{"Section_1":{"description":"描述部分1的内容。","type":"string"},"Section_2":{"description":"描述部分2的内容。","type":"string"},"Section_3":{"description":"描述部分3的内容。","type":"string"},"Section_4":{"description":"描述部分4的内容。","type":"string"},"Section_5":{"description":"描述部分5的内容。","type":"string"}},"type":"object"}},"400":{"description":"未找到指定的工作职位。","schema":{"properties":{"message":{"example":"Job 12345 can't find","type":"string"}},"type":"object"}}},"summary":"获取工作职位详情","tags":["工作管理"]}},"/get_profile":{"get":{"consumes":["application/json"],"description":"此接口返回当前登录用户的个人资料，包括姓名、电子邮件、头像路径、位置和就业信息。如果无法找到用户信息，则返回错误。","produces":["application/json"],"responses":{"200":{"description":"成功返回用户的个人资料。","schema":{"example":{"email":"zhangsan@example.com","employment":false,"img_path":"/images/profile/zhangsan.jpg","location":"Toronto","name":"张三"},"properties":{"email":{"description":"用户的电子邮件地址。","type":"string"},"employment":{"description":"用户是否就业。","type":"bool"},"img_path":{"description":"用户头像的文件路径。","type":"string"},"location":{"description":"用户的位置信息。","type":"string"},"name":{"description":"用户的姓名。","type":"string"}},"type":"object"}},"400":{"description":"未找到用户信息。","schema":{"properties":{"message":{"example":"Cant find user","type":"string"}},"type":"object"}}},"summary":"    获取用户个人资料","tags":["用户管理"]}},"/get_result":{"get":{"consumes":["application/json"],"description":"此接口根据提供的简历ID和职位索引返回该简历与特定职位的匹配评估结果。结果包括教育背景、工作经验相关性、技能相关性等多个维度的评价。","parameters":[{"description":"简历的唯一标识符ID，用于查询特定简历的评估结果。","in":"query","name":"resume_id","required":true,"type":"integer"},{"description":"工作职位的索引标识符，用于查询与简历的匹配度。","in":"query","name":"job_index","required":true,"type":"integer"}],"produces":["application/json"],"responses":{"200":{"description":"成功返回简历的评估结果。","schema":{"example":[{"Category":"Educational Background","Feedback":"The candidate's educational background in Business Administration or Supply Chain Management is relevant to the Operations Analyst role in Wholesale. However, it would be beneficial to have a degree in a related field such as Operations Management or Logistics.","Grade":"A"},{"Category":"Work Experience Relevance","Feedback":"The candidate has over 2 years of experience in Supply Chain and Wholesale, which aligns with the job requirements. The experience in providing analytical and reporting assistance, building relationships with customers and suppliers, and supporting operational policies is highly relevant.","Grade":"B"},{"Category":"Skill Relevance","Feedback":"The candidate demonstrates proficiency in reporting skills, analytical tools, and methodologies. However, there is a need to further develop skills in specific areas such as process improvement, technical leadership, and project collaboration, which are crucial for the role.","Grade":"C"},{"Category":"Skills to Improve","Feedback":"","Grade":"C"},{"Category":"Overall","Feedback":"","Grade":"C"}],"items":{"properties":{"Category":{"description":"评估结果的类别，如教育背景、工作经验相关性等。","type":"string"},"Feedback":{"description":"具体的反馈信息，详细说明评级的原因和建议。","type":"string"},"Grade":{"description":"给定类别的评级，如A、B、C等。","type":"string"}},"type":"object"},"type":"array"}}},"summary":"    获取简历匹配结果","tags":["评估管理"]}},"/get_resumes":{"get":{"consumes":["application/json"],"description":"此接口返回当前登录用户存储的所有简历。如果用户未登录，将返回错误信息提示用户登录。","produces":["application/json"],"responses":{"200":{"description":"成功返回用户简历列表。","schema":{"example":[{"FileName":"sample_1.pdf","ID":1,"Size":"2.0MB"},{"FileName":"sample_2.pdf","ID":2,"Size":"2.1MB"},{"FileName":"sample_3.pdf","ID":3,"Size":"2.2MB"}],"items":{"properties":{"FileName":{"description":"简历文件的名称。","type":"string"},"ID":{"description":"简历的唯一标识符。","type":"integer"},"Size":{"description":"简历文件的大小。","type":"string"}},"type":"object"},"type":"array"}},"400":{"description":"用户未登录，无法获取简历。","schema":{"properties":{"message":{"example":"Please log in","type":"string"}},"type":"object"}}},"summary":"    获取用户简历","tags":["简历管理"]}},"/load_more_jobs":{"get":{"consumes":["application/json"],"description":"此接口根据用户设置的筛选器和请求的页码来加载更多工作职位。如果用户没有设置过筛选器，则使用默认筛选器。","parameters":[{"default":1,"description":"请求加载的页码, 默认为第1页。","in":"query","name":"page","required":false,"type":"integer"}],"produces":["application/json"],"responses":{"200":{"description":"成功返回请求的工作职位数据。","schema":{"example":[{"AI_CT_1":"CRC","AI_CT_2":null,"AI_CT_3":null,"AI_Contract":0,"AI_Degree":"Doctorat","AI_French":null,"AI_FullTime":0,"AI_Intern_OR_CoOp":0,"AI_Major":"Lettres françaises","AI_NOC_CODE":"4011","AI_SK_1":"Littérature franco-ontarienne","AI_SK_2":"Idéologies et cultures","AI_SK_3":"Ontario français","AI_SK_4":"Lecture d'oeuvres","AI_SK_5":"Enseignement de la langue","AI_Title":"Professeur à temps-partiel régulier / Regular Part-Time Professor","AI_Years":0,"Company_Name":"University of Ottawa","FoundClosedAt":null,"FoundOpenedAt":"Sat, 11 May 2024 19:02:40 GMT","ID":35704,"JobID":"JR12743","LastCheck":"Sun, 12 May 2024 19:02:33 GMT","Link":"https://uottawa.wd3.myworkdayjobs.com/en-US/uOttawa_External_Career_Site/job/Ottawa-ON/APTPUO-Hiver-2025-FRA2545-A_JR12743","Location":"Ottawa, ON Main Campus","Title":"APTPUO-Hiver 2025-FRA2545 A","ViewTag:":"Viewed"}],"items":{"properties":{"AI_CT_1":{"description":"第一个分类标签。","type":"string"},"AI_CT_2":{"description":"第二个分类标签，可能为空。","type":"string"},"AI_CT_3":{"description":"第三个分类标签，可能为空。","type":"string"},"AI_Contract":{"description":"合同类型, 0代表无合同。","type":"integer"},"AI_Degree":{"description":"学位要求。","type":"string"},"AI_French":{"description":"法语要求，可能为空。","type":"string"},"AI_FullTime":{"description":"是否全职, 0代表非全职。","type":"integer"},"AI_Intern_OR_CoOp":{"description":"是否实习或合作, 0代表否。","type":"integer"},"AI_Major":{"description":"主修专业。","type":"string"},"AI_NOC_CODE":{"description":"加拿大国家职业代码。","type":"string"},"AI_SK_1":{"description":"技能标签1。","type":"string"},"AI_SK_2":{"description":"技能标签2。","type":"string"},"AI_SK_3":{"description":"技能标签3。","type":"string"},"AI_SK_4":{"description":"技能标签4。","type":"string"},"AI_SK_5":{"description":"技能标签5。","type":"string"},"AI_Title":{"description":"职位全称。","type":"string"},"AI_Years":{"description":"年限要求。","type":"integer"},"Company_Name":{"description":"公司名称。","type":"string"},"FoundClosedAt":{"description":"职位关闭时间，可能为空。","type":"string"},"FoundOpenedAt":{"description":"职位发布时间。","type":"string"},"ID":{"description":"数据唯一标识符。","type":"integer"},"JobID":{"description":"工作职位ID。","type":"string"},"LastCheck":{"description":"最后检查时间。","type":"string"},"Link":{"description":"职位链接。","type":"string"},"Location":{"description":"工作地点。","type":"string"},"Title":{"description":"职位标题。","type":"string"},"ViewTag":{"description":"用户标识","type":"string"}},"type":"object"},"type":"array"}},"400":{"description":"未找到指定的工作职位。","schema":{"properties":{"message":{"example":"No jobs can be found","type":"string"}},"type":"object"}}},"summary":"加载更多工作职位","tags":["工作管理"]}},"/mark_job":{"post":{"consumes":["application/json"],"description":"此接口允许用户对特定工作职位进行标记，如查看、保存、申请、不感兴趣等。","parameters":[{"description":"工作职位的索引标识符。","in":"body","name":"job_index","required":true,"schema":{"properties":{"action":{"description":"标记动作，用户选择的标记类型。","enum":["None","Viewed","Saved","Applied","NotInterested"],"example":"Saved","type":"string"},"job_index":{"example":"12345","type":"string"}},"required":["job_index","action"],"type":"object"}}],"produces":["application/json"],"responses":{"200":{"description":"工作职位成功标记。","schema":{"properties":{"message":{"example":"Job marked successfully","type":"string"}},"type":"object"}},"400":{"description":"请求参数不完整或不正确。","schema":{"properties":{"error":{"example":"job_index and action parameters are required","type":"string"}},"type":"object"}}},"summary":"    标记工作职位","tags":["工作管理"]}},"/update_profile":{"post":{"consumes":["application/x-www-form-urlencoded"],"description":"此接口允许当前登录用户更新其个人资料信息，包括姓名、电子邮件、位置和就业信息。更新需要通过表单提交，并检查是否包含必要的字段。","parameters":[{"description":"标志字段，必须在表单中设置此字段以进行更新操作。","in":"formData","name":"update_profile","required":true,"type":"string"},{"description":"用户的姓名。","in":"formData","name":"name","required":false,"type":"string"},{"description":"用户的电子邮件地址。","in":"formData","name":"email","required":false,"type":"string"},{"description":"用户的位置信息。","in":"formData","name":"location","required":false,"type":"string"},{"description":"用户的就业情况。","in":"formData","name":"employment","required":false,"type":"string"}],"produces":["application/json"],"responses":{"200":{"description":"用户资料成功更新。","schema":{"properties":{"message":{"example":"Updated user 12345","type":"string"}},"type":"object"}},"400":{"description":"更新失败，可能是因为缺少update_profile标志、字段不完整或其他错误。","schema":{"properties":{"message":{"examples":["update_profile not in the form","Failed to update profile with error <error message>"],"type":"string"}},"type":"object"}}},"summary":"    更新用户个人资料","tags":["用户管理"]}},"/upload_resume":{"post":{"consumes":["multipart/form-data"],"description":"此接口允许用户上传简历文件。支持的文件格式通过服务器端配置决定。如果上传的不是文件、文件为空或文件格式不正确，将返回错误信息。","parameters":[{"description":"需要上传的简历文件。","in":"formData","name":"resume","required":true,"type":"file"}],"produces":["application/json"],"responses":{"200":{"description":"简历上传成功。","schema":{"properties":{"filename":{"description":"保存在服务器上的文件名。","example":"uploaded_resume.pdf","type":"string"},"message":{"example":"Resume uploaded successfully","type":"string"}},"type":"object"}},"400":{"description":"上传失败，由于没有文件被上传、选择的文件为空或文件格式无效。","schema":{"properties":{"message":{"examples":["No resume file uploaded","No selected file","Invalid file format"],"type":"string"}},"type":"object"}}},"summary":"    上传简历","tags":["简历管理"]}}},"swagger":"2.0"}