# GiveMeSomeTime **Repository Path**: hdt3213/GiveMeSomeTime ## Basic Information - **Project Name**: GiveMeSomeTime - **Description**: No description available - **Primary Language**: Python - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-12-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # API 请假: request: POST /apply/ { stu_name: str, stu_id: str, stu_phone: str, parent_phone: str, start_time: %Y-%m-%d %H:%M, stop_time: %Y-%m-%d %H:%M, location: str, } response: { result: 'ok' / error_str } 查询: /query/ request: { stu_name:str stu_id:str } response: { result: 'ok', list: [{ demand_id: start_time: stop_time: reason: location: director_comment: school_comment: state: }, ] } cookie: { session_id: } 申请详情: GET /query//detail/ 带cookie提交 response: { start_time: stop_time: reason: location: state: director_comment: school_comment: } 管理员登录: /admin/login/ request: { username: password: } response: { 'result': 'ok' / error_str } cookie: { session_id } 待审核列表: GET /admin/list/ 带cookie提交 response: { result: 'ok' / error_str, list: [ { demand_id stu_name: str stu_id: '' start_time: stop_time: stu_phone: parent_phone: reason: location: state: 0 }, ] } 审核 /admin/inspect/ 带cookie提交 request: { demand_id: state: director_comment: 可选 school_comment: 可选 } response: { result: 'ok' / error_str } 历史: /admin/history/ 带cookie提交 request: { start_time: %Y-%m-%d %H:%M, stop_time: %Y-%m-%d %H:%M, limit: int } response: { result: 'ok', list: [{ demand_id: start_time: stop_time: reason: location: director_comment: school_comment: state: }, ] }