{"openapi":"3.0.3","info":{"title":"兴业茶产品溯源查询","version":"1.0.0","description":"受私密站点访问权限保护的只读批次查询。示例批次通过 isDemo 标注。"},"servers":[{"url":"https://xyc666.gengdu.tech"}],"paths":{"/api/trace":{"get":{"operationId":"queryTraceBatch","summary":"通过溯源码或批次号查询完整批次档案","parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string"}}],"security":[{"siteServiceAccess":[]}],"responses":{"200":{"description":"找到批次","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"code":{"type":"string"},"lot":{"type":"string"},"name":{"type":"string"},"netWeight":{"type":"string"},"produced":{"type":"string"},"origin":{"type":"string"},"garden":{"type":"string"},"workshop":{"type":"string"},"isDemo":{"type":"boolean"},"revision":{"type":"integer"},"updatedAt":{"type":"string"},"gardenInfo":{"type":"object","properties":{"plot":{"type":"string"},"leaf":{"type":"string"},"care":{"type":"string"},"coordinates":{"type":"string"},"environment":{"type":"string"},"cooperative":{"type":"string"}}},"stages":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"date":{"type":"string"},"place":{"type":"string"},"owner":{"type":"string"},"note":{"type":"string"}}}},"process":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"time":{"type":"string"},"note":{"type":"string"},"parameters":{"type":"string"}}}},"quality":{"type":"object","properties":{"reportNumber":{"type":"string"},"institution":{"type":"string"},"date":{"type":"string"},"standard":{"type":"string"},"documentUrl":{"type":"string"}}},"qualityItems":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"unit":{"type":"string"},"reference":{"type":"string"},"conclusion":{"type":"string"}}}},"certificates":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"number":{"type":"string"},"issuer":{"type":"string"},"validUntil":{"type":"string"},"documentUrl":{"type":"string"}}}},"storage":{"type":"object","properties":{"location":{"type":"string"},"arrived":{"type":"string"},"conditions":{"type":"string"},"measurements":{"type":"string"},"waybill":{"type":"string"},"packaging":{"type":"string"}}},"authorization":{"type":"string"}}}}}}}},"400":{"description":"编码格式错误"},"404":{"description":"批次不存在"},"503":{"description":"服务暂时不可用"}}}}},"components":{"securitySchemes":{"siteServiceAccess":{"type":"apiKey","in":"header","name":"OAI-Sites-Authorization","description":"私密服务访问凭据，值的格式为 Bearer 加空格再加令牌。仅在服务端配置。"}}}}