{"openapi":"3.1.0","info":{"title":"公司软件控制系统","description":"自用开放登录中台。业务 JSON 中文键；OIDC 与支付渠道字段英文。","license":{"name":"UNLICENSED","identifier":"UNLICENSED"},"version":"0.1.0"},"paths":{"//healthz":{"get":{"tags":[],"summary":"进程存活。不探测依赖。","operationId":"存活","responses":{"200":{"description":"存活"}}}},"//metrics":{"get":{"tags":[],"summary":"Prometheus 文本。","operationId":"指标","responses":{"200":{"description":"指标"}}}},"//readyz":{"get":{"tags":[],"summary":"就绪。探测 Mongo 副本集与 Redis；允许降级时依赖失败仍 200。","operationId":"就绪","responses":{"200":{"description":"就绪"}}}},"//v1/admin/admins":{"get":{"tags":[],"operationId":"列出管理员","responses":{"200":{"description":"平台管理员列表"}}},"post":{"tags":[],"operationId":"任命管理员","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/任命管理员请求"}}},"required":true},"responses":{"200":{"description":"已任命管理员"}}}},"//v1/admin/apps":{"get":{"tags":[],"operationId":"管理列出应用","responses":{"200":{"description":"全部应用"}}}},"//v1/admin/apps/{id}/approve":{"post":{"tags":[],"operationId":"通过应用","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已发生产密钥"}}}},"//v1/admin/apps/{id}/reject":{"post":{"tags":[],"operationId":"拒绝应用","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/拒绝请求"}}},"required":true},"responses":{"200":{"description":"已拒绝"}}}},"//v1/admin/apps/{id}/secret":{"post":{"tags":[],"operationId":"重签发密钥","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已重签发密钥"}}}},"//v1/admin/audit":{"get":{"tags":[],"operationId":"管理审计","responses":{"200":{"description":"审计日志"}}}},"//v1/admin/bootstrap":{"post":{"tags":[],"operationId":"引导超管","responses":{"200":{"description":"领取超管"}}}},"//v1/admin/credits/grant":{"post":{"tags":[],"operationId":"增加非支付积分","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/非支付积分请求"}}},"required":true},"responses":{"200":{"description":"已赠送积分"}}}},"//v1/admin/credits/reclaim":{"post":{"tags":[],"operationId":"回收非支付积分","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/非支付积分请求"}}},"required":true},"responses":{"200":{"description":"已回收赠送积分"}}}},"//v1/admin/events":{"get":{"tags":[],"operationId":"列出事件","parameters":[{"name":"类型","in":"query","description":"按事件类型过滤","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"最近结构化事件"}}}},"//v1/admin/issuers":{"get":{"tags":[],"operationId":"读取接入域名","responses":{"200":{"description":"接入域名（发行者别名）"}}},"put":{"tags":[],"operationId":"保存接入域名","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/接入域名请求"}}},"required":true},"responses":{"200":{"description":"已保存接入域名"}}}},"//v1/admin/licenses":{"get":{"tags":[],"operationId":"列出管理许可","responses":{"200":{"description":"全部许可"}}},"post":{"tags":[],"operationId":"签发许可","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/签发请求"}}},"required":true},"responses":{"200":{"description":"已签发许可"}}}},"//v1/admin/licenses/{id}":{"post":{"tags":[],"operationId":"改许可","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/改许可请求"}}},"required":true},"responses":{"200":{"description":"已更新许可"}}},"delete":{"tags":[],"operationId":"删许可","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已删除许可"}}}},"//v1/admin/licenses/{id}/rebind":{"post":{"tags":[],"operationId":"管理换绑","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/换绑请求"}}},"required":true},"responses":{"200":{"description":"管理员换绑"}}}},"//v1/admin/me":{"get":{"tags":[],"operationId":"管理我","responses":{"200":{"description":"是否管理员"}}}},"//v1/admin/orders":{"get":{"tags":[],"operationId":"管理订单","responses":{"200":{"description":"全部订单"}}}},"//v1/admin/pay/methods":{"get":{"tags":[],"operationId":"读取支付开关","responses":{"200":{"description":"支付方式开关"}}},"put":{"tags":[],"operationId":"保存支付开关","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/支付开关请求"}}},"required":true},"responses":{"200":{"description":"已保存支付方式开关"}}}},"//v1/admin/plugins":{"get":{"tags":[],"operationId":"管理插件","responses":{"200":{"description":"全部插件"}}}},"//v1/admin/plugins/policy":{"put":{"tags":[],"operationId":"保存插件删除规则","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/插件删除规则请求"}}},"required":true},"responses":{"200":{"description":"已保存插件删除退还规则"}}}},"//v1/admin/plugins/{id}/review":{"post":{"tags":[],"operationId":"审核插件","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/审核请求"}}},"required":true},"responses":{"200":{"description":"已审核"}}}},"//v1/admin/products":{"get":{"tags":[],"operationId":"列出产品","responses":{"200":{"description":"产品列表"}}},"post":{"tags":[],"operationId":"创建产品","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/产品请求"}}},"required":true},"responses":{"200":{"description":"已创建产品"}}}},"//v1/admin/products/{id}":{"post":{"tags":[],"operationId":"改产品","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/产品请求"}}},"required":true},"responses":{"200":{"description":"已更新产品"}}},"delete":{"tags":[],"operationId":"删产品","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已删除产品"}}}},"//v1/admin/recon":{"get":{"tags":[],"operationId":"列出日对账","responses":{"200":{"description":"日对账差异"}}}},"//v1/admin/refunds":{"get":{"tags":[],"operationId":"管理退款","responses":{"200":{"description":"全部退款申请"}}}},"//v1/admin/refunds/{id}/review":{"post":{"tags":[],"operationId":"审核退款","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/退款审核请求"}}},"required":true},"responses":{"200":{"description":"已审核退款"}}}},"//v1/admin/skus":{"get":{"tags":[],"operationId":"管理商品","responses":{"200":{"description":"支付中台价目表"}}},"post":{"tags":[],"operationId":"保存商品","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/商品请求"}}},"required":true},"responses":{"200":{"description":"已保存商品"}}}},"//v1/admin/skus/{id}":{"delete":{"tags":[],"operationId":"删除商品","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已删除商品"}}}},"//v1/admin/users/by-sub":{"get":{"tags":[],"operationId":"按成对查用户","responses":{"200":{"description":"内部用户"}}}},"//v1/apps":{"get":{"tags":[],"operationId":"列出应用","responses":{"200":{"description":"我的应用"}}},"post":{"tags":[],"operationId":"申请应用","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/申请请求"}}},"required":true},"responses":{"200":{"description":"已申请沙箱应用"}}}},"//v1/apps/{id}":{"get":{"tags":[],"operationId":"应用详情","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"应用详情"}}},"delete":{"tags":[],"operationId":"删除应用","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已删除应用及授权、令牌、插件"}}},"patch":{"tags":[],"operationId":"改应用","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/改请求"}}},"required":true},"responses":{"200":{"description":"已更新申请字段或插件页开关"}}}},"//v1/apps/{id}/plugins":{"get":{"tags":[],"operationId":"应用插件页","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"应用公开插件页"}}}},"//v1/apps/{id}/secret":{"post":{"tags":[],"operationId":"领取密钥","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"领取一次密钥"}}}},"//v1/avatars/{对象键}":{"get":{"tags":[],"operationId":"取头像","responses":{"200":{"description":"头像文件"}}}},"//v1/captcha":{"post":{"tags":[],"operationId":"发送验证码","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/发送验证码请求"}}},"required":true},"responses":{"200":{"description":"已发送"},"429":{"description":"冷却中"}}}},"//v1/errors":{"get":{"tags":[],"operationId":"错误码接口","responses":{"200":{"description":"错误码表"}}}},"//v1/licenses/heartbeat":{"post":{"tags":[],"operationId":"心跳","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/心跳请求"}}},"required":true},"responses":{"200":{"description":"心跳结果"}}}},"//v1/login":{"post":{"tags":[],"operationId":"登录","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/登录请求"}}},"required":true},"responses":{"200":{"description":"已登录"}}}},"//v1/login/qr":{"post":{"tags":[],"operationId":"创建会话票","responses":{"200":{"description":"账号中心登录二维码"}}}},"//v1/logout":{"post":{"tags":[],"operationId":"登出","responses":{"200":{"description":"已登出"}}}},"//v1/me":{"get":{"tags":[],"operationId":"我","responses":{"200":{"description":"当前用户"}}},"patch":{"tags":[],"operationId":"改资料","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/资料请求"}}},"required":true},"responses":{"200":{"description":"已更新资料"}}}},"//v1/me/avatar":{"post":{"tags":[],"operationId":"上传头像","responses":{"200":{"description":"已更新头像"}}}},"//v1/me/bind":{"post":{"tags":[],"operationId":"换绑","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/换绑请求"}}},"required":true},"responses":{"200":{"description":"已换绑"}}}},"//v1/me/close":{"post":{"tags":[],"operationId":"注销","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/注销请求"}}},"required":true},"responses":{"200":{"description":"已注销"}}}},"//v1/me/credits":{"get":{"tags":[],"operationId":"我的积分","responses":{"200":{"description":"积分账户"}}}},"//v1/me/grants":{"get":{"tags":[],"operationId":"列出授权","responses":{"200":{"description":"已授权应用"}}}},"//v1/me/grants/{应用编号}":{"delete":{"tags":[],"operationId":"撤销授权","responses":{"200":{"description":"已撤销"}}}},"//v1/me/licenses":{"get":{"tags":[],"operationId":"我的许可","responses":{"200":{"description":"我的许可"}}}},"//v1/me/licenses/{id}/rebind":{"post":{"tags":[],"operationId":"用户换绑","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/换绑请求"}}},"required":true},"responses":{"200":{"description":"已换绑"}}}},"//v1/oidc/authorize":{"get":{"tags":[],"operationId":"授权入口","responses":{"302":{"description":"跳转同意页或回调"}}}},"//v1/oidc/consent":{"get":{"tags":[],"operationId":"同意预览","responses":{"200":{"description":"同意页数据"}}},"post":{"tags":[],"operationId":"提交同意","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/同意请求"}}},"required":true},"responses":{"200":{"description":"同意后跳转"}}}},"//v1/oidc/qr/poll":{"post":{"tags":[],"operationId":"轮询登录票","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/轮询请求"}}},"required":true},"responses":{"200":{"description":"票状态"}}}},"//v1/oidc/qr/tickets":{"post":{"tags":[],"operationId":"创建登录票","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/创建票请求"}}},"required":true},"responses":{"200":{"description":"已创建登录票"}}}},"//v1/oidc/qr/tickets/{票号}":{"get":{"tags":[],"operationId":"登录票预览","responses":{"200":{"description":"扫码预览"}}},"post":{"tags":[],"operationId":"提交登录票","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/确认请求"}}},"required":true},"responses":{"200":{"description":"确认或取消"}}}},"//v1/oidc/revoke":{"post":{"tags":[],"operationId":"吊销令牌","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/吊销表"}}},"required":true},"responses":{"200":{"description":"已吊销或令牌本就无效"}}}},"//v1/oidc/token":{"post":{"tags":[],"operationId":"换票","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"$ref":"#/components/schemas/换票表"}}},"required":true},"responses":{"200":{"description":"令牌"}}}},"//v1/oidc/userinfo":{"get":{"tags":[],"operationId":"用户信息","responses":{"200":{"description":"用户信息"}}}},"//v1/orders":{"get":{"tags":[],"operationId":"我的订单","responses":{"200":{"description":"我的订单"}}},"post":{"tags":[],"operationId":"创建订单","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/下单请求"}}},"required":true},"responses":{"200":{"description":"已下单"}}}},"//v1/orders/{id}":{"get":{"tags":[],"operationId":"订单详情","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"订单详情"}}}},"//v1/orders/{id}/close":{"post":{"tags":[],"operationId":"关闭订单","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"关闭未支付订单"}}}},"//v1/orders/{id}/pay-with-credits":{"post":{"tags":[],"summary":"用积分购买许可：订单状态是幂等键，只有一个请求能把「待支付」改成「已支付」。","operationId":"积分支付订单","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已用积分支付"}}}},"//v1/orders/{id}/simulate-pay":{"post":{"tags":[],"summary":"过渡中台联调：管理员给自己的待支付订单发一条 mock 渠道成功回调。\n不直接改订单状态，仍由中台查单结果决定是否入账。","operationId":"模拟支付","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已模拟支付并回源"}}}},"//v1/orgs":{"get":{"tags":[],"operationId":"列出组织","responses":{"200":{"description":"我加入的组织"}}},"post":{"tags":[],"operationId":"创建组织","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/创建请求"}}},"required":true},"responses":{"200":{"description":"已创建组织"}}}},"//v1/orgs/{id}":{"get":{"tags":[],"operationId":"组织详情","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"组织与成员"}}}},"//v1/orgs/{id}/members":{"post":{"tags":[],"operationId":"加入成员","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/加人请求"}}},"required":true},"responses":{"200":{"description":"已加入成员"}}}},"//v1/orgs/{id}/members/{用户编号}":{"delete":{"tags":[],"operationId":"移除成员","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已移除"}}},"patch":{"tags":[],"operationId":"改成员角色","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/改角色请求"}}},"required":true},"responses":{"200":{"description":"已改角色"}}}},"//v1/password/reset":{"post":{"tags":[],"operationId":"重置密码","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/重置密码请求"}}},"required":true},"responses":{"200":{"description":"已重置密码"}}}},"//v1/pay/catalog":{"get":{"tags":[],"operationId":"支付目录","responses":{"200":{"description":"支付中台目录"}}}},"//v1/plugin-files/{token}":{"get":{"tags":[],"operationId":"下载文件","parameters":[{"name":"token","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"短时下载"}}}},"//v1/plugin-sample.zip":{"get":{"tags":[],"operationId":"示例包","responses":{"200":{"description":"示例免费插件包"}}}},"//v1/plugins":{"get":{"tags":[],"operationId":"列出插件","responses":{"200":{"description":"插件列表"}}},"post":{"tags":[],"operationId":"上传插件","responses":{"200":{"description":"已上传待审"}}}},"//v1/plugins/policy":{"get":{"tags":[],"operationId":"读取插件删除规则","responses":{"200":{"description":"插件删除退还规则"}}}},"//v1/plugins/{id}":{"get":{"tags":[],"operationId":"插件详情","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"插件详情"}}},"delete":{"tags":[],"operationId":"删除插件","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"已删除插件"}}}},"//v1/plugins/{id}/download":{"post":{"tags":[],"operationId":"申请下载","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"下载令牌"}}}},"//v1/plugins/{id}/orders":{"get":{"tags":[],"operationId":"我的插件订单","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"当前用户该插件订单"}}},"post":{"tags":[],"operationId":"付费下单","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/插件下单请求"}}},"required":true},"responses":{"200":{"description":"付费插件订单"}}}},"//v1/plugins/{id}/shelf":{"post":{"tags":[],"operationId":"上下架插件","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/上下架请求"}}},"required":true},"responses":{"200":{"description":"已上下架"}}}},"//v1/products":{"get":{"tags":[],"operationId":"可售产品","responses":{"200":{"description":"可网售产品"}}}},"//v1/refunds":{"get":{"tags":[],"operationId":"我的退款","responses":{"200":{"description":"我的退款申请"}}},"post":{"tags":[],"operationId":"申请退款","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/退款请求"}}},"required":true},"responses":{"200":{"description":"已申请退款"}}}},"//v1/register":{"post":{"tags":[],"operationId":"注册","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/注册请求"}}},"required":true},"responses":{"200":{"description":"已注册"}}}},"//v1/sessions":{"get":{"tags":[],"operationId":"会话列表","responses":{"200":{"description":"会话列表"}}}},"//v1/sessions/{会话编号}":{"delete":{"tags":[],"operationId":"踢会话","responses":{"200":{"description":"已踢出会话"}}}}},"components":{"schemas":{"上下架请求":{"type":"object","required":["上架"],"properties":{"上架":{"type":"boolean"}}},"下单请求":{"type":"object","required":["商品类型"],"properties":{"产品编号":{"type":["string","null"]},"商品类型":{"type":"string"},"套餐天数":{"type":["integer","null"],"format":"int64"},"幂等键":{"type":["string","null"]},"支付方式":{"type":["string","null"]},"积分数量":{"type":["integer","null"],"format":"int64"}}},"产品请求":{"type":"object","properties":{"中台sku":{"type":["string","null"]},"名称":{"type":["string","null"]},"套餐":{"type":["array","null"],"items":{"$ref":"#/components/schemas/时长套餐"}},"宽限小时":{"type":["integer","null"],"format":"int64"},"时钟回拨秒":{"type":["integer","null"],"format":"int64"},"设备上限":{"type":["integer","null"],"format":"int64"}}},"任命管理员请求":{"type":"object","properties":{"用户名":{"type":["string","null"]},"用户编号":{"type":["string","null"]},"职":{"type":["string","null"]},"邮箱":{"type":["string","null"]}}},"创建票请求":{"type":"object","required":["client_id","redirect_uri","code_challenge"],"properties":{"client_id":{"type":"string"},"client_secret":{"type":["string","null"]},"code_challenge":{"type":"string"},"code_challenge_method":{"type":"string"},"nonce":{"type":"string"},"redirect_uri":{"type":"string"},"scope":{"type":"string"}}},"创建请求":{"type":"object","required":["名称"],"properties":{"名称":{"type":"string"}}},"加人请求":{"type":"object","properties":{"用户编号":{"type":["string","null"]},"角色":{"type":["string","null"]},"邮箱":{"type":["string","null"]}}},"发送验证码请求":{"type":"object","required":["用途"],"properties":{"手机号":{"type":["string","null"]},"用途":{"type":"string"},"邮箱":{"type":["string","null"]}}},"吊销表":{"type":"object","properties":{"client_id":{"type":["string","null"]},"client_secret":{"type":["string","null"]},"token":{"type":["string","null"]},"token_type_hint":{"type":["string","null"]}}},"同意请求":{"type":"object","required":["允许","client_id","redirect_uri","code_challenge"],"properties":{"client_id":{"type":"string"},"code_challenge":{"type":"string"},"code_challenge_method":{"type":"string"},"nonce":{"type":"string"},"redirect_uri":{"type":"string"},"scope":{"type":"string"},"state":{"type":"string"},"允许":{"type":"boolean"}}},"商品请求":{"type":"object","required":["sku编号","单价分"],"properties":{"sku编号":{"type":"string"},"上架":{"type":["boolean","null"]},"单价分":{"type":"integer","format":"int64"}}},"审核请求":{"type":"object","required":["动作"],"properties":{"动作":{"type":"string"},"原因":{"type":"string"}}},"心跳请求":{"type":"object","required":["产品编号","设备指纹哈希"],"properties":{"产品编号":{"type":"string"},"客户端时间":{"type":["integer","null"],"format":"int64"},"许可编号":{"type":["string","null"]},"设备指纹哈希":{"type":"string"}}},"拒绝请求":{"type":"object","properties":{"原因":{"type":"string"}}},"换票表":{"type":"object","properties":{"client_id":{"type":["string","null"]},"client_secret":{"type":["string","null"]},"code":{"type":["string","null"]},"code_verifier":{"type":["string","null"]},"grant_type":{"type":["string","null"]},"redirect_uri":{"type":["string","null"]},"refresh_token":{"type":["string","null"]},"scope":{"type":["string","null"]}}},"换绑请求":{"type":"object","required":["方式"],"properties":{"手机号":{"type":["string","null"]},"方式":{"type":"string"},"邮箱":{"type":["string","null"]},"验证码":{"type":["string","null"]}}},"接入域名请求":{"type":"object","properties":{"别名":{"type":"array","items":{"type":"string"}}}},"插件下单请求":{"type":"object","properties":{"幂等键":{"type":["string","null"]},"支付方式":{"type":"string"}}},"插件删除规则请求":{"type":"object","required":["保护天数","退还百分"],"properties":{"保护天数":{"type":"integer","format":"int64"},"退还百分":{"type":"integer","format":"int64"}}},"支付开关请求":{"type":"object","required":["微信","支付宝","支付积分","赠送积分"],"properties":{"微信":{"type":"boolean"},"支付宝":{"type":"boolean"},"支付积分":{"type":"boolean"},"赠送积分":{"type":"boolean"}}},"改角色请求":{"type":"object","required":["角色"],"properties":{"角色":{"type":"string"}}},"改许可请求":{"type":"object","properties":{"产品编号":{"type":["string","null"]},"到期时间":{"type":["string","null"]},"状态":{"type":["string","null"]},"用户编号":{"type":["string","null"]},"类型":{"type":["string","null"]},"组织编号":{"type":["string","null"]}}},"改请求":{"type":"object","properties":{"scope":{"type":["array","null"],"items":{"type":"string"}},"名称":{"type":["string","null"]},"回调地址":{"type":["array","null"],"items":{"type":"string"}},"插件页开启":{"type":["boolean","null"]},"类型":{"type":["string","null"]},"说明":{"type":["string","null"]}}},"时长套餐":{"type":"object","required":["天数","积分"],"properties":{"天数":{"type":"integer","format":"int64"},"积分":{"type":"integer","format":"int64"}}},"注册请求":{"type":"object","required":["方式"],"properties":{"client_id":{"type":["string","null"]},"redirect_uri":{"type":["string","null"]},"密码":{"type":["string","null"]},"已同意协议":{"type":["boolean","null"]},"手机号":{"type":["string","null"]},"方式":{"type":"string"},"昵称":{"type":["string","null"]},"用户名":{"type":["string","null"]},"邮箱":{"type":["string","null"]},"验证码":{"type":["string","null"]}}},"注销请求":{"type":"object","required":["确认"],"properties":{"放弃可退":{"type":"boolean","description":"仍有可退支付积分时须为 true；进行中的退款申请不可用放弃跳过。"},"确认":{"type":"string"}}},"申请请求":{"type":"object","required":["名称","回调地址"],"properties":{"scope":{"type":"array","items":{"type":"string"}},"名称":{"type":"string"},"回调地址":{"type":"array","items":{"type":"string"}},"类型":{"type":["string","null"]},"说明":{"type":"string"}}},"登录请求":{"type":"object","required":["方式"],"properties":{"client_id":{"type":["string","null"]},"redirect_uri":{"type":["string","null"]},"密码":{"type":["string","null"]},"手机号":{"type":["string","null"]},"方式":{"type":"string"},"用户名":{"type":["string","null"]},"票号":{"type":["string","null"]},"轮询令牌":{"type":["string","null"]},"邮箱":{"type":["string","null"]},"验证码":{"type":["string","null"]}}},"确认请求":{"type":"object","required":["允许"],"properties":{"允许":{"type":"boolean"}}},"签发请求":{"type":"object","required":["产品编号","类型"],"properties":{"产品编号":{"type":"string"},"到期时间":{"type":["string","null"]},"幂等键":{"type":["string","null"]},"用户编号":{"type":["string","null"]},"类型":{"type":"string"},"组织编号":{"type":["string","null"]}}},"资料请求":{"type":"object","required":["昵称"],"properties":{"昵称":{"type":"string"}}},"轮询请求":{"type":"object","required":["票号","轮询令牌"],"properties":{"票号":{"type":"string"},"轮询令牌":{"type":"string"}}},"退款审核请求":{"type":"object","required":["动作"],"properties":{"动作":{"type":"string"}}},"退款请求":{"type":"object","required":["订单编号","原因"],"properties":{"原因":{"type":"string"},"幂等键":{"type":["string","null"]},"订单编号":{"type":"string"}}},"重置密码请求":{"type":"object","required":["方式"],"properties":{"手机号":{"type":["string","null"]},"新密码":{"type":["string","null"]},"方式":{"type":"string"},"邮箱":{"type":["string","null"]},"验证码":{"type":["string","null"]}}},"非支付积分请求":{"type":"object","required":["数量","原因"],"properties":{"原因":{"type":"string"},"幂等键":{"type":["string","null"]},"数量":{"type":"integer","format":"int64"},"用户名":{"type":["string","null"]},"用户编号":{"type":["string","null"]},"请求编号":{"type":["string","null"]},"邮箱":{"type":["string","null"]}}}}}}