openapi: "3.0.0"
info:
  title: "合规检查"
  version: "1.0.0"
  description: "发帖前多词库合规检查，返回是否通过、命中统计与合规建议"
servers:
  - url: "http://159.75.144.86:8000"
    description: "合规检查API"
paths:
  /check:
    post:
      summary: "合规检查"
      description: "对一段文案进行多词库违规检查，返回是否通过与合规建议"
      operationId: "complianceCheck"
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - text
              properties:
                text:
                  type: string
                  description: "待检查的文案内容"
      responses:
        "200":
          description: "检查结果"
          content:
            application/json:
              schema:
                type: object
                properties:
                  pass:
                    type: boolean
                    description: "是否通过"
                  report_short:
                    type: string
                    description: "一句话结论"
                  summary_zh:
                    type: string
                    description: "多行报告"
                  hits_by_source:
                    type: object
                    properties:
                      result:
                        type: string
                        description: "按词库分组的命中"
                    description: "按词库分组的命中"
                  compliance_tips:
                    type: array
                    items:
                      type: string
                    description: "合规建议"
