{"openapi":"3.1.0","info":{"title":"乐改生态共创平台 · API","description":"多品牌租户 · 商品/交易/资金三中枢归一","version":"1.0.0"},"paths":{"/api/v1/health":{"get":{"tags":["system"],"summary":"Health","operationId":"health_api_v1_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Health Api V1 Health Get"}}}}}}},"/api/v1/info":{"get":{"tags":["system"],"summary":"Info","operationId":"info_api_v1_info_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Info Api V1 Info Get"}}}}}}},"/api/v1/auth/login":{"post":{"tags":["platform"],"summary":"Login","operationId":"login_api_v1_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/register":{"post":{"tags":["platform"],"summary":"Register","operationId":"register_api_v1_auth_register_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RegisterRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/auth/me":{"get":{"tags":["platform"],"summary":"Me","operationId":"me_api_v1_auth_me_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/tenants":{"get":{"tags":["platform"],"summary":"List Tenants","operationId":"list_tenants_api_v1_tenants_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}}}},"post":{"tags":["platform"],"summary":"Create Tenant","operationId":"create_tenant_api_v1_tenants_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenantIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flags":{"get":{"tags":["platform"],"summary":"List Flags","operationId":"list_flags_api_v1_flags_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["platform"],"summary":"Set Flag","operationId":"set_flag_api_v1_flags_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlagSetIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flags/validate":{"get":{"tags":["platform"],"summary":"Validate Flags","operationId":"validate_flags_api_v1_flags_validate_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flags/{flag_key}/history":{"get":{"tags":["platform"],"summary":"Flag History","operationId":"flag_history_api_v1_flags__flag_key__history_get","parameters":[{"name":"flag_key","in":"path","required":true,"schema":{"type":"string","title":"Flag Key"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/flags/{flag_key}/resolve":{"get":{"tags":["platform"],"summary":"Resolve Flag","description":"按上下文求值单个开关（前端可据此隐藏/显示模块）。","operationId":"resolve_flag_api_v1_flags__flag_key__resolve_get","parameters":[{"name":"flag_key","in":"path","required":true,"schema":{"type":"string","title":"Flag Key"}},{"name":"channel","in":"query","required":false,"schema":{"type":"string","default":"","title":"Channel"}},{"name":"category_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Category Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subjects":{"post":{"tags":["identity"],"summary":"Create Subject","operationId":"create_subject_api_v1_subjects_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubjectCreateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["identity"],"summary":"List Subjects","operationId":"list_subjects_api_v1_subjects_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subjects/{subject_id}/advance":{"post":{"tags":["identity"],"summary":"Advance","operationId":"advance_api_v1_subjects__subject_id__advance_post","parameters":[{"name":"subject_id","in":"path","required":true,"schema":{"type":"integer","title":"Subject Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvanceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subjects/{subject_id}/certification":{"post":{"tags":["identity"],"summary":"Submit Cert","operationId":"submit_cert_api_v1_subjects__subject_id__certification_post","parameters":[{"name":"subject_id","in":"path","required":true,"schema":{"type":"integer","title":"Subject Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CertIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subjects/{subject_id}":{"get":{"tags":["identity"],"summary":"Get Subject","description":"主体详情：入驻状态 / 认证 / 保证金 / 合同。","operationId":"get_subject_api_v1_subjects__subject_id__get","parameters":[{"name":"subject_id","in":"path","required":true,"schema":{"type":"integer","title":"Subject Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subjects/{subject_id}/contract":{"post":{"tags":["identity"],"summary":"Sign Contract","description":"合同签约（电子签留痕）。","operationId":"sign_contract_api_v1_subjects__subject_id__contract_post","parameters":[{"name":"subject_id","in":"path","required":true,"schema":{"type":"integer","title":"Subject Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContractIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subjects/{subject_id}/deposit":{"post":{"tags":["identity"],"summary":"Pay Deposit","description":"保证金缴纳（留流水，状态转已缴）。","operationId":"pay_deposit_api_v1_subjects__subject_id__deposit_post","parameters":[{"name":"subject_id","in":"path","required":true,"schema":{"type":"integer","title":"Subject Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositPayIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/subjects/certifications/{cert_id}/audit":{"post":{"tags":["identity"],"summary":"Audit Cert","description":"认证审核（管控台）。","operationId":"audit_cert_api_v1_subjects_certifications__cert_id__audit_post","parameters":[{"name":"cert_id","in":"path","required":true,"schema":{"type":"integer","title":"Cert Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products":{"get":{"tags":["product"],"summary":"List Products","description":"商品列表（公开浏览，B2B 访客可见）；带 vehicle_model_id 时按适配引擎过滤。\n\nscope=manage（管控台视角）：返回全量商品（含未上架/待审），并附审核状态。","operationId":"list_products_api_v1_products_get","parameters":[{"name":"keyword","in":"query","required":false,"schema":{"type":"string","default":"","title":"Keyword"}},{"name":"category_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Category Id"}},{"name":"vehicle_model_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Vehicle Model Id"}},{"name":"scope","in":"query","required":false,"schema":{"type":"string","default":"mall","title":"Scope"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/{product_id}":{"get":{"tags":["product"],"summary":"Get Product","description":"商品详情（公开浏览）。","operationId":"get_product_api_v1_products__product_id__get","parameters":[{"name":"product_id","in":"path","required":true,"schema":{"type":"integer","title":"Product Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/fitment/vehicles":{"get":{"tags":["product"],"summary":"List Vehicles","operationId":"list_vehicles_api_v1_products_fitment_vehicles_get","parameters":[{"name":"brand_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Brand Id"}},{"name":"series_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Series Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/categories/tree":{"get":{"tags":["product"],"summary":"Category Tree","operationId":"category_tree_api_v1_products_categories_tree_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}}}}},"/api/v1/products/admin/product":{"post":{"tags":["product"],"summary":"Create Product","operationId":"create_product_api_v1_products_admin_product_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProductIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/admin/sku":{"post":{"tags":["product"],"summary":"Create Sku","operationId":"create_sku_api_v1_products_admin_sku_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SkuIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/admin/shelf":{"post":{"tags":["product"],"summary":"Shelf","operationId":"shelf_api_v1_products_admin_shelf_post","parameters":[{"name":"product_id","in":"query","required":true,"schema":{"type":"integer","title":"Product Id"}},{"name":"on","in":"query","required":false,"schema":{"type":"boolean","default":true,"title":"On"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/admin/fitment":{"post":{"tags":["product"],"summary":"Bind Fitment","operationId":"bind_fitment_api_v1_products_admin_fitment_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FitmentIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/fitment/check":{"post":{"tags":["product"],"summary":"Check Fitment","description":"这个商品能不能装我的车？（三态，公开试算）","operationId":"check_fitment_api_v1_products_fitment_check_post","parameters":[{"name":"product_id","in":"query","required":true,"schema":{"type":"integer","title":"Product Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FitQueryIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/products/price/resolve":{"post":{"tags":["product"],"summary":"Resolve Price Api","description":"SKU 价格解析（公开试算）。","operationId":"resolve_price_api_api_v1_products_price_resolve_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceQueryIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory":{"get":{"tags":["product"],"summary":"List Inventory","operationId":"list_inventory_api_v1_inventory_get","parameters":[{"name":"sku_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Sku Id"}},{"name":"only_low","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Only Low"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/lock":{"post":{"tags":["product"],"summary":"Lock","operationId":"lock_api_v1_inventory_lock_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StockOpIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/release":{"post":{"tags":["product"],"summary":"Release","operationId":"release_api_v1_inventory_release_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StockOpIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/deduct":{"post":{"tags":["product"],"summary":"Deduct","operationId":"deduct_api_v1_inventory_deduct_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StockOpIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/inventory/refund":{"post":{"tags":["product"],"summary":"Refund In","operationId":"refund_in_api_v1_inventory_refund_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StockOpIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders":{"get":{"tags":["trade"],"summary":"List Orders","description":"订单列表（管控台）：按状态 / 支付状态 / 订单号筛选，返回分页 total。","operationId":"list_orders_api_v1_orders_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Status"}},{"name":"pay_status","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Pay Status"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string","default":"","title":"Keyword"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["trade"],"summary":"Create Order","operationId":"create_order_api_v1_orders_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOrderRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrderOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders/pay":{"post":{"tags":["trade"],"summary":"Pay Order","operationId":"pay_order_api_v1_orders_pay_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/orders/{order_no}":{"get":{"tags":["trade"],"summary":"Get Order","operationId":"get_order_api_v1_orders__order_no__get","parameters":[{"name":"order_no","in":"path","required":true,"schema":{"type":"string","title":"Order No"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_OrderOut_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/create":{"post":{"tags":["trade"],"summary":"Create Payment","operationId":"create_payment_api_v1_payments_create_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PayIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/notify":{"post":{"tags":["trade"],"summary":"Notify","description":"渠道异步回调（幂等）：重复回调返回成功但不重复入账。","operationId":"notify_api_v1_payments_notify_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotifyIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/payments/refund":{"post":{"tags":["trade"],"summary":"Refund","operationId":"refund_api_v1_payments_refund_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RefundIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fulfillment/delivery":{"post":{"tags":["fulfillment"],"summary":"Create Delivery","operationId":"create_delivery_api_v1_fulfillment_delivery_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fulfillment/sub-order/{sub_order_id}/receipt":{"post":{"tags":["fulfillment"],"summary":"Confirm Receipt","operationId":"confirm_receipt_api_v1_fulfillment_sub_order__sub_order_id__receipt_post","parameters":[{"name":"sub_order_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Order Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fulfillment/work-order":{"post":{"tags":["fulfillment"],"summary":"Create Work Order","operationId":"create_work_order_api_v1_fulfillment_work_order_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkOrderIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fulfillment/work-order/{work_no}/accept":{"post":{"tags":["fulfillment"],"summary":"Accept Work Order","operationId":"accept_work_order_api_v1_fulfillment_work_order__work_no__accept_post","parameters":[{"name":"work_no","in":"path","required":true,"schema":{"type":"string","title":"Work No"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fulfillment/work-order/{work_no}/finish":{"post":{"tags":["fulfillment"],"summary":"Finish Work Order","operationId":"finish_work_order_api_v1_fulfillment_work_order__work_no__finish_post","parameters":[{"name":"work_no","in":"path","required":true,"schema":{"type":"string","title":"Work No"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fulfillment/verify":{"post":{"tags":["fulfillment"],"summary":"Verify","description":"核销 —— 结算的唯一触发源。","operationId":"verify_api_v1_fulfillment_verify_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerifyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fulfillment/sub-order/{sub_order_id}/complete":{"post":{"tags":["fulfillment"],"summary":"Complete","operationId":"complete_api_v1_fulfillment_sub_order__sub_order_id__complete_post","parameters":[{"name":"sub_order_id","in":"path","required":true,"schema":{"type":"integer","title":"Sub Order Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fulfillment/deliveries":{"get":{"tags":["fulfillment"],"summary":"Delivery List","description":"发货单列表（含物流轨迹条数）。","operationId":"delivery_list_api_v1_fulfillment_deliveries_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Status"}},{"name":"keyword","in":"query","required":false,"schema":{"type":"string","default":"","title":"Keyword"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fulfillment/traces/{delivery_id}":{"get":{"tags":["fulfillment"],"summary":"Trace List","description":"物流轨迹。","operationId":"trace_list_api_v1_fulfillment_traces__delivery_id__get","parameters":[{"name":"delivery_id","in":"path","required":true,"schema":{"type":"integer","title":"Delivery Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fulfillment/work-orders":{"get":{"tags":["fulfillment"],"summary":"Work Order List","description":"履约工单（到店服务）。","operationId":"work_order_list_api_v1_fulfillment_work_orders_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Status"}},{"name":"store_subject_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Store Subject Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fulfillment/verifies":{"get":{"tags":["fulfillment"],"summary":"Verify List","description":"核销记录（结算唯一触发源）。","operationId":"verify_list_api_v1_fulfillment_verifies_get","parameters":[{"name":"settled","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Settled"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fulfillment/overview":{"get":{"tags":["fulfillment"],"summary":"Fulfillment Overview","description":"履约总览：发货 / 签收 / 工单 / 核销 / 待结算。","operationId":"fulfillment_overview_api_v1_fulfillment_overview_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fund/accounts":{"get":{"tags":["fund"],"summary":"List Accounts","operationId":"list_accounts_api_v1_fund_accounts_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fund/flows":{"get":{"tags":["fund"],"summary":"List Flows","operationId":"list_flows_api_v1_fund_flows_get","parameters":[{"name":"account_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Account Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"default":50,"title":"Limit"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fund/flow":{"post":{"tags":["fund"],"summary":"Append Flow","description":"手工入账/出账（只增不改；更正请用冲销接口）。","operationId":"append_flow_api_v1_fund_flow_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FlowIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fund/flow/{flow_id}/reverse":{"post":{"tags":["fund"],"summary":"Reverse Flow","operationId":"reverse_flow_api_v1_fund_flow__flow_id__reverse_post","parameters":[{"name":"flow_id","in":"path","required":true,"schema":{"type":"integer","title":"Flow Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fund/splits":{"get":{"tags":["fund"],"summary":"List Splits","operationId":"list_splits_api_v1_fund_splits_get","parameters":[{"name":"sub_order_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Sub Order Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fund/splits/confirm":{"post":{"tags":["fund"],"summary":"Confirm Matured Splits","description":"担保期已到的分账 → 入账（写资金流水，只增不改）。","operationId":"confirm_matured_splits_api_v1_fund_splits_confirm_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fund/withdraws":{"get":{"tags":["fund"],"summary":"List Withdraws","operationId":"list_withdraws_api_v1_fund_withdraws_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fund/withdraw/{withdraw_id}/audit":{"post":{"tags":["fund"],"summary":"Audit Withdraw","description":"审核提现单：通过 → 待打款；驳回 → 解冻。","operationId":"audit_withdraw_api_v1_fund_withdraw__withdraw_id__audit_post","parameters":[{"name":"withdraw_id","in":"path","required":true,"schema":{"type":"integer","title":"Withdraw Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawAuditIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fund/withdraw/{withdraw_id}/payout":{"post":{"tags":["fund"],"summary":"Payout Withdraw","description":"提现打款：扣余额 + 解冻 + 写出账流水。","operationId":"payout_withdraw_api_v1_fund_withdraw__withdraw_id__payout_post","parameters":[{"name":"withdraw_id","in":"path","required":true,"schema":{"type":"integer","title":"Withdraw Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fund/settlements/build":{"post":{"tags":["fund"],"summary":"Build Settlements","operationId":"build_settlements_api_v1_fund_settlements_build_post","parameters":[{"name":"force","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Force"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fund/withdraw":{"post":{"tags":["fund"],"summary":"Create Withdraw","operationId":"create_withdraw_api_v1_fund_withdraw_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WithdrawIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/fund/reconcile":{"post":{"tags":["fund"],"summary":"Run Reconcile","operationId":"run_reconcile_api_v1_fund_reconcile_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/score/deduct":{"post":{"tags":["governance"],"summary":"Deduct Score","operationId":"deduct_score_api_v1_governance_score_deduct_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScoreDeductIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/score/{subject_id}":{"get":{"tags":["governance"],"summary":"Score Status","operationId":"score_status_api_v1_governance_score__subject_id__get","parameters":[{"name":"subject_id","in":"path","required":true,"schema":{"type":"integer","title":"Subject Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/credit/recalc":{"post":{"tags":["governance"],"summary":"Recalc Credit","operationId":"recalc_credit_api_v1_governance_credit_recalc_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreditIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/deposit/sync":{"post":{"tags":["governance"],"summary":"Sync Deposit","operationId":"sync_deposit_api_v1_governance_deposit_sync_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DepositIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/risk/check":{"post":{"tags":["governance"],"summary":"Risk Check","operationId":"risk_check_api_v1_governance_risk_check_post","parameters":[{"name":"scene","in":"query","required":true,"schema":{"type":"string","title":"Scene"}},{"name":"biz_no","in":"query","required":true,"schema":{"type":"string","title":"Biz No"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/guarantee/release":{"post":{"tags":["governance"],"summary":"Release Guarantee","operationId":"release_guarantee_api_v1_governance_guarantee_release_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/overview":{"get":{"tags":["governance"],"summary":"Governance Overview","description":"治理风控总览：各域计数 + 待办。","operationId":"governance_overview_api_v1_governance_overview_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/score-records":{"get":{"tags":["governance"],"summary":"Score Records","description":"12 分记分流水。","operationId":"score_records_api_v1_governance_score_records_get","parameters":[{"name":"subject_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Subject Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/credits":{"get":{"tags":["governance"],"summary":"Credit Profiles","description":"信用分档案（含最新变动原因）。","operationId":"credit_profiles_api_v1_governance_credits_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/deposits":{"get":{"tags":["governance"],"summary":"Deposit List","description":"保证金账户（应缴 / 实缴 / 冻结 / 缺口）。","operationId":"deposit_list_api_v1_governance_deposits_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/deposit-logs":{"get":{"tags":["governance"],"summary":"Deposit Logs","description":"保证金流水。","operationId":"deposit_logs_api_v1_governance_deposit_logs_get","parameters":[{"name":"subject_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Subject Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/risk/rules":{"get":{"tags":["governance"],"summary":"Risk Rules","description":"风控规则清单（平台公共规则 tenant_id=0 + 租户私有规则）。","operationId":"risk_rules_api_v1_governance_risk_rules_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/risk/hits":{"get":{"tags":["governance"],"summary":"Risk Hits","description":"风控命中记录（含平台公共规则在租户侧的命中）。","operationId":"risk_hits_api_v1_governance_risk_hits_get","parameters":[{"name":"scene","in":"query","required":false,"schema":{"type":"string","default":"","title":"Scene"}},{"name":"handle_status","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Handle Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/risk/hit/{hit_id}/handle":{"post":{"tags":["governance"],"summary":"Handle Risk Hit","operationId":"handle_risk_hit_api_v1_governance_risk_hit__hit_id__handle_post","parameters":[{"name":"hit_id","in":"path","required":true,"schema":{"type":"integer","title":"Hit Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/appeals":{"get":{"tags":["governance"],"summary":"Appeal List","description":"申诉列表。","operationId":"appeal_list_api_v1_governance_appeals_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/appeal":{"post":{"tags":["governance"],"summary":"Appeal Create","description":"主体发起申诉。","operationId":"appeal_create_api_v1_governance_appeal_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppealIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/appeal/{appeal_id}/handle":{"post":{"tags":["governance"],"summary":"Appeal Handle","description":"申诉处理：通过 → 恢复记分。","operationId":"appeal_handle_api_v1_governance_appeal__appeal_id__handle_post","parameters":[{"name":"appeal_id","in":"path","required":true,"schema":{"type":"integer","title":"Appeal Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppealHandleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/governance/inspections":{"get":{"tags":["governance"],"summary":"Inspection List","description":"质检记录。","operationId":"inspection_list_api_v1_governance_inspections_get","parameters":[{"name":"subject_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Subject Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/agents":{"get":{"tags":["ai"],"summary":"List Agents","operationId":"list_agents_api_v1_ai_agents_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/models":{"get":{"tags":["ai"],"summary":"List Models","operationId":"list_models_api_v1_ai_models_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}}}}},"/api/v1/ai/prompts":{"get":{"tags":["ai"],"summary":"List Prompts","operationId":"list_prompts_api_v1_ai_prompts_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}}}}},"/api/v1/ai/route":{"post":{"tags":["ai"],"summary":"Route Model","description":"L1 网关：按场景选模型 + 降级链。","operationId":"route_model_api_v1_ai_route_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RouteIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/rag/search":{"post":{"tags":["ai"],"summary":"Rag Search","description":"L2 RAG：检索 + 打分（余弦×覆盖率）+ 证据链。无命中宁可返回空。","operationId":"rag_search_api_v1_ai_rag_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RagIn"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/agent/gate":{"post":{"tags":["ai"],"summary":"Agent Gate","description":"L3 数字员工门控：放权阶段 + 权限边界 + 熔断 + 转人工判定。","operationId":"agent_gate_api_v1_ai_agent_gate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__v1__ai__GateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai/autonomy/matrix":{"get":{"tags":["ai"],"summary":"Autonomy Gates","description":"四阶段放权矩阵（Agent 控制台用）。","operationId":"autonomy_gates_api_v1_ai_autonomy_matrix_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}}}}},"/api/v1/ai/quota/check":{"post":{"tags":["ai"],"summary":"Quota Check","operationId":"quota_check_api_v1_ai_quota_check_post","parameters":[{"name":"quota_token","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Quota Token"}},{"name":"used_token","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Used Token"}},{"name":"add_tokens","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Add Tokens"}},{"name":"quota_amount","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"string"}],"default":"0","title":"Quota Amount"}},{"name":"used_amount","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"string"}],"default":"0","title":"Used Amount"}},{"name":"add_cost","in":"query","required":false,"schema":{"anyOf":[{"type":"number"},{"type":"string"}],"default":"0","title":"Add Cost"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/points/earn":{"post":{"tags":["points"],"summary":"Earn","description":"按规则计算一次积分获取（FR-U2-01）。","operationId":"earn_api_v1_points_earn_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EarnIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/points/redeem/check":{"post":{"tags":["points"],"summary":"Redeem Check","description":"兑换校验：白名单 + 余额 + 红线（不兑现金、不挂保费，FR-U4-01）。","operationId":"redeem_check_api_v1_points_redeem_check_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RedeemIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/points/level":{"post":{"tags":["points"],"summary":"Level","operationId":"level_api_v1_points_level_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LevelIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/points/rules":{"get":{"tags":["points"],"summary":"Rules","description":"公示积分获取规则（尺子透明）。","operationId":"rules_api_v1_points_rules_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/points/accounts":{"get":{"tags":["points"],"summary":"Point Accounts","description":"积分账户（累计 / 已用 / 可用 / 等级）。","operationId":"point_accounts_api_v1_points_accounts_get","parameters":[{"name":"keyword","in":"query","required":false,"schema":{"type":"string","default":"","title":"Keyword"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/points/records":{"get":{"tags":["points"],"summary":"Point Records","description":"积分流水（只增不改）。","operationId":"point_records_api_v1_points_records_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"User Id"}},{"name":"reason_code","in":"query","required":false,"schema":{"type":"string","default":"","title":"Reason Code"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/points/levels":{"get":{"tags":["points"],"summary":"Level List","description":"等级规则（门槛 + 权益 + 投票权重）。","operationId":"level_list_api_v1_points_levels_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/points/tasks":{"get":{"tags":["points"],"summary":"Task List","description":"共创任务（积分悬赏）。","operationId":"task_list_api_v1_points_tasks_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/points/overview":{"get":{"tags":["points"],"summary":"Points Overview","description":"积分管理总览。","operationId":"points_overview_api_v1_points_overview_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/membership/price":{"post":{"tags":["member"],"summary":"Price","description":"订阅应付价（信用分折扣，FR-M5-01）。","operationId":"price_api_v1_membership_price_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__v1__membership__PriceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/membership/window":{"post":{"tags":["member"],"summary":"Window","operationId":"window_api_v1_membership_window_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WindowIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/membership/benefits/grant":{"post":{"tags":["member"],"summary":"Grant","description":"权益发放：额度类照发，资格类随主体状态冻结（FR-M3-01）。","operationId":"grant_api_v1_membership_benefits_grant_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrantIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/membership/benefits/consume":{"post":{"tags":["member"],"summary":"Consume","operationId":"consume_api_v1_membership_benefits_consume_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConsumeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/membership/isolation-audit":{"post":{"tags":["member"],"summary":"Isolation","description":"★ FR-M4-01 排序隔离审计：证明排序链路未混入付费变量。","operationId":"isolation_api_v1_membership_isolation_audit_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IsolationIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/membership/packs/buy":{"post":{"tags":["member"],"summary":"Buy Pack","operationId":"buy_pack_api_v1_membership_packs_buy_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/membership/plans":{"get":{"tags":["member"],"summary":"Plan List","description":"会员套餐清单。","operationId":"plan_list_api_v1_membership_plans_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["member"],"summary":"Plan Save","description":"新增 / 修改会员套餐。","operationId":"plan_save_api_v1_membership_plans_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/membership/packs":{"get":{"tags":["member"],"summary":"Pack List","description":"权益包清单。","operationId":"pack_list_api_v1_membership_packs_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/membership/subscriptions":{"get":{"tags":["member"],"summary":"Subscription List","description":"会员订阅记录。","operationId":"subscription_list_api_v1_membership_subscriptions_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"integer","default":-1,"title":"Status"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/membership/benefit-usages":{"get":{"tags":["member"],"summary":"Benefit Usages","description":"权益发放与消耗。","operationId":"benefit_usages_api_v1_membership_benefit_usages_get","parameters":[{"name":"owner_type","in":"query","required":false,"schema":{"type":"string","default":"","title":"Owner Type"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/membership/overview":{"get":{"tags":["member"],"summary":"Membership Overview","description":"会员权益总览。","operationId":"membership_overview_api_v1_membership_overview_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/switch":{"post":{"tags":["channel"],"summary":"Switch","description":"渠道开关判定：状态 + 品类白名单 + 灰度（FR-CH8-01）。","operationId":"switch_api_v1_channels_switch_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SwitchIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/products/push":{"post":{"tags":["channel"],"summary":"Push","description":"商品推送：模板映射 + 私有字段拦截 + 安全库存（FR-CH2/CH3）。","operationId":"push_api_v1_channels_products_push_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PushIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/price/check":{"post":{"tags":["channel"],"summary":"Price Check","description":"渠道价校验：倒挂 + 守价，大促突破走豁免审批（FR-CH4-01）。","operationId":"price_check_api_v1_channels_price_check_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__v1__channels__PriceIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/orders/reflow":{"post":{"tags":["channel"],"summary":"Reflow","description":"渠道订单回流：双号关联 + 幂等 + 佣金计入分润修正（FR-CH5-01）。","operationId":"reflow_api_v1_channels_orders_reflow_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReflowIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/reconcile":{"post":{"tags":["channel"],"summary":"Reconcile","description":"渠道对账：账单 vs 平台订单 → 差异工单（FR-CH7-01）。","operationId":"reconcile_api_v1_channels_reconcile_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconcileIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/connectors":{"get":{"tags":["channel"],"summary":"Connector List","description":"渠道 Connector 清单（含店铺数 / 商品映射数 / 回流单数）。\n\n平台公共触点（tenant_id=0，如京东/天猫/抖音适配器）与租户私有触点均可见。","operationId":"connector_list_api_v1_channels_connectors_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["channel"],"summary":"Connector Save","description":"新增 / 停用一个渠道 Connector。","operationId":"connector_save_api_v1_channels_connectors_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/product-maps":{"get":{"tags":["channel"],"summary":"Product Maps","description":"渠道商品映射（同步状态 / 外部价 / 守价下限）。","operationId":"product_maps_api_v1_channels_product_maps_get","parameters":[{"name":"connector_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Connector Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/order-refs":{"get":{"tags":["channel"],"summary":"Order Refs","description":"渠道订单回流（双号关联）。","operationId":"order_refs_api_v1_channels_order_refs_get","parameters":[{"name":"connector_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Connector Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/price-rules":{"get":{"tags":["channel"],"summary":"Price Rules","description":"渠道守价规则（含突破豁免留痕）。","operationId":"price_rules_api_v1_channels_price_rules_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/shops":{"get":{"tags":["channel"],"summary":"Shop List","description":"渠道店铺（外部店铺号 / 归属主体 / 状态）。","operationId":"shop_list_api_v1_channels_shops_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/channels/overview":{"get":{"tags":["channel"],"summary":"Channel Overview","description":"渠道对接总览。","operationId":"channel_overview_api_v1_channels_overview_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai-scenes":{"get":{"tags":["ai-scenes"],"summary":"List All","description":"13 场景注册表（PRD B5-4）。","operationId":"list_all_api_v1_ai_scenes_get","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai-scenes/gate/check":{"post":{"tags":["ai-scenes"],"summary":"Gate","description":"评测门控：不达标禁止开启（PRD 5.5.7 红线）。","operationId":"gate_api_v1_ai_scenes_gate_check_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/app__api__v1__ai_scenes__GateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai-scenes/gray/next":{"post":{"tags":["ai-scenes"],"summary":"Gray Next","description":"逐场景灰度推进/关闭。","operationId":"gray_next_api_v1_ai_scenes_gray_next_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrayIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai-scenes/serve/check":{"post":{"tags":["ai-scenes"],"summary":"Serve","description":"流量桶命中判定。","operationId":"serve_api_v1_ai_scenes_serve_check_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ServeIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai-scenes/handoff/check":{"post":{"tags":["ai-scenes"],"summary":"Handoff","description":"置信度低于阈值转人工。","operationId":"handoff_api_v1_ai_scenes_handoff_check_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/HandoffIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ai-scenes/automation-rate":{"post":{"tags":["ai-scenes"],"summary":"Automation Rate","description":"自动化率 vs 目标。","operationId":"automation_rate_api_v1_ai_scenes_automation_rate_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RateIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/surveys":{"get":{"tags":["survey"],"summary":"List Surveys","description":"问卷列表（游客可浏览，回收进度）。","operationId":"list_surveys_api_v1_surveys_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}}}}},"/api/v1/surveys/{survey_no}":{"get":{"tags":["survey"],"summary":"Survey Detail","description":"问卷详情 + 题目列表（游客可浏览作答页）。","operationId":"survey_detail_api_v1_surveys__survey_no__get","parameters":[{"name":"survey_no","in":"path","required":true,"schema":{"type":"string","title":"Survey No"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/surveys/create":{"post":{"tags":["survey"],"summary":"Create","description":"创建问卷（FR-H2-01）。","operationId":"create_api_v1_surveys_create_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SurveyIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/surveys/questions/add":{"post":{"tags":["survey"],"summary":"Add Question","description":"新增题目（题型/选项校验）。","operationId":"add_question_api_v1_surveys_questions_add_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/surveys/submit":{"post":{"tags":["survey"],"summary":"Submit","description":"作答提交：校验 + 量表得分 + 回收计数。","operationId":"submit_api_v1_surveys_submit_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/surveys/target":{"post":{"tags":["survey"],"summary":"Target","description":"样本投放圈选：车型/地区/等级（FR-H2-01）。","operationId":"target_api_v1_surveys_target_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TargetIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/surveys/{survey_no}/report":{"get":{"tags":["survey"],"summary":"Report","description":"回收统计汇总（AI 报告生成输入）。","operationId":"report_api_v1_surveys__survey_no__report_get","parameters":[{"name":"survey_no","in":"path","required":true,"schema":{"type":"string","title":"Survey No"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cmarketing/proposals/create":{"post":{"tags":["cmarketing"],"summary":"Create Proposal","description":"创建联合营销提案（PRD 5.2）。","operationId":"create_proposal_api_v1_cmarketing_proposals_create_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cmarketing/proposals/review":{"post":{"tags":["cmarketing"],"summary":"Review","description":"提交评审意见并汇总决议（需含平台侧评审）。","operationId":"review_api_v1_cmarketing_proposals_review_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReviewIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cmarketing/funds/alloc":{"post":{"tags":["cmarketing"],"summary":"Fund Alloc","description":"资金池锁定/核销/释放（PRD 5.2 资金池）。","operationId":"fund_alloc_api_v1_cmarketing_funds_alloc_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cmarketing/attribution":{"post":{"tags":["cmarketing"],"summary":"Attribution","description":"归因复盘：分成拆分 + ROI。","operationId":"attribution_api_v1_cmarketing_attribution_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AttributionIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/cmarketing/settle":{"post":{"tags":["cmarketing"],"summary":"Settle","description":"结算检查 + 信用联动（按期 +2，超期 -1/天，上限 -10）。","operationId":"settle_api_v1_cmarketing_settle_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SettleIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ideas":{"get":{"tags":["co-create"],"summary":"List Ideas","description":"创意列表（FR-H1-01 创意广场，游客可浏览）：heat 热度 / new 最新 / deadline 即将截止。","operationId":"list_ideas_api_v1_ideas_get","parameters":[{"name":"category_id","in":"query","required":false,"schema":{"type":"integer","default":0,"title":"Category Id"}},{"name":"sort","in":"query","required":false,"schema":{"type":"string","default":"heat","title":"Sort"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":1,"title":"Page"}},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Page Size"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["co-create"],"summary":"Create Idea","description":"提交创意；匿名时身份不落平台（PRD 红线：车主真实身份不进中台）。","operationId":"create_idea_api_v1_ideas_post","parameters":[{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdeaIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/ideas/{idea_id}/vote":{"post":{"tags":["co-create"],"summary":"Vote Idea","description":"投票；同一轮同一投票人对同一创意幂等（防刷票）。","operationId":"vote_idea_api_v1_ideas__idea_id__vote_post","parameters":[{"name":"idea_id","in":"path","required":true,"schema":{"type":"integer","title":"Idea Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoteIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/crowdfunding":{"get":{"tags":["co-create"],"summary":"List Crowdfunding","description":"众筹项目列表（游客可浏览，进度 = 已筹/目标）。","operationId":"list_crowdfunding_api_v1_crowdfunding_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}}}}},"/api/v1/crowdfunding/{crowd_id}/support":{"post":{"tags":["co-create"],"summary":"Support Crowdfunding","description":"支持众筹（需登录）：校验起筹额/状态/期限 → 写支持记录 → 更新进度，达标即成功。","operationId":"support_crowdfunding_api_v1_crowdfunding__crowd_id__support_post","parameters":[{"name":"crowd_id","in":"path","required":true,"schema":{"type":"integer","title":"Crowd Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrowdSupportIn"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/v1/co-create/wishes":{"get":{"tags":["co-create"],"summary":"List Wishes","description":"品牌心愿墙（共创官任务，游客可浏览）：品牌方发布的心愿/体验任务。","operationId":"list_wishes_api_v1_co_create_wishes_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_list_dict__"}}}}}}},"/api/v1/co-create/wishes/{wish_id}/join":{"post":{"tags":["co-create"],"summary":"Join Wish","description":"参与品牌心愿（报名共创）。","operationId":"join_wish_api_v1_co_create_wishes__wish_id__join_post","parameters":[{"name":"wish_id","in":"path","required":true,"schema":{"type":"integer","title":"Wish Id"}},{"name":"authorization","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiResponse_dict_"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/":{"get":{"summary":"Root","operationId":"root__get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"additionalProperties":true,"type":"object","title":"Response Root  Get"}}}}}}}},"components":{"schemas":{"AdvanceIn":{"properties":{"event":{"type":"string","title":"Event"},"ctx":{"additionalProperties":true,"type":"object","title":"Ctx","default":{}}},"type":"object","required":["event"],"title":"AdvanceIn"},"ApiResponse_OrderOut_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"$ref":"#/components/schemas/OrderOut"},{"type":"null"}]},"trace_id":{"type":"string","title":"Trace Id","default":""}},"type":"object","title":"ApiResponse[OrderOut]"},"ApiResponse_dict_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Data"},"trace_id":{"type":"string","title":"Trace Id","default":""}},"type":"object","title":"ApiResponse[dict]"},"ApiResponse_list_":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Data"},"trace_id":{"type":"string","title":"Trace Id","default":""}},"type":"object","title":"ApiResponse[list]"},"ApiResponse_list_dict__":{"properties":{"code":{"type":"integer","title":"Code","default":0},"message":{"type":"string","title":"Message","default":"ok"},"data":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Data"},"trace_id":{"type":"string","title":"Trace Id","default":""}},"type":"object","title":"ApiResponse[list[dict]]"},"AppealHandleIn":{"properties":{"result":{"type":"integer","title":"Result","default":1},"remark":{"type":"string","title":"Remark","default":""}},"type":"object","title":"AppealHandleIn"},"AppealIn":{"properties":{"subject_id":{"type":"integer","title":"Subject Id"},"target_type":{"type":"string","title":"Target Type","default":"score_record"},"target_id":{"type":"integer","title":"Target Id","default":0},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["subject_id"],"title":"AppealIn"},"AttributionIn":{"properties":{"proposal_no":{"type":"string","title":"Proposal No"},"gmv":{"type":"number","title":"Gmv"},"order_count":{"type":"integer","title":"Order Count"},"used_amount":{"type":"number","title":"Used Amount"},"platform_ratio":{"type":"number","title":"Platform Ratio","default":0.5}},"type":"object","required":["proposal_no","gmv","order_count","used_amount"],"title":"AttributionIn"},"CertIn":{"properties":{"cert_level":{"type":"integer","title":"Cert Level","default":1},"cert_type":{"type":"string","title":"Cert Type","default":"business"},"cert_no":{"type":"string","title":"Cert No","default":""},"cert_file_url":{"type":"string","title":"Cert File Url","default":""}},"type":"object","title":"CertIn"},"ConsumeIn":{"properties":{"used":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Used"},"total":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Total"},"requested":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Requested"}},"type":"object","required":["used","total","requested"],"title":"ConsumeIn"},"ContractIn":{"properties":{"contract_no":{"type":"string","title":"Contract No","default":""},"template_code":{"type":"string","title":"Template Code","default":"STANDARD"},"sign_name":{"type":"string","title":"Sign Name","default":""},"sign_id_no":{"type":"string","title":"Sign Id No","default":""}},"type":"object","title":"ContractIn"},"CreateOrderRequest":{"properties":{"lines":{"items":{"$ref":"#/components/schemas/OrderLineIn"},"type":"array","title":"Lines"},"channel":{"type":"string","title":"Channel","default":"web"},"source":{"type":"string","title":"Source","default":"mall"},"discount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Discount","default":"0"},"free_freight":{"type":"boolean","title":"Free Freight","default":false},"remark":{"type":"string","title":"Remark","default":""}},"type":"object","required":["lines"],"title":"CreateOrderRequest"},"CreditIn":{"properties":{"subject_id":{"type":"integer","title":"Subject Id"},"pass_rate":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Pass Rate","default":"1"},"on_time_rate":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"On Time Rate","default":"1"},"service_score":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Service Score","default":"90"},"violation_count":{"type":"integer","title":"Violation Count","default":0},"growth_rate":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Growth Rate","default":"0"},"claim_rate":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Claim Rate","default":"0"}},"type":"object","required":["subject_id"],"title":"CreditIn"},"CrowdSupportIn":{"properties":{"amount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Amount"}},"type":"object","required":["amount"],"title":"CrowdSupportIn"},"DeliveryIn":{"properties":{"sub_order_id":{"type":"integer","title":"Sub Order Id"},"carrier_code":{"type":"string","title":"Carrier Code","default":"SF"},"carrier_name":{"type":"string","title":"Carrier Name","default":""},"waybill_no":{"type":"string","title":"Waybill No","default":""},"warehouse_id":{"type":"integer","title":"Warehouse Id","default":0}},"type":"object","required":["sub_order_id"],"title":"DeliveryIn"},"DepositIn":{"properties":{"subject_id":{"type":"integer","title":"Subject Id"},"monthly_gmv":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Monthly Gmv","default":"0"}},"type":"object","required":["subject_id"],"title":"DepositIn"},"DepositPayIn":{"properties":{"amount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Amount"},"channel":{"type":"string","title":"Channel","default":"bank"},"voucher_no":{"type":"string","title":"Voucher No","default":""}},"type":"object","required":["amount"],"title":"DepositPayIn"},"EarnIn":{"properties":{"event":{"type":"string","title":"Event"},"amount":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Amount"},"member_rate":{"type":"number","title":"Member Rate","default":1.0},"repurchase_streak":{"type":"integer","title":"Repurchase Streak","default":0}},"type":"object","required":["event"],"title":"EarnIn"},"FitQueryIn":{"properties":{"model_id":{"type":"integer","title":"Model Id","default":0},"series_id":{"type":"integer","title":"Series Id","default":0},"brand_id":{"type":"integer","title":"Brand Id","default":0},"year":{"type":"integer","title":"Year","default":0}},"type":"object","title":"FitQueryIn"},"FitmentIn":{"properties":{"product_id":{"type":"integer","title":"Product Id"},"sku_id":{"type":"integer","title":"Sku Id","default":0},"vehicle_model_id":{"type":"integer","title":"Vehicle Model Id"},"fit_status":{"type":"integer","title":"Fit Status","default":1},"source":{"type":"integer","title":"Source","default":1},"confidence":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Confidence","default":"1"},"note":{"type":"string","title":"Note","default":""}},"type":"object","required":["product_id","vehicle_model_id"],"title":"FitmentIn"},"FlagSetIn":{"properties":{"flag_key":{"type":"string","title":"Flag Key"},"is_enabled":{"type":"boolean","title":"Is Enabled"},"tenant_id":{"type":"integer","title":"Tenant Id","default":0},"dim_type":{"type":"string","title":"Dim Type","default":""},"dim_value":{"type":"string","title":"Dim Value","default":""},"gray_ratio":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Gray Ratio"},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["flag_key","is_enabled"],"title":"FlagSetIn"},"FlowIn":{"properties":{"account_id":{"type":"integer","title":"Account Id"},"direction":{"type":"integer","title":"Direction"},"amount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Amount"},"biz_type":{"type":"string","title":"Biz Type","default":"adjust"},"biz_no":{"type":"string","title":"Biz No","default":""},"remark":{"type":"string","title":"Remark","default":""}},"type":"object","required":["account_id","direction","amount"],"title":"FlowIn"},"FundIn":{"properties":{"pool_no":{"type":"string","title":"Pool No"},"proposal_id":{"type":"integer","title":"Proposal Id"},"amount":{"type":"number","title":"Amount"},"action":{"type":"string","title":"Action"},"remark":{"type":"string","title":"Remark","default":""}},"type":"object","required":["pool_no","proposal_id","amount","action"],"title":"FundIn"},"GrantIn":{"properties":{"benefits":{"additionalProperties":true,"type":"object","title":"Benefits"},"score_remaining":{"type":"integer","title":"Score Remaining","default":12},"cert_status":{"type":"string","title":"Cert Status","default":"certified"}},"type":"object","required":["benefits"],"title":"GrantIn"},"GrayIn":{"properties":{"scene_code":{"type":"string","title":"Scene Code"},"gray_stage":{"type":"string","title":"Gray Stage","default":""},"force_close":{"type":"boolean","title":"Force Close","default":false}},"type":"object","required":["scene_code"],"title":"GrayIn"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HandoffIn":{"properties":{"scene_code":{"type":"string","title":"Scene Code"},"confidence":{"type":"number","title":"Confidence"}},"type":"object","required":["scene_code","confidence"],"title":"HandoffIn"},"IdeaIn":{"properties":{"title":{"type":"string","title":"Title"},"content":{"type":"string","title":"Content","default":""},"category_id":{"type":"integer","title":"Category Id","default":0},"anon":{"type":"boolean","title":"Anon","default":true},"author_name":{"type":"string","title":"Author Name","default":""}},"type":"object","required":["title"],"title":"IdeaIn"},"IsolationIn":{"properties":{"ranking_inputs":{"items":{"type":"string"},"type":"array","title":"Ranking Inputs"}},"type":"object","required":["ranking_inputs"],"title":"IsolationIn"},"LevelIn":{"properties":{"total_point":{"type":"integer","title":"Total Point"}},"type":"object","required":["total_point"],"title":"LevelIn"},"LoginRequest":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"tenant_id":{"type":"integer","title":"Tenant Id","default":1}},"type":"object","required":["username","password"],"title":"LoginRequest"},"NotifyIn":{"properties":{"channel_code":{"type":"string","title":"Channel Code"},"trade_no":{"type":"string","title":"Trade No"},"out_trade_no":{"type":"string","title":"Out Trade No"},"amount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Amount"},"status":{"type":"integer","title":"Status","default":1},"paid_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Paid At"},"raw":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Raw"}},"type":"object","required":["channel_code","trade_no","out_trade_no","amount"],"title":"NotifyIn"},"OrderLineIn":{"properties":{"sku_id":{"type":"integer","title":"Sku Id"},"product_id":{"type":"integer","title":"Product Id"},"subject_id":{"type":"integer","title":"Subject Id"},"product_no":{"type":"string","title":"Product No","default":""},"sku_no":{"type":"string","title":"Sku No","default":""},"product_name":{"type":"string","title":"Product Name","default":""},"unit_price":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Unit Price"},"quantity":{"type":"integer","minimum":1.0,"title":"Quantity","default":1},"warehouse_id":{"type":"integer","title":"Warehouse Id","default":0},"weight":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Weight","default":"0"},"region_code":{"type":"string","title":"Region Code","default":""},"vehicle_model_id":{"type":"integer","title":"Vehicle Model Id","default":0}},"type":"object","required":["sku_id","product_id","subject_id","unit_price"],"title":"OrderLineIn"},"OrderOut":{"properties":{"order_no":{"type":"string","title":"Order No"},"total_amount":{"type":"string","title":"Total Amount"},"discount_amount":{"type":"string","title":"Discount Amount"},"freight_amount":{"type":"string","title":"Freight Amount"},"pay_amount":{"type":"string","title":"Pay Amount"},"status":{"type":"integer","title":"Status"},"pay_status":{"type":"integer","title":"Pay Status","default":0},"refund_amount":{"type":"string","title":"Refund Amount","default":"0"},"sub_orders":{"items":{"$ref":"#/components/schemas/SubOrderOut"},"type":"array","title":"Sub Orders","default":[]}},"type":"object","required":["order_no","total_amount","discount_amount","freight_amount","pay_amount","status"],"title":"OrderOut"},"PayIn":{"properties":{"order_no":{"type":"string","title":"Order No"},"channel_code":{"type":"string","title":"Channel Code","default":"mock"}},"type":"object","required":["order_no"],"title":"PayIn"},"PayRequest":{"properties":{"order_no":{"type":"string","title":"Order No"},"channel_code":{"type":"string","title":"Channel Code","default":"mock"}},"type":"object","required":["order_no"],"title":"PayRequest"},"PriceQueryIn":{"properties":{"sku_id":{"type":"integer","title":"Sku Id"},"channel":{"type":"string","title":"Channel","default":"web"},"identity_type":{"type":"string","title":"Identity Type","default":"owner"},"quantity":{"type":"integer","title":"Quantity","default":1}},"type":"object","required":["sku_id"],"title":"PriceQueryIn"},"ProductIn":{"properties":{"product_name":{"type":"string","title":"Product Name"},"category_id":{"type":"integer","title":"Category Id","default":0},"brand_id":{"type":"integer","title":"Brand Id","default":0},"subject_id":{"type":"integer","title":"Subject Id","default":0},"is_fitment":{"type":"boolean","title":"Is Fitment","default":false},"is_install":{"type":"boolean","title":"Is Install","default":false},"unit":{"type":"string","title":"Unit","default":"件"},"sub_title":{"type":"string","title":"Sub Title","default":""},"main_image":{"type":"string","title":"Main Image","default":""},"detail_html":{"type":"string","title":"Detail Html","default":""},"fitment_note":{"type":"string","title":"Fitment Note","default":""},"install_note":{"type":"string","title":"Install Note","default":""},"gallery":{"items":{"type":"string"},"type":"array","title":"Gallery","default":[]}},"type":"object","required":["product_name"],"title":"ProductIn"},"ProposalIn":{"properties":{"title":{"type":"string","title":"Title"},"budget":{"type":"number","title":"Budget"},"campaign_start":{"type":"string","format":"date-time","title":"Campaign Start"},"campaign_end":{"type":"string","format":"date-time","title":"Campaign End"},"partner_ids":{"items":{"type":"integer"},"type":"array","title":"Partner Ids"},"initiator_type":{"type":"integer","title":"Initiator Type","default":1},"initiator_id":{"type":"integer","title":"Initiator Id","default":0},"content_json":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Content Json"}},"type":"object","required":["title","budget","campaign_start","campaign_end","partner_ids"],"title":"ProposalIn"},"PushIn":{"properties":{"sku":{"additionalProperties":true,"type":"object","title":"Sku"},"mapping":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Mapping"},"platform_available":{"type":"integer","title":"Platform Available","default":0},"safety_stock":{"type":"integer","title":"Safety Stock","default":0}},"type":"object","required":["sku"],"title":"PushIn"},"QuestionIn":{"properties":{"survey_no":{"type":"string","title":"Survey No"},"question_type":{"type":"integer","title":"Question Type"},"title":{"type":"string","title":"Title"},"options":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Options"},"is_required":{"type":"boolean","title":"Is Required","default":false}},"type":"object","required":["survey_no","question_type","title"],"title":"QuestionIn"},"RagIn":{"properties":{"query":{"type":"string","title":"Query"},"top_k":{"type":"integer","title":"Top K","default":5},"min_score":{"type":"number","title":"Min Score","default":0.12}},"type":"object","required":["query"],"title":"RagIn"},"RateIn":{"properties":{"states":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"States"}},"type":"object","required":["states"],"title":"RateIn"},"ReconcileIn":{"properties":{"bill_lines":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Bill Lines"},"platform_orders":{"additionalProperties":{"additionalProperties":true,"type":"object"},"type":"object","title":"Platform Orders"}},"type":"object","required":["bill_lines","platform_orders"],"title":"ReconcileIn"},"RedeemIn":{"properties":{"target":{"type":"string","title":"Target"},"points":{"type":"integer","title":"Points"},"available":{"type":"integer","title":"Available"}},"type":"object","required":["target","points","available"],"title":"RedeemIn"},"ReflowIn":{"properties":{"connector_code":{"type":"string","title":"Connector Code"},"external_order_no":{"type":"string","title":"External Order No"},"status":{"type":"string","title":"Status"},"pay_amount":{"type":"number","title":"Pay Amount"},"commission_rate":{"type":"number","title":"Commission Rate","default":0.05}},"type":"object","required":["connector_code","external_order_no","status","pay_amount"],"title":"ReflowIn"},"RefundIn":{"properties":{"order_no":{"type":"string","title":"Order No"},"amount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Amount"},"refund_type":{"type":"integer","title":"Refund Type","default":1},"reason":{"type":"string","title":"Reason","default":""}},"type":"object","required":["order_no","amount"],"title":"RefundIn"},"RegisterRequest":{"properties":{"username":{"type":"string","title":"Username"},"password":{"type":"string","title":"Password"},"nickname":{"type":"string","title":"Nickname","default":""},"mobile":{"type":"string","title":"Mobile","default":""},"tenant_id":{"type":"integer","title":"Tenant Id","default":1},"user_type":{"type":"integer","title":"User Type","default":1}},"type":"object","required":["username","password"],"title":"RegisterRequest"},"ReviewIn":{"properties":{"proposal_no":{"type":"string","title":"Proposal No"},"reviewer_id":{"type":"integer","title":"Reviewer Id"},"reviewer_role":{"type":"string","title":"Reviewer Role"},"verdict":{"type":"integer","title":"Verdict"},"comment":{"type":"string","title":"Comment","default":""}},"type":"object","required":["proposal_no","reviewer_id","reviewer_role","verdict"],"title":"ReviewIn"},"RouteIn":{"properties":{"scene":{"type":"string","title":"Scene","default":""},"need_vision":{"type":"boolean","title":"Need Vision","default":false},"need_long_context":{"type":"boolean","title":"Need Long Context","default":false},"est_input_tokens":{"type":"integer","title":"Est Input Tokens","default":0}},"type":"object","title":"RouteIn"},"ScoreDeductIn":{"properties":{"subject_id":{"type":"integer","title":"Subject Id"},"reason_code":{"type":"string","title":"Reason Code"},"times":{"type":"integer","title":"Times","default":1},"evidence":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence"}},"type":"object","required":["subject_id","reason_code"],"title":"ScoreDeductIn"},"ServeIn":{"properties":{"scene_code":{"type":"string","title":"Scene Code"},"gray_stage":{"type":"string","title":"Gray Stage"},"traffic_bucket":{"type":"integer","title":"Traffic Bucket"}},"type":"object","required":["scene_code","gray_stage","traffic_bucket"],"title":"ServeIn"},"SettleIn":{"properties":{"proposal_no":{"type":"string","title":"Proposal No"},"overdue_days":{"type":"integer","title":"Overdue Days","default":0},"base_credit_score":{"type":"integer","title":"Base Credit Score","default":60}},"type":"object","required":["proposal_no"],"title":"SettleIn"},"SkuIn":{"properties":{"product_id":{"type":"integer","title":"Product Id"},"sku_name":{"type":"string","title":"Sku Name"},"market_price":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Market Price","default":"0"},"sale_price":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Sale Price","default":"0"},"cost_price":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Cost Price","default":"0"},"oem_no":{"type":"string","title":"Oem No","default":""},"spec":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Spec"}},"type":"object","required":["product_id","sku_name"],"title":"SkuIn"},"StockOpIn":{"properties":{"sku_id":{"type":"integer","title":"Sku Id"},"qty":{"type":"integer","title":"Qty"},"warehouse_id":{"type":"integer","title":"Warehouse Id","default":0}},"type":"object","required":["sku_id","qty"],"title":"StockOpIn"},"SubOrderOut":{"properties":{"sub_order_no":{"type":"string","title":"Sub Order No"},"subject_id":{"type":"integer","title":"Subject Id"},"total_amount":{"type":"string","title":"Total Amount"},"pay_amount":{"type":"string","title":"Pay Amount"},"split_reason":{"type":"string","title":"Split Reason"},"status_code":{"type":"string","title":"Status Code"},"status":{"type":"integer","title":"Status","default":0},"refund_amount":{"type":"string","title":"Refund Amount","default":"0"}},"type":"object","required":["sub_order_no","subject_id","total_amount","pay_amount","split_reason","status_code"],"title":"SubOrderOut"},"SubjectCreateIn":{"properties":{"subject_name":{"type":"string","title":"Subject Name"},"subject_type":{"type":"string","title":"Subject Type","default":"trader"},"industry_code":{"type":"string","title":"Industry Code","default":""},"region":{"type":"string","title":"Region","default":""}},"type":"object","required":["subject_name"],"title":"SubjectCreateIn"},"SubmitIn":{"properties":{"survey_no":{"type":"string","title":"Survey No"},"user_id":{"type":"integer","title":"User Id","default":0},"anon_uid":{"type":"string","title":"Anon Uid","default":""},"answers":{"additionalProperties":true,"type":"object","title":"Answers"}},"type":"object","required":["survey_no","answers"],"title":"SubmitIn"},"SurveyIn":{"properties":{"title":{"type":"string","title":"Title"},"description":{"type":"string","title":"Description","default":""},"survey_type":{"type":"integer","title":"Survey Type","default":2},"start_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Start At"},"end_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"End At"}},"type":"object","required":["title"],"title":"SurveyIn"},"SwitchIn":{"properties":{"connector_code":{"type":"string","title":"Connector Code"},"connector_type":{"type":"integer","title":"Connector Type","default":2},"commission_rate":{"type":"number","title":"Commission Rate","default":0.05},"status":{"type":"integer","title":"Status","default":1},"gray_ratio":{"type":"integer","title":"Gray Ratio","default":0},"category_whitelist":{"items":{"type":"string"},"type":"array","title":"Category Whitelist","default":[]},"category":{"type":"string","title":"Category","default":""},"gray_bucket":{"type":"integer","title":"Gray Bucket","default":0}},"type":"object","required":["connector_code"],"title":"SwitchIn"},"TargetIn":{"properties":{"users":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"Users"},"vehicle_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Model"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"min_level":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Min Level"}},"type":"object","required":["users"],"title":"TargetIn"},"TenantIn":{"properties":{"tenant_code":{"type":"string","title":"Tenant Code"},"tenant_name":{"type":"string","title":"Tenant Name"},"short_name":{"type":"string","title":"Short Name","default":""},"plan_code":{"type":"string","title":"Plan Code","default":"basic"}},"type":"object","required":["tenant_code","tenant_name"],"title":"TenantIn"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VerifyIn":{"properties":{"work_no":{"type":"string","title":"Work No"},"verify_type":{"type":"integer","title":"Verify Type","default":1}},"type":"object","required":["work_no"],"title":"VerifyIn"},"VoteIn":{"properties":{"voter_id":{"type":"integer","title":"Voter Id"},"voter_name":{"type":"string","title":"Voter Name","default":""},"weight":{"type":"integer","title":"Weight","default":1},"round_id":{"type":"integer","title":"Round Id","default":0}},"type":"object","required":["voter_id"],"title":"VoteIn"},"WindowIn":{"properties":{"plan_code":{"type":"string","title":"Plan Code"}},"type":"object","required":["plan_code"],"title":"WindowIn"},"WithdrawAuditIn":{"properties":{"approve":{"type":"boolean","title":"Approve"}},"type":"object","required":["approve"],"title":"WithdrawAuditIn"},"WithdrawIn":{"properties":{"subject_id":{"type":"integer","title":"Subject Id"},"amount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Amount"},"bank_name":{"type":"string","title":"Bank Name","default":""}},"type":"object","required":["subject_id","amount"],"title":"WithdrawIn"},"WorkOrderIn":{"properties":{"sub_order_id":{"type":"integer","title":"Sub Order Id"},"store_subject_id":{"type":"integer","title":"Store Subject Id"},"store_name":{"type":"string","title":"Store Name","default":""},"contact_name":{"type":"string","title":"Contact Name","default":""},"contact_phone":{"type":"string","title":"Contact Phone","default":""},"labor_amount":{"anyOf":[{"type":"number"},{"type":"string"}],"title":"Labor Amount","default":"0"},"vehicle_model_id":{"type":"integer","title":"Vehicle Model Id","default":0}},"type":"object","required":["sub_order_id","store_subject_id"],"title":"WorkOrderIn"},"app__api__v1__ai__GateIn":{"properties":{"agent_id":{"type":"integer","title":"Agent Id"},"tool_code":{"type":"string","title":"Tool Code"},"domain":{"type":"string","title":"Domain","default":""},"confidence":{"type":"number","title":"Confidence","default":1.0},"fail_count":{"type":"integer","title":"Fail Count","default":0},"user_said_human":{"type":"boolean","title":"User Said Human","default":false}},"type":"object","required":["agent_id","tool_code"],"title":"GateIn"},"app__api__v1__ai_scenes__GateIn":{"properties":{"scene_code":{"type":"string","title":"Scene Code"},"evaluation":{"additionalProperties":true,"type":"object","title":"Evaluation"}},"type":"object","required":["scene_code","evaluation"],"title":"GateIn"},"app__api__v1__channels__PriceIn":{"properties":{"base_price":{"type":"number","title":"Base Price"},"channel_price":{"type":"number","title":"Channel Price"},"floor_rate":{"type":"number","title":"Floor Rate","default":0.85},"b2b_price":{"type":"number","title":"B2B Price"},"allow_break":{"type":"boolean","title":"Allow Break","default":false}},"type":"object","required":["base_price","channel_price","b2b_price"],"title":"PriceIn"},"app__api__v1__membership__PriceIn":{"properties":{"plan_code":{"type":"string","title":"Plan Code"},"credit_score":{"type":"integer","title":"Credit Score","default":0}},"type":"object","required":["plan_code"],"title":"PriceIn"}}}}