{"openapi":"3.1.0","info":{"title":"图南试听课申请","version":"1.0.0","description":"公开报名接口无需学员账号。提交前向申请人展示姓名、手机号、科目，并说明图南将使用这些信息联系安排试听。收到申请人明确同意后才能提交。试听时间由老师联系确认。"},"servers":[{"url":"https://www.tunanedu.com.cn"}],"externalDocs":{"description":"试听信息使用说明","url":"https://www.tunanedu.com.cn/privacy/"},"paths":{"/api/trial-bookings":{"post":{"operationId":"request_trial_lesson","summary":"经申请人确认后提交试听申请","description":"提交前向申请人展示姓名、手机号、科目，并说明图南将使用这些信息联系安排试听。收到申请人明确同意后才能提交。","x-openai-isConsequential":true,"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{16,100}$","description":"为本次确认的申请生成随机唯一值，如 UUID。重试同一次申请时复用此值。"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["name","phone","interest","consent"],"properties":{"name":{"type":"string","minLength":1,"maxLength":40,"description":"老师联系时使用的称呼。"},"phone":{"type":"string","pattern":"^1[3-9][0-9]{9}$","description":"可接听回访的中国大陆手机号，11 位数字。"},"interest":{"type":"string","enum":["数学","英语","语文","待咨询"],"description":"希望试听的科目。"},"consent":{"type":"boolean","const":true,"description":"提交前向申请人展示姓名、手机号、科目，并说明图南将使用这些信息联系安排试听。收到申请人明确同意后才能提交。"}}}}}},"responses":{"200":{"description":"同一申请已收件，返回原回执","content":{"application/json":{"schema":{"type":"object","required":["reference","status","message"],"properties":{"reference":{"type":"string","description":"申请回执号。"},"status":{"type":"string","const":"requested"},"message":{"type":"string"}}}}}},"201":{"description":"成功收件，等待老师回访","content":{"application/json":{"schema":{"type":"object","required":["reference","status","message"],"properties":{"reference":{"type":"string","description":"申请回执号。"},"status":{"type":"string","const":"requested"},"message":{"type":"string"}}}}}},"400":{"description":"格式错误","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"403":{"description":"来源无效","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"409":{"description":"编号与已提交内容冲突","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"413":{"description":"请求过大","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"415":{"description":"需使用 JSON","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"422":{"description":"字段或确认无效","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"429":{"description":"频率过高","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}},"503":{"description":"服务暂不可用","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]}}}}}}}}}