openapi: 3.1.0 info: title: klt-bos version: 0.1.0 description: |- 恪澜通运营支撑扩展微服务(klt-bos)。 统一请求信封:`{ "data": { … } }`;统一响应信封:`{ code, message, error_code?, data }`。 业务错误码段 60000–60999。本服务产出的数字码落在该段内;鉴权失败类透传平台原码: 未认证 `11000`、无权限 `11001`(含平台 SDK 鉴权闸门在本进程内产出的响应,业务侧不得改写)。 其余平台通用码(11100/11103/11104/10110)由 `S` 段自造码承接,平台原码在 `message` 原文保留。 通用块 60000–60049(`S` 段):`KLT-S407`/60001 通用冲突、`KLT-S20002`/11000 未认证(透传)、 `KLT-S20003`/11001 无权限(透传)、`KLT-S20004`/60004 参数缺失或格式错误、`KLT-S20005`/60005 对象不存在、 `KLT-S20006`/60006 下游依赖失败、`KLT-S20007`/60007 内部错误、`KLT-S20008`/60008 功能未实现; 角色档拒绝 `KLT-P301`/60058(路由级 AC 已放行,但本服务 `require_roles` 细粒度角色档拦下; 与网关授权层 `11001` 区分:`11001`=路由 catalog 未绑键/授权层拦下,`60058`=本服务角色档拒下)。 设计口径码 `KLT-T2xx`(`error_code`=代码,`code`=数字,与通用族 `KLT-S2xxxx` 并行且不得混用): `KLT-T201`/60068 名称已存在、`KLT-T216`/60095 负责范围与同类其他主体交叉、 `KLT-T222`/60076 操作过于频繁、`KLT-T223`/60077 新密码不能与原密码相同、 `KLT-T224`/60089 同省份下已存在同品牌运营商档案、`KLT-T225`/60090 运营商档案所属区域须为省级节点、 `KLT-T226`/60096 合伙人名称全站唯一、`KLT-T227`/60096 负责范围同请求内祖先与子孙混选。 `KLT-*` 字符串为对外稳定契约,字符串内嵌数字与 `code` 已脱钩。 成功码沿用平台统一值 10000。调用方断言只绑 `error_code`(`KLT-*`),不绑数字顺位。 判权/判成功:经网关一律以 HTTP 200 返回,结果只体现在信封 `code`;调用方不得据 HTTP 状态判成败/判权限。 经网关对外前缀:`/api/klt/klt-bos/{resource}/{action}@v1`(本文件路径不含 namespace 前缀)。 分页约定:请求页码 0 基;呈现时再转为 1 基。 x-error-code-range: start: 60000 end: 60999 servers: - url: / tags: - name: 系统健康 description: 服务存活与状态探测,不含业务写操作。 - name: 认证与激活 description: 当前登录上下文查询;免登录的激活码校验与密码设置。 - name: 区域管理 description: 区域树节点新建、改名、删除与可见范围查询。 - name: 账号管理 description: 账号开通、状态、激活码、改密与客户分账号。 - name: 审计日志 description: 平台操作审计查询与导出。 - name: 运营商 description: 运营商建档与对账账号。 - name: 合伙人 description: 合伙人建档、负责范围读写。 - name: 运营团队 description: 运营团队(ent_team)档案、成员与负责范围。 - name: 运维团队与成员 description: 运维团队建档、成员、分派方式、覆盖客户与成员范围。 - name: 运维团队 description: 运维团队只读/管理相关入口。 - name: 客户管理 description: 客户建档、改挂区域、归属变更与变更历史。 - name: 批量导入 description: 客户批量导入模板、提交、批次、续传与导出。 - name: 交付现状 description: 在册资源一览与导出(客户详情、订阅详情、门户摘要共用台账)。 - name: 客户门户 description: 客户侧门户只读视图(套餐看板等)。 - name: 套餐档位 description: 固定/自定义套餐档位维护。 - name: 合同 description: 合同新建、编辑与查询(含服务条目)。 - name: 订阅 description: 订阅开通、升降配、叠加与查询。 - name: 成本与分成 description: 成本项定义、成本金额与分成规则。 - name: 计费与对账 description: 计费配置、账单、对账与纠错。 - name: 运维视图 description: 运维侧只读首页概览。 - name: 定时作业 description: 已注册作业清单、启停、执行记录与补跑。 - name: 站内提醒箱 description: 站内消息列表、已读与续签提醒。 - name: 工单与开停交付 description: 工单列表/详情/分派/回填/终态/材料与闭环配置。 - name: 竣工与回执 description: 竣工回传文件生成与运营商回执确认。 - name: 报文人工处置 description: 运营商报文待处置队列、挂接并生效、作废、冲突确认与改挂。 - name: 合伙人与运营商只读视图 description: 合伙人/运营商侧只读对账与视图入口。 paths: /health: get: summary: 健康检查 description: 返回服务存活状态,无需登录,供网关与监控探测。 operationId: health tags: - 系统健康 x-require-auth: false x-resource-type: $ref: '#/components/x-resource-types/health/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseHealth' /health@v1: get: summary: 健康检查(v1) description: 返回服务存活状态(v1),无需登录,供网关与监控探测。 operationId: health_v1 tags: - 系统健康 x-require-auth: false x-resource-type: $ref: '#/components/x-resource-types/health/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseHealthV1' /ping@v1: get: summary: 存活探测 description: 已登录存活探测,返回服务名与当前用户摘要。 operationId: ping tags: - 系统健康 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ping/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponsePing' /auth/context@v1: get: summary: 当前登录上下文 description: 返回当前登录身份、业务角色、主体与可见形态等上下文;未激活或已过期在此拦截。 operationId: auth_context tags: - 认证与激活 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/auth/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAuthContext' /region/create@v1: post: summary: 新建区域节点 description: 在区域树下新建省/市/区县节点。admin 任意层级;区域运营主/子账号仅限本团队负责范围内已有省份下建市/区县(不得建省;越界/省级 ⇒ 60058 KLT-P301)。 operationId: region_create tags: - 区域管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/region/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog x-enumeration-kind: tree requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 新建区域参数 properties: parent_node_id: type: string description: 父节点 ID,必填;区域树根由平台建立,业务侧不自行挂根 title: 父节点 ID node_name: type: string description: 本级区域名称,同父唯一 title: 节点名称 level: type: string enum: - 省 - 市 - 区县 description: 业务侧自持层级,必填且不得按平台 depth 推导 title: 层级 required: - parent_node_id - node_name - level title: 新建区域节点请求数据 required: - data x-error-codes: [60058, 60059, 60060, 60063, 60087] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseRegionCreate' /region/rename@v1: post: summary: 重命名区域节点 description: 仅修改节点名称 node_name,不改层级与父子关系。admin 可改任意可见节点;区域运营主/子账号仅可改本团队负责省份下的市/区县名称(不得改省级节点;越界/省级 ⇒ 60058 KLT-P301)。 operationId: region_rename tags: - 区域管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/region/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog x-enumeration-kind: tree requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 重命名区域节点请求参数 properties: node_id: type: string description: 区域节点 ID title: 节点 ID node_name: type: string description: 新名称 title: 节点名称 required: - node_id - node_name title: 重命名区域节点请求数据 required: - data x-error-codes: [60058, 60060, 60063] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseRegionRename' /region/delete@v1: post: summary: 删除区域节点 description: 仅 admin。须提交 confirm_name(与当前区域名逐字一致)并通过三重守卫(无下级/无挂载客户/无引用)。 operationId: region_delete tags: - 区域管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/region/code' x-action: $ref: '#/components/x-actions/delete/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 删除区域节点请求参数 properties: node_id: type: string description: 待删除区域节点 ID title: 节点 ID confirm_name: type: string description: 确认名称,须与当前区域名逐字一致 title: 确认名称 required: - node_id - confirm_name title: 删除区域节点请求数据 required: - data x-error-codes: [60058, 60063] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseRegionDelete' /region/tree@v1: post: summary: 查询可见区域树 description: 按操作人可见范围返回区域节点集合/树;运营主/子账号只见本范围及下级。注意: 由 GET 改 POST(R-5:GET 无请求体,网关无法注入授权上界)。 operationId: region_tree tags: - 区域管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/region/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-enumeration-kind: tree requestBody: required: true description: 统一信封请求体(无业务参数,data 传空对象以使网关注入授权上界) content: application/json: schema: type: object properties: data: type: object description: 查询可见区域树的请求字段,置于统一信封 data 内。 additionalProperties: false properties: {} title: 查询可见区域树请求数据 required: - data x-error-codes: [60063] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseRegionTree' /region/subtree@v1: post: summary: 查询区域子树 description: 挂载弹窗左树、区域钻取共用;按可见范围裁剪。 operationId: region_subtree tags: - 区域管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/region/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog # 注册中心折叠为 scope_config.POST.source_enumeration 后 AC 才回传授权上界、网关才注入 # (手写 x-scope.source_enumeration 会被注册中心拒,registry.rs:510-528)。 # 标 tree 的依据:本路由可见集=区域资源树授权子集——handler 已消费通道② # (region.rs tree_inner → ScopedSelect::visible_region_node_ids,scoped_select.rs:120 优先取 # tree(GET 无请求体,网关无法注入授权上界;改 POST 后 data 传空对象即可触发注入)。 x-enumeration-kind: tree requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 子树查询参数 properties: node_id: type: string description: 根节点 ID(可选;空则按可见根展开) title: 节点 ID title: 查询区域子树请求数据 required: - data x-error-codes: [60063] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseRegionSubtree' /region/change_log@v1: get: summary: 区域变更流水 description: 仅 admin 可见;运营子账号可见节点但不可见变更流水。 operationId: region_change_log tags: - 区域管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/region/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [60058, 60063] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseRegionChangeLog' /region/orphans@v1: post: summary: 悬空区域节点 description: 查询悬空/孤儿节点;按节点所在区域分派可见性,admin 全量。注意: 由 GET 改 POST(R-5)。 operationId: region_orphans tags: - 区域管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/region/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-enumeration-kind: tree requestBody: required: true description: 统一信封请求体(无业务参数,data 传空对象以使网关注入授权上界) content: application/json: schema: type: object properties: data: type: object description: 悬空区域节点的请求字段,置于统一信封 data 内。 additionalProperties: false properties: {} title: 悬空区域节点请求数据 required: - data x-error-codes: [60063] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseRegionOrphans' /account/get_list@v1: post: summary: 成员账号列表 description: 列登录名/手机号(掩码)/角色/主体/主-子账号标记/启停状态,并下发激活码生命周期(交付、激活、设密时间与有效截止日)。`status`=账号启停(`bos_user_binding.status`),`activation_status`=激活态(`bos_account_ext.status`),两者正交。运维侧全量,团队侧限本团队成员。注意:「姓名」列无数据源(`bos_user_binding` 无该列),见。 operationId: account_get_list tags: - 账号管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/account/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: false description: >- 分页与过滤(page/page_size/keyword/role_code/subject_type/subject_id/customer_id/status/activation_status)。 `customer_id` 为别名:非空时映射为 `subject_type=customer` + `subject_id`;与显式 subject_id/subject_type 冲突 ⇒ 60004。 content: application/json: schema: type: object x-error-codes: [60001, 60053, 60054, 60077, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountGetList' /ent_team/get_list@v1: post: summary: 运营团队列表 description: 一条团队带负责人登录名、成员数与成员明细(`members[]`,含 `name`/`display_name`/`username`、账号启停 `binding_status` 与可承接工单类型 `ticket_types`,主/子账号一并下发);仅 admin/opsMain/opsSub。 operationId: ent_team_get_list tags: - 运营团队 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ent_team/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: false description: 分页与过滤(page/page_size/keyword),业务字段置于 data content: application/json: schema: type: object x-error-codes: [60053, 60054, 60068] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseEntTeamGetList' /ops_team/get_list@v1: post: summary: 运维团队列表 description: 一页列出全部团队,带可分配工单类型、成员数与派单/结算口径。两列负载(未完成工单/超期未完成)与成员级 open_tickets 均已内联真值(批量一次算全部团队);取数失败才回 null+顶层 load_pending/member_load_pending,不回落 0。 operationId: ops_team_get_list tags: - 运维团队 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ops_team/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: false description: 分页与过滤(page/page_size/keyword/region_node_id),业务字段置于 data content: application/json: schema: type: object x-error-codes: [60053, 60054, 60068, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsTeamGetList' /audit/get_list@v1: post: summary: 审计日志检索 description: SC-04 六列(时间/操作人/操作类型/对象/变更前/变更后);时间倒序+(occurred_at,id) 游标,不用 OFFSET。数据取自 bos_audit_log,各业务写口(含 /audit/export@v1)均写留痕;响应附 audit_read_ready/audit_write_ready/cursor_usable 三个诚实标记。 operationId: audit_get_list tags: - 审计日志 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/audit/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: false description: 游标与检索条件(cursor/page_size/object_type/object_ref/actor_user_id/occurred_from/occurred_to/keyword),业务字段置于 data content: application/json: schema: type: object x-error-codes: [60053] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAuditGetList' /audit/export@v1: post: summary: 审计日志导出 description: 'SC-04 导出:入参与 /audit/get_list@v1 逐字同构(同一份 DTO、同一段可见范围谓词),不接受 row_ids[];CSV(UTF-8 带 BOM)首行为 `#` 说明行(导出时刻+筛选条件逐项回显+文件行数/同一谓词命中总数+范围裁剪声明);行数上限 20000,超限 KLT-R20903(detail.row_count/detail.limit)且不产文件、不写审计、不落 OSS;产出成功写 object_type=audit_export 留痕,留痕失败 KLT-S405。仅运营侧(admin/opsMain/opsSub)。' operationId: audit_export tags: - 审计日志 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/audit/code' x-action: $ref: '#/components/x-actions/export/code' x-version: v1 x-permission-visibility: catalog requestBody: required: false description: 与 /audit/get_list@v1 同构的筛选条件(cursor/page_size 不参与导出) content: application/json: schema: type: object x-error-codes: [60903, 60905] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAuditExport' /account/provision@v1: post: summary: 开通账号 description: 四入口共用开通管线。唯一性守卫(登录名/手机号)先于平台调用;角色与主体须一致。 operationId: account_provision tags: - 账号管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/account/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 开通账号请求参数 properties: username: type: string description: 登录名(归一化后全站唯一) title: 登录名 role_code: type: string description: 业务角色码 title: 角色码 subject_type: type: string description: 主体类型(operator/partner/ent_team/ops_team/customer 等) title: 主体类型 subject_id: type: string description: 主体 ID title: 主体 ID mobile: type: string description: 手机号(可选,唯一) title: 手机号 required: - username - role_code - subject_type - subject_id title: 开通账号请求数据 required: - data x-error-codes: [60001, 60053, 60054, 60077, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountProvision' /account/update_status@v1: post: summary: 停用或恢复账号 description: 停用/恢复账号状态;不可操作当前登录账号。 operationId: account_update_status tags: - 账号管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/account/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 停用或恢复账号请求参数 properties: user_id: type: string description: 目标用户 ID title: 用户 ID status: type: string description: 目标状态(如 disabled/active) title: 状态 required: - user_id - status title: 停用或恢复账号请求数据 required: - data x-error-codes: [60001, 60053, 60054, 60077, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountUpdateStatus' /account/unbind@v1: post: summary: 注销/解绑账号 description: |- 本地处置 `bos_user_binding`+`bos_account_ext`(与运营商删除级联同口径)。 平台 iam-user 删除类接口仅认 Bearer 用户令牌 ⇒ `platform_sync.applied=false` 诚实标记。 不可注销当前登录账号。档案删除/成员移出亦走同一级联。 operationId: account_unbind tags: - 账号管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/account/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 注销/解绑账号请求参数 properties: user_id: type: string description: 目标用户 ID title: 用户 ID required: - user_id title: 注销/解绑账号请求数据 required: - data responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountUnbind' /account/reset_code@v1: post: summary: 重置激活码 description: 仅未激活账号可重置;已激活拒绝。新码仅当次返回。 operationId: account_reset_code tags: - 账号管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/account/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 重置激活码请求参数 properties: user_id: type: string description: 目标用户 ID title: 用户 ID required: - user_id title: 重置激活码请求数据 required: - data x-error-codes: [60001, 60053, 60054, 60077, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountResetCode' /account/export_codes@v1: post: summary: 导出激活码 description: |- 导出未设密账号的激活码明文。 必传 `user_ids`(按调用方可见范围收窄后的账号列表;不可传空——平台将空列表视为项目内全量)。 作用域由服务端派生为 `scope_type=end_user` 与项目空间 ID,不接受客户端传入的 scope 字段。 `validity` 缺省为 `valid`(只读导出);`expired`/`all` 会触发对已过期凭证换新(写操作)。不接受 `active`。 成功时 `data` 为 ActivationCodeExportData:含明文清单 `items[]`(`plaintext` 仅本次应答出现一次), 以及 `export_mode`/`write_capability`/`reissued`/`kept`/`revoked`/`audit_written`/`audit_note` 等字段。 主要错误:空或非法入参 `60004`;账号均未登记 `60005`;有登记但均不可见 `60108`(`KLT-C007`);角色无权 `60058`。 operationId: account_export_codes tags: - 账号管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/account/code' x-action: $ref: '#/components/x-actions/export/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 导出激活码请求参数 properties: user_ids: type: array description: 按本人可见范围收窄后的用户 ID;不可传空列表。 minItems: 1 items: type: string description: 用户 ID title: 用户 ID 列表元素 title: 用户 ID 列表 validity: type: string description: 导出口径:valid=仍有效(只读,缺省);expired=已过期(写/换新);all=全部(写)。不接受 active。 default: valid enum: - valid - expired - all title: 导出口径 required: - user_ids title: 导出激活码请求数据 required: - data x-error-codes: [60004, 60005, 60058, 60108] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountExportCodes' /account/change_password@v1: post: summary: 自助修改密码 description: 已登录用户修改本人密码;新旧相同不保存。 operationId: account_change_password tags: - 账号管理 x-require-auth: true # AC-05 明定「任何已登录角色」:不挂业务权限键(`bos.account.manage` 只授给运营侧)。 # 登录即可=复用所有人都在的 `bos.auth.view@v1`;「只改本人」由 handler 保证。 x-resource-type: $ref: '#/components/x-resource-types/auth/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 自助修改密码请求参数 properties: old_password: type: string description: 原密码 title: 原密码 new_password: type: string description: 新密码 title: 新密码 required: - old_password - new_password title: 自助修改密码请求数据 required: - data x-error-codes: [60001, 60053, 60054, 60055, 60077, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountChangePassword' /account/profile/update@v1: post: summary: 本人维护姓名 description: 个人资料;仅限本人。只写账号级自填姓名(bos_account_ext.display_name),不用于主体档案(客户联系人/运营商名/团队名归运营侧维护)。空串或 null=清除自填、回落到档案派生名;超 64 字符或含控制字符 ⇒ 60004。 operationId: account_profile_update tags: - 账号管理 x-require-auth: true # AC-05:任何已登录角色且仅限本人 ⇒ 登录即可,不挂业务权限键(`bos.account.manage` 会把客户等角色挡在网关)。 x-resource-type: $ref: '#/components/x-resource-types/auth/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 本人维护姓名请求参数 properties: display_name: type: string maxLength: 64 description: 本人姓名;空串或 null=清除自填(回落到档案派生名) title: 显示名 title: 本人维护姓名请求数据 required: - data x-error-codes: [60004] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountProfileUpdate' /account/notify_pref@v1: get: summary: 读通知投递偏好 description: 只读本人三通道(站内/邮箱/短信)的 enabled/available/address_hint。站内恒开不可关;地址摘要一律脱敏。任何已登录角色。 operationId: account_notify_pref tags: - 账号管理 x-require-auth: true # AC-06:任何已登录角色只读本人;不挂业务权限键(06-接口清单「登录即可」)。 x-resource-type: $ref: '#/components/x-resource-types/auth/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountNotifyPref' /account/notify_pref/save@v1: post: summary: 保存通知投递开关 description: 仅限本人(user_id 取登录上下文)。站内投递不可关闭(KLT-A004/60092);未绑定手机号不能开启短信(KLT-A005/60093)。关闭是合法动作、不发码。 operationId: account_notify_pref_save tags: - 账号管理 x-require-auth: true # AC-06:任何已登录角色且仅限本人 ⇒ 登录即可,不挂业务权限键。 x-resource-type: $ref: '#/components/x-resource-types/auth/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 保存通知投递开关请求参数 properties: inapp_enabled: type: boolean description: 站内投递开关;只接受 true/缺省,false ⇒ KLT-A004 title: inapp enabled mail_enabled: type: boolean description: 邮箱投递开关 title: mail enabled sms_enabled: type: boolean description: 短信投递开关;无绑定手机号时 true ⇒ KLT-A005 title: sms enabled required: - mail_enabled - sms_enabled title: 保存通知投递开关请求数据 required: - data x-error-codes: [60092, 60093] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountNotifyPrefSave' /account/notify_email/get@v1: post: summary: 本人只读通知投递邮箱 description: BUG-26F;仅限本人,只读当前生效邮箱(含来源), 改写。 operationId: account_notify_email_get tags: - 账号管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/auth/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: false description: 空 data 即可 content: application/json: schema: type: object responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountNotifyEmailGet' /account/notify_email@v1: post: summary: 本人维护通知投递邮箱 description: >- 仅限本人。须提交 `email` 键(缺字段 ⇒ 60004, 静默清空); 空串/null=清空登记;格式或长度不符 ⇒ KLT-A006/60094。 operationId: account_notify_email tags: - 账号管理 x-require-auth: true # AC-06:任何已登录角色且仅限本人 ⇒ 登录即可,不挂业务权限键。 x-resource-type: $ref: '#/components/x-resource-types/auth/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 本人维护通知投递邮箱请求参数 required: - email properties: email: type: string nullable: true maxLength: 254 description: 通知投递邮箱;空串或 null=清空登记;缺键拒 title: email title: 本人维护通知投递邮箱请求数据 required: - data x-error-codes: [60094] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountNotifyEmail' /account/notify_email/set@v1: post: summary: 运营代办维护通知投递邮箱 description: admin 全域、opsMain 负责范围内(opsSub 只读)。与本人自助口同一套格式校验(KLT-A006/60094),范围外按 11104 语义拒绝。 operationId: account_notify_email_set tags: - 账号管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/account/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 运营代办维护通知投递邮箱请求参数 properties: user_id: type: string description: 目标账号 ID title: 用户 ID email: type: string maxLength: 254 description: 通知投递邮箱;空串或 null=清空登记 title: email required: - user_id title: 运营代办维护通知投递邮箱请求数据 required: - data x-error-codes: [60094] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseAccountNotifyEmailSet' /activation/verify@v1: post: summary: 激活并设置密码 description: 免登录豁免接口。校验激活码后设置新密码;按来源 IP+码窗口限流,不设失败计数锁死。 operationId: activation_verify tags: - 认证与激活 x-require-auth: false x-resource-type: $ref: '#/components/x-resource-types/activation/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 激活并设置密码请求参数 properties: code: type: string description: 激活码 title: 业务码 new_password: type: string description: 新密码(建议不少于 8 位) minLength: 8 title: 新密码 required: - code - new_password title: 激活并设置密码请求数据 required: - data x-error-codes: [60006, 60076] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseActivationVerify' /activation/precheck@v1: post: summary: 激活第 1 步预校验(登录名与激活状态) description: 免登录豁免接口。在设密步之前按登录名校验账号侧前置:已激活/已停用/未发码/已过期四类在第 1 步拦下;激活码明文仍由平台 bootstrap/consume 核销。 operationId: activation_precheck tags: - 认证与激活 x-require-auth: false x-resource-type: $ref: '#/components/x-resource-types/activation/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 激活第 1 步预校验(登录名与激活状态)请求参数 properties: login_name: type: string description: 登录名(平台定位账号的必填参数) title: login name code: type: string description: 激活码(仅作限流隔离键;码值由平台核销) title: 业务码 required: - login_name title: 激活第 1 步预校验(登录名与激活状态)请求数据 required: - data x-error-codes: [60006, 60052, 60076, 60088] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseActivationPrecheck' /operator/create@v1: post: summary: 新建运营商 description: 运营商建档。所属区域必须是省级节点;同省份×品牌唯一;可写结算口径。 operationId: operator_create tags: - 运营商 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/operator/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 新建运营商请求参数 properties: name: type: string description: 运营商名称 title: 名称 brand: type: string description: 品牌:移动/联通/电信 title: brand region_node_id: type: string description: 建档区域节点 ID(必须省级) title: 区域节点 ID is_province_node: type: boolean description: 是否省级节点标记(服务端校验用,可选) title: is province node settle_mode: type: string description: 结算方式:ratio=比例;amount=固定金额;per_account=每账号 enum: - ratio - amount - per_account title: settle mode settle_value: type: number description: 结算值:比例时 00 title: settle value required: - name - brand - region_node_id title: 新建运营商请求数据 required: - data x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOperatorCreate' /operator/update@v1: post: summary: 编辑运营商 description: 编辑运营商档案;改品牌/省份不得绕过省份×品牌唯一与省级节点校验。 operationId: operator_update tags: - 运营商 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/operator/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 编辑运营商请求参数 properties: operator_id: type: string description: 运营商 ID title: 运营商 ID name: type: string description: 运营商名称 title: 名称 brand: type: string description: 品牌:移动/联通/电信 title: brand region_node_id: type: string description: 建档区域节点 ID(必须省级) title: 区域节点 ID is_province_node: type: boolean description: 是否省级节点标记(可选) title: is province node settle_mode: type: string description: 结算方式:ratio/amount/per_account title: settle mode settle_value: type: number description: 结算值 title: settle value row_version: type: integer description: |- 乐观锁版本(必填;与 share_rule/save 同链)。缺省=60004;不符=KLT-S407/60001。 title: 乐观锁版本 minimum: 1 required: - operator_id - name - brand - region_node_id - row_version title: 编辑运营商请求数据 required: - data x-error-codes: [60001, 60004, 60053, 60054, 60066, 60068, 60089, 60090] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOperatorUpdate' /operator/delete@v1: post: summary: 删除运营商 description: 删除前六项检查并级联注销对账账号。 operationId: operator_delete tags: - 运营商 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/operator/code' x-action: $ref: '#/components/x-actions/delete/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 删除运营商请求参数 properties: operator_id: type: string description: 运营商 ID title: 运营商 ID required: - operator_id title: 删除运营商请求数据 required: - data x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOperatorDelete' /operator/get_list@v1: post: summary: 运营商列表 description: 卡片口径:建档区域或下挂客户落在本可见范围。 operationId: operator_get_list tags: - 运营商 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/operator/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 列表筛选参数 properties: page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字筛选(可选) title: 关键字 brand: type: string description: 品牌精确筛选(电信/移动/联通;非法枚举 ⇒ 60004;BUG-26OR-03) enum: - 电信 - 移动 - 联通 title: brand title: 运营商列表请求数据 required: - data x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOperatorGetList' /operator/recon_account/create@v1: post: summary: 创建对账账号 description: 一家运营商至多一个对账账号;初始密码仅当次显示。 operationId: operator_recon_account_create tags: - 运营商 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/operator_recon_account/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 创建对账账号请求参数 properties: operator_id: type: string description: 运营商 ID title: 运营商 ID username: type: string description: 对账账号登录名 title: 登录名 mobile: type: string description: 手机号(可选) title: 手机号 required: - operator_id - username title: 创建对账账号请求数据 required: - data x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOperatorReconAccountCreate' /operator/recon_account/get@v1: post: summary: 查询对账账号 description: 只回状态提示(如「未发送,线下告知本人」),不回密码。 operationId: operator_recon_account_get tags: - 运营商 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/operator_recon_account/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 查询对账账号请求参数 properties: operator_id: type: string description: 运营商 ID title: 运营商 ID required: - operator_id title: 查询对账账号请求数据 required: - data x-error-codes: [60053, 60054, 60066, 60068, 60089, 60090] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOperatorReconAccountGet' /partner/create@v1: post: summary: 新建合伙人 description: 合伙人建档并同步开通账号;名称全站唯一;结算字段仅 admin 可写。 operationId: partner_create tags: - 合伙人 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/partner/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 新建合伙人请求参数 properties: name: type: string description: 合伙人名称(全站唯一) title: 名称 duty_desc: type: string description: 职务说明(可选) title: duty desc region_node_id: type: string description: 建档区域节点 ID title: 区域节点 ID mobile: type: string description: 手机号(可选) title: 手机号 username: type: string description: 登录名(开通账号用) title: 登录名 settle_mode: type: string description: 结算方式(仅 admin 可写,可选) title: settle mode settle_value: type: number description: 结算值(仅 admin 可写,可选) title: settle value required: - name - region_node_id - username title: 新建合伙人请求数据 required: - data x-error-codes: [60053, 60054, 60091] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponsePartnerCreate' /partner/update@v1: post: summary: 编辑合伙人 description: 编辑合伙人资料;登录名不可改。 operationId: partner_update tags: - 合伙人 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/partner/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 编辑合伙人请求参数 properties: partner_id: type: string description: 合伙人 ID title: 合伙人 ID name: type: string description: 合伙人名称(全站唯一) title: 名称 duty_desc: type: string description: 职务说明(可选) title: duty desc region_node_id: type: string description: 建档区域节点 ID title: 区域节点 ID mobile: type: string description: 手机号(可选) title: 手机号 settle_mode: type: string description: 结算方式(仅 admin 可写,可选) title: settle mode settle_value: type: number description: 结算值(仅 admin 可写,可选) title: settle value row_version: type: integer description: |- 乐观锁版本(必填;与 share_rule/save 同链)。缺省=60004;不符=KLT-S407/60001。 title: 乐观锁版本 minimum: 1 required: - partner_id - name - region_node_id - row_version title: 编辑合伙人请求数据 required: - data x-error-codes: [60001, 60004, 60053, 60054, 60091] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponsePartnerUpdate' /partner/delete@v1: post: summary: 删除合伙人 description: 删除合伙人档案及相关授权。 operationId: partner_delete tags: - 合伙人 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/partner/code' x-action: $ref: '#/components/x-actions/delete/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 删除合伙人请求参数 properties: partner_id: type: string description: 合伙人 ID title: 合伙人 ID required: - partner_id title: 删除合伙人请求数据 required: - data x-error-codes: [60053, 60054] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponsePartnerDelete' /partner/get_list@v1: post: summary: 合伙人列表 description: 卡片口径:建档区域落在本范围(含下级)。 operationId: partner_get_list tags: - 合伙人 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/partner/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 列表筛选参数 properties: page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字筛选(可选) title: 关键字 title: 合伙人列表请求数据 required: - data x-error-codes: [60053, 60054] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponsePartnerGetList' /partner/scope/get@v1: post: summary: 读取合伙人负责范围 description: 返回该合伙人的 region/customer 两类 bos_data_scope。注意: 由 GET 改 POST(R-5,统一方法;本接口读 scope 表本身,不消费授权上界,故不标 x-enumeration-kind)。 operationId: partner_scope_get tags: - 合伙人 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/partner_scope/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: 统一信封请求体(无业务参数) content: application/json: schema: type: object properties: data: type: object description: 读取合伙人负责范围的请求字段,置于统一信封 data 内。 additionalProperties: false properties: {} title: 读取合伙人负责范围请求数据 required: - data x-error-codes: [60053, 60054] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponsePartnerScopeGet' /partner/scope/save@v1: post: summary: 保存合伙人负责范围 description: 写入 bos_data_scope(holder_type=partner);允许保存为空;保存即 bump epoch。同类合伙人区域子树/点客户不得交叉(KLT-T216);异类可并存。 operationId: partner_scope_save tags: - 合伙人 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/partner_scope/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 保存合伙人负责范围请求参数 properties: partner_id: type: string description: 合伙人 ID title: 合伙人 ID region_node_ids: type: array description: 负责区域节点 ID 列表(可空) items: type: string description: 区域节点 ID title: region_node_ids元素 title: region node ids customer_ids: type: array description: 负责客户 ID 列表(可空) items: type: string description: 客户 ID title: customer_ids元素 title: customer ids required: - partner_id title: 保存合伙人负责范围请求数据 required: - data x-error-codes: [60053, 60054, 60095, 60096] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponsePartnerScopeSave' /ent_team/create@v1: post: summary: 新建运营团队 description: 仅 admin。新建运营团队,负责范围初始为空。 operationId: ent_team_create tags: - 运营团队 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ent_team/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 新建运营团队请求参数 properties: team_name: type: string description: 团队名称 title: 团队名称 primary_username: type: string description: 主账号登录名(可选) title: primary username primary_mobile: type: string description: 主账号手机号(可选) title: primary mobile primary_name: type: string maxLength: 64 description: 主账号姓名(可选,落 `bos_account_ext.display_name`;下拉框按姓名选人,前端必填,未带=回落登录名) title: primary name required: - team_name title: 新建运营团队请求数据 required: - data x-error-codes: [60053, 60054, 60068] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseEntTeamCreate' /ent_team/update@v1: post: summary: 编辑运营团队 description: 仅 admin。编辑团队资料。 operationId: ent_team_update tags: - 运营团队 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ent_team/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 编辑运营团队请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID team_name: type: string description: 团队名称 title: 团队名称 row_version: type: integer description: 乐观锁版本(若启用) title: 乐观锁版本 required: - team_id - team_name title: 编辑运营团队请求数据 required: - data x-error-codes: [60053, 60054, 60068] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseEntTeamUpdate' /ent_team/delete@v1: post: summary: 删除运营团队 description: 仅 admin。内置「总部·不限区域」团队不可删。 operationId: ent_team_delete tags: - 运营团队 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ent_team/code' x-action: $ref: '#/components/x-actions/delete/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 删除运营团队请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID required: - team_id title: 删除运营团队请求数据 required: - data x-error-codes: [60053, 60054, 60068] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseEntTeamDelete' /ent_team/member_add@v1: post: summary: 添加运营团队成员 description: 每团队有且仅有一个主账号;首个成员即主账号;成员姓名(`name`)落 `bos_account_ext.display_name`(未带=回落登录名)。不可删除当前登录账号。 operationId: ent_team_member_add tags: - 运营团队 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ent_team/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 添加运营团队成员请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID username: type: string description: 成员登录名 title: 登录名 name: type: string maxLength: 64 description: 成员姓名(落 `bos_account_ext.display_name`;前端必填,未带=回落登录名) title: 名称 mobile: type: string description: 手机号(可选) title: 手机号 is_primary: type: boolean description: 是否设为主账号(可选) title: 是否主账号 required: - team_id - username title: 添加运营团队成员请求数据 required: - data x-error-codes: [60053, 60054, 60068] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseEntTeamMemberAdd' /ent_team/member_update@v1: post: summary: 编辑运营团队成员资料 description: 仅 admin。改姓名(`bos_account_ext.display_name`)、手机号与运营账号可承接工单类型清单(`ticket_types`);登录名与本/子身份不变(改名办 `ent_team/transfer_primary@v1`)。 operationId: ent_team_member_update tags: - 运营团队 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ent_team/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 编辑运营团队成员资料请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID user_id: type: string description: 成员用户 ID title: 用户 ID name: type: string maxLength: 64 description: 姓名(可选;缺省=不改;空白串=拒绝,姓名是下拉框选人的展示值) title: 名称 mobile: type: string description: 手机号(可选;缺省/空串=不改;全站唯一) title: 手机号 ticket_types: type: array items: type: string title: ticket_types元素 description: 可承接工单类型清单(`ops_account_ticket_type`, 判据二, 新增):缺省=不改;非空=整体替换,且必须含 `renewal`(续签单只由运营账号受理,清单不可清空;`[]` 或漏掉续签一律拒绝)。取值限八类型码(`open`/`service_open`/`updown`/`expiry_stop`/`service_stop`/`fault`/`after_sale`/`renewal`),只对 `role_code ∈ opsMain/opsSub` 的账号生效。新建与存量账号默认只播种 `renewal` title: 工单类型清单 required: - team_id - user_id title: 编辑运营团队成员资料请求数据 required: - data x-error-codes: [60053, 60054, 60068] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseEntTeamMemberUpdate' /ent_team/member_remove@v1: post: summary: 移除运营团队成员 description: 内置主账号不可删不可转交;不可删除当前登录账号。 operationId: ent_team_member_remove tags: - 运营团队 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ent_team/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 移除运营团队成员请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID user_id: type: string description: 成员用户 ID title: 用户 ID required: - team_id - user_id title: 移除运营团队成员请求数据 required: - data x-error-codes: [60053, 60054, 60068] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseEntTeamMemberRemove' /ent_team/transfer_primary@v1: post: summary: 转交运营团队主账号 description: 总运营可办理任意团队;运营主账号(opsMain)只能转交本团队(限本人所属团队)。同事务切换两人的 is_primary 标记并同步 role_code(opsMain↔opsSub),登录名与负责范围不变;内置总运营团队不可转交,跨团队接收方直接拒。审计记转出与转入账号名。 operationId: ent_team_transfer_primary tags: - 运营团队 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ent_team/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 转交运营团队主账号请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID from_user_id: type: string description: 原主账号用户 ID title: from user id to_user_id: type: string description: 新主账号用户 ID title: to user id required: - team_id - from_user_id - to_user_id title: 转交运营团队主账号请求数据 required: - data x-error-codes: [60053, 60054, 60068] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseEntTeamTransferPrimary' /ent_team/scope/get@v1: post: summary: 读取运营团队负责范围 description: 仅 admin。返回团队区域负责范围。注意: 由 GET 改 POST(R-5,统一方法;本接口读 scope 表本身,不消费授权上界,故不标 x-enumeration-kind)。 operationId: ent_team_scope_get tags: - 运营团队 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ent_team_scope/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: 统一信封请求体(无业务参数) content: application/json: schema: type: object properties: data: type: object description: 读取运营团队负责范围的请求字段,置于统一信封 data 内。 additionalProperties: false properties: {} title: 读取运营团队负责范围请求数据 required: - data x-error-codes: [60053, 60054, 60068] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseEntTeamScopeGet' /ent_team/scope/save@v1: post: summary: 保存运营团队负责范围 description: 仅 admin。勾选区域写入 bos_data_scope(holder=ent_team),成为区域删除的引用来源。与其它非内置运营团队区域子树互斥(KLT-T216);内置总部豁免。 operationId: ent_team_scope_save tags: - 运营团队 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ent_team_scope/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 保存运营团队负责范围请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID region_node_ids: type: array description: 负责区域节点 ID 列表 items: type: string description: 区域节点 ID title: region_node_ids元素 title: region node ids required: - team_id - region_node_ids title: 保存运营团队负责范围请求数据 required: - data x-error-codes: [60053, 60054, 60068, 60095, 60096] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseEntTeamScopeSave' /ops_team/create@v1: post: summary: 新建运维团队 description: 须指定所属区域、可派工单类型≥1、分派方式与结算口径。注意:团队不分类型(无 team_type 键)。 operationId: ops_team_create tags: - 运维团队与成员 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ops_team/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 新建运维团队请求参数 properties: team_name: type: string description: 团队名称 title: 团队名称 region_node_id: type: string description: 所属区域节点 ID title: 区域节点 ID ticket_types: type: array description: 可派工单类型列表(至少 1 项; 含 `renewal`——续签单只由运营账号受理, items: type: string description: 工单类型码 title: ticket_types元素 title: 工单类型清单 dispatch_mode: type: string description: 分派方式:manual=手工;auto_avg=自动均分 enum: - manual - auto_avg title: dispatch mode settle_mode: type: string description: 结算方式 title: settle mode settle_value: type: number description: 结算值 title: settle value primary_username: type: string description: 主账号登录名(空则默认「{团队名}主账号」) title: primary username primary_name: type: string description: 主账号姓名(档案名,1~64 字符;空=未填,列表回落显示登录名) title: primary name primary_mobile: type: string description: 主账号手机号(可选) title: primary mobile required: - team_name - region_node_id - ticket_types - dispatch_mode title: 新建运维团队请求数据 required: - data x-error-codes: [60053, 60054, 60068, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsTeamCreate' /ops_team/update@v1: post: summary: 编辑运维团队 description: 编辑团队资料。注意:团队不分类型,请求体无 team_type 键。 operationId: ops_team_update tags: - 运维团队与成员 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ops_team/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 编辑运维团队请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID team_name: type: string description: 团队名称 title: 团队名称 region_node_id: type: string description: 所属区域节点 ID title: 区域节点 ID ticket_types: type: array description: 可派工单类型列表(整体替换,至少 1 项; 含 `renewal`——续签单只由运营账号受理) items: type: string description: 工单类型码 title: ticket_types元素 title: 工单类型清单 settle_mode: type: string description: 结算方式 title: settle mode settle_value: type: number description: 结算值 title: settle value row_version: type: integer description: |- 乐观锁版本(必填;与 share_rule/save 同链)。缺省=60004;不符=KLT-S407/60001。 title: 乐观锁版本 minimum: 1 required: - team_id - row_version title: 编辑运维团队请求数据 required: - data x-error-codes: [60001, 60004, 60053, 60054, 60068, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsTeamUpdate' /ops_team/delete@v1: post: summary: 删除运维团队 description: 删除前校验引用与未办完工单等守卫。 operationId: ops_team_delete tags: - 运维团队与成员 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ops_team/code' x-action: $ref: '#/components/x-actions/delete/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 删除运维团队请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID required: - team_id title: 删除运维团队请求数据 required: - data x-error-codes: [60053, 60054, 60068, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsTeamDelete' /ops_team/scope/save@v1: post: summary: 保存运维团队负责范围 description: 三个范围写入口之一。同事务校验范围包含关系与未办完工单守卫;失败两侧都不落库。与其它运维团队区域子树/点客户互斥(KLT-T216);异类可并存。 operationId: ops_team_scope_save tags: - 运维团队与成员 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ops_team_scope/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 保存运维团队负责范围请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID region_node_ids: type: array description: 负责区域节点 ID 列表 items: type: string description: 区域节点 ID title: region_node_ids元素 title: region node ids customer_ids: type: array description: 负责客户 ID 列表(可空) items: type: string description: 客户 ID title: customer_ids元素 title: customer ids required: - team_id title: 保存运维团队负责范围请求数据 required: - data x-error-codes: [60053, 60054, 60068, 60082, 60095, 60096] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsTeamScopeSave' /ops_team/member_add@v1: post: summary: 添加运维成员 description: 新建成员档案(含成员姓名)并开通运维子账号(`role_code=ops`)。注意:成员不分类型,服务侧只校验 `ticket_types` 是团队可分配类型的子集(`KLT-`,可为空=不接单)。注意: `ticket_mode` 与负责范围同构:`follow_team`=随团队(成员级零行),`custom`=勾选子集。注意:`renewal` 不属于运维可承接类型(续签单只由运营账号受理,。 operationId: ops_team_member_add tags: - 运维团队与成员 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ops_team/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 添加运维成员请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID ticket_types: type: array description: 该成员可处理的工单类型(须为团队可分配类型的子集;空数组=不接单,如录入人员; 含 `renewal`——续签单只由运营账号受理)。`ticket_mode=follow_team` 时不得传本键 items: type: string description: 工单类型码 title: ticket_types元素 title: 工单类型清单 ticket_mode: type: string description: 可处理类型形态:follow_team=随团队可分配类型(成员级零行,团队改类型自动跟随);custom=勾选子集。缺省=follow_team(/OR-14:与负责范围默认同构;显式 custom 且不带 ticket_types=不接单) enum: - follow_team - custom title: ticket mode username: type: string description: 登录名 title: 登录名 name: type: string description: 成员姓名(必填;1~64 字符、不含控制字符;契约字段=`name`,。与登录名分列,列表「成员」列显示该值 title: 名称 display_name: type: string description: 成员姓名别名(;与 `name` 同义,优先用 `name`) title: 显示名 mobile: type: string description: 手机号(可选) title: 手机号 required: - team_id - username - name title: 添加运维成员请求数据 required: - data x-error-codes: [60053, 60054, 60068, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsTeamMemberAdd' /ops_team/member_update@v1: post: summary: 更新运维成员 description: 可改成员姓名、手机号与可处理工单类型(形态+子集,各字段缺省=不改)。注意:成员不分类型,不因类型变更改写 role_code;`custom` 时子集落 ops_member_ticket_type,`follow_team` 时清空该成员行并随团队类型。 operationId: ops_team_member_update tags: - 运维团队与成员 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ops_team/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 更新运维成员请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID ticket_types: type: array description: 该成员可处理的工单类型(整体替换;须为团队可分配类型的子集;空数组=不接单; 含 `renewal`——续签单只由运营账号受理)。`ticket_mode=follow_team` 时不得传本键 items: type: string description: 工单类型码 title: ticket_types元素 title: 工单类型清单 ticket_mode: type: string description: 可处理类型形态:follow_team=随团队(清空该成员的类型行);custom=按 ticket_types 整体替换。缺省且带 ticket_types ⇒ 按 custom;都不带 ⇒ 不动类型 enum: - follow_team - custom title: ticket mode member_id: type: string description: 成员 ID title: 成员 ID name: type: string description: 成员姓名新值(契约字段=`name`,;1~64 字符、不含控制字符;缺省=不改,空串非法 title: 名称 display_name: type: string description: 成员姓名别名(;与 `name` 同义) title: 显示名 mobile: type: string description: 手机号(可选) title: 手机号 required: - team_id - member_id title: 更新运维成员请求数据 required: - data x-error-codes: [60053, 60054, 60068, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsTeamMemberUpdate' /ops_team/transfer_primary@v1: post: summary: 转交运维团队主账号 description: 总运营/运维主账号可办;同事务切换两人的 is_primary 并同步 role_code(teamLead↔ops),新主账号可处理类型强制随团队;登录名与负责范围不变。 operationId: ops_team_transfer_primary tags: - 运维团队与成员 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ops_team/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 转交运维团队主账号请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID from_member_id: type: string description: 原主账号成员 ID title: from member id to_member_id: type: string description: 新主账号成员 ID(须同团队) title: to member id required: - team_id - from_member_id - to_member_id title: 转交运维团队主账号请求数据 required: - data x-error-codes: [60053, 60054, 60068] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsTeamTransferPrimary' /ops_team/member_remove@v1: post: summary: 移除运维成员 description: 删除前五项检查并注销账号。 operationId: ops_team_member_remove tags: - 运维团队与成员 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ops_team/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 移除运维成员请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID member_id: type: string description: 成员 ID title: 成员 ID required: - team_id - member_id title: 移除运维成员请求数据 required: - data x-error-codes: [60053, 60054, 60068, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsTeamMemberRemove' /ops_member/scope/save@v1: post: summary: 保存运维成员负责范围 description: 三个范围写入口之二。scope_mode∈follow_team/region/customer;越界报错不保存。 operationId: ops_member_scope_save tags: - 运维团队与成员 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ops_member_scope/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 保存运维成员负责范围请求参数 properties: member_id: type: string description: 成员 ID title: 成员 ID scope_mode: type: string description: 范围模式:follow_team=跟随团队;region=按区域;customer=按客户 enum: - follow_team - region - customer title: 可见形态 targets: type: array description: region/customer 模式下的目标 ID 列表 items: type: string description: 目标 ID title: targets元素 title: targets required: - member_id - scope_mode title: 保存运维成员负责范围请求数据 required: - data x-error-codes: [60053, 60054, 60068, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsMemberScopeSave' /ops_team/dispatch_mode/update@v1: post: summary: 更新分派方式 description: |- 与运营侧改同一字段,后写入者生效;默认补记审计。 data 仅接受 team_id/dispatch_mode;顶层未知键 ⇒ 60004(BUG-3D-43)。 teamLead 仅可改本团队,跨团队 ⇒ 60058。 operationId: ops_team_dispatch_mode_update tags: - 运维团队与成员 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ops_team_dispatch_mode/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 更新分派方式请求参数 properties: team_id: type: string description: 团队 ID title: 团队 ID dispatch_mode: type: string description: 分派方式:manual=手工;auto_avg=自动均分 enum: - manual - auto_avg title: dispatch mode additionalProperties: false required: - team_id - dispatch_mode title: 更新分派方式请求数据 required: - data x-error-codes: [60004, 60053, 60054, 60058, 60068, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsTeamDispatchModeUpdate' /ops_team/coverage/get@v1: post: summary: 运维团队覆盖客户 description: 覆盖客户=团队区域范围(Tree) ∩ 本类型归属(Owner),与列表分页同源。注意: 由 GET 改 POST(R-5)。 operationId: ops_team_coverage_get tags: - 运维团队与成员 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ops_team_coverage/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-enumeration-kind: list requestBody: required: true description: 统一信封请求体(无业务参数,data 传空对象以使网关注入授权上界) content: application/json: schema: type: object properties: data: type: object description: 运维团队覆盖客户的请求字段,置于统一信封 data 内。 additionalProperties: false properties: {} title: 运维团队覆盖客户请求数据 required: - data x-error-codes: [60053, 60054, 60068, 60082] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsTeamCoverageGet' /customer/create@v1: post: summary: 新建客户 description: 客户建档(Opt-11 先挂树后建档)。`mount_request_id` 与 `parent_node_id` 至少给一个:给 `parent_node_id` 时由本接口完成「发号 → 平台资源树注册客户实例 → 回填挂载事实」;给 `mount_request_id` 时就近认领已存在的挂载申请。同时按 为客户开通主账号(`primary_username` 留空=按主体号自动派生)。完整弹窗字段还可含识别号、联系人、地址、运维团队等。 operationId: customer_create tags: - 客户管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/customer/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 新建客户请求参数 properties: customer_name: type: string description: 客户名称 title: 客户名称 subject_type: type: string description: 主体类型 title: 主体类型 operator_id: type: string description: 归属运营商 ID title: 运营商 ID partner_id: type: string description: 归属合伙人 ID(可选) title: 合伙人 ID mount_request_id: type: string description: 挂载申请 ID(与 parent_node_id 二选一;有值=认领已有的挂载事实) title: mount request id parent_node_id: type: string description: 所挂区域父节点 ID(与 mount_request_id 二选一;有值=由本接口完成平台挂树并回填挂载事实) title: 父节点 ID id_code: type: string description: 识别号(可选) title: id code contact_name: type: string description: 联系人(可选) title: contact name contact_mobile: type: string description: 联系电话(可选) title: contact mobile tech_contact_name: type: string description: 技术联系人姓名(可选) title: tech contact name tech_contact_mobile: type: string description: 技术联系人电话(可选) title: tech contact mobile finance_contact_name: type: string description: 财务联系人姓名(可选) title: finance contact name finance_contact_mobile: type: string description: 财务联系人电话(可选) title: finance contact mobile remark: type: string description: 客户备注(可选,≤512 字) title: 备注 address: type: string description: 地址(可选) title: address ops_team_ids: type: array description: 所挂运维团队 ID(**组形态仅兼容调用方;缺支/空数组/>1 支一律拒绝,且须在操作人负责范围内) items: type: string description: 运维团队 ID title: ops_team_ids元素 title: ops team ids primary_username: type: string description: 客户主账号登录名(可选;留空=按主体号自动派生)。本接口自行调平台 iam-user/user/create@v1 建号 title: primary username primary_mobile: type: string description: 客户主账号手机号(可选) title: primary mobile license: type: object description: 登记材料(营业执照影像,/;`` )。选填(, 强制登记)。影像本体由浏览器持自身账号票直传平台 `unified-oss`(本服务不收字节流、不开上传接口),建档只回报落库用的对象键+原始文件名。`object_key` 必须落在 `klt/customer/license/` 前缀下 properties: object_key: type: string description: 平台 unified-oss 逻辑键(1–512 字符,须以 klt/customer/license/ 开头;不得是 URL/签名链接) file_name: type: string description: 原始文件名(1–128 字符,不含路径分隔符;仅供页面展示) required: - object_key - file_name title: 登记材料 required: - customer_name - subject_type - operator_id title: 新建客户请求数据 required: - data x-error-codes: [60056, 60064, 60108, 60117] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCustomerCreate' /customer/get_list@v1: post: summary: 客户列表 description: 按可见范围返回客户列表,支持筛选与分页。 operationId: customer_get_list tags: - 客户管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/customer/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog # 注意:声明本身不改变本轮可见范围:handler 现按 customer_scope_pred 收窄 x-enumeration-kind: list requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 列表筛选参数 properties: page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字筛选(可选) title: 关键字 region_node_id: type: string description: 区域筛选(可选) title: 区域节点 ID operator_id: type: string description: 运营商筛选(可选) title: 运营商 ID partner_id: type: string description: 合伙人筛选(可选) title: 合伙人 ID status: type: string description: 状态筛选(可选) title: 状态 title: 客户列表请求数据 required: - data x-error-codes: [60056, 60064, 60108, 60117] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCustomerGetList' /customer/get@v1: post: summary: 客户详情 description: |- 按客户 ID 查询档案详情。 返回主体资料(含经办联系人、联系电话、地址与脱敏识别号)、当期团队、区域挂载、分账号数量, 以及登记材料摘要 `license`(对象键、文件名、是否待补等)。 operationId: customer_get tags: - 客户管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/customer/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 客户详情请求参数 properties: customer_id: type: string description: 客户 ID title: 客户 ID required: - customer_id title: 客户详情请求数据 required: - data x-error-codes: [60005, 60056, 60064, 60117] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCustomerGet' /customer/update@v1: post: summary: 编辑客户 description: >- 编辑客户资料。拒收改写 customer_id/region_node_id/operator_id/partner_id;改识别号时 change_basis 选填(留空按 NULL 留痕, 因缺依据拒写)。 `row_version` 必填:缺省 ⇒ `60004`;与库内不符 ⇒ `KLT-S407`/`60001`, 不带版本静默覆盖。 登记材料换图或随主体变更撤销时,旧对象即时删除(平台 `unified-oss/object/delete@v1`,K ; 生命周期回收只兜「到期」,不替代即时删除)。删除为 best-effort:主表此刻已指向新对象, 删除失败不回退整笔,只告警并由运维补删。 `license_object_delete{status,reason,deleted?,failed_codes?,error?}`: `not_applicable`(未动影像/键未变)/`deleted`/`partial`/`failed`。注意:对象键不上响应体。 operationId: customer_update tags: - 客户管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/customer/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 编辑客户请求参数 properties: customer_id: type: string description: 客户 ID title: 客户 ID customer_name: type: string description: 客户名称 title: 客户名称 subject_type: type: string description: 主体类型 title: 主体类型 id_code: type: string description: 识别号 title: id code change_basis: type: string description: 改识别号时的变更依据 title: 变更依据 contact_name: type: string description: 联系人 title: contact name contact_mobile: type: string description: 联系电话 title: contact mobile tech_contact_name: type: string description: 技术联系人姓名(给了才改) title: tech contact name tech_contact_mobile: type: string description: 技术联系人电话(给了才改) title: tech contact mobile finance_contact_name: type: string description: 财务联系人姓名(给了才改) title: finance contact name finance_contact_mobile: type: string description: 财务联系人电话(给了才改) title: finance contact mobile remark: type: string description: 客户备注(给了才改;空串=清空;≤512 字) title: 备注 address: type: string description: 地址 title: address ops_team_ids: type: array description: 改派运维团队(整体替换当前归属;**拒绝,>1 支⇒拒绝;不提交=不改动) items: type: string description: 运维团队 ID title: ops_team_ids元素 title: ops team ids row_version: type: integer description: 乐观锁版本(必填;缺省=60004,不符=KLT-S407/60001) title: 乐观锁版本 license: type: object description: 登记材料(营业执照影像)整对替换( 补传/替换,写入口只在本分区)。选填(, 强制登记)。不提交=本次不动影像(不清空);唯一例外:本次把 `subject_type` 改为非企业(`individual`/`sole_proprietor`)且库内有影像 ⇒ 影像随本笔同批撤销(两列置 `NULL`+`license_file_name` 变更留痕,见 );企业→企业不带 `license` 一律不动影像;库内无影像且本次也不提交时照常保存其余字段。`object_key` 须落在 `klt/customer/license/` 下 properties: object_key: type: string description: 平台 unified-oss 逻辑键(1–512 字符,须以 klt/customer/license/ 开头) file_name: type: string description: 原始文件名(1–128 字符,不含路径分隔符) required: - object_key - file_name title: 登记材料 required: - customer_id - row_version title: 编辑客户请求数据 required: - data x-error-codes: [60001, 60004, 60056, 60064, 60108, 60117] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCustomerUpdate' /customer/delete_precheck@v1: post: summary: 客户删除前置检查 description: 返回 can_delete 与 reasons,供删除确认弹窗使用。 operationId: customer_delete_precheck tags: - 客户管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/customer/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 客户删除前置检查请求参数 properties: customer_id: type: string description: 客户 ID title: 客户 ID required: - customer_id title: 客户删除前置检查请求数据 required: - data x-error-codes: [60056, 60064, 60108, 60117] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCustomerDeletePrecheck' /customer/delete@v1: post: summary: 删除客户 description: | 删除客户。须先调 `/customer/delete_precheck@v1` 取得回执中的 `precheck_version`,再原样带回本口(阻塞快照版本,防「检查后依赖发生变化」); 缺省/空串/与当前快照不符 ⇒ `60004`。 operationId: customer_delete tags: - 客户管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/customer/code' x-action: $ref: '#/components/x-actions/delete/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 删除客户请求参数 properties: customer_id: type: string description: 客户 ID title: 客户 ID precheck_version: type: string description: | 删除前置检查快照版本(必填;取自 `/customer/delete_precheck@v1` 回执 `precheck_version`,⛔ 自造/过期值) title: precheck version required: - customer_id - precheck_version title: 删除客户请求数据 required: - data x-error-codes: [60004, 60056, 60064, 60108, 60117] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCustomerDelete' /customer/history@v1: post: summary: 客户变更历史 description: 查询客户档案变更流水。 operationId: customer_history tags: - 客户管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/customer/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 客户变更历史请求参数 properties: customer_id: type: string description: 客户 ID title: 客户 ID page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字筛选(可选) title: 关键字 required: - customer_id title: 客户变更历史请求数据 required: - data x-error-codes: [60056, 60064, 60108, 60117] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCustomerHistory' /customer/mount_candidates@v1: post: summary: 改挂候选客户 description: 返回操作人可见范围内可作为改挂目标的候选客户列表。注意: 由 GET 改 POST(R-5)。 operationId: customer_mount_candidates tags: - 客户管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/customer/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-enumeration-kind: list requestBody: required: true description: 统一信封请求体(无业务参数,data 传空对象以使网关注入授权上界) content: application/json: schema: type: object properties: data: type: object description: 改挂候选客户的请求字段,置于统一信封 data 内。 additionalProperties: false properties: {} title: 改挂候选客户请求数据 required: - data x-error-codes: [60056, 60064, 60108, 60117] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCustomerMountCandidates' /customer/influence@v1: post: summary: 改挂影响面 description: 改挂前必做前置:未办完工单数、当前责任人与团队、当期是否已出账等。 operationId: customer_influence tags: - 客户管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/customer/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 改挂影响面请求参数 properties: customer_id: type: string description: 客户 ID title: 客户 ID required: - customer_id title: 改挂影响面请求数据 required: - data x-error-codes: [60056, 60064, 60108, 60117] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCustomerInfluence' /customer/move_region@v1: post: summary: 客户改挂区域 description: 复合事务改挂区域;新区域省份须等于归属运营商档案省份。 operationId: customer_move_region tags: - 客户管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/customer/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 客户改挂区域请求参数 properties: customer_id: type: string description: 客户 ID title: 客户 ID new_region_node_id: type: string description: 新挂载区域节点 ID title: new region node id ops_team_ids: type: array description: 随改挂重绑的运维团队(**;不提交=不改动) items: type: string description: 运维团队 ID title: ops_team_ids元素 title: ops team ids required: - customer_id - new_region_node_id title: 客户改挂区域请求数据 required: - data x-error-codes: [60056, 60064, 60108, 60117] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCustomerMoveRegion' /customer/attribution/update@v1: post: summary: 更新客户归属 description: 改归属运营商/合伙人;改运营商时档案省份须等于客户所挂区域省份。 operationId: customer_attribution_update tags: - 客户管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/customer_attribution/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 更新客户归属请求参数 properties: customer_id: type: string description: 客户 ID title: 客户 ID operator_id: type: string description: 新归属运营商 ID(可选) title: 运营商 ID partner_id: type: string description: 新归属合伙人 ID(可选,可清空) title: 合伙人 ID required: - customer_id title: 更新客户归属请求数据 required: - data x-error-codes: [60056, 60064, 60108, 60117] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCustomerAttributionUpdate' /import_batch/template_download@v1: get: summary: 下载导入模板 description: 返回现行 11 列 xlsx 模板说明(format/columns/max_rows)。 operationId: import_batch_template_download tags: - 批量导入 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/import_batch/code' x-action: $ref: '#/components/x-actions/export/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [60111, 60112, 60113, 60114] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseImportBatchTemplateDownload' post: summary: 下载导入模板(POST 兼容) description: 与 GET 同体;兼注册以免调用方误用 POST 时网关判未注册路由。 operationId: import_batch_template_download_post tags: - 批量导入 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/import_batch/code' x-action: $ref: '#/components/x-actions/export/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [60111, 60112, 60113, 60114] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseImportBatchTemplateDownloadPost' /customer/import/confirm@v1: post: summary: 确认导入(逐行建档) description: |- 对校验通过行串行调用建档事务;推进批次 done/failed_pending。 权限=`customer.create`(与手工建档同权;设计名 `bos.customer.import` 本期与 create 对齐, 避免新 action 未授角色时网关 11001)。 operationId: customer_import_confirm tags: - 批量导入 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/customer/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true content: application/json: schema: type: object properties: data: type: object properties: batch_no: type: string title: 批次号 description: 批次号。 batch_id: type: string title: 批次 ID description: 批次 ID。 row_nos: type: array items: type: integer title: row_nos元素 title: row nos description: 字段 row_nos。 description: 确认导入(逐行建档)请求参数 title: 确认导入(逐行建档)请求数据 responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCustomerImportConfirm' /import_batch/submit@v1: post: summary: 提交客户批量导入 description: 提交导入行对象列表,单批上限 500 行。列含客户名称、识别号、主体类型、联系人、电话、地址、区域、运营商、合伙人、运维团队、主账号等。 operationId: import_batch_submit tags: - 批量导入 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/import_batch/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 提交客户批量导入请求参数 properties: rows: type: array description: 导入行对象列表(≤500) maxItems: 500 items: type: object description: 单行导入字段(14 列) properties: row_no: type: integer description: 行编号 customer_name: type: string description: 客户名称 id_code: type: string description: 识别号 subject_type: type: string description: 主体类型 contact_name: type: string description: 联系人 contact_mobile: type: string description: 联系电话 address: type: string description: 地址 region_name: type: string description: 所挂区域 operator_name: type: string description: 运营商 partner_name: type: string description: 合伙人 ops_team_names: type: array description: 所挂运维团队名称(**一格只填一支名称,不得用「;」分隔多支;留空或多支=该行校验失败) items: type: string description: 运维团队名称 primary_username: type: string description: 主账号登录名 primary_mobile: type: string description: 主账号手机号 title: 行集 required: - rows title: 提交客户批量导入请求数据 required: - data x-error-codes: [60111, 60112, 60113, 60114] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseImportBatchSubmit' /import_batch/get_list@v1: post: summary: 导入批次列表 description: 查询本人可见范围内的导入批次。 operationId: import_batch_get_list tags: - 批量导入 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/import_batch/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 列表筛选参数 properties: page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字筛选(可选) title: 关键字 title: 导入批次列表请求数据 required: - data x-error-codes: [60111, 60112, 60113, 60114] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseImportBatchGetList' /import_batch/get@v1: post: summary: 导入批次详情 description: 按批次 ID/编号查询详情与行状态。 operationId: import_batch_get tags: - 批量导入 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/import_batch/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 导入批次详情请求参数 properties: batch_id: type: string description: 批次 ID(与 batch_no 二选一) title: 批次 ID batch_no: type: string description: 批次编号(与 batch_id 二选一) title: 批次号 title: 导入批次详情请求数据 required: - data x-error-codes: [60111, 60112, 60113, 60114] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseImportBatchGet' /import_batch/resume@v1: post: summary: 失败行续传 description: 针对失败行提交续传数据,行号对应原 row_no。 operationId: import_batch_resume tags: - 批量导入 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/import_batch/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 失败行续传请求参数 properties: batch_id: type: string description: 批次 ID title: 批次 ID rows: type: array description: 续传行列表(含原 row_no) items: type: object title: 行集元素 title: 行集 required: - batch_id - rows title: 失败行续传请求数据 required: - data x-error-codes: [60111, 60112, 60113, 60114] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseImportBatchResume' /import_batch/export_codes@v1: post: summary: 按批次导出激活码 description: |- 按导入批次导出未设密账号的激活码明文。 口径与 `/account/export_codes@v1` 相同(分片、翻页、审计与出参信封一致),另须指定批次; `user_ids` 仍须按调用方可见范围收窄且不可为空。成功时 `data` 同为 ActivationCodeExportData。 operationId: import_batch_export_codes tags: - 批量导入 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/import_batch/code' x-action: $ref: '#/components/x-actions/export/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 按批次导出激活码请求参数 properties: batch_id: type: string description: 批次 ID title: 批次 ID user_ids: type: array description: 按本人可见范围收窄后的用户 ID 列表(不可传空列表:平台侧空值=项目内全量导出) minItems: 1 items: type: string description: 用户 ID title: 用户 ID 列表元素 title: 用户 ID 列表 validity: type: string description: 导出口径(平台取值域):valid=仍有效(只读,缺省);expired=已过期(写);all=全部(写)。不接受 active default: valid enum: - valid - expired - all title: 有效性口径 required: - batch_id - user_ids title: 按批次导出激活码请求数据 required: - data x-error-codes: [60004, 60005, 60058, 60108, 60111, 60112, 60113, 60114] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseImportBatchExportCodes' /import_batch/export_customers@v1: post: summary: 按批次导出客户 description: 按导入批次导出客户 15 列结果。 operationId: import_batch_export_customers tags: - 批量导入 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/import_batch/code' x-action: $ref: '#/components/x-actions/export/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 按批次导出客户请求参数 properties: batch_id: type: string description: 批次 ID title: 批次 ID required: - batch_id title: 按批次导出客户请求数据 required: - data x-error-codes: [60111, 60112, 60113, 60114] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseImportBatchExportCustomers' /sub_account/get_list@v1: post: summary: 分账号列表 description: 查询客户下属分账号列表。 operationId: sub_account_get_list tags: - 账号管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/sub_account/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog # (sub_account.rs:50 get_list → :57 customer_scope_pred),客户维度受授权上界约束 # ⇒ 按 list 声明真源列举。同 L-2:本轮仅打通声明,运维分支仍走本地口径。 x-enumeration-kind: list requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 分账号列表请求参数 properties: customer_id: type: string description: 客户 ID title: 客户 ID page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字筛选(可选) title: 关键字 required: - customer_id title: 分账号列表请求数据 required: - data x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubAccountGetList' /sub_account/update@v1: post: summary: 更新分账号 description: 运营可改 display_name 与 network_account_name;客户主账号只许改 display_name。 operationId: sub_account_update tags: - 账号管理 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/sub_account/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 更新分账号请求参数 properties: sub_account_id: type: string description: 分账号 ID title: sub account id display_name: type: string description: 显示名称/用途说明 title: 显示名 network_account_name: type: string description: 网络侧账号名(运营可改) title: network account name required: - sub_account_id title: 更新分账号请求数据 required: - data x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubAccountUpdate' /delivery/list@v1: post: summary: 交付现状(在册资源一览) description: '客户详情「交付现状」页签与订阅详情「当前资源」区块共用。数据源锁定台账 subscription_ip_assignment(released_at IS NULL 的行=当前在册), 不用“最新一单”(并单后一单只含部分账号、service_open 又是增量交付);实测参数(内网 IP/实测上下行/实测出口)只取该账号“最近一次成功开通回填”(ticket_backfill.exec_conclusion=success)并随行下发 measured_at(列头日期)。三态:在用/已到期待回收(台账未释放且订阅 end_date 已过)/已回收(默认只显示前两态,勾选 include_released 才含第三态)。合同出口与实测出口两列并排、不一致时 exit_mismatch=true(两值都返回, 互相覆盖)。输出不含 port_start/port_end( 端口本轮不启用、无“端口段”列)。可见范围复用 customer_scope_pred,未另立判据。' operationId: delivery_list tags: - 交付现状 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/delivery/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: false description: 分页与筛选(page/page_size/customer_id/subscription_id/sub_account_id/keyword/state/include_released),业务字段置于 data content: application/json: schema: type: object x-error-codes: [60004, 60053] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseDeliveryList' /delivery/export@v1: post: summary: 交付现状导出 description: '/ 第 7 条:入参与 /delivery/list@v1 逐字同构(同一份 DTO、同一段谓词),导出不另立判据;CSV(UTF-8 带 BOM)首行为 `#` 说明行(导出时刻+筛选条件逐项回显+文件行数/同一谓词命中总数+范围裁剪声明);行数上限 20000,超限 KLT-R20903(detail.row_count/detail.limit)且不产文件、不写审计、不落 OSS;产出成功写 object_type=delivery_export 留痕,留痕失败 KLT-S405。角色 admin/opsMain/opsSub/teamLead。' operationId: delivery_export tags: - 交付现状 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/delivery/code' x-action: $ref: '#/components/x-actions/export/code' x-version: v1 x-permission-visibility: catalog requestBody: required: false description: 与 /delivery/list@v1 同构的筛选条件(page/page_size 不参与导出) content: application/json: schema: type: object x-error-codes: [60903, 60905] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseDeliveryExport' /line_exit/get_list@v1: post: summary: 线路出口目录列表 description: 套餐配置统一维护的线路出口(去空白+小写去重)。合同条目等页面只从这里选择;任何登录角色可读。每条带 ref_count/ref_summary(被合同条目、存量 IP 备案、派生档、订阅引用的合计与构成;IP 备案表自 。 工单回填不读本目录、也不与订阅核定集合比对( 。 operationId: line_exit_get_list tags: - 套餐档位 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/catalog/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseLineExitGetList' /line_exit/save@v1: post: summary: 线路出口目录整段全量替换 description: |- 总运营/运营主账号可写;数组顺序即展示顺序。被合同条目、存量 IP 备案(该表自 名引用数)。 `items` 缺省/null=不改目录;`[]`=清空;非空=整段全量替换。 不引入第二确认键。 operationId: line_exit_save tags: - 套餐档位 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/catalog/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 线路出口目录整段全量替换请求参数 properties: items: type: array description: 线路出口整段;缺省/null=不改;[]=清空;非空=全量替换(上限 200 条) maxItems: 200 items: type: object description: 单个出口 properties: exit_name: type: string description: 国家/地区名称原文(1~64 字;去空白+小写后不可重复) required: - exit_name title: 列表项 title: 线路出口目录整段全量替换请求数据 required: - data x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseLineExitSave' /ip_bandwidth_tier/get_list@v1: post: summary: 带宽档位目录列表 description: 套餐配置「线路出口」tab 内统一维护的带宽档位( :档位不再写死 5/10/30 兆)。 03 带宽与权益」点一条即带出上/下行同值),另兼存量 IP 备案的历史引用; 与工单回填的 5/10/30 封闭三值互不约束。任何登录角色可读。每条带 ref_count/ref_summary(被存量 IP 备案引用的条数;该表自 。 operationId: ip_bandwidth_tier_get_list tags: - 套餐档位 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/catalog/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseIpBandwidthTierGetList' /ip_bandwidth_tier/save@v1: post: summary: 带宽档位目录整段全量替换 description: |- 总运营/运营主账号可写;数组顺序即展示顺序(也是套餐编辑器里预设胶囊的顺序);同一兆数只允许一条,「不承诺带宽」(bandwidth_tier_mbps 缺省或 null)全表唯一。被存量 IP 备案引用的档位不可删除(整单拒绝并点名引用条数)。 本清单是套餐带宽权益的快捷预设, 反向约束套餐上手填的兆数。 读写不对称(既定契约):`get_list` 回 `tier_key`/`bandwidth_committed`/`sort_no`(系统派生);本接口 `items[]` 只收 `tier_name`+`bandwidth_tier_mbps`。 把读侧 JSON 原样写回(会因未声明字段/系统带出字段被拒)。 `items` 缺省/null=不改目录;`[]`=清空;非空=整段全量替换。 不引入第二确认键。 operationId: ip_bandwidth_tier_save tags: - 套餐档位 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/catalog/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 带宽档位目录整段全量替换请求参数 properties: items: type: array description: 带宽档位整段;缺省/null=不改;[]=清空;非空=全量替换(上限 50 条) maxItems: 50 items: type: object description: 单个档位 properties: tier_name: type: string description: 展示名称(1~64 字,如「10 兆」「不承诺带宽」) bandwidth_tier_mbps: type: integer nullable: true description: 带宽兆数(1~10000);缺省或 null=「不承诺带宽」 required: - tier_name title: 列表项 title: 带宽档位目录整段全量替换请求数据 required: - data x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseIpBandwidthTierSave' /portal/plan_board@v1: post: summary: 客户侧「我的套餐」看板 description: |- 客户门户「我的套餐」读口。主体号一律由会话派生:载荷出现 customer_id/sub_account_id 硬拒;出现 status/scope/region_id ⇒ 11103。view=board(与 view=list 同义)一次返回「当前套餐」「往期套餐」两表;view=detail 尚未接线 ⇒ 60008。 operationId: portal_plan_board tags: - 客户门户 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/portal/code' x-action: $ref: '#/components/x-actions/plan_board/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 请求参数(白名单只有 view;主体与状态类键一律拒收) properties: view: type: string enum: - board - list - detail description: board(同义 list)=两表;detail=详情三段( ⇒ 60008) title: 视图 title: 客户侧「我的套餐」看板请求数据 required: - data # 「x-error-codes 含有非整数」⇒ 整条路由 validation_status=abnormal/callable=false, # 网关不导流(实测 50000 未找到匹配路由)。字符串别名(KLT-P301→60058、 x-error-codes: [11103, 60004, 60005, 60008, 60058] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponsePortalPlanBoard' /catalog/create@v1: post: summary: 新建套餐档位 description: 新建固定/自定义档位。拒收 sub_mode、first_referred_at。自定义档必填 customer_id。Ops 角色只能建自定义档;created_by=鉴权账号、created_team_id=建档团队快照。 operationId: catalog_create tags: - 套餐档位 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/catalog/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 新建套餐档位请求参数 properties: plan_kind: type: string description: 档位类型:fixed=固定;custom=自定义 enum: - fixed - custom title: plan kind plan_name: type: string description: 档位名称 title: 档位名称 plan_desc: type: string description: 套餐说明(报价单权益口径,可空;去首尾空白后 ≤512 字符,超长报 11103)。引用冻结后仍可改(与名称、随附成本项同档) title: plan desc plan_family: type: string description: 交付形态:link=跨境链路(份数恒 1);addon=叠加服务(份数≥1,不设带宽列) enum: - link - addon title: plan family annual_price_cents: type: integer description: 年价(分) title: 年价(分) monthly_settle_cents: type: integer description: 月结算标准(分,可选,1~上限);可录入 title: 月结算(分) sub_account_quota: type: integer description: 分账号额度(非负,上限 9999):link 档必须 > 0;addon 档必须为 0。可缺省——link=1、addon=0 title: sub account quota bandwidth_committed: type: boolean description: 是否承诺带宽:仅 link 档可传(缺省 true);addon 档一律不传 title: bandwidth committed bandwidth_up_mbps: type: integer description: 上行带宽(Mbps,整数 1~1000);bandwidth_committed=true 时必填。不再有单值 total_bandwidth_mbps( D8 关闭= title: bandwidth up mbps bandwidth_down_mbps: type: integer description: 下行带宽(Mbps,整数 1~1000);bandwidth_committed=true 时必填;与上行同值时界面并显「上下行 N 兆」,不等显「下行 X 兆 / 上行 Y 兆」 title: bandwidth down mbps customer_id: type: string description: 自定义档所属客户 ID(custom 必填) title: 客户 ID required: - plan_kind - plan_name - plan_family - annual_price_cents title: 新建套餐档位请求数据 required: - data x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCatalogCreate' /catalog/update@v1: post: summary: 编辑套餐档位 description: 编辑档位;plan_kind/plan_family 建后不可改(K204);被订阅引用冻结后多数字段只读。 operationId: catalog_update tags: - 套餐档位 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/catalog/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 编辑套餐档位请求参数 properties: plan_id: type: string description: 档位 ID title: 档位 ID plan_name: type: string description: 档位名称 title: 档位名称 plan_desc: type: string nullable: true description: 套餐说明(可空;缺键=不动;null/空串=清空成库内 null;≤512 字符)。引用冻结后仍可改 title: plan desc annual_price_cents: type: integer description: 年价(分) title: 年价(分) monthly_settle_cents: type: integer description: 月结算标准(分,可选,1~上限);可录入 title: 月结算(分) sub_account_quota: type: integer description: 分账号额度(非负,上限 9999):link 档必须 > 0;addon 档必须为 0 title: sub account quota bandwidth_committed: type: boolean description: 是否承诺带宽:true=承诺(缺省);false=该档「不承诺带宽」,上下行两字段一律不传 title: bandwidth committed bandwidth_up_mbps: type: integer description: 上行带宽(Mbps,整数 1~1000);bandwidth_committed=true 时必填,关闭「是否承诺带宽」时必不传(档位被订阅引用后随整单只读,K204) title: bandwidth up mbps bandwidth_down_mbps: type: integer description: 下行带宽(Mbps,整数 1~1000);必填规则同上,两值不折算为单值 title: bandwidth down mbps row_version: type: integer description: 乐观锁版本(若启用) title: 乐观锁版本 required: - plan_id title: 编辑套餐档位请求数据 required: - data x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCatalogUpdate' /catalog/get_list@v1: post: summary: 套餐档位列表 description: 按 plan_kind/plan_family/created_by/created_team_id 等条件筛选档位列表。每行回 plan_family、use_purpose、created_by/created_team_id 及读侧名称 created_by_name/created_team_name;data.facets 回建档团队/建档人下拉项(服务端在 base 谓词 ∧ plan_kind=custom 上聚合, 用当前页行凑)。 operationId: catalog_get_list tags: - 套餐档位 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/catalog/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 列表筛选参数 properties: page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字筛选(可选) title: 关键字 plan_kind: type: string description: 档位类型筛选:fixed/custom title: plan kind plan_family: type: string description: 交付形态筛选:link/addon(仅自定义档可筛,固定档带此参报错) enum: - link - addon title: plan family customer_id: type: string description: 自定义档客户筛选 title: 客户 ID created_by: type: string description: 建档人筛选(R-14 台账收敛;=catalog_plan.created_by 账号 ID) title: created by created_team_id: type: string description: 建档团队筛选(R-14 台账收敛;=建档时快照的 catalog_plan.created_team_id) title: created team id title: 套餐档位列表请求数据 required: - data x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCatalogGetList' /catalog/get@v1: post: summary: 套餐档位详情 description: 按档位 ID 查询详情。 operationId: catalog_get tags: - 套餐档位 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/catalog/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 套餐档位详情请求参数 properties: plan_id: type: string description: 档位 ID title: 档位 ID required: - plan_id title: 套餐档位详情请求数据 required: - data x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCatalogGet' /catalog/delete@v1: post: summary: 套餐档位条件删除 description: 按档位 ID 条件删除:引用份数+两栏阻塞清单(subscriptions/items),在用⇒KLT-K205;固定档仅 Admin。 operationId: catalog_delete tags: - 套餐档位 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/catalog/code' x-action: $ref: '#/components/x-actions/delete/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 套餐档位条件删除请求参数 properties: plan_id: type: string description: 档位 ID title: 档位 ID required: - plan_id title: 套餐档位条件删除请求数据 required: - data x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCatalogDelete' /catalog/customer_options@v1: post: summary: 归属客户下拉 description: 只列操作人可见客户(自定义档归属客户下拉,);硬上限 500 行⇒truncated。 operationId: catalog_customer_options tags: - 套餐档位 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/catalog/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 列表筛选参数 properties: keyword: type: string description: 客户名称关键字(可选) title: 关键字 title: 归属客户下拉请求数据 required: - data x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCatalogCustomerOptions' /plan_cost_item/get_list@v1: post: summary: 档位随附成本项列表 description: 按档位读取随附成本项(;以 cost_item_id 强引用全局 cost_item,名称/类别/计费口径读时 JOIN 全局现名,全局改名套餐侧跟随);frozen 仅供前端提示。 operationId: plan_cost_item_get_list tags: - 套餐档位 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/plan_cost_item/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 档位随附成本项列表请求参数 properties: plan_id: type: string description: 档位 ID title: 档位 ID required: - plan_id title: 档位随附成本项列表请求数据 required: - data x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponsePlanCostItemGetList' /plan_cost_item/save@v1: post: summary: 档位随附成本项整段全量替换 description: |- 一次提交该档位全部成本项(先按 plan_id 删净再逐条插,;以 cost_item_id 强引用全局 cost_item,名称/类别/计费口径由服务端快照全局现值,前端只能从全局清单按 id 选择);同档位 cost_item_id 重复⇒KLT-K206;引用的 cost_item_id 不存在⇒60005。 `items` 缺省/null=不改;`[]`=清空;非空=整段全量替换。 不引入第二确认键。 operationId: plan_cost_item_save tags: - 套餐档位 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/plan_cost_item/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 档位随附成本项整段全量替换请求参数 properties: plan_id: type: string description: 档位 ID title: 档位 ID items: type: array description: 成本项整段;缺省/null=不改;[]=清空;非空=全量替换(上限 50 条) maxItems: 50 items: type: object description: 成本项条目(cost_item_id 为强引用,必填;item_name/category/billing_unit 由服务端快照全局现值覆盖,传值仅作长度兜底) properties: cost_item_id: type: string description: 全局成本项 ID(必填,强引用;须在全局 cost_item 清单中存在) item_name: type: string description: 成本项名称(可选,服务端以全局现名快照覆盖;传值仅校验长度≤128) amount_cents: type: integer description: 金额(分,≥0) minimum: 0 billing_unit: type: string description: 计费单位(可选,服务端以全局现值覆盖) enum: - per_customer - per_account - per_copy category: type: string description: 成本项分类(可选,服务端以全局现值覆盖) enum: - intl_resource - device_purchase - project_fee remark: type: string description: 备注(可选,上限 512 字) sort_no: type: integer description: 排序号(≥0) minimum: 0 required: - cost_item_id - amount_cents title: 列表项 required: - plan_id title: 档位随附成本项整段全量替换请求数据 required: - data x-error-codes: [60001, 60202, 60203, 60204, 60205, 60206, 60227] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponsePlanCostItemSave' /contract/create@v1: post: summary: 新建合同 description: 客户段+合同段+服务构成条目一次提交( 不再受理 IP 条目:`ip_entries`/`has_fixed_ip` 视为未知键 ⇒ 11103;境外 IP 由套餐档位所含 IP × 订阅份数表达)。客户未命中时用 data.customer_inline 随合同建档(先建档、后签合同,两个事务),成功时 data.inline_customer 回显客户号/主账号/激活码发放态/影像待补(激活码明文不在应答内,走客户列表「导出激活码」)。拒收 source(服务端定);created_by/created_by_name/created_by_org/created_by_mobile(录入经办人:机构/姓名/联系方式)由服务端从鉴权上下文写入、不取入参;agent_* 是运营商交接单上的经办人(姓名/电话/交接日期必填、机构选填)。 operationId: contract_create tags: - 合同 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/contract/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 请求参数(`customer_id` 与 `customer_inline` 至少给一个且不可同时给) properties: customer_id: type: string description: 签约客户 ID。与 customer_inline 只可二选一:命中已有客户填本项;未命中改用内联建档段 title: 客户 ID customer_inline: type: object description: >- 客户未命中时的内联建档段(需求 C;关闭 C)。 本段先按 `/customer/create@v1` 的同一套规则建档(两个事务:建档 → 合同,不合并), 再签本合同;建档含客户主账号(未设初始口令 ⇒ 待激活、发激活码,明文不在本响应内下发)。 注意:企业营业执照影像选填(,与页面建档同口径), 留空不影响建档,建档后到客户档案「登记材料」格补传/替换。主体类型非企业时不收 license。 properties: customer_name: type: string description: 客户名称(必填;允许重名,查重靠识别号) subject_type: type: string description: 主体类型(必填):enterprise/individual/sole_proprietor enum: - enterprise - individual - sole_proprietor id_code: type: string description: 客户识别号(必填):既是安全存储载体,也是合同事务失败后重试的幂等键(不得省略) contact_name: type: string description: 客户经办联系人(与联系电话、地址同属 C 第 1 步字段) contact_mobile: type: string description: 联系电话 tech_contact_name: type: string description: 技术联系人姓名(选填) tech_contact_mobile: type: string description: 技术联系人电话(选填) finance_contact_name: type: string description: 财务联系人姓名(选填) finance_contact_mobile: type: string description: 财务联系人电话(选填) remark: type: string description: 客户备注(选填,≤512 字) partner_id: type: string description: 归属合伙人(选填;反查所得,落 customer.partner_id) address: type: string description: 客户地址 parent_node_id: type: string description: 挂载区域(必填;区域树节点 ID,与 /customer/create@v1 的 parent_node_id 同义) operator_id: type: string description: 归属运营商(必填;弹窗下拉,候选=所挂区域省份下可见的运营商档案) ops_team_ids: type: array description: 运维团队(必填且恰好 1 支,;不得为空数组/不得传多支) items: type: string description: 团队 ID license: type: object description: 营业执照影像(选填;非企。两键成对 properties: object_key: type: string description: 平台对象存储对象键(浏览器直传后回报,须在客户影像前缀下) file_name: type: string description: 原始文件名(仅展示) required: - object_key - file_name primary_username: type: string description: 客户主账号登录名(选填;留空按主体号派生,4~32 位字母数字与 . _ -) primary_mobile: type: string description: 主账号绑定手机号(选填,11 位) required: - customer_name - subject_type - id_code - parent_node_id - operator_id - ops_team_ids title: customer inline contract_no: type: string description: 合同编号(空则服务端发号) title: 合同编号 external_no: type: string description: 外部合同号(可选) title: external no contract_type: type: string description: >- 合同类型:new(新建,缺省)/renew(续签)/expand(扩容补充协议)/change(变更协议)。 :renew 必须同时给 renew_from_contract_id;expand 的服务构成必须整批为增量叠加服务; 带 renew_from_contract_id 的合同类型只能是 renew。 enum: - new - renew - expand - change title: contract type sign_date: type: string description: 签署日期(YYYY-MM-DD;选填,缺省按 agent_handover_on 兜底) format: date title: sign date contract_amount_cents: type: integer description: 合同金额(分,可选) title: contract amount cents service_months: type: integer description: >- 服务期(月,1~600,必填):替代原 pay_cycle;结束日=生效日+服务期−1 天 (该月无对应日先取月末),页面锁定为只读推算值。 minimum: 1 maximum: 600 title: service months start_date: type: string description: 合同开始日期(YYYY-MM-DD) format: date title: 开始日 end_date: type: string description: >- 合同结束日期(YYYY-MM-DD,可省略):省略时服务端按「生效日+服务期(月)−1 天」 推算(该月无对应日先取月末);显式给出则按显式值落库。 format: date title: 结束日 agent_name: type: string description: 运营商经办人姓名(交接单三段之二,必填;不是录入账号 created_by) title: agent name agent_mobile: type: string description: 运营商经办人联系方式(交接单三段之三,必填) title: agent mobile agent_handover_on: type: string description: 经办交接日期(必填;与姓名/联系电话构成运营商经办人三件套,只用于回溯交接来源) format: date title: agent handover on agent_org: type: string description: 运营商经办人机构(交接单三段之一,选填) title: agent org attachment_url: type: string maxLength: 512 description: >- 合同附件(单值,可选):外部 http(s) 链接,或浏览器直传平台对象存储 (seoh-unified-oss 两段式)成功后回报的对象键,前缀必须为 klt/contract/attachment/。空串=清空。对象键不得当作可直接打开的链接, 详情读口另下发 attachment_view_url(短时效现签)。 title: attachment url service_items: type: array description: 服务构成条目列表 items: type: object description: 服务条目 properties: plan_id: type: string description: 档位 ID(必填; 起条目只能引用目录档位) quantity: type: integer description: 份数:link 档恒 1;addon 档≥1 item_family: type: string description: 交付形态(只读确认位,可缺省):只能与所引档位的 plan_family 相同,不同即 KLT-L216 enum: - link - addon item_mode: type: string description: >- 条目模式:new=常规条目(缺省);increment=增量叠加服务,只能引用本客户 既有 link 订阅(只传 ref_subscription_id, 再填 serves_item_id/ serves_item_index),档位必须是 addon。读口按同一编码原样回传。 enum: - new - increment serves_item_index: type: integer minimum: 0 description: >- 从属宿主:普通叠加服务叠加于同一请求 service_items 的哪一条, 0 基下标(新建父条目尚无 item_id 时用)。父条目已存在时也可改传 serves_item_id; 二者同时给即 11103。仅 item_mode=new 且档位为 addon 时必填其一。 serves_item_id: type: string description: >- 从属宿主的条目 ID(编辑合同、父条目已存在时用);与 serves_item_index 二选一。 增量条目(increment) 不得填本键。 ref_subscription_id: type: string description: >- 增量合同引用的原订阅号:仅 item_mode=increment 时必填(且不得填 serves_*); 非增量条目带本键即 KLT-L216。订阅须属本客户、为 link 档、状态 ∈ active/pending。 生成的 service_open 单以增量合同 external_no 作为 carrier_order_no。 line_exits: type: array maxItems: 1 description: >- 线路出口(单选:长度必须为 1)。新建/修改条目出现 2 个以上 由服务端回 KLT-L222;存量多出口条目不迁移(编辑合同须原样回传)。 items: type: string description: 出口标识 succession: type: object description: >- 契约内逐条替换(升降配,):本条目的新订阅顶替哪份原订阅。 仅在新建合同受理,编辑合同出现即 KLT-L222。只接受三键(价格/状态/ row_version 等只读派生列出现即点名)。候选须同客户、status ∈ active/pending、 同 line_exit_key、双方均 plan_family=link、未被替换过(KLT-M226); 同一 replaces_subscription_id 在本请求内至多一次;link 条目 quantity 须为 1。 替换与合同写入同一条 dml_batch(任一条失败=整批回滚),应答回 data.replacements[]。 properties: replaces_subscription_id: type: string description: 被替换的原订阅号(必填) start_date: type: string format: date description: 新订阅起日,缺省=max(业务当天, 合同生效日);须 ≤ 合同止期。结束日恒取合同止期 term: type: string description: 订阅方式(yearly/quarterly/monthly);缺省按档位与账期派生 required: - replaces_subscription_id title: service items required: - contract_amount_cents - service_months - start_date - end_date - agent_name - agent_mobile - agent_handover_on title: 新建合同请求数据 required: - data x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseContractCreate' /contract/update@v1: post: summary: 编辑合同 description: 编号与签约客户不可改;条目按 item_id 三向对比增删改。可改范围=bos-invariant::contract_edit_scope 的两条轴(billing:金额/服务期(月)/期间/服务构成;archive:合同类型/签署日期/外部单号/交接日期),两轴独立判定、source=operator_sync 全只读(KLT-L220)、已开通两轴全冻(KLT-L219)、录后 72 小时内两轴全开、未生效只放 billing、未到期只放 archive;经办人(created_by 与录入经办人机构/姓名/联系方式)建后恒只读(KLT-L221);agent_* 为运营商交接单上的经办人,受各自轴约束。 :`ip_entries`/`has_fixed_ip` (视为未知键 ⇒ 11103,境外 IP 由套餐档位 × 订阅份数表达)。保存形态=只提交变了的字段(键缺席=保持现值);审计 INSERT 与业务语句同批提交。 operationId: contract_update tags: - 合同 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/contract/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 编辑合同请求参数 properties: contract_id: type: string description: 合同 ID title: 合同 ID row_version: type: integer description: 乐观锁版本 title: 乐观锁版本 external_no: type: string description: 外部合同号 title: external no contract_type: type: string description: 合同类型(new/renew/expand/change);受 archive 轴约束 enum: - new - renew - expand - change title: contract type sign_date: type: string description: 签署日期(受 archive 轴约束) format: date title: sign date contract_amount_cents: type: integer description: 合同金额(分) title: contract amount cents service_months: type: integer description: 服务期(月,1~600);受 billing 轴约束,结束日按「生效日+服务期−1 天」重算 minimum: 1 maximum: 600 title: service months start_date: type: string description: 开始日期 format: date title: 开始日 end_date: type: string description: 结束日期 format: date title: 结束日 agent_name: type: string description: 运营商经办人姓名(交接单口径,不是录入账号 created_by);受 billing/archive 轴约束,冻结时提交改动值 ⇒ KLT-L219/L220 title: agent name agent_mobile: type: string description: 运营商经办人联系方式(交接单三段之三;archive 轴) title: agent mobile agent_handover_on: type: string description: 交接日期(archive 轴) title: agent handover on agent_org: type: string description: 运营商经办人机构(交接单三段之一;选填,archive 轴) title: agent org attachment_url: type: string maxLength: 512 description: >- 合同附件(单值,archive 轴):外部 http(s) 链接,或前缀为 klt/contract/attachment/ 的对象键;空串=清空附件。 title: attachment url service_items: type: array description: >- 服务构成条目(含 item_id 的增删改)。条目形态只含 plan_id/quantity/item_family/ line_exits/item_mode/serves_item_id/serves_item_index/ref_subscription_id(item_family 由档位带入, 自造);年价/账号数/带宽等旧字段已删列, 出现即视为未知键。/普通叠加服务用 serves_item_id(或 0 基 serves_item_index) 声明从属,服务端按父子关系回树;增量条目用 item_mode=increment + ref_subscription_id 引用既有链路订阅( 再挂 serves_*)。订阅/工单/台账列表不扩散,仍平铺。 items: type: object properties: item_id: type: string description: 既有条目主键(三向对比:带=UPDATE/不带=INSERT/库有载荷无=DELETE) plan_id: type: string description: 档位 ID quantity: type: integer description: 份数:link 档恒 1;addon 档≥1 item_family: type: string description: 交付形态(只读确认位,可缺省):与档位 plan_family 不同即 KLT-L216 enum: - link - addon item_mode: type: string description: >- 条目模式:new=常规;increment=增量叠加服务(档位必须为 addon,且只引用 ref_subscription_id, 挂 serves_*)。读口按同一编码回传。 enum: - new - increment serves_item_index: type: integer minimum: 0 description: 父条目在本载荷 service_items 的 0 基下标(普通叠加服务、父条目为本次新建时用) serves_item_id: type: string description: >- 父条目 ID(普通叠加服务、父条目已存在时用);与 serves_item_index 二选一, 同时给即 11103;增量条目 不得填本键 ref_subscription_id: type: string description: >- 增量合同引用的原订阅号:item_mode=increment 时必填,须属本客户、为 link 档、 状态 ∈ active/pending;非增量条目带本键即 KLT-L216。 line_exits: type: array maxItems: 1 description: 线路出口(单选,长度 1) items: type: string title: service items required: - contract_id - row_version title: 编辑合同请求数据 required: - data x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211, 60228, 60229, 60230] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseContractUpdate' /contract/get_list@v1: post: summary: 合同列表 description: >- 按客户/状态等筛选合同列表。每行随 `attachment_kind`(none/link/object/other)说明附件形态; `attachment_view_url` 在列表口恒 null(签名只在详情读口现签,不按行 N 次调平台)。 operationId: contract_get_list tags: - 合同 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/contract/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 列表筛选参数 properties: page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字筛选(编号/客户名/外部单号/经办人等) title: 关键字 customer_id: type: string description: 客户 ID 筛选 title: 客户 ID status: type: string description: 生命周期态(effective/not_effective/expired 或中文) title: 状态 source: type: string description: 来源(manual/import/operator_sync 或中文标签) title: 来源 line_exit: type: string description: 线路出口名称(命中服务构成条目 line_exits) title: line exit expiring_within_days: type: integer description: 快到期天数(止期 ∈ [today, today+N];已到期不算) minimum: 0 title: expiring within days opened: type: boolean description: 是否已开通筛选(三态:true/false/缺省不筛) title: opened title: 合同列表请求数据 required: - data x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseContractGetList' /contract/change_log@v1: post: summary: 合同修改记录 description: 本合同在 bos_audit_log 的 contract.* 流水(时间倒序+(occurred_at,id) 游标,不用 OFFSET)。先过合同可见性(与详情同一条谓词,越权=11104),再按 resource_type='contract' AND resource_id=$contract_id 取行——不复用 audit/get_list@v1(其对 TeamLead/Ops 按本团队成员过滤,会把可见合同的历史滤空)。行内含 detail.fields(字段级 {old,new})、items_diff(条目的三向增删改);`ip_diff` 仅 之前的存量行才有(固定 IP 条目)。 operationId: contract_change_log tags: - 合同 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/contract/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 合同修改记录请求参数 properties: contract_id: type: string description: 合同 ID title: 合同 ID page_size: type: integer description: 每页条数(默认 20,夹在 1~50) minimum: 1 maximum: 50 default: 20 title: 每页条数 cursor: type: string description: 游标,形态 occurred_at|id(与审计页同形态);由上一页响应的 next_cursor 原样带回 title: 游标 required: - contract_id title: 合同修改记录请求数据 required: - data x-error-codes: [60053, 60201, 60207] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseContractChangeLog' /contract/get@v1: post: summary: 合同详情 description: >- 按合同 ID 查询详情(含服务条目与 IP 条件)。出参含 edit_scope(billing/archive 两轴 editable+reason,判据=bos-invariant::contract_edit_scope)、created_by/created_by_name/created_by_org/created_by_mobile(录入经办人=录入账号的机构/姓名/联系方式,录入时由账号自动带入、建后只读;联系方式已按需求 掩码)。 附件(单值):`attachment_url` 原值照回(外部链接或 klt/contract/attachment/ 下的对象键), `attachment_kind` 说明形态,`attachment_view_url`/`attachment_view_url_expires_at` 为读口现签的短时效下载地址(`link` 形态=原链接);对象键不得当作可直接打开的链接。 服务条目行额外带 `item_mode`(new/increment)/`serves_item_id`/`ref_subscription_id`, 前端据此把增量叠加服务以父子缩进树呈现;订阅/工单/台账仍为平铺列表,只标注「叠加于 SUB-xxx」。 operationId: contract_get tags: - 合同 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/contract/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 合同详情请求参数 properties: contract_id: type: string description: 合同 ID title: 合同 ID required: - contract_id title: 合同详情请求数据 required: - data x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseContractGet' /contract/customer_lookup@v1: post: summary: 合同客户身份解析 description: 第 1 步:query_type=credit_code 主体号精确点查/identity 归一化精确点查/keyword 客户名称模糊联想;未命中=matched:false 成功响应(不报错),越权读单客户=11104。 operationId: contract_customer_lookup tags: - 合同 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/contract/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 合同客户身份解析请求参数 properties: query_type: type: string description: 查询通道 enum: - credit_code - identity - keyword title: query type value: type: string description: 查询值(主体号/识别号/客户名称关键字) title: value required: - query_type - value title: 合同客户身份解析请求数据 required: - data x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseContractCustomerLookup' /contract/delete@v1: post: summary: 合同条件删除 description: 两类阻塞分栏(subscriptions/tickets),有阻塞⇒KLT-L213;工单取数失败⇒KLT-S406(不得中途放行)。 operationId: contract_delete tags: - 合同 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/contract/code' x-action: $ref: '#/components/x-actions/delete/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 合同条件删除请求参数 properties: contract_id: type: string description: 合同 ID title: 合同 ID required: - contract_id title: 合同条件删除请求数据 required: - data x-error-codes: [60001, 60201, 60207, 60209, 60210, 60211] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseContractDelete' /contract/attachment_discard@v1: post: summary: 回收无人引用的上传附件(孤儿对象) description: >- 还原 孤儿附件回收:浏览器直传是「先上传、后落库」,用户换文件/移除/ 取消编辑/保存被拦时会在桶里留下无引用对象。平台 unified-oss 明确「不做后台遍历删对象、 不按业务字段回收」,只有即时删除一条通道(object/delete@v1),故回收由本服务在引用面判定后发起。 三条安全线:object_key 必须是本服务前缀下无路径穿越的对象键;查库确认没有任何合同仍指向它; 角色限 Admin/OpsMain(与合同写口同一道闸)。referenced=true 与「对象已不在」都不算失败(幂等)。 operationId: contract_attachment_discard tags: - 合同 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/contract_attachment/code' x-action: $ref: '#/components/x-actions/delete/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 回收无人引用的上传附件(孤儿对象)请求参数 properties: object_key: type: string description: 直传回报的对象键(klt/contract/attachment/ 前缀下) title: 对象键 required: - object_key title: 回收无人引用的上传附件(孤儿对象)请求数据 required: - data x-error-codes: [60001, 60004, 60006, 60058, 60201] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseContractAttachmentDiscard' /subscription/create@v1: post: summary: 新建订阅 description: 拒收 line_exits、sub_mode、order_no、新建时的 end_date、opened_at。 响应 data 附 delivery_ticket=交付侧建单结论(工单册):kind=open/service_open/ merged(并入既有未完成开户工单,工单册)/failed/skipped,另有 ticket_id、ticket_no、 items=本次落地服务清单项数、note=面向运营的说明。工单侧失败不回滚订阅(订阅仍已保存), 此时 failed=true,运营须按 note 人工补发工单。 operationId: subscription_create tags: - 订阅 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/subscription/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 新建订阅请求参数 properties: customer_id: type: string description: 客户 ID title: 客户 ID plan_id: type: string description: 档位 ID title: 档位 ID contract_id: type: string description: 合同 ID title: 合同 ID contract_item_id: type: string description: 合同服务条目 ID(可空=该合同内一条匹配条目都没有,服务端按档位反查) title: contract item id start_date: type: string description: 订阅开始日期 format: date title: 开始日 annual_price_cents: type: integer description: 不得传的只读派生列:按档位与账期折算落库(传值即 KLT-S20004 拒收) title: 年价(分) monthly_settle_cents: type: integer description: 不得传的只读派生列:由 `monthly_settle_of` 按年价折算落库(传值即 KLT-S20004 拒收) title: 月结算(分) plan_family: type: string description: 交付形态(只读确认位,可缺省):只能与所选档位的 plan_family 相同,不同即 11103 enum: - link - addon title: plan family term: type: string description: 账期(三态:yearly/quarterly/monthly) enum: - yearly - quarterly - monthly title: term trial_months: type: integer description: 试用月数(默认 0,≥0) minimum: 0 title: trial months discount_monthly_cents: type: integer description: 每月优惠金额(分,默认 0,≥0) minimum: 0 title: discount monthly cents required: - customer_id - plan_id - contract_id - start_date title: 新建订阅请求数据 required: - data x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubscriptionCreate' /subscription/change@v1: post: summary: 订阅升降配 description: >- 升降配须填 replaces_subscription_id 与 contract_id(新合同,不得沿用原合同;缺省时回退原合同并在回执说明中提示)。 `contract_item_id` 给出时按其取条目并校验档位匹配,缺省时按新档位在合同内反查。 `customer_id` 仅做一致性校验(与原订阅客户不同即 60201/KLT-M221)。 年价、月结算标准、end_date、线路出口、用途分类为只读派生列,传即 11103。 本口保留为「单订阅快捷通道」:常规路径是在合同新建页逐条带 service_items[].succession 一次提交(见 /contract/create@v1);两条路径共用同一份计划层与 截原谓词(已被替换过 ⇒ KLT-M226)。工单类型按交付态:已交付且客户在用 ⇒ 一张 updown (新档交付+原档回收,清单带原值/新值);未交付 ⇒ open/service_open。 operationId: subscription_change tags: - 订阅 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/subscription/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 订阅升降配请求参数 properties: replaces_subscription_id: type: string description: 被替换的原订阅 ID title: replaces subscription id customer_id: type: string description: 客户 ID title: 客户 ID plan_id: type: string description: 新档位 ID title: 档位 ID contract_id: type: string description: 新合同 ID(不得沿用原合同) title: 合同 ID contract_item_id: type: string description: 新合同服务条目 ID title: contract item id start_date: type: string description: 新订阅开始日期 format: date title: 开始日 annual_price_cents: type: integer description: 只读派生列(服务端按档位与时长折算);传即 11103 readOnly: true title: 年价(分) monthly_settle_cents: type: integer description: 只读派生列(服务端按档位折算);传即 11103 readOnly: true title: 月结算(分) plan_family: type: string description: 只读派生列(随新档位);传不同值即 11103 readOnly: true enum: - link - addon title: plan family term: type: string description: 账期(三态:yearly/quarterly/monthly;缺省沿用原订阅或按年) enum: - yearly - quarterly - monthly title: term trial_months: type: integer description: 试用月数(默认 0,≥0) minimum: 0 title: trial months discount_monthly_cents: type: integer description: 每月优惠金额(分,默认 0,≥0) minimum: 0 title: discount monthly cents row_version: type: integer description: 乐观锁版本号(可选,缺省不校验) title: 乐观锁版本 required: - replaces_subscription_id - plan_id - contract_id title: 订阅升降配请求数据 required: - data x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubscriptionChange' /subscription/replacement_candidates@v1: post: summary: 替换候选探测(只读) description: >- 合同新建页逐条判定「是否已有可替换的原订阅」(契约内逐条替换=升降配,)。 交付形态唯一取档位 `plan_family`,按「同客户 × 同出口 × 双方均 link」 过滤(status ∈ active/pending、排除 addon 档、排除已被指过的 replaces_subscription_id), 与 /contract/create@v1 的保存期校验是同一份函数(succession::candidate_filter),前端不得自造候选范围。 index 与 service_items 的 0 基下标对齐;档位或出口判定不出 ⇒ KLT-L222 点名 probes[i]。 operationId: subscription_replacement_candidates tags: - 订阅 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/subscription/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 替换候选探测(只读)请求参数 properties: customer_id: type: string description: 签约客户 ID(候选范围限本客户) title: 客户 ID probes: type: array description: 探测项(至少 1 项,每项对应一个服务构成条目) items: type: object properties: index: type: integer description: 0 基条目下标(缺省=数组位置) plan_id: type: string description: 档位 ID(交付形态由档位带出) line_exits: type: array maxItems: 1 description: 线路出口(须恰 1 个;缺省时回落档位上的出口集合) items: type: string required: - line_exits title: probes required: - customer_id - probes title: 替换候选探测(只读)请求数据 required: - data x-error-codes: [60001, 60201, 60221, 60231] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubscriptionReplacementCandidates' /subscription/stack@v1: post: summary: 订阅叠加(已停用 · 请改走 create) description: 起拒写。权威「叠加」=新建并存订阅,请走 `/subscription/create@v1`(客户在用时自动生成服务开通工单)。本口保留路由与入参形态,一律返回参数错误并点名 create。 operationId: subscription_stack tags: - 订阅 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/subscription/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 订阅叠加(已停用 · 请改走 create)请求参数 properties: subscription_id: type: string description: 订阅 ID(更新场景) title: 订阅 ID customer_id: type: string description: 客户 ID(叠加新建时) title: 客户 ID plan_id: type: string description: 档位 ID(叠加新建时) title: 档位 ID contract_id: type: string description: 合同 ID title: 合同 ID contract_item_id: type: string description: 合同服务条目 ID title: contract item id annual_price_cents: type: integer description: 年价(分,可改) title: 年价(分) monthly_settle_cents: type: integer description: 月结算金额(分,可改) title: 月结算(分) end_date: type: string description: 结束日期(可改) format: date title: 结束日 start_date: type: string description: 开始日期(叠加新建时) format: date title: 开始日 row_version: type: integer description: 乐观锁版本号(可选,缺省不校验) title: 乐观锁版本 title: 订阅叠加(已停用 · 请改走 create)请求数据 required: - data x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubscriptionStack' /subscription/get_list@v1: post: summary: 订阅列表 description: >- 按客户等维度筛选订阅列表。叠加服务订阅行带 `parent_subscription_id`(所属链路订阅号), 列表面板保持平铺并标注「叠加于 SUB-xxx」,不把子订阅折叠进父行(不扩散)。 operationId: subscription_get_list tags: - 订阅 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/subscription/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog # (subscription.rs:680 get_list → :687 customer_scope_pred),订阅在平台侧登记为 # klt.subscription 树叶 ⇒ 其可见集应由授权上界决定,故按 list 声明真源列举。 # 注意:同 L-2:本轮只打通「声明+上界落到 AuthContext」,运维分支仍走本地口径, # 且注入 id 与我方 subscription_id 对齐的前提=订阅已登记为资源树叶(待平台确认)。 x-enumeration-kind: list requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 列表筛选参数(BUG-26Ccustomer_id 必填;全量列表走 list_all) required: - customer_id properties: customer_id: type: string description: 客户 ID(必填) title: 客户 ID page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字(套餐名/订阅号/订单号/客户名/合同号) title: 关键字 status: type: string description: 状态筛选(pending/active/expired/cancelled/replaced/early_stopped) title: 状态 plan_kind: type: string description: 套餐类型(fixed/custom) enum: - fixed - custom title: plan kind line_exit: type: string description: 线路出口名称(命中 line_exits 快照) title: line exit expiring_within_days: type: integer description: 快到期天数(止期 ∈ [today, today+N];已到期不算) minimum: 0 title: expiring within days contract_id: type: string description: 合同 ID 筛选 title: 合同 ID region_ids: type: array description: 区域 ID 集合(经客户挂载区域展开) items: type: string description: 区域 ID title: region_ids元素 title: region ids title: 订阅列表请求数据 required: - data x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubscriptionGetList' /subscription/get@v1: post: summary: 订阅详情 description: 按订阅 ID 查询详情。 operationId: subscription_get tags: - 订阅 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/subscription/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 订阅详情请求参数 properties: subscription_id: type: string description: 订阅 ID title: 订阅 ID required: - subscription_id title: 订阅详情请求数据 required: - data x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubscriptionGet' /subscription/plan_options@v1: post: summary: 订阅档位候选 description: 第 3 步:本客户自定义档(含合同条目派生档)+全部固定档,不含他客户自定义档;行内带只读 sub_mode 与 available/unavailable_reason。 operationId: subscription_plan_options tags: - 订阅 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/subscription/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 订阅档位候选请求参数 properties: customer_id: type: string description: 客户 ID(必填) title: 客户 ID keyword: type: string description: 套餐名称关键字(仅本口有) title: 关键字 required: - customer_id title: 订阅档位候选请求数据 required: - data x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubscriptionPlanOptions' /subscription/contract_options@v1: post: summary: 未开通合同与服务条目候选 description: 第 2 步:只出「未开通」合同及其尚未被订阅引用的条目;开通态取数失败⇒KLT-S406;无可选合同⇒KLT-M222。 operationId: subscription_contract_options tags: - 订阅 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/subscription/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 未开通合同与服务条目候选请求参数 properties: customer_id: type: string description: 客户 ID(必填) title: 客户 ID keyword: type: string description: 合同名称关键字(仅本口有) title: 关键字 required: - customer_id title: 未开通合同与服务条目候选请求数据 required: - data x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubscriptionContractOptions' /subscription/update@v1: post: summary: 订阅修改(白名单) description: 可改字段只有 trial_months/discount_monthly_cents;row_version 必填,落空⇒KLT-S407;换套餐/换合同⇒KLT-M229。 operationId: subscription_update tags: - 订阅 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/subscription/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 订阅修改(白名单)请求参数 properties: subscription_id: type: string description: 订阅 ID title: 订阅 ID row_version: type: integer description: 乐观锁版本号(必填,落空⇒KLT-S407) title: 乐观锁版本 trial_months: type: integer description: 试用月数(白名单可改) minimum: 0 title: trial months discount_monthly_cents: type: integer description: 每月优惠金额(分,白名单可改) minimum: 0 title: discount monthly cents required: - subscription_id - row_version title: 订阅修改(白名单)请求数据 required: - data x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubscriptionUpdate' /subscription/delete_check@v1: post: summary: 订阅删除前阻塞检查 description: 两栏阻塞分列(账单明细⇒KLT-M227、升降配链原订阅⇒KLT-M230);账单只读口未接线⇒billing_state=unconfigured。 operationId: subscription_delete_check tags: - 订阅 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/subscription/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 订阅删除前阻塞检查请求参数 properties: subscription_id: type: string description: 订阅 ID title: 订阅 ID required: - subscription_id title: 订阅删除前阻塞检查请求数据 required: - data x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubscriptionDeleteCheck' /subscription/delete@v1: post: summary: 删除订阅并回退额度 description: 删除前复算阻塞;终态⇒11103;同事务回退 customer.quota_cents,档位 first_referred_at 打点不回滚。 operationId: subscription_delete tags: - 订阅 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/subscription/code' x-action: $ref: '#/components/x-actions/delete/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 删除订阅并回退额度请求参数 properties: subscription_id: type: string description: 订阅 ID title: 订阅 ID required: - subscription_id title: 删除订阅并回退额度请求数据 required: - data x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubscriptionDelete' /subscription/list_all@v1: post: summary: 全部订阅(跨客户) description: >- 跨客户订阅列表,customer_id 可选;region_ids 经客户挂载区域展开。 keyword 命中套餐名/订阅号/订单号/客户名/合同号;page 0 基,page_size 上限 200。 operationId: subscription_list_all tags: - 订阅 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/subscription/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 列表筛选参数 properties: page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字(套餐名/订阅号/订单号/客户名/合同号) title: 关键字 customer_id: type: string description: 客户 ID 筛选(跨客户列表下可选) title: 客户 ID contract_id: type: string description: 合同 ID 筛选 title: 合同 ID status: type: string description: 状态筛选(pending/active/expired/cancelled/replaced/early_stopped) title: 状态 plan_kind: type: string description: 套餐类型(fixed/custom) enum: - fixed - custom title: plan kind line_exit: type: string description: 线路出口名称(命中 line_exits 快照) title: line exit expiring_within_days: type: integer description: 快到期天数(止期 ∈ [today, today+N];已到期不算) minimum: 0 title: expiring within days region_ids: type: array description: 区域 ID 集合(经客户挂载区域展开) items: type: string description: 区域 ID title: region_ids元素 title: region ids title: 全部订阅(跨客户)请求数据 required: - data x-error-codes: [60001, 60201, 60212, 60214, 60215, 60216, 60218, 60219, 60221, 60222] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseSubscriptionListAll' /cost_item/save@v1: post: summary: 保存成本项定义 description: 仅 admin。增改成本项定义。拒收金额、客户、运营商、省份、cycle、is_system。 operationId: cost_item_save tags: - 成本与分成 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/cost_item/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 保存成本项定义请求参数 properties: cost_item_id: type: string description: 成本项 ID(更新时必填) title: cost item id category: type: string description: 类别:intl_resource/device_purchase/project_fee enum: - intl_resource - device_purchase - project_fee title: category item_name: type: string description: 成本项名称 title: item name billing_unit: type: string description: 计费单位:per_customer/per_account/per_copy enum: - per_customer - per_account - per_copy title: billing unit is_amortized: type: boolean description: 是否摊销 title: is amortized amortization_months: type: integer description: 摊销月数(勾选摊销时可空=每月摊销不结束) title: amortization months deduct_from_base: type: boolean description: 是否从基数扣除 title: deduct from base remark: type: string description: 备注 title: 备注 row_version: type: integer description: 乐观锁版本(更新时) title: 乐观锁版本 required: - category - item_name - billing_unit - is_amortized - deduct_from_base title: 保存成本项定义请求数据 required: - data x-error-codes: [60001] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCostItemSave' /cost_item/delete@v1: post: summary: 删除成本项定义 description: 仅 admin。顺序固定「引用检查 → 真删」;按 plan_cost_item.cost_item_id 强引用反查, 命中 ⇒ KLT-E002 并在 data.referring_plan_count 回引用档位数(文案含「先在档位上解除引用」出路);改名不影响引用数。 无引用才真删:同一批清理该成本项名下全部 cost_amount 行(级联行数只进审计摘要、不进响应体)。 operationId: cost_item_delete tags: - 成本与分成 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/cost_item/code' x-action: $ref: '#/components/x-actions/delete/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 删除成本项定义请求参数 properties: cost_item_id: type: string description: 成本项 ID(待删除的定义主键) title: cost item id required: - cost_item_id title: 删除成本项定义请求数据 required: - data x-error-codes: [60005, 60302] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCostItemDelete' /cost_item/get_list@v1: post: summary: 成本项列表 description: 全局成本项目录;可选类别/名称关键字;无客户过滤。 operationId: cost_item_get_list tags: - 成本与分成 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/cost_item/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 列表筛选参数 properties: page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字筛选(可选) title: 关键字 item_name: type: string description: 按成本项名称模糊检索(BUG-26F;与 keyword 同口径 LIKE) title: item name category: type: string description: 类别筛选 title: category title: 成本项列表请求数据 required: - data x-error-codes: [60001] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCostItemGetList' /cost_amount/save@v1: post: summary: 保存成本金额 description: 按「省份×运营商×成本项」只写差异金额;留空项表示删除该差异。 operationId: cost_amount_save tags: - 成本与分成 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/cost_amount/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 保存成本金额请求参数 properties: province_node_id: type: string description: 省份节点 ID title: province node id operator_id: type: string description: 运营商 ID title: 运营商 ID items: type: array description: 变更项列表;留空金额表示删除该差异行 items: type: object properties: cost_item_id: type: string description: 成本项 ID amount_cents: type: integer description: 金额(分);空/省略表示删除 row_version: type: integer description: 乐观锁版本 required: - cost_item_id title: 列表项 required: - province_node_id - operator_id - items title: 保存成本金额请求数据 required: - data x-error-codes: [60001] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCostAmountSave' /cost_amount/get_list@v1: post: summary: 成本金额一览 description: 透视表;admin 全量,区域运营按可见省/运营商收窄。 operationId: cost_amount_get_list tags: - 成本与分成 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/cost_amount/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 列表筛选参数 properties: province_node_id: type: string description: 省份筛选 title: province node id operator_id: type: string description: 运营商筛选 title: 运营商 ID page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字筛选(可选) title: 关键字 title: 成本金额一览请求数据 required: - data x-error-codes: [60001] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCostAmountGetList' /share_rule/save@v1: post: summary: 保存分成规则 description: |- 改分成=改分成方档案上的 settle_mode/settle_value 两列。 holder_type∈{operator,ops_team,partner}。rules 实际只表达一对取值(多条须一致)。 两列一起传 null=取消分成(未配、计 0); 用 0/负数表达删除。 顶层仅接受 holder_type/holder_id/rules/row_version,其余键(含误放顶层的 share_mode/__probe)⇒ 60004(BUG-3D-43)。 row_version 必填:与三档案 update 共用同一条乐观锁链;缺省 ⇒ 60004;不符 ⇒ KLT-S407/60001; 同值 ⇒ changed=0、不空转版本(BUG-3D-44/A)。 get 回显的只读派生键(rule_id/rule_level/status/holder_name/customer_id/customer_name/remark 及误放行内的 row_version)允许原样回填:同值忽略/异值拒绝(BUG-3D-45);⛔ 静默受理异值。 operationId: share_rule_save tags: - 成本与分成 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/share_rule/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 保存分成规则请求参数 properties: holder_type: type: string description: 持有方类型(档案表) enum: - operator - ops_team - partner title: holder type holder_id: type: string description: 持有方 ID title: holder id rules: type: array description: |- 规则行列表(档案只有一对 settle_mode/settle_value;请写入 rules[0])。 可将 /share_rule/get@v1 的 rules[0] 原样回填:只读写 share_mode/share_value, 其余回显键同值忽略/异值拒绝(BUG-3D-45)。 items: type: object properties: rule_id: type: string description: |- 视图键(get=`{holder_type}:{holder_id}`)。同值忽略;异值 ⇒ 60004(BUG-3D-45)。 readOnly: true customer_id: type: string nullable: true description: |- get 恒 null。空/缺席/null=同值忽略;非空 ⇒ 60004(逐客户层已取消)。 readOnly: true customer_name: type: string nullable: true description: |- get 恒 null(columns_pending)。空/null=同值忽略;非空 ⇒ 60004。 readOnly: true rule_level: type: string description: |- get 恒 default。同值忽略;其它 ⇒ 60004(分层已取消;BUG-3D-45)。 readOnly: true remark: type: string nullable: true description: |- get 恒 null。空/null=同值忽略;非空 ⇒ 60004(档案无此列)。 readOnly: true status: type: string nullable: true description: |- get 回显(仅 partner 有真值,其余 null)。同值忽略;异值 ⇒ 60004。 readOnly: true holder_name: type: string description: 档案名回显。同值忽略;异值 ⇒ 60004。 readOnly: true holder_type: type: string description: 与顶层一致时可回填;异值 ⇒ 60004。 readOnly: true holder_id: type: string description: 与顶层一致时可回填;异值 ⇒ 60004。 readOnly: true row_version: type: integer description: |- ⛔ 乐观锁真源在 data 顶层。行内出现时须与顶层同值(同值忽略); 异值 ⇒ 60004 并提示须置于 data 顶层。 readOnly: true minimum: 1 share_mode: type: string description: |- 档案 settle_mode:仅 ratio/amount/per_account。 ratio_total/fixed_amount/percent 等别名已停用 ⇒ 60004(须写在 rules[0],顶层出现亦 60004)。 enum: - ratio - amount - per_account share_value: type: number description: |- 与 share_mode 成对:ratio 为 (0,1] 小数(界面百分数在录入侧换算); amount/per_account 为 >0(元)。两列皆 null=清空分成。列上界 NUMERIC(12,4)。 title: rules row_version: type: integer description: |- 档案乐观锁版本(必填)。取 /share_rule/get@v1 或列表回执的 rule.row_version; 与 operator/ops_team/partner update 同链。缺省=60004;不符=KLT-S407/60001。 须置于 data 顶层;误写在 rules[] 内且与顶层同值时可忽略(BUG-3D-45),异值仍 60004。 title: 乐观锁版本 minimum: 1 additionalProperties: false required: - holder_type - holder_id - rules - row_version title: 保存分成规则请求数据 required: - data x-error-codes: [60001, 60004, 60058] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseShareRuleSave' /share_rule/get_list@v1: post: summary: 分成规则列表 description: 按持有方等条件列出分成规则。 operationId: share_rule_get_list tags: - 成本与分成 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/share_rule/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 列表筛选参数 properties: holder_type: type: string description: 持有方类型 title: holder type holder_id: type: string description: 持有方 ID title: holder id page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字筛选(可选) title: 关键字 title: 分成规则列表请求数据 required: - data x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseShareRuleGetList' /share_rule/get@v1: post: summary: 分成规则详情 description: 按持有方一次返回四卡摘要与规则表。 operationId: share_rule_get tags: - 成本与分成 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/share_rule/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 分成规则详情请求参数 properties: holder_type: type: string description: 持有方类型:operator/ops_team title: holder type holder_id: type: string description: 持有方 ID title: holder id required: - holder_type - holder_id title: 分成规则详情请求数据 required: - data x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseShareRuleGet' /share_rule/delete@v1: post: summary: 删除分成规则 description: 按 rule_id 删除单条分成规则(亦可在 save 内以 0/负值删除)。 operationId: share_rule_delete tags: - 成本与分成 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/share_rule/code' x-action: $ref: '#/components/x-actions/delete/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 删除分成规则请求参数 properties: rule_id: type: string description: 规则 ID title: rule id required: - rule_id title: 删除分成规则请求数据 required: - data x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseShareRuleDelete' /opsview/home@v1: get: summary: 运维只读首页 description: 运维侧只读首页,返回工单/逾期等概览数据。 operationId: opsview_home tags: - 运维视图 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/opsview/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseOpsviewHome' /jobs/get_list@v1: get: summary: 定时作业清单 description: 返回 13 行清单(注册位 11 +标注行 2)及运行态:启用态、可操作性位、最近执行、五格计数、累计轮次、KPI 五卡与待补跑轮次。运行态取数失败时仍返回 13 行,runtime_available=false。 operationId: jobs_get_list tags: - 定时作业 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/jobs/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseJobsGetList' /jobs/toggle@v1: post: summary: 启停定时作业 description: 仅 admin。按作业 key 启停。 operationId: jobs_toggle tags: - 定时作业 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/jobs/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 启停定时作业请求参数 properties: key: type: string description: 作业键 title: key enabled: type: boolean description: 是否启用 title: enabled required: - key - enabled title: 启停定时作业请求数据 required: - data x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseJobsToggle' /jobs/runs@v1: post: summary: 作业执行记录 description: 查询执行记录,支持任务、关键字(执行编号/任务/结果说明,不检索对象级明细)、触发方式、执行结果与日期区间筛选;分页 page 0 基、page_size 默认 50。标注行返回空流水并标记 annotation=true。 operationId: jobs_runs tags: - 定时作业 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/jobs/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 作业执行记录请求参数 properties: key: type: string description: 作业键(可省略=全部任务) title: key job_key: type: string description: 作业键(契约字段名,可省略) title: 作业键 keyword: type: string description: 关键字(执行编号/任务/结果说明;不检索对象级明细) title: 关键字 trigger: type: string description: 触发方式 enum: - 定时 - 事件 - 人工 title: trigger result: type: string description: 执行结果 enum: - 成功 - 部分成功 - 失败 - 异常 title: result date_from: type: string description: 开始日期(YYYY-MM-DD,Asia/Shanghai 日界) pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}$' title: date from date_to: type: string description: 结束日期(YYYY-MM-DD,含当日) pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}$' title: date to page: type: integer description: 页码(0 基,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 50,上限 200) minimum: 1 maximum: 200 default: 50 title: 每页条数 title: 作业执行记录请求数据 required: - data x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseJobsRuns' /jobs/run_once@v1: post: summary: 补跑作业一次 description: 触发一次指定作业。prod 环境仅总运营可补跑。可选 key:SUB-EFF/SNAPSHOT-FREEZE/DELEG-SYNC/STOP-GEN/OVERDUE/AUTO-CLOSE/RECON/ORPHAN-CLEAN/REGION-WARM/ONEDIR-CHECK/OSS-ORPHAN-CLEAN/CONTRACT-RENEW。执行轮次落 bos_job_run,返回本轮五格计数与对象级明细。`AUTO-CLOSE`=「客户 7 天未确认则系统自动关闭」:扫停在 completed 的故障/售后客户自报单,完成日早于「业务日 − 7 天」的逐张置 settled(动作键 confirm_close、主体 AUTO-CLOSE);运维代建/系统生成单不进本作业(标记完成即结束)。`STOP-GEN`/`AUTO-CLOSE`/`CONTRACT-RENEW` 可选传 biz_date(YYYY-MM-DD,缺省=今天)补跑历史某日。 operationId: jobs_run_once tags: - 定时作业 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/jobs/code' x-action: $ref: '#/components/x-actions/manage/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 补跑作业一次请求参数 properties: key: type: string description: 作业键 enum: - SUB-EFF - SNAPSHOT-FREEZE - DELEG-SYNC - STOP-GEN - OVERDUE - AUTO-CLOSE - RECON - ORPHAN-CLEAN - REGION-WARM - ONEDIR-CHECK - OSS-ORPHAN-CLEAN - CONTRACT-RENEW title: key period: type: string description: 仅 RECON 用;指定已结束自然月(YYYY-MM)回填,前端传 1 基以外的月份格式即 11103 pattern: '^[0-9]{4}-[0-9]{2}$' title: 账期 biz_date: type: string description: 仅 STOP-GEN/AUTO-CLOSE/CONTRACT-RENEW 用;业务日(YYYY-MM-DD),缺省=当天。STOP-GEN 按「订阅结束日早于该业务日」扫描;CONTRACT-RENEW 按「合同结束日在 [业务日, 业务日+提前天数] 窗口内」扫描;幂等键含业务日 pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}$' title: 业务日 required: - key title: 补跑作业一次请求数据 required: - data x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseJobsRunOnce' /share_rule/param_summary@v1: post: summary: 分成参数摘要 description: |- 批量取分成方的分成方式/数值与覆盖客户数(分成管理页徽标);最多 500 项。 holders 必填且非空(null/缺键/[] ⇒ 60004);按 holder_type|holder_id 去重; holder_id 号段须匹配发号前缀(operator=OP-/partner=PT-/ops_team=OPS-),空串或前缀不符 ⇒ 11103; 未知主体逐项返回 configured=false+item_error( 整批 11104);share_value=十进制字符串(与档案 settle_value 同型)。 无 `share-rule/holder-options`(连字符)口;分成方候选=`operator`/`partner`/`ops_team` 的 `get_list`。 operationId: share_rule_param_summary tags: - 成本与分成 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/share_rule/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103, 11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseShareRuleParamSummary' /billing/config_get@v1: get: summary: 出账配置读 description: 默认对账日、成本生效口径、行版本与运营商对账账号列表(仅总运营)。 operationId: billing_config_get tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/billing_config/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseBillingConfigGet' /billing/config_update@v1: post: summary: 出账配置写 description: 乐观锁 row_version;提交同值 ⇒ changed=0 不写审计;运营商对账日只读(写口在 operator/update)。 operationId: billing_config_update tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/billing_config/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103, 60001] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseBillingConfigUpdate' /recon/periods@v1: get: summary: 对账期次下拉 description: 有数据的自然月(倒序),不并入 get_list。 operationId: recon_periods tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/recon/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseReconPeriods' /recon/get_list@v1: post: summary: 对账批次清单 description: 三统计卡与期次出账进度随同一响应下发;出账状态为派生筛选(settled/abnormal/unsettled)。 operationId: recon_get_list tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/recon/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseReconGetList' /recon/detail@v1: get: summary: 对账批次详情 description: 批次头+活跃明细行+动作可用性布尔位(服务端算)。 operationId: recon_detail tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/recon/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103, 11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseReconDetail' /recon/rerun@v1: post: summary: 人工补跑出账 description: 仅总运营。四道前置依次返回 KLT-H20502/60503/60504/60506;作废旧 failed 批并回填 replaced_by_batch_no。 operationId: recon_rerun tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/recon/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103, 60502, 60503, 60504, 60506, 60001] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseReconRerun' /recon/export_list@v1: post: summary: 导出对账清单(B 表) description: 按当前筛选结果导出批次清单一行一批次,末行合计;行集与 /recon/get_list 同源;未加筛选=导出全部批次;每次导出写操作日志(记筛选条件与导出批数)。 operationId: recon_export_list tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/recon/code' x-action: $ref: '#/components/x-actions/export/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseReconExportList' /recon/export_detail@v1: post: summary: 导出账单明细(A 表) description: 导出本批交给分成方核对的账单明细,一行一条末行本批合计;本批未执行或无明细返回 KLT-H20505(不产文件不写审计)。 operationId: recon_export_detail tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/recon/code' x-action: $ref: '#/components/x-actions/export/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103, 11104, 60505] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseReconExportDetail' /view/partner_recon@v1: get: summary: 合伙人与运维团队本方对账合并页 description: V-。卡 1(分成方式与取值)+卡 2/3(批次数与明细条数)+表 1(本方对账清单)+表 2(本方账单明细)+卡 4(分成合计双值)+月份选项一次返回;行集恒等于「分成方=本方」,入参只有 month/keyword/page/page_size,任何范围类入参 ⇒ 11103。快照未建立 ⇒ snapshot_state=not_ready(整页态,仍回 200 与空骨架);月份选项取数失败 ⇒ month_options="failed"。 operationId: view_partner_recon tags: - 合伙人与运营商只读视图 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/view/code' x-action: $ref: '#/components/x-actions/partner_recon/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103, 11104] parameters: - name: month in: query required: false schema: type: string description: 自然月 YYYY-MM;省略=全部自然月 - name: keyword in: query required: false schema: type: string description: 对账单号/明细号模糊匹配(不分大小写) - name: page in: query required: false schema: type: integer minimum: 0 default: 0 description: 页码(0 基索引) - name: page_size in: query required: false schema: type: integer minimum: 1 maximum: 200 default: 20 responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseViewPartnerRecon' /bill/get_list@v1: post: summary: 账单明细清单 description: 只含进入 executed 批次的 active 行。 operationId: bill_get_list tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/bill/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseBillGetList' /bill/detail@v1: get: summary: 账单明细详情 description: 头+成本明细+在期分账号+同订阅其他分成方,七段同源一个接口。 operationId: bill_detail tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/bill/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103, 11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseBillDetail' /correction/create@v1: post: summary: 登记出账更正 description: 表单仅两字段(关联账单+错误内容);KLT-H20501 识别不到归属、KLT-H20507 候选未出账。不接受入参 `scope`/`severity`/`region_node_id`(三者皆为系统推导值),出现即 11103 且 `data.fields[]` 逐键给出原因。 operationId: correction_create tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/correction/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103, 11104, 60501, 60507, 60056] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCorrectionCreate' /correction/get_list@v1: post: summary: 出账更正列表 description: 自然月筛选不预选;无编辑/删除/导出入口。 operationId: correction_get_list tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/correction/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCorrectionGetList' /correction/detail@v1: get: summary: 出账更正详情 description: 命中/未命中两种展示同源;越权与查无同码(11104)。 operationId: correction_detail tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/correction/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103, 11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCorrectionDetail' /correction/draft_save@v1: post: summary: 保存更正草稿 description: 按「admin × 本机」至多一份;表单整体 ≤64KB;不接受 user_id。 operationId: correction_draft_save tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/correction/code' x-action: $ref: '#/components/x-actions/update/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11103] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCorrectionDraftSave' /correction/draft_get@v1: get: summary: 读取更正草稿 description: 无草稿 ⇒ 成功+空对象(不报 404/不报业务码)。 operationId: correction_draft_get tags: - 计费与对账 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/correction/code' x-action: $ref: '#/components/x-actions/view/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCorrectionDraftGet' /ticket/list@v1: post: summary: 工单列表查询 description: 跨 6 类工单统一分页;行集=判权谓词+可见范围五档+数据权限;排序=是否已超期→优先级→提醒时限。出参每行带 row_version 与可执行动作集合(服务端计算,前端不自拼)。主要失败:网关 11104(缺权限)。 operationId: ticket_list tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 工单列表查询请求参数 properties: ticket_types: type: array description: 工单类型(英文码):开户、服务开通、到期停机、服务停用、故障处理、售后处理;缺省=全部。兼容单数写法 `ticket_type`(传单字符串或逗号分隔串同样生效) items: type: string title: ticket_types元素 title: 工单类型清单 statuses: type: array description: 工单状态(未分派/待处理/处理中/已满足闭环/待回执/已办结);缺省=全部。兼容单数写法 `status`(传单字符串或逗号分隔串同样生效) items: type: string title: statuses元素 title: statuses sources: type: array description: 来源:self/cust_svc/ops/system;缺省=全部。兼容单数写法 `source`(传单字符串或逗号分隔串同样生效) items: type: string title: sources元素 title: sources date_from: type: string description: 建单日期起(YYYY-MM-DD) title: date from date_to: type: string description: 建单日期止(YYYY-MM-DD) title: date to keyword: type: string description: 关键字:标题/客户名/工单号/关联单号/网络账号/工单 ID(雪花主键,纯数字关键字按整值精确命中——即审计日志「对象」列那串数字;不做前缀/模糊匹配,避免 1~4 位数字命中全表;不含报文原文) title: 关键字 subscription_id: type: string description: 订单(订阅)过滤:只回本订单的工单(订单详情「关联工单」现查,P3-D6)。空串=不过滤 title: 订阅 ID contract_id: type: string description: >- 合同过滤:命中主订阅合同、并单成员订阅、续签来源合同(renew_from_contract_id) 与续签结果合同(renew_contract_id)。合同下既无订阅也无续签关联时回空集(不退化成不过滤)。空串=不过滤 title: 合同 ID customer_id: type: string description: 客户过滤:只回本客户的工单。空串=不过滤 title: 客户 ID assignee: type: string description: 责任人过滤:只接受 `me`(服务端按会话解析成当前登录账号,与可见性谓词逐段取交);供「我的待办」把可见行集收窄到本人名下。 接受任意 user_id(按他人过滤不开放),其它取值回 11103。空串=不过滤 title: assignee include_status_totals: type: boolean description: true=附带可见范围内各 status 张数(`data.status_totals`);不受本请求 statuses/类型/关键字/日期筛影响。台账 Tab 角标用,改前=逐状态 page_size=1 连打 title: include status totals page: type: integer description: 页码,从 1 起(越界收敛,不报错) title: 页码 page_size: type: integer description: 每页条数,1–100,缺省 10 title: 每页条数 title: 工单列表查询请求数据 required: - data x-error-codes: [11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketList' /ticket/detail@v1: get: summary: 工单详情查询 description: >- 查询工单详情。 返回工单头、处理时间线,以及按类型展开的子域(回填、分账号、开停记录、竣工、报文、故障、材料)。 另含只读块 `construction_guide`(套餐、带宽、席位、份数与境外 IP 权益等施工指引)。 operationId: ticket_detail tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/detail/code' x-version: v1 x-permission-visibility: catalog parameters: - name: ticket_id in: query required: false description: 工单标识(内部主键)。注意:与 ticket_no 二者至少给一个,都给以本参数为准 schema: type: string - name: ticket_no in: query required: false description: 业务工单号(形如 T-20261114-5968)。客户门户不暴露内部主键,列表只回 ticket_no, 故详情口按本参数定位;反查在可见性谓词之内执行,查无与越权同回 60005 (与按主键查无同一口径,不说破「存在但你不能看」) schema: type: string - name: read_event in: query required: false description: 阅读推进开关:true 时才尝试待处理→处理中 schema: type: string x-error-codes: [11103, 60005] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketDetail' /ticket/pending_queue@v1: post: summary: 待分派队列查询 description: 运维主管/运维组负责人的分派工作台数据源;权限键与工单列表分列,不复用。行集=可见范围内未分派+待处理(注意:待处理入列理由待裁定,18册 )。 operationId: ticket_pending_queue tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/pending_queue/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 待分派队列查询请求参数 properties: ticket_types: type: array description: 工单类型;缺省=本人团队可受理全部类型(授权范围是上限) items: type: string title: ticket_types元素 title: 工单类型清单 assign_team_id: type: string description: 目标运维团队;缺省=本人所辖团队;指定时必须是本人所辖团队 title: 承接团队 ID keyword: type: string description: 关键字,含义同工单列表 title: 关键字 include_candidates: type: boolean description: false=只要 total/行卡片(徽标/总览/队列首屏),跳过候选人装配;缺省/true=待分派页点开指定成员时现算 candidates[] title: include candidates page: type: integer description: 页码,从 1 起(越界收敛,不报错) title: 页码 page_size: type: integer description: 每页条数,1–100,缺省 10 title: 每页条数 title: 待分派队列查询请求数据 required: - data x-error-codes: [11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketPendingQueue' /ticket/todo_counts@v1: get: summary: 待办计数查询 description: 一次返回四个角标:未分派、超期、待回填、报文待处置。不做超期明细列表(超期明细走工单列表的已超期筛选)。 operationId: ticket_todo_counts tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/todo_counts/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11104, 60201] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketTodoCounts' /ticket/trace@v1: get: summary: 跨主体追溯查询 description: 按工单号/报文单号/竣工号任一单值精确定位,返回工单+开停记录+报文+竣工回传+回执的关联链。不支持关键字模糊。主要失败:KLT-G20415(无法定位)。 operationId: ticket_trace tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/trace/code' x-version: v1 x-permission-visibility: catalog parameters: - name: ticket_no in: query required: false description: 恪澜通工单号 schema: type: string - name: carrier_order_no in: query required: false description: 运营商单号 schema: type: string - name: completion_no in: query required: false description: 竣工单号 schema: type: string - name: ticket_id in: query required: false description: 工单标识 schema: type: string x-error-codes: [11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketTrace' /message/pending@v1: post: summary: 报文待处置队列查询 description: 运维主管/运维组负责人的报文处置工作台数据源;不返回 raw_payload 正文(D7、),只回动作/单号/归属态+归属失败原因码等已脱敏列。 operationId: message_pending tags: - 报文人工处置 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/message/code' x-action: $ref: '#/components/x-actions/pending/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 报文待处置队列查询请求参数 properties: page: type: integer description: 页码,从 1 起(越界收敛,不报错) title: 页码 page_size: type: integer description: 每页条数,1–100,缺省 10 title: 每页条数 title: 报文待处置队列查询请求数据 required: - data x-error-codes: [11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseMessagePending' /ticket/create@v1: post: summary: 新建工单 description: "新建工单(六类共用入口)。 一次提交完成:在办唯一性校验 → 发号 → 建单、状态历史、建单动作、首条处理记录与初始材料。\n不得传入金额、资费、带宽购买、对账字段,也不得传入 `status`/`assign_*`(出现即 `11103`)。\n角色与类型闸门、主要失败码见各字段说明与 `x-error-codes`。" operationId: ticket_create tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 新建工单请求参数 properties: ticket_type: type: string description: 工单类型(6 个英文码之一:开户、服务开通、到期停机、服务停用、故障处理、售后处理) title: 工单类型 customer_id: type: string description: 客户标识 title: 客户 ID title: type: string description: 工单标题 title: 标题 detail: type: string description: 工单详情(工单描述) title: detail subscription_id: type: string description: 关联订阅标识;服务开通类可不关联。`ticket_type=service_stop` 时必填,且该订阅必须属于 `customer_id` 那个客户、服务未到期 title: 订阅 ID confirm: type: boolean description: 提交时二次确认。客户两档发起 `fault`/`after_sale` 必须 `true`;运营发起 `service_stop` 必须 `true`(缺省或非 `true` 报 11103,/) title: confirm materials: type: array description: 初始材料(建单即随附),最多 5 个;超限报 11103 items: type: object properties: oss_key: type: string description: OSS 对象键 file_name: type: string description: 原始文件名 size_bytes: type: integer description: 文件字节数 title: materials required: - ticket_type - customer_id - title title: 新建工单请求数据 required: - data x-error-codes: [11103, 11104, 60001, 60108, 60804] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketCreate' /ticket/assign@v1: post: summary: 手动分派工单 description: 运维主管/组负责人在待分派队列指定处理人。目标处理人必须是在职人员∧本人团队∧持有该单类型;不改已完成/已办结单;不分给自己(自接单走创建即自assign 路径)。主要失败:11104、KLT-G20401、KLT-G20416、KLT-G20417。 operationId: ticket_assign tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/assign/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 手动分派工单请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID assignee_user_id: type: string description: 目标责任人标识 title: 处理人用户 ID required: - ticket_id - assignee_user_id title: 手动分派工单请求数据 required: - data x-error-codes: [11103, 60401, 60402] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketAssign' /ticket/dispatch_auto@v1: post: summary: 自动分派(整批) description: 对目标团队队列内可见的未分派单逐单按负载量最少判定:唯一最少⇒分派到人(assign_type=auto);并列最少/目标团队零人持有该类型⇒不分派,该单留队列并在结果里给出原因。不接受队列筛选条件入参。 operationId: ticket_dispatch_auto tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/dispatch_auto/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 自动分派(整批)请求参数 properties: team_id: type: string description: 目标运维团队;缺省=本人所辖团队 title: 团队 ID required: - team_id title: 自动分派(整批)请求数据 required: - data x-error-codes: [11103, 60402] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketDispatchAuto' /ticket/delivery_reissue@v1: post: summary: 按订阅补发交付工单 description: |- 订阅已落库但无交付工单(或历史静默漏单)时,运营按 subscription_id 补发 open/service_open/updown。仍走 open_gen(含并单/重放保护);团队不承接类型时前置拒绝。 operationId: ticket_delivery_reissue tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/create/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object properties: data: type: object properties: subscription_id: type: string description: 要补发交付工单的订阅标识 title: 订阅 ID required: - subscription_id description: 按订阅补发交付工单请求参数 title: 按订阅补发交付工单请求数据 required: - data x-error-codes: [11103, 11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketDeliveryReissue' /ticket/delegate@v1: post: summary: 交接转派 description: 人员交接时把名下未闭环工单批量改派给承接人;不得改派已完成单。承接人必须在职∧同团队∧持有对应工单类型;出参逐单结果,未成功单保持未分派并给原因。 operationId: ticket_delegate tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/delegate/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 交接转派请求参数 properties: ticket_id: type: string description: 被转派的工单标识 title: 工单 ID trustee_user_id: type: string description: 承接人标识 title: trustee user id required: - ticket_id - trustee_user_id title: 交接转派请求数据 required: - data x-error-codes: [60401, 60402, 60416] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketDelegate' /ticket/start@v1: post: summary: 进入处理中(阅读推进) description: 落库入口是工单详情读事件,不是人工按钮。分支:待处理→处理中;处理中幂等成功;未分派不推进回成功;已完成/已办结报 KLT-G20401。 operationId: ticket_start tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/start/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 进入处理中(阅读推进)请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID required: - ticket_id title: 进入处理中(阅读推进)请求数据 required: - data x-error-codes: [60401] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketStart' /ticket/backfill@v1: post: summary: 回填竣工信息 description: >- 开户/到期停机/服务停用/变更协议(`updown`)共用,按类型分叉必填矩阵。 一次原子提交:回填头→明细→开停记录→分账号事实→客户状态+变更历史→订阅实际开通日→处理记录; `updown` 另同批勾选清单(`check_item_ids`)写核对留痕。境外 IP 的 PIN/CPID 经 Keybox 加密入库, 出参不出现明文。`pin_bind_mode`:`shared`(默认,PIN 挂 IP 行)/`per_account`(一账号一 PIN)。 可选 `evidence_material_ids`(`kind=backfill_evidence`)。正式提交成功后删除该单草稿。 :不再与合同/订阅交叉比对。主要失败:11103、KLT-G20404、KLT-G20417、11112。 operationId: ticket_backfill tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/backfill/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 回填竣工信息请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID exec_conclusion: type: string description: 执行结论:success/partial/fail;partial 存行不生效 title: exec conclusion conclusion_note: type: string description: 结论说明;非成功时必填(KLT-G20404) title: conclusion note actual_opened_date: type: string description: 实际开通日(YYYY-MM-DD,开户类三件套之一) title: actual opened date stop_done_date: type: string description: 停机完成日(YYYY-MM-DD,停机类三件套之一) title: stop done date builder_user_id: type: string description: 施工人(可选) title: builder user id evidence_text: type: string description: 凭证说明 title: evidence text pin_bind_mode: type: string description: PIN 绑定模式;缺省 shared enum: - shared - per_account title: pin bind mode route_rows: type: array description: 组一+组二回填行(按分账号一行;条数比对基准=勾选开账号数) items: type: object properties: sub_account_id: type: string description: 分账号标识;未传⇒视为漏填 network_account_name: type: string description: 网络账号名 intranet_ip: type: string description: 内网 IP subnet_mask: type: string description: 子网掩码 gateway: type: string description: 网关 vlan: type: string description: VLAN vni: type: string description: VNI src_endpoint: type: string description: 源端 dst_endpoint: type: string description: 目的端 egress_pop: type: string description: 出口 POP down_mbps: type: number description: 下行带宽 Mbps(信息项,不参与计价) up_mbps: type: number description: 上行带宽 Mbps(信息项) open_this_time: type: boolean description: 「随本次开通」勾选位,缺省=已勾选 title: route rows ip_rows: type: array description: >- 组三境外 IP 回填行。每行带 `action`(allocate/release)。 `per_account` 模式下每绑定账号独立 PIN(经 `sub_account_ids`)。 items: type: object properties: action: type: string description: 行动作:allocate(缺省)/release;其它值 11103 enum: - allocate - release egress: type: string description: 出口 overseas_ip: type: string description: 境外 IP 地址 ip_type: type: string description: IP 类型(fixed_ip/nat_forward) bandwidth_mbps: type: integer description: 带宽档位 Mbps(信息项) pin: type: string description: PIN(明文入参,服务端经 Keybox 加密入库,不明文落库) cpid: type: string description: CPID(同上) sub_account_ids: type: array description: 绑定分账号(per_account 时每账号须有独立 PIN) items: type: string title: ip rows check_item_ids: type: array description: 变更协议(updown)同批勾选的服务项;其它类型忽略 items: type: string title: check_item_ids元素 title: check item ids check_note: type: string description: 变更协议核对说明(可选) title: check note evidence_material_ids: type: array description: 已登记的回填凭证材料 ID(kind=backfill_evidence) items: type: string title: evidence_material_ids元素 title: evidence material ids ext: type: object description: 扩展表单(可选);无已发布模板时忽略 properties: template_id: type: string template_version: type: integer values: type: object additionalProperties: true title: ext expected_version: type: integer description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验 title: expected version required: - ticket_id title: 回填竣工信息请求数据 required: - data x-error-codes: [11103, 60401, 60403, 60404, 60417] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketBackfill' /ticket/backfill_draft@v1: post: summary: 暂存施工回填草稿 description: >- 服务端暂存回填表单(方案 A)。鉴权同正式回填; 不调 open_stop_apply、 不改工单状态、 不递增 attempt_count。PIN/CPID 仅密文入库;读详情 `backfill_draft` 与本口应答均不回明文。 正式 `backfill@v1` 成功后删除该单草稿。乐观锁用草稿自有 `row_version`(与正式回填锁分离)。 operationId: ticket_backfill_draft tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/backfill_draft/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 请求参数(字段子集同 backfill,可缺省;中间态允许) properties: ticket_id: type: string description: 工单标识 title: 工单 ID exec_conclusion: type: string title: exec conclusion description: 字段 exec_conclusion。 conclusion_note: type: string title: conclusion note description: 字段 conclusion_note。 actual_opened_date: type: string title: actual opened date description: 字段 actual_opened_date。 stop_done_date: type: string title: stop done date description: 字段 stop_done_date。 evidence_text: type: string title: evidence text description: 字段 evidence_text。 pin_bind_mode: type: string enum: - shared - per_account title: pin bind mode description: 字段 pin_bind_mode。 route_rows: type: array items: type: object additionalProperties: true title: route_rows元素 title: route rows description: 字段 route_rows。 ip_rows: type: array items: type: object additionalProperties: true title: ip_rows元素 title: ip rows description: 字段 ip_rows。 check_item_ids: type: array items: type: string title: check_item_ids元素 title: check item ids description: 字段 check_item_ids。 check_note: type: string title: check note description: 字段 check_note。 evidence_material_ids: type: array items: type: string title: evidence_material_ids元素 title: evidence material ids description: 字段 evidence_material_ids。 ext: type: object additionalProperties: true title: ext description: 字段 ext。 expected_version: type: integer description: 草稿 row_version;缺省=不做并发校验 title: expected version required: - ticket_id title: 暂存施工回填草稿请求数据 required: - data x-error-codes: [11103, 60401, 60417] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketBackfillDraft' /ticket/check_done@v1: post: summary: 服务项完成直接闭环 description: >- 服务开通/故障处理/售后处理勾选服务项并直接闭环;不关联客户/订阅、不回填、不生成回传。 :`updown`(变更协议) 经本口——须走 `backfill@v1` 的「核对并回填」合并提交 (`check_item_ids`+回填同事务),单独核对会与回填双入口死锁。主要失败:KLT-G20404、KLT-G20417。 operationId: ticket_check_done tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/check_done/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 服务项完成直接闭环请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID item_ids: type: array description: 本次勾选完成的服务项标识;不由服务端推导 items: type: string title: item_ids元素 title: item ids note: type: string description: 说明(故障/售后必填;服务开通可不填) title: 备注 expected_version: type: integer description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验 title: expected version required: - ticket_id title: 服务项完成直接闭环请求数据 required: - data x-error-codes: [60401, 60404, 60417] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketCheckDone' /ticket/mark_done@v1: post: summary: 标记已处理(仅服务开通) description: 不走手选工单类型:只有未关联客户/订阅的服务开通工单可走通路 5。必填:未关联原因+说明+处理人(缺项报 KLT-G20404)。前置:服务开通∧客户为空∧订阅为空⇒已办结。注意: ault`/`after_sale`(其余类型报 11103),推到 completed 后若该单是运维代建/系统生成(submitter_type != 'customer')⇒ 同批直达 settled 并补一条 confirm_close 处理记录,出参 `status='settled'`、`auto_settled=true`、`settled_at`;客户自报的故障/售后行为不变(停在 completed 等 `/ticket/confirm_close@v1`,客户 7 天未确认改由作业 `AUTO-CLOSE` 自动关闭)。 operationId: ticket_mark_done tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/mark_done/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 标记已处理(仅服务开通)请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID note: type: string description: 说明(必填,含未关联原因) title: 备注 expected_version: type: integer description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验 title: expected version required: - ticket_id - note title: 标记已处理(仅服务开通)请求数据 required: - data x-error-codes: [11103, 60401, 60417] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketMarkDone' /ticket/close@v1: post: summary: 关闭工单 description: 仅未分派/待处理可关闭。不得把处理中的单直接关闭(必须先撤回)。主要失败:KLT-G20401、KLT-G20417。 operationId: ticket_close tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/close/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 关闭工单请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID reason: type: string description: 关闭原因(必填) title: reason expected_version: type: integer description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验 title: expected version required: - ticket_id - reason title: 关闭工单请求数据 required: - data x-error-codes: [60401, 60409, 60413, 60417] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketClose' /ticket/withdraw@v1: post: summary: 撤回工单 description: 撤回后状态回未分派、清空 assign_*、责任人写处理记录。不撤回已完成/已办结单。主要失败:KLT-G20401。 operationId: ticket_withdraw tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/withdraw/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 撤回工单请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID reason: type: string description: 撤回原因(必填) title: reason required: - ticket_id - reason title: 撤回工单请求数据 required: - data x-error-codes: [60401, 60409, 60414] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketWithdraw' /ticket/confirm_close@v1: post: summary: 确认闭环 description: 闭环方式=回执类且已回传未回执时的人工兜底:待回执→已办结。不得在闭环方式=完成后即闭环下调用(KLT-G20415)。 operationId: ticket_confirm_close tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/confirm_close/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 确认闭环请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID expected_version: type: integer description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验 title: expected version required: - ticket_id title: 确认闭环请求数据 required: - data x-error-codes: [60401, 60414, 60417] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketConfirmClose' /ticket/defer@v1: post: summary: 临时延期(延后提醒) description: 两条分支:开停记录提醒(执行结论待处理)与在办未回填提醒(服务开通且未回填)。延期目标日由服务端固定为「今天+超期提醒天数」,不得入参传天数。注意:设计正文的「天数非法 11103」在本实现不存在(无天数入参)。主要失败:KLT-G20415。 operationId: ticket_defer tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/defer/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 临时延期(延后提醒)请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID defer_scope: type: string description: 延期对象:open_stop(开停记录提醒)/ticket(在办未回填提醒) title: defer scope required: - ticket_id title: 临时延期(延后提醒)请求数据 required: - data x-error-codes: [11103, 60401, 60415] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketDefer' /ticket/urge@v1: post: summary: 站内催办(向「卡在别人手里」的对家发催办信) description: |- 向当前等待确认的对家发送站内催办信。 仅当工单停在 `completed`、等待对家确认时可调用;消息写入站内提醒箱(`kind=ticket_urge`)。 operationId: ticket_urge tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/urge/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 站内催办(向「卡在别人手里」的对家发催办信)请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID required: - ticket_id title: 站内催办(向「卡在别人手里」的对家发催办信)请求数据 required: - data x-error-codes: [11103, 11104, 60424] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketUrge' /ticket/revert@v1: post: summary: 退回重办 description: 把「已完成待确认(completed)/竣工驳回(rejected)」退回「处理中(processing)」,判权=总运营(全平台)或该单承接团队的主账号(仅本团队, 。 已办结(settled)与已关闭(terminated)不可退回——终态只读,改历史走人工数据变更+审计。只重开工单,不回滚服务开通状态、实际开通日与已生成的竣工记录。主要失败:KLT-G20409、KLT-G20417、KLT-G20418、11104(非总运营且非本团队主)。 operationId: ticket_revert tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/revert/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 退回重办请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID reason: type: string description: 退回原因(必填,写入审计) title: reason expected_version: type: integer description: 乐观并发基线(读详情时的 row_version);缺省=不做并发校验 title: expected version required: - ticket_id - reason title: 退回重办请求数据 required: - data x-error-codes: [60409, 60417, 60418] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketRevert' /completion/generate@v1: post: summary: 生成竣工回传文件 description: 生成出参=文件元信息+可下载凭证;不同步返回文件字节流。回填未通过闸门(结论=成功∧明细齐∧比对通过)时不生成(KLT-G20401)。重复生成⇒作废旧版本、留最新并写处理记录。 operationId: completion_generate tags: - 竣工与回执 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/completion/code' x-action: $ref: '#/components/x-actions/generate/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 生成竣工回传文件请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID required: - ticket_id title: 生成竣工回传文件请求数据 required: - data x-error-codes: [60401, 60404, 60410, 60417] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCompletionGenerate' /completion/receipt@v1: post: summary: 录入运营商回执 description: 先判定完成日:回填三件套齐全⇒取回填日期值;缺失⇒不取回执录入当日(KLT-G20418),须先补录。录入⇒待回执→已办结+AUTO-CLOSE;同事务写完成日与闭环方式来源=回执。主要失败:KLT-G20418、KLT-G20417。注意:该单已被 `completion/reject@v1` 登记驳回时本接口默认拒绝(KLT-G20423 互斥);唯一出口=总运营提交 `override_state_conflict=true`( 纠正窗口,以回执为准;非 admin 提交该参数同样落 KLT-G20423)。 operationId: completion_receipt tags: - 竣工与回执 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/completion/code' x-action: $ref: '#/components/x-actions/receipt/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 录入运营商回执请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID completion_no: type: string description: 竣工单号;缺省取该单当前有效回传版本 title: completion no external_order_no: type: string description: 运营商单号 title: external order no receipt_remark: type: string description: 回执说明 title: receipt remark expect_version: type: integer description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验 title: 期望版本 override_state_conflict: type: boolean description: 纠正窗口:仅 admin、仅当该单处于竣工驳回态有效;以回执为准闭环,审计记「驳回态冲突纠正」并引用被推翻的驳回序号,不改写原驳回行。非驳回态提交本参数不产生任何效果。 title: override state conflict required: - ticket_id title: 录入运营商回执请求数据 required: - data x-error-codes: [60401, 60410, 60411, 60417, 60423] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCompletionReceipt' /completion/reject@v1: post: summary: 登记竣工驳回 description: 待回执→竣工驳回( 方案 (d));理由必填(枚举 1~3 个,归一化后首位=主原因;`其他` 不得与其它项混选)+补充说明 5~500 字;只可驳回该单当前最新一次回传,且工单须停在待回执态;不从已办结驳回( 同闸,落 KLT-G20423)。同事务写 ticket_completion_reject + 处理记录 `completion_reject` + 审计;不接受调用方传入驳回时刻(一律服务端时间)、不新发驳回号段(对外引用=ticket_id+reject_seq)。主要失败:KLT-G20421、KLT-G20422、KLT-G20423、KLT-G20417。 operationId: completion_reject tags: - 竣工与回执 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/completion/code' x-action: $ref: '#/components/x-actions/reject/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 登记竣工驳回请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID reason_codes: type: array description: 驳回原因码,1~3 个;「其他」不得与其它项混选;服务端按枚举定义序归一化后落库 items: type: string enum: - doc_mismatch - resource_unavailable - duplicate - out_of_scope - doc_missing - site_not_ready - other title: reason_codes元素 minItems: 1 maxItems: 3 title: reason codes reason_text: type: string description: 补充说明,5~500 字(按字符计) title: reason text completion_no: type: string description: 期望驳回的竣工单号;与当前最新一次回传不一致 ⇒ KLT-G20421(兜住拿旧快照点按钮) title: completion no external_reject_no: type: string description: 运营商内部编号;不在门户/合伙人回显 title: external reject no expect_version: type: integer description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验 title: 期望版本 required: - ticket_id - reason_codes - reason_text title: 登记竣工驳回请求数据 required: - data x-error-codes: [60401, 60410, 60421, 60422, 60423, 60417] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseCompletionReject' /message/attach@v1: post: summary: 挂接并生效 description: 人工侧只有「挂接并生效」一个动作(,):一次原子提交⇒报文置已生效+工单侧生效链(与人工回填同一个函数)+回填头改写为报文内容+明细清空+处理记录【运营商反馈】前缀。不得人工指定生效日期(取报文实际日期)。报文动作与工单类型不符报 KLT-G20407(提示语逐字照抄)。主要失败:KLT-G20401、KLT-G20407、KLT-G20419、KLT-G20417。 operationId: message_attach tags: - 报文人工处置 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/message/code' x-action: $ref: '#/components/x-actions/attach/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 挂接并生效请求参数 properties: message_id: type: string description: 报文标识 title: 消息 ID ticket_id: type: string description: 拟挂接的工单标识 title: 工单 ID expect_version: type: integer description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验 title: 期望版本 required: - message_id - ticket_id title: 挂接并生效请求数据 required: - data x-error-codes: [11104, 60401, 60407, 60419] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseMessageAttach' /message/void@v1: post: summary: 作废报文 description: 置已作废+原因必填(缺原因报 11103)。不删除 raw_payload(:作废后仍可读)。主要失败:KLT-G20419。 operationId: message_void tags: - 报文人工处置 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/message/code' x-action: $ref: '#/components/x-actions/void/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 作废报文请求参数 properties: message_id: type: string description: 报文标识 title: 消息 ID void_reason: type: string description: 作废原因(必填) title: void reason expect_version: type: integer description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验 title: 期望版本 required: - message_id - void_reason title: 作废报文请求数据 required: - data x-error-codes: [60412, 60419] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseMessageVoid' /message/confirm_conflict@v1: post: summary: 冲突确认 description: 处置方式二选一:维持当前值(仅记录不生效)/采用外部值(触发与挂接相同的生效逻辑)。主要失败:KLT-G20419。 operationId: message_confirm_conflict tags: - 报文人工处置 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/message/code' x-action: $ref: '#/components/x-actions/confirm_conflict/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 冲突确认请求参数 properties: message_id: type: string description: 报文标识 title: 消息 ID disposition: type: string description: 处置方式:as_is(维持当前值)/apply_external(采用外部值并生效);缺省 as_is title: disposition note: type: string description: 处置说明 title: 备注 expect_version: type: integer description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验 title: 期望版本 required: - message_id title: 冲突确认请求数据 required: - data x-error-codes: [60401, 60419] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseMessageConfirmConflict' /message/rematch@v1: post: summary: 改挂归属工单 description: 改挂到另一张工单+写改挂审计;不触发生效(:生效仍走挂接口)。主要失败:KLT-G20407、KLT-G20419。 operationId: message_rematch tags: - 报文人工处置 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/message/code' x-action: $ref: '#/components/x-actions/rematch/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 改挂归属工单请求参数 properties: message_id: type: string description: 报文标识 title: 消息 ID ticket_id: type: string description: 改挂目标工单标识 title: 工单 ID expect_version: type: integer description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验 title: 期望版本 required: - message_id - ticket_id title: 改挂归属工单请求数据 required: - data x-error-codes: [60407, 60419] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseMessageRematch' /ticket/material_grant@v1: post: summary: 材料上传/下载凭证 description: 上传两段(申请凭证 → 直传 → material_attach 登记);下载一段(传 material_id 或 oss_key,服务端现签并直接回 download_url)。一次一凭证、短时效、绑定对象键;不出批量凭证、不开通用上传口。purpose=upload 需 file_name,purpose=download 需 material_id 或 oss_key。终态(settled/terminated)只拦上传, 拦下载——竣工材料事后仍可导出。不接受对象键上的任意路径。主要失败:11103、60056、KLT-G20401、KLT-G20420。 operationId: ticket_material_grant tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/material_grant/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 材料上传/下载凭证请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID kind: type: string description: 材料类别:backfill_evidence(回填凭证)/handover(开通准备资料)/completion_pdf(竣工回传)/construct_material(补充过程材料)/submit_evidence(客户提交材料)。前两类中的回填凭证与竣工回传由服务端在业务事务内登记,不经 material_attach title: 类型 file_name: type: string description: 原始文件名(purpose=upload 时必填) title: 文件名 purpose: type: string description: 用途:upload(上传,缺省)/download(下载) title: purpose material_id: type: string description: 材料主键(purpose=download 二选一,首选)。detail@v1 不下发对象键,列表页下载只能靠它 title: material id oss_key: type: string description: OSS 对象键(purpose=download 二选一,仅限刚由 material_attach 换回的同一次交互) title: 对象键 required: - ticket_id - kind title: 材料上传/下载凭证请求数据 required: - data x-error-codes: [11103, 11104, 60401, 60804] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketMaterialGrant' /ticket/material_attach@v1: post: summary: 登记材料元信息 description: 登记文件名+大小+上传人+时间+可下载凭证。不把上传动作记进 ticket_process_log(D2)。数量上限:工单材料 5 份、故障处理材料 5 份(超限报 KLT-G20420)。主要失败:KLT-G20420、60056。 operationId: ticket_material_attach tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/material_attach/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 登记材料元信息请求参数 properties: ticket_id: type: string description: 工单标识(字符串下发,服务侧转 bigint) title: 工单 ID kind: type: string description: 材料类别前缀:attachment/opening/alteration/return/other title: 类型 oss_key: type: string description: OSS 对象键 title: 对象键 file_name: type: string description: 原始文件名 title: 文件名 size_bytes: type: integer description: 文件字节数 title: size bytes required: - ticket_id - kind - oss_key title: 登记材料元信息请求数据 required: - data x-error-codes: [11103, 11104, 60401] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketMaterialAttach' /ticket/config_get@v1: get: summary: 域配置查询(闭环方式) description: 出参=闭环方式当前值+版本+更新人/更新时间+生效说明;不暴露超期天数等系统参数。 operationId: ticket_config_get tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/config_get/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketConfigGet' /ticket/config_update@v1: post: summary: 域配置修改(闭环方式) description: 仅 admin;一次原子提交⇒配置更新+历史追加+审计;不改既有工单的闭环方式。主要失败:KLT-G20417。 operationId: ticket_config_update tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/config_update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object description: 统一信封请求体,业务字段放在 data 内 properties: data: type: object description: 域配置修改(闭环方式)请求参数 properties: closure_mode: type: string description: 闭环方式:receipt(回执闭环)/on_complete(完成后即闭环) title: closure mode expect_version: type: integer description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验 title: 期望版本 reason: type: string description: 变更原因 title: reason required: - closure_mode title: 域配置修改(闭环方式)请求数据 required: - data x-error-codes: [11103, 11104, 60001] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketConfigUpdate' /ticket/form_template_get@v1: get: summary: 施工回填扩展模板查询 description: 运营侧可读;可选 ticket_type。回当前 published、draft(若有)、版本列表。权限档对齐 config_get。 operationId: ticket_form_template_get tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/config_get/code' x-version: v1 x-permission-visibility: catalog parameters: - name: ticket_type in: query required: false schema: type: string description: open/updown/expiry_stop/service_stop;缺省=四类全量 x-error-codes: [11103, 11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketFormTemplateGet' /ticket/form_template_save@v1: post: summary: 施工回填扩展模板保存草稿 description: 仅 admin;每类型至多一个 draft;schema 非法 ⇒ KLT-G20425;并发 ⇒ KLT-S407。权限档对齐 config_update。 operationId: ticket_form_template_save tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/config_update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object properties: data: type: object properties: ticket_type: type: string title: 工单类型 description: 工单类型。 schema: type: object title: schema description: 字段 schema。 expect_version: type: integer title: 期望版本 description: 字段 expect_version。 template_id: type: string title: template id description: 字段 template_id。 required: - ticket_type - schema description: 施工回填扩展模板保存草稿请求参数 title: 施工回填扩展模板保存草稿请求数据 required: - data x-error-codes: [11103, 11104, 60001, 60425] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketFormTemplateSave' /ticket/form_template_publish@v1: post: summary: 施工回填扩展模板发布 description: 仅 admin;旧 published→retired;新增/改 required 须 ack_required_change;失败 KLT-G20425/KLT-S407。权限档对齐 config_update。 operationId: ticket_form_template_publish tags: - 工单与开停交付 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/ticket/code' x-action: $ref: '#/components/x-actions/config_update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object properties: data: type: object properties: ticket_type: type: string title: 工单类型 description: 工单类型。 template_id: type: string title: template id description: 字段 template_id。 expect_version: type: integer title: 期望版本 description: 字段 expect_version。 ack_required_change: type: boolean title: ack required change description: 字段 ack_required_change。 required: - ticket_type description: 施工回填扩展模板发布请求参数 title: 施工回填扩展模板发布请求数据 required: - data x-error-codes: [11103, 11104, 60001, 60425] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseTicketFormTemplatePublish' /contract/renewal_config@v1: get: summary: 合同续签提醒配置查询(GET) description: 与 POST 同义;补齐 GET 路由声明,供网关与直连读取。 operationId: contract_renewal_config_get tags: - 合同 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/contract/code' x-action: $ref: '#/components/x-actions/renewal_config/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseContractRenewalConfigGet' post: summary: 合同续签提醒配置查询 description: |- 续签提前天数(1..180,默认 7)与续签工单生成方式(manual 人工/auto 自动);运营侧三类身份可读。 网关对 klt-bos 一律 POST(与其它合同口同形);响应含 notice_days/generate_mode/row_version。 operationId: contract_renewal_config tags: - 合同 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/contract/code' x-action: $ref: '#/components/x-actions/renewal_config/code' x-version: v1 x-permission-visibility: catalog x-error-codes: [11104] requestBody: required: true description: JSON 请求体,业务字段置于 data(本口无必填业务字段,传空对象即可) content: application/json: schema: type: object properties: data: type: object description: 合同续签提醒配置查询请求参数 title: 合同续签提醒配置查询请求数据 required: - data responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseContractRenewalConfig' /contract/renewal_config_update@v1: post: summary: 合同续签提醒配置修改 description: 仅 admin;改提前天数与生成方式,写审计、即刻生效。同值不写库;并发版本不符回 KLT-S407。 operationId: contract_renewal_config_update tags: - 合同 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/contract/code' x-action: $ref: '#/components/x-actions/renewal_config_update/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object properties: data: type: object properties: notice_days: type: integer description: 提前提醒天数(1..180,默认 7) title: notice days generate_mode: type: string description: 生成方式:manual(人工,先发站内提醒)/auto(自动生成续签工单) enum: - manual - auto title: generate mode expect_version: type: integer description: 乐观并发基线(读取口回传的 row_version);缺省=不做并发校验 title: 期望版本 reason: type: string description: 变更原因 title: reason required: - notice_days - generate_mode description: 合同续签提醒配置修改请求参数 title: 合同续签提醒配置修改请求数据 required: - data x-error-codes: [11103, 11104, 60001] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseContractRenewalConfigUpdate' /inbox/list@v1: post: summary: 本人站内提醒箱 description: 未读优先、按时间倒序分页;仅回当前账号本人的消息(来源不可越权)。 operationId: inbox_list tags: - 站内提醒箱 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/inbox/code' x-action: $ref: '#/components/x-actions/list/code' x-version: v1 x-permission-visibility: catalog requestBody: required: false description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object properties: data: type: object properties: unread_only: type: boolean description: 只看未读 title: unread only page: type: integer description: 页码(1 起) title: 页码 page_size: type: integer description: 每页条数(1..100) title: 每页条数 description: 本人站内提醒箱请求参数 title: 本人站内提醒箱请求数据 x-error-codes: [11104] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseInboxList' /inbox/read@v1: post: summary: 标记站内提醒已读 description: 只能标记本人消息;已读时间只写首次。 operationId: inbox_read tags: - 站内提醒箱 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/inbox/code' x-action: $ref: '#/components/x-actions/read/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object properties: data: type: object properties: message_id: type: string description: 消息 ID(数字串) title: 消息 ID required: - message_id description: 标记站内提醒已读请求参数 title: 标记站内提醒已读请求数据 required: - data x-error-codes: [11103, 11104, 60401] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseInboxRead' /inbox/renewal_candidates@v1: post: summary: 续签工单可指派人员 description: 提醒所属客户当期运维团队内、可接 renewal 类型且负责范围覆盖该客户的成员。 operationId: inbox_renewal_candidates tags: - 站内提醒箱 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/inbox/code' x-action: $ref: '#/components/x-actions/renewal_candidates/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object properties: data: type: object properties: message_id: type: string description: 消息 ID(数字串) title: 消息 ID required: - message_id description: 续签工单可指派人员请求参数 title: 续签工单可指派人员请求数据 required: - data x-error-codes: [11103, 11104, 60401] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseInboxRenewalCandidates' /inbox/renewal_ticket@v1: post: summary: 读信人生成续签工单并指派 description: 从站内续签提醒一键生成 renewal 工单并分派;同一合同只出一张(已有则复用并改派),生成后同合同提醒全部置为已处理。 operationId: inbox_renewal_ticket tags: - 站内提醒箱 x-require-auth: true x-resource-type: $ref: '#/components/x-resource-types/inbox/code' x-action: $ref: '#/components/x-actions/renewal_ticket/code' x-version: v1 x-permission-visibility: catalog requestBody: required: true description: JSON 请求体,业务字段置于 data content: application/json: schema: type: object properties: data: type: object properties: message_id: type: string description: 提醒消息 ID(数字串) title: 消息 ID assignee_user_id: type: string description: 承接续签工单的运营人员账号 ID(须在客户当期团队、可接 renewal、负责范围覆盖客户) title: 处理人用户 ID required: - message_id - assignee_user_id description: 读信人生成续签工单并指派请求参数 title: 读信人生成续签工单并指派请求数据 required: - data x-error-codes: [11103, 11104, 60001, 60401] responses: '200': description: 成功时 code=10000;失败时查看 code/message/error_code。 content: application/json: schema: $ref: '#/components/schemas/ApiResponseInboxRenewalTicket' components: x-resource-types: health: code: 'bos.health' ping: code: 'bos.ping' auth: code: 'bos.auth' region: code: 'bos.region' account: code: 'bos.account' ent_team: code: 'bos.ent_team' ops_team: code: 'bos.ops_team' audit: code: 'bos.audit' activation: code: 'bos.activation' operator: code: 'bos.operator' operator_recon_account: code: 'bos.operator.recon_account' partner: code: 'bos.partner' partner_scope: code: 'bos.partner.scope' ent_team_scope: code: 'bos.ent_team.scope' ops_team_scope: code: 'bos.ops_team.scope' ops_member_scope: code: 'bos.ops_member.scope' ops_team_dispatch_mode: code: 'bos.ops_team.dispatch_mode' ops_team_coverage: code: 'bos.ops_team.coverage' customer: code: 'bos.customer' customer_attribution: code: 'bos.customer.attribution' import_batch: code: 'bos.import_batch' sub_account: code: 'bos.sub_account' delivery: code: 'bos.delivery' catalog: code: 'bos.catalog' plan_cost_item: code: 'bos.plan_cost_item' contract: code: 'bos.contract' contract_attachment: code: 'bos.contract_attachment' subscription: code: 'bos.subscription' cost_item: code: 'bos.cost_item' cost_amount: code: 'bos.cost_amount' share_rule: code: 'bos.share_rule' opsview: code: 'bos.opsview' jobs: code: 'bos.jobs' billing_config: code: 'bos.billing_config' recon: code: 'bos.recon' bill: code: 'bos.bill' correction: code: 'bos.correction' ticket: code: 'bos.ticket' completion: code: 'bos.completion' message: code: 'bos.message' inbox: code: 'bos.inbox' view: code: 'bos.view' portal: code: 'bos.portal' x-actions: view: code: 'view' create: code: 'create' update: code: 'update' delete: code: 'delete' list: code: 'list' manage: code: 'manage' export: code: 'export' import: code: 'import' detail: code: 'detail' pending_queue: code: 'pending_queue' todo_counts: code: 'todo_counts' trace: code: 'trace' pending: code: 'pending' assign: code: 'assign' dispatch_auto: code: 'dispatch_auto' delegate: code: 'delegate' start: code: 'start' backfill: code: 'backfill' backfill_draft: code: 'backfill_draft' check_done: code: 'check_done' mark_done: code: 'mark_done' close: code: 'close' withdraw: code: 'withdraw' confirm_close: code: 'confirm_close' defer: code: 'defer' revert: code: 'revert' generate: code: 'generate' receipt: code: 'receipt' reject: code: 'reject' attach: code: 'attach' void: code: 'void' confirm_conflict: code: 'confirm_conflict' rematch: code: 'rematch' urge: code: 'urge' material_grant: code: 'material_grant' material_attach: code: 'material_attach' config_get: code: 'config_get' config_update: code: 'config_update' form_template_get: code: 'form_template_get' form_template_save: code: 'form_template_save' form_template_publish: code: 'form_template_publish' renewal_config: code: 'renewal_config' renewal_config_update: code: 'renewal_config_update' read: code: 'read' renewal_candidates: code: 'renewal_candidates' renewal_ticket: code: 'renewal_ticket' delivery_reissue: code: 'delivery_reissue' partner_recon: code: 'partner_recon' plan_board: code: 'plan_board' schemas: PortalPlanBoardRow: type: object description: |- 客户门户套餐看板一行:档位名、合同编号/总额、冻结方式、线路出口、起止日与状态。不含金额账目列、工单与操作位。 properties: subscription_id: type: string description: 订阅 ID(详情入口预留) title: 订阅 ID plan_name: type: string description: 档位名(订阅快照) title: 档位名称 contract_id: type: string nullable: true title: 合同 ID description: 合同 ID。 contract_no: type: string nullable: true description: 合同编号;合同缺失时前端显示「—」 title: 合同编号 contract_amount_cents: type: integer nullable: true description: 合同总额(分);缺失时前端显示「—」 title: contract amount cents sub_mode: type: string nullable: true description: 冻结方式原码(upgrade/stackable/customized) title: sub mode line_exits: type: array nullable: true description: 随合同冻结的线路出口集合;空集时前端显示「—」 items: type: string title: line_exits元素 title: line exits start_date: type: string nullable: true description: 列 6 起 title: 开始日 end_date: type: string nullable: true description: 列 6 止 title: 结束日 status: type: object description: 列 7=读侧三态结论 properties: key: type: string enum: - active - pending - expired - cancelled - replaced label: type: string title: 状态 required: - subscription_id - plan_name - status title: PortalPlanBoardRow ApiEnvelope: type: object title: 统一响应信封 description: HTTP 状态码统一为 200;业务结果看 code/message/data。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 error_code: type: string title: 稳定错误码 description: 失败时的 KLT-*;成功时不下发。 nullable: true data: title: 业务数据 description: 成功时的业务载荷;具体形状由各接口 ApiResponse* 收窄。 nullable: true PageQuery: type: object description: 分页查询(0 基) properties: page: type: integer description: 页码(0 基索引,默认 0) minimum: 0 default: 0 title: 页码 page_size: type: integer description: 每页条数(默认 20,上限 200) minimum: 1 maximum: 200 default: 20 title: 每页条数 keyword: type: string description: 关键字筛选(可选) title: 关键字 title: PageQuery PagedMeta: type: object description: 分页元数据(0 基) properties: total: type: integer description: 总条数 title: 总条数 page: type: integer description: 页码(0 基) title: 页码 page_size: type: integer description: 每页条数 title: 每页条数 required: - total - page - page_size title: PagedMeta AccountChangePasswordResult: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 pwd_set_at_updated: type: boolean description: 本地 `bos_account_ext.pwd_set_at` 是否落库(平台已改成功时可能为 false,服务端会记日志)。 title: pwd set at updated audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 required: - user_id - pwd_set_at_updated - audit_written description: AccountChangePasswordResult 业务数据 title: AccountChangePasswordResult AccountListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/AccountListRow' title: 列表项 description: 列表项。 total: type: integer title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 required: - items - total description: AccountListResult 业务数据 title: AccountListResult AccountListRow: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 display_name: type: string nullable: true title: 显示名 description: 显示名。 username: type: string title: 登录名 description: 登录名。 mobile: type: string nullable: true title: 手机号 description: 手机号。 role_code: type: string title: 角色码 description: 角色码。 subject_type: type: string description: 绑定主体类型:customer/ent_team/ops_team/partner/operator/sub_account/platform title: 主体类型 subject_id: type: string title: 主体 ID description: 主体 ID。 account_kind: type: string description: 账号标记:entry=入口账号,sub=分账号,primary=主账号(后端由 entry_only+role_code 派生)。 title: 账号标记 status: type: string description: 账号启停态(`bos_user_binding.status`):active/disabled。 title: 状态 activation_status: type: string nullable: true description: 激活态(`bos_account_ext.status`):none/issuing/issued/activated,与 `status` 正交。 title: 激活态 delivered_at: type: string nullable: true description: 激活码交付时间(`delivered_at`)。 title: 交付时间 activated_at: type: string nullable: true description: 激活时间(`activated_at`)。 title: 激活时间 pwd_set_at: type: string nullable: true description: 设密时间(`pwd_set_at`);`null`=尚未首次改密。 title: 设密时间 expire_date: type: string nullable: true description: 激活码有效截止日(`expire_date`,DATE)。 title: 到期日 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 required: - user_id - display_name - username - mobile - role_code - subject_type - subject_id - account_kind - status - activation_status - delivered_at - activated_at - pwd_set_at - expire_date - created_at description: AccountListRow 业务数据 title: AccountListRow AccountNotifyEmailResult: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 has_email: type: boolean title: has email description: 字段 has_email。 address_hint: type: string nullable: true title: address hint description: 字段 address_hint。 address_source: type: string title: address source description: 字段 address_source。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 required: - user_id - has_email - address_hint - address_source - audit_written description: AccountNotifyEmailResult 业务数据 title: AccountNotifyEmailResult AccountNotifyEmailSetResult: $ref: '#/components/schemas/AccountNotifyEmailResult' AccountNotifyPrefResult: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 inapp: $ref: '#/components/schemas/NotifyChannelPref' mail: type: string description: "类型:NotifyChannelPref & { address_source: \"account\" | \"operator_profile\" |" title: mail sms: $ref: '#/components/schemas/NotifyChannelPref' items: type: array items: type: string description: '类型:{ channel: NotifyChannel } & NotifyChannelPref' title: 列表项元素 title: 列表项 description: 列表项。 required: - user_id - inapp - mail - sms - items description: AccountNotifyPrefResult 业务数据 title: AccountNotifyPrefResult AccountNotifyPrefSaveResult: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 inapp_enabled: type: string description: 类型:true title: inapp enabled mail_enabled: type: boolean title: mail enabled description: 字段 mail_enabled。 sms_enabled: type: boolean title: sms enabled description: 字段 sms_enabled。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 required: - user_id - inapp_enabled - mail_enabled - sms_enabled - audit_written description: AccountNotifyPrefSaveResult 业务数据 title: AccountNotifyPrefSaveResult AccountOut: type: object properties: created: type: boolean title: 是否已创建 description: 是否已创建。 reason: type: string nullable: true title: reason description: 字段 reason。 user_id: type: string nullable: true title: 用户 ID description: 用户 ID。 username: type: string nullable: true title: 登录名 description: 登录名。 role_code: type: string nullable: true title: 角色码 description: 角色码。 platform_role_note: type: string nullable: true description: 业务角色只落本地 `bos_user_binding.role_code`,平台侧 角色授予入参 title: platform role note must_change_password: type: boolean nullable: true title: 是否须改密 description: 是否须改密。 initial_password: type: string nullable: true title: initial password description: 字段 initial_password。 credential_note: type: string nullable: true title: credential note description: 字段 credential_note。 credential_viewable: type: boolean nullable: true title: credential viewable description: 字段 credential_viewable。 required: - created description: 平台建号回执 [实] title: AccountOut AccountProfileUpdateResult: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 display_name: type: string nullable: true description: 落库后的自填姓名;`null`=已清除自填(页面回落到档案派生名)。 title: 显示名 has_own_name: type: boolean title: has own name description: 字段 has_own_name。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 required: - user_id - display_name - has_own_name - audit_written description: AccountProfileUpdateResult 业务数据 title: AccountProfileUpdateResult AccountProvisionResult: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 status: type: string title: 状态 description: 状态。 activation_code: type: string nullable: true description: 激活码仅开通当次返回(若走导出通道则可能为空) title: activation code plaintext_once: type: string nullable: true title: 明文一次性 description: 明文一次性。 expire_date: type: string nullable: true description: 有效截止日(`yyyy-MM-dd`);与 `code_expire_date` 同义双名。 title: 到期日 code_expire_date: type: string nullable: true title: code expire date description: 字段 code_expire_date。 required: - user_id - status description: AccountProvisionResult 业务数据 title: AccountProvisionResult AccountResetCodeResult: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 status: type: string title: 状态 description: 状态。 plaintext_once: type: string nullable: true title: 明文一次性 description: 明文一次性。 reissued: type: boolean nullable: true title: 换新条数 description: 换新条数。 capability_pending: type: boolean nullable: true title: capability pending description: 字段 capability_pending。 reason: type: string nullable: true title: reason description: 字段 reason。 code_id: oneOf: - type: string - type: number nullable: true description: 平台引导凭证标识(原样转发)。 title: code id code_expire_date: type: string nullable: true description: 本次交付码的有效截止日(取平台 `expires_at` 的日期部分,`yyyy-MM-dd`)。 title: code expire date expire_date: type: string nullable: true description: 与 `code_expire_date` 同义别名(部分回执路径用此键)。 title: 到期日 platform: type: object properties: reissued: type: number nullable: true kept: type: number nullable: true validity: type: string nullable: true nullable: true description: 平台计数原样回显:`reissued`=作废并换新条数、`kept`=保留未消费原码条数。 title: platform note: type: string nullable: true description: 服务端对「回码」的口径说明(`reissued=false`=同一码重发, 说成已换新)。 title: 备注 audit_written: type: boolean nullable: true title: 是否已写审计 description: 是否已写审计。 required: - user_id - status description: AccountResetCodeResult 业务数据 title: AccountResetCodeResult AccountStatusResult: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 status: type: string title: 状态 description: 状态。 required: - user_id - status description: AccountStatusResult 业务数据 title: AccountStatusResult AccountUnbindResult: type: object description: 账号解绑结果 properties: user_id: type: string description: 账号用户 ID title: 用户 ID unbound: type: boolean description: 是否已解绑 title: 是否已解绑 required: - user_id - unbound title: AccountUnbindResult ActivationPrecheckResult: type: object properties: login_name: type: string title: login name description: 字段 login_name。 user_id: type: string title: 用户 ID description: 用户 ID。 activation_status: type: string nullable: true title: 激活态 description: 激活态。 expire_date: type: string nullable: true title: 到期日 description: 到期日。 can_activate: type: boolean title: can activate description: 字段 can_activate。 required: - login_name - user_id - activation_status - expire_date - can_activate description: '`POST /activation/precheck@v1`' title: ActivationPrecheckResult ActivationVerifyResult: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 password_set: type: boolean title: password set description: 字段 password_set。 must_change_password: type: boolean nullable: true title: 是否须改密 description: 是否须改密。 required: - user_id - password_set description: ActivationVerifyResult 业务数据 title: ActivationVerifyResult AssignCandidate: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 username: type: string nullable: true title: 登录名 description: 登录名。 display_name: type: string nullable: true title: 显示名 description: 显示名。 pending_count: type: integer description: 该候选人手头未完成单量(自动分派按此最少先挑) title: 待处理数 source: type: string enum: - member - ops_account nullable: true description: '* 候选来源:`ops_account`=运营主/子账号(不是运维团队成员, * 按「客户在其负责范围内」入池),缺省=运维团队成员。承接后的可用动作不同 * (运营账号没有成员档案),故页面必须标出来。' title: 来源 required: - user_id - username - display_name - pending_count description: 可分派候选人(`pending_queue` 行内 `candidates[]`, 前端再拼一份人名单)。 title: AssignCandidate AssignResult: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 assignee_user_id: type: string title: 处理人用户 ID description: 处理人用户 ID。 assignee_snapshot_name: type: string title: assignee snapshot name description: 字段 assignee_snapshot_name。 status: $ref: '#/components/schemas/TicketStatus' required: - ticket_id - assignee_user_id - assignee_snapshot_name - status description: AssignResult 业务数据 title: AssignResult AuditExportResult: type: object properties: file_name: type: string title: 文件名 description: 文件名。 oss_key: type: string title: 对象键 description: 对象键。 row_count: type: integer title: row count description: 字段 row_count。 limit: type: number title: limit description: 字段 limit。 truncated: type: boolean title: 是否截断 description: 是否截断。 required: - file_name - oss_key - row_count - limit - truncated description: AuditExportResult 业务数据 title: AuditExportResult AuditItem: type: object properties: occurred_at: type: string nullable: true title: occurred at description: 字段 occurred_at。 actor: type: object properties: user_id: type: string username: type: string nullable: true required: - user_id - username title: actor description: 字段 actor。 action: type: string title: 动作 description: 动作。 object: type: object properties: type: type: string id: type: string display: type: string nullable: true required: - type - id description: '`display`=契约的对象名快照( 写侧接通前恒缺省;页面按回落链取值, 拿当前名顶替)。' title: object before: title: before description: 字段 before。 after: title: after description: 字段 after。 detail: nullable: true description: '`detail_json`:部分写侧只写明细(结果条数/validity/范围账号数),前后值区全空时由页面以「明细」呈现。' title: detail cursor: type: string title: 游标 description: 游标。 required: - occurred_at - actor - action - object - before - after - cursor description: AuditItem 业务数据 title: AuditItem AuthContext: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 username: type: string title: 登录名 description: 登录名。 role_code: $ref: '#/components/schemas/RoleCode' subject_type: $ref: '#/components/schemas/SubjectType' subject_id: type: string nullable: true title: 主体 ID description: 主体 ID。 entry_only: type: boolean description: '平台对账等仅入口账号标记' title: 是否入口账号 scope_mode: type: string nullable: true description: '可见形态:all/regions/teams/customers/self(与 scope.kind 同源,后端应收敛为 scope)' title: 可见形态 display_name: type: string nullable: true title: 显示名 description: 显示名。 display_name_source: type: string nullable: true description: '姓名来源:account=本人自填(个人资料页);archive=主体档案派生。' title: 显示名来源 subject_name: type: string nullable: true description: 主体名称:区域名 / 团队名 / 客户名 / 合伙人名 / 运营商名 title: 主体名称 customer_id: type: string nullable: true description: '* 本位客户主体号 (下发):客户主账号=自身主体号; * 客户分账号=所属客户(`sub_account.customer_id`);其余主体 `null`。 * 分账号的 `subject_id` 是分账号自身编号, 拿它当客户号去调客户读口。' title: 客户 ID mobile_hint: type: string nullable: true description: 绑定手机号摘要(已掩码, 全量);`null`=未绑定。 title: 手机号摘要 scope: $ref: '#/components/schemas/ScopeView' acct_status: type: string enum: - normal - unactivated - expired - disabled description: 账号状态:normal 正常 / unactivated 未激活 / expired 已过期 / disabled 已停用 title: 账号状态 pwd_set_at: type: string nullable: true description: 设密时间;`null`=尚未设密。 title: 设密时间 activated_at: type: string nullable: true description: 开通时间(激活码被消费的时间)。 title: 激活时间 expire_date: type: string nullable: true description: 激活码有效截止日。 title: 到期日 must_change_password: type: boolean title: 是否须改密 description: 是否须改密。 permissions: type: array items: type: string title: 权限列表元素 title: 权限列表 description: 权限列表。 required: - user_id - username - role_code - subject_type - subject_id - entry_only - scope_mode - display_name - subject_name - mobile_hint - scope - acct_status - must_change_password - permissions description: AuthContext 业务数据 title: AuthContext Backfill: type: object properties: backfill_id: type: string nullable: true title: backfill id description: 字段 backfill_id。 exec_conclusion: type: string nullable: true title: exec conclusion description: 字段 exec_conclusion。 conclusion_note: type: string nullable: true title: conclusion note description: 字段 conclusion_note。 actual_opened_date: type: string nullable: true title: actual opened date description: 字段 actual_opened_date。 stop_done_date: type: string nullable: true title: stop done date description: 字段 stop_done_date。 builder_user_id: type: string nullable: true title: builder user id description: 字段 builder_user_id。 evidence_text: type: string nullable: true title: evidence text description: 字段 evidence_text。 source: type: string nullable: true title: 来源 description: 来源。 ip_rule_version: type: string nullable: true title: ip rule version description: 字段 ip_rule_version。 attempt_count: type: string nullable: true title: attempt count description: 字段 attempt_count。 detail_empty_flag: type: string nullable: true title: detail empty flag description: 字段 detail_empty_flag。 row_version: type: string title: 乐观锁版本 description: 乐观锁版本。 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 routes: type: array items: $ref: '#/components/schemas/RouteRow' title: routes description: 字段 routes。 ips: type: array items: $ref: '#/components/schemas/IpRow' title: ips description: 字段 ips。 ext: $ref: '#/components/schemas/FormExtPayload' pin_bind_mode: type: string nullable: true description: PIN 绑定模式:shared/per_account。 title: pin bind mode required: - exec_conclusion - conclusion_note - actual_opened_date - stop_done_date - builder_user_id - evidence_text - source - ip_rule_version - attempt_count - detail_empty_flag - row_version - created_at - routes - ips description: Backfill 业务数据 title: Backfill BackfillDraft: type: object properties: ticket_id: type: string nullable: true title: 工单 ID description: 工单 ID。 exec_conclusion: type: string nullable: true title: exec conclusion description: 字段 exec_conclusion。 conclusion_note: type: string nullable: true title: conclusion note description: 字段 conclusion_note。 actual_opened_date: type: string nullable: true title: actual opened date description: 字段 actual_opened_date。 stop_done_date: type: string nullable: true title: stop done date description: 字段 stop_done_date。 evidence_text: type: string nullable: true title: evidence text description: 字段 evidence_text。 pin_bind_mode: type: string nullable: true title: pin bind mode description: 字段 pin_bind_mode。 route_rows: type: array items: $ref: '#/components/schemas/BackfillInRoute' nullable: true title: route rows description: 字段 route_rows。 ip_rows: type: array items: type: string description: '类型:Partial & { pin_registered?: string; cpid_registered?: string }' title: ip_rows元素 nullable: true title: ip rows description: 字段 ip_rows。 ext_values: type: object additionalProperties: {} nullable: true title: ext values description: 字段 ext_values。 ext_template_id: type: string nullable: true title: ext template id description: 字段 ext_template_id。 ext_template_version: oneOf: - type: string - type: number nullable: true title: ext template version description: 字段 ext_template_version。 evidence_material_ids: type: array items: type: string title: evidence_material_ids元素 nullable: true title: evidence material ids description: 字段 evidence_material_ids。 check_item_ids: type: array items: type: string title: check_item_ids元素 nullable: true title: check item ids description: 字段 check_item_ids。 check_note: type: string nullable: true title: check note description: 字段 check_note。 row_version: oneOf: - type: string - type: number nullable: true title: 乐观锁版本 description: 乐观锁版本。 updated_at: type: string nullable: true title: 更新时间 description: 更新时间。 description: BackfillDraft 业务数据 title: BackfillDraft BackfillInRoute: type: object properties: sub_account_id: type: string nullable: true title: sub account id description: 字段 sub_account_id。 network_account_name: type: string nullable: true title: network account name description: 字段 network_account_name。 intranet_ip: type: string nullable: true title: intranet ip description: 字段 intranet_ip。 subnet_mask: type: string nullable: true title: subnet mask description: 字段 subnet_mask。 gateway: type: string nullable: true title: gateway description: 字段 gateway。 vlan: type: string nullable: true title: vlan description: 字段 vlan。 tunnel_encap: type: string nullable: true title: tunnel encap description: 字段 tunnel_encap。 vni: type: string nullable: true title: vni description: 字段 vni。 src_endpoint: type: string nullable: true title: src endpoint description: 字段 src_endpoint。 dst_endpoint: type: string nullable: true title: dst endpoint description: 字段 dst_endpoint。 egress_pop: type: string nullable: true title: egress pop description: 字段 egress_pop。 down_mbps: type: integer nullable: true title: down mbps description: 字段 down_mbps。 up_mbps: type: integer nullable: true title: up mbps description: 字段 up_mbps。 proxy_host: type: string nullable: true title: proxy host description: 字段 proxy_host。 proxy_port: type: number nullable: true title: proxy port description: 字段 proxy_port。 pin: type: string nullable: true title: pin description: 字段 pin。 cpid: type: string nullable: true title: cpid description: 字段 cpid。 require_cpid: type: boolean nullable: true title: require cpid description: 字段 require_cpid。 share_credential_of: type: string nullable: true title: share credential of description: 字段 share_credential_of。 open_this_time: type: boolean title: open this time description: 字段 open_this_time。 required: - open_this_time description: BackfillInRoute 业务数据 title: BackfillInRoute BackfillResult: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 backfill_id: type: string title: backfill id description: 字段 backfill_id。 exec_conclusion: type: string title: exec conclusion description: 字段 exec_conclusion。 route_rows: type: number title: route rows description: 字段 route_rows。 ip_rows: type: number title: ip rows description: 字段 ip_rows。 ip_rule_version: type: string title: ip rule version description: 字段 ip_rule_version。 open_stop_id: type: string nullable: true title: open stop id description: 字段 open_stop_id。 effective_account_count: type: integer title: effective account count description: 字段 effective_account_count。 apply_facts: title: apply facts description: 字段 apply_facts。 status: $ref: '#/components/schemas/TicketStatus' status_advanced: type: boolean title: status advanced description: 字段 status_advanced。 missing_groups: type: array items: type: string title: missing_groups元素 description: 仍缺的分组名:非空 ⇒ 已保存但未达闭环口径(页面点名, 报"保存失败") title: missing groups audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 required: - ticket_id - backfill_id - exec_conclusion - route_rows - ip_rows - ip_rule_version - open_stop_id - effective_account_count - apply_facts - status - status_advanced - missing_groups - audit_written description: BackfillResult 业务数据 title: BackfillResult BillDetailResult: type: object properties: bill_detail_id: type: string title: bill detail id description: 字段 bill_detail_id。 batch_no: type: string title: 批次号 description: 批次号。 holder_type: $ref: '#/components/schemas/HolderType' holder_id: type: string title: holder id description: 字段 holder_id。 holder_name: type: string title: holder name description: 字段 holder_name。 period: type: string title: 账期 description: 字段 period。 customer_name: type: string title: 客户名称 description: 客户名称。 subscription_label: type: string title: subscription label description: 字段 subscription_label。 pre_align_cents: type: integer description: ① 尾月对齐前/后两值必须同屏 title: pre align cents receivable_cents: type: integer title: receivable cents description: 字段 receivable_cents。 settle_std_cents: type: integer nullable: true description: 计费标准单价(分);应收=单价 × 份数 × 天数/月天数 title: settle std cents quantity: type: number nullable: true description: 订阅份数(link 恒 1;addon ≥1);显式返回, 用 null 冒充「一份」 title: quantity receivable_calc: type: string nullable: true description: 应收公式说明串(便于复核) title: receivable calc bill_from: type: string description: ② 计费区间与天数、是否不满月 title: bill from bill_to: type: string title: bill to description: 字段 bill_to。 billing_days: type: number title: billing days description: 字段 billing_days。 month_days: type: number nullable: true title: month days description: 字段 month_days。 partial_month: type: boolean title: partial month description: 字段 partial_month。 costs: type: array items: type: object properties: item_name: type: string item_id: type: string nullable: true price_cents: type: number nullable: true cost_cents: type: number nullable: true amount_cents: type: number nullable: true multiplier: type: number nullable: true fold: type: number nullable: true configured: type: boolean deduct_from_base: type: boolean nullable: true required: - item_name - configured description: '* ③ 成本快照逐条(应扣口径,封顶前)。 * `cost_cents`=应扣;`price_cents`=单价;顶层 `cost_deduct_cents`=实扣合计。' title: costs cost_should_deduct_cents: type: integer nullable: true description: 应扣合计(面板条目求和,封顶前) title: cost should deduct cents cost_deduct_cents: type: integer nullable: true description: 实扣(落库;恒等式 receivable − share_base) title: cost deduct cents share_base_cents: type: integer description: ④ 分成基数;floor 到 0 ⇒ base_floor_protected=true(界面显式标下限保护) title: share base cents base_floor_protected: type: boolean title: base floor protected description: 字段 base_floor_protected。 share_mode: type: string description: ⑤ 当时冻结在明细行上的分成方式与取值( 读档案现值,) title: share mode share_value: type: number title: share value description: 字段 share_value。 share_amount_cents: type: integer description: ⑥ 本方分成金额+恒 0 标注+所属对账单号 title: share amount cents zero_note: $ref: '#/components/schemas/ZeroNote' other_parties: type: array items: type: object properties: holder_type: $ref: '#/components/schemas/HolderType' holder_id: type: string holder_name: type: string share_amount_cents: type: number batch_no: type: string nullable: true required: - holder_type - holder_id - holder_name - share_amount_cents - batch_no nullable: true description: 其他分成方面板:三类只读身份的响应体不出现该字段( 值为空) ⇒ null;holder_id 供对账单号链进批次 title: other parties account_days: type: array items: type: object properties: sub_account_label: type: string in_period_days: type: number required: - sub_account_label - in_period_days nullable: true description: ⑦ 逐账号在期天数;KLT-S406 ⇒ null 且 account_days_failed=true( 回落「无开停记录」) title: account days account_days_failed: type: boolean title: account days failed description: 字段 account_days_failed。 required: - bill_detail_id - batch_no - holder_type - holder_id - holder_name - period - customer_name - subscription_label - pre_align_cents - receivable_cents - bill_from - bill_to - billing_days - partial_month - costs - share_base_cents - base_floor_protected - share_mode - share_value - share_amount_cents - zero_note - other_parties - account_days - account_days_failed description: BillDetailResult 业务数据 title: BillDetailResult BillLineRow: type: object properties: bill_detail_id: type: string title: bill detail id description: 字段 bill_detail_id。 holder_type: $ref: '#/components/schemas/HolderType' holder_id: type: string title: holder id description: 字段 holder_id。 holder_name: type: string title: holder name description: 字段 holder_name。 period: type: string title: 账期 description: 字段 period。 customer_name: type: string title: 客户名称 description: 客户名称。 subscription_label: type: string title: subscription label description: 字段 subscription_label。 billing_days: type: number title: billing days description: 字段 billing_days。 share_base_cents: type: integer title: share base cents description: 字段 share_base_cents。 share_amount_cents: type: integer title: share amount cents description: 字段 share_amount_cents。 batch_no: type: string description: 所属批次对账单号(恒有值,可点进 14.2; 不是出账状态) title: 批次号 required: - bill_detail_id - holder_type - holder_id - holder_name - period - customer_name - subscription_label - billing_days - share_base_cents - share_amount_cents - batch_no description: BillLineRow 业务数据 title: BillLineRow BillingConfigResult: type: object properties: default_recon_day: type: number title: default recon day description: 字段 default_recon_day。 effective_mode: $ref: '#/components/schemas/EffectiveMode' row_version: type: integer title: 乐观锁版本 description: 乐观锁版本。 operators: type: array items: type: object properties: operator_id: type: string name: type: string region_label: type: string nullable: true recon_day: type: number nullable: true pay_cycle: type: string nullable: true brand: type: string nullable: true region_node_id: type: string nullable: true required: - operator_id - name - region_label - recon_day - pay_cycle title: 运营商数 description: 运营商数。 required: - default_recon_day - effective_mode - row_version - operators description: BillingConfigResult 业务数据 title: BillingConfigResult BillingConfigUpdateResult: type: object properties: changed: type: number title: 是否已变更 description: 是否已变更。 row_version: type: integer title: 乐观锁版本 description: 乐观锁版本。 default_recon_day: type: number title: default recon day description: 字段 default_recon_day。 effective_mode: $ref: '#/components/schemas/EffectiveMode' required: - changed - row_version - default_recon_day - effective_mode description: BillingConfigUpdateResult 业务数据 title: BillingConfigUpdateResult BlockerItem: type: object properties: key: type: string title: key description: 字段 key。 count: type: number nullable: true title: count description: 字段 count。 message: type: string title: 说明 description: 说明。 design_code: type: string nullable: true description: 设计口径编号(部分域下发) title: design code required: - key - count - message description: 阻塞项 [实] title: BlockerItem CatalogCreateResult: type: object properties: plan_id: type: string title: 档位 ID description: 档位 ID。 required: - plan_id description: CatalogCreateResult 业务数据 title: CatalogCreateResult CatalogDeleteResult: type: object properties: deleted: type: boolean title: 是否已删除 description: 是否已删除。 frozen: type: boolean nullable: true title: frozen description: 字段 frozen。 referred_count: type: integer nullable: true title: referred count description: 字段 referred_count。 blocks: type: object properties: subscriptions: type: array items: {} nullable: true items: type: array items: {} nullable: true nullable: true title: blocks description: 字段 blocks。 suggest: type: string nullable: true title: suggest description: 字段 suggest。 required: - deleted description: CatalogDeleteResult 业务数据 title: CatalogDeleteResult CatalogFacetItem: type: object properties: value: type: string title: value description: 字段 value。 label: type: string title: 标签 description: 标签。 count: type: number title: count description: 字段 count。 required: - value - label - count description: facets 单项:`value` 是落库键(账号 ID/团队 ID),`label` 是读侧名称,`count` 是该键下档位数。 title: CatalogFacetItem CatalogGetResult: type: object properties: plan_id: type: string title: 档位 ID description: 档位 ID。 plan_name: type: string title: 档位名称 description: 档位名称。 plan_kind: type: string title: plan kind description: 字段 plan_kind。 plan_family: type: string nullable: true title: plan family description: 字段 plan_family。 annual_price_cents: type: integer title: 年价(分) description: 年价(分)。 sub_account_quota: type: number nullable: true title: sub account quota description: 字段 sub_account_quota。 bandwidth_committed: type: boolean nullable: true title: bandwidth committed description: 字段 bandwidth_committed。 bandwidth_up_mbps: type: integer nullable: true title: bandwidth up mbps description: 字段 bandwidth_up_mbps。 bandwidth_down_mbps: type: integer nullable: true title: bandwidth down mbps description: 字段 bandwidth_down_mbps。 customer_id: type: string nullable: true title: 客户 ID description: 客户 ID。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 status: type: string title: 状态 description: 状态。 created_at: type: string title: 创建时间 description: 创建时间。 row_version: type: string title: 乐观锁版本 description: 乐观锁版本。 plan_cost_cents: type: integer nullable: true title: plan cost cents description: 字段 plan_cost_cents。 plan_cost_state: $ref: '#/components/schemas/ValueState' plan_cost_note: type: string nullable: true title: plan cost note description: 字段 plan_cost_note。 frozen: type: boolean nullable: true title: frozen description: 字段 frozen。 referred_count: type: integer nullable: true title: referred count description: 字段 referred_count。 locked_fields: type: array items: type: string title: locked_fields元素 nullable: true title: locked fields description: 字段 locked_fields。 editable_fields: type: array items: type: string title: editable_fields元素 nullable: true title: editable fields description: 字段 editable_fields。 created_by: type: string nullable: true title: created by description: 字段 created_by。 created_by_name: type: string nullable: true title: created by name description: 字段 created_by_name。 created_team_id: type: string nullable: true title: created team id description: 字段 created_team_id。 created_team_name: type: string nullable: true title: created team name description: 字段 created_team_name。 source_label: type: string nullable: true title: source label description: 字段 source_label。 line_exits: type: array items: type: string title: line_exits元素 nullable: true title: line exits description: 字段 line_exits。 monthly_settle_cents: type: integer nullable: true title: 月结算(分) description: 月结算(分)。 plan_desc: type: string nullable: true title: plan desc description: 字段 plan_desc。 sort_no: type: number nullable: true title: sort no description: 字段 sort_no。 cost_items: type: array items: $ref: '#/components/schemas/PlanCostItemRow' nullable: true title: cost items description: 字段 cost_items。 required: - plan_id - plan_name - plan_kind - plan_family - annual_price_cents - sub_account_quota - bandwidth_committed - bandwidth_up_mbps - bandwidth_down_mbps - customer_id - status - created_at - row_version description: CatalogGetResult 业务数据 title: CatalogGetResult CatalogListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/CatalogPlanRow' title: 列表项 description: 列表项。 fixed: type: array items: $ref: '#/components/schemas/CatalogPlanRow' nullable: true description: 同一次请求按 plan_kind 分组返回, 两次请求 title: fixed custom: type: array items: $ref: '#/components/schemas/CatalogPlanRow' nullable: true title: custom description: 字段 custom。 total: type: integer nullable: true title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 facets: type: object properties: created_team: type: array items: $ref: '#/components/schemas/CatalogFacetItem' created_by: type: array items: $ref: '#/components/schemas/CatalogFacetItem' required: - created_team - created_by nullable: true description: '* R-14 台账筛选下拉项:服务端在「base 谓词 ∧ plan_kind=custom」上聚合, * 用当前页行凑(翻页就会少选项,筛选后也凑不出已选项)。' title: facets kind_totals: type: object properties: fixed: type: number nullable: true custom: type: number nullable: true nullable: true description: tab 角标:关键字+可见域下的分档计数( 被当前 plan_kind/建档人收窄)。 title: kind totals required: - items description: CatalogListResult 业务数据 title: CatalogListResult CatalogPlanRow: type: object properties: plan_id: type: string title: 档位 ID description: 档位 ID。 plan_name: type: string title: 档位名称 description: 档位名称。 plan_kind: type: string title: plan kind description: 字段 plan_kind。 plan_family: type: string nullable: true title: plan family description: 字段 plan_family。 annual_price_cents: type: integer title: 年价(分) description: 年价(分)。 sub_account_quota: type: number nullable: true title: sub account quota description: 字段 sub_account_quota。 bandwidth_committed: type: boolean nullable: true title: bandwidth committed description: 字段 bandwidth_committed。 bandwidth_up_mbps: type: integer nullable: true title: bandwidth up mbps description: 字段 bandwidth_up_mbps。 bandwidth_down_mbps: type: integer nullable: true title: bandwidth down mbps description: 字段 bandwidth_down_mbps。 customer_id: type: string nullable: true title: 客户 ID description: 客户 ID。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 status: type: string title: 状态 description: 状态。 created_at: type: string title: 创建时间 description: 创建时间。 row_version: type: string title: 乐观锁版本 description: 乐观锁版本。 plan_cost_cents: type: integer nullable: true description: 月成本=年订阅价 ÷ 12 向下取整(三态:null ⇒ 配齐但值为空=未配置) title: plan cost cents plan_cost_state: $ref: '#/components/schemas/ValueState' plan_cost_note: type: string nullable: true description: 月成本列备注:`failed` 时为取数失败原因;其余态为口径说明 title: plan cost note frozen: type: boolean nullable: true description: 被引用后价格类字段冻结(年价/额度/带宽/归属客户等;提示文案与 locked_fields 同源) title: frozen referred_count: type: integer nullable: true title: referred count description: 字段 referred_count。 locked_fields: type: array items: type: string title: locked_fields元素 nullable: true description: 服务端锁定字段键名清单(与弹窗置灰/提示同源,D-PKG-14) title: locked fields editable_fields: type: array items: type: string title: editable_fields元素 nullable: true title: editable fields description: 字段 editable_fields。 created_by: type: string nullable: true description: 建档归属:账号 ID+快照团队 ID,以及读侧联查出的两个名称。 title: created by created_by_name: type: string nullable: true title: created by name description: 字段 created_by_name。 created_team_id: type: string nullable: true title: created team id description: 字段 created_team_id。 created_team_name: type: string nullable: true title: created team name description: 字段 created_team_name。 source_label: type: string nullable: true title: source label description: 字段 source_label。 line_exits: type: array items: type: string title: line_exits元素 nullable: true title: line exits description: 字段 line_exits。 monthly_settle_cents: type: integer nullable: true title: 月结算(分) description: 月结算(分)。 plan_desc: type: string nullable: true title: plan desc description: 字段 plan_desc。 sort_no: type: number nullable: true title: sort no description: 字段 sort_no。 required: - plan_id - plan_name - plan_kind - plan_family - annual_price_cents - sub_account_quota - bandwidth_committed - bandwidth_up_mbps - bandwidth_down_mbps - customer_id - status - created_at - row_version description: CatalogPlanRow 业务数据 title: CatalogPlanRow CatalogUpdateResult: type: object properties: plan_id: type: string title: 档位 ID description: 档位 ID。 updated: type: boolean title: 是否已更新 description: 是否已更新。 required: - plan_id - updated description: CatalogUpdateResult 业务数据 title: CatalogUpdateResult CheckDoneResult: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 all_done: type: boolean title: all done description: 字段 all_done。 pending_rows: type: number title: pending rows description: 字段 pending_rows。 missing_item_ids: type: array items: type: string title: missing_item_ids元素 title: missing item ids description: 字段 missing_item_ids。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 required: - ticket_id - all_done - pending_rows - missing_item_ids - audit_written description: CheckDoneResult 业务数据 title: CheckDoneResult ClosureConfig: type: object properties: closure_mode: type: string title: closure mode description: 字段 closure_mode。 closure_mode_name: type: string title: closure mode name description: 字段 closure_mode_name。 row_version: type: string title: 乐观锁版本 description: 乐观锁版本。 updated_at: type: string nullable: true title: 更新时间 description: 更新时间。 updated_by: type: string nullable: true title: updated by description: 字段 updated_by。 required: - closure_mode - closure_mode_name - row_version - updated_at - updated_by description: ClosureConfig 业务数据 title: ClosureConfig ClosureConfigUpdateResult: type: object properties: closure_mode: type: string title: closure mode description: 字段 closure_mode。 changed: type: boolean title: 是否已变更 description: 是否已变更。 from: type: string nullable: true description: 同档提交(changed=false)时服务端不回此键 title: from row_version: type: integer title: 乐观锁版本 description: 乐观锁版本。 updated_by: type: string title: updated by description: 字段 updated_by。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 next_step: type: string title: next step description: 字段 next_step。 required: - closure_mode - changed - row_version - updated_by - audit_written - next_step description: ClosureConfigUpdateResult 业务数据 title: ClosureConfigUpdateResult Completion: type: object properties: completion_id: type: string title: completion id description: 字段 completion_id。 completion_no: type: string nullable: true title: completion no description: 字段 completion_no。 action: type: string nullable: true title: 动作 description: 动作。 exec_conclusion: type: string nullable: true title: exec conclusion description: 字段 exec_conclusion。 mode: type: string nullable: true title: mode description: 字段 mode。 pushed_at: type: string nullable: true title: pushed at description: 字段 pushed_at。 pushed_by: type: string nullable: true title: pushed by description: 字段 pushed_by。 receipt_at: type: string nullable: true title: receipt at description: 字段 receipt_at。 receipt_valid: type: string nullable: true description: 回执仍有效(`"1"`/`"0"`)=`receipt_at` 非空且晚于最近一次退回重办;退回后回执失效但 `receipt_at` 仍是历史值。 title: receipt valid receipt_user_id: type: string nullable: true title: receipt user id description: 字段 receipt_user_id。 receipt_remark: type: string nullable: true title: receipt remark description: 字段 receipt_remark。 ip_rule_version: type: string nullable: true title: ip rule version description: 字段 ip_rule_version。 pdf_ready: type: string nullable: true title: pdf ready description: 字段 pdf_ready。 row_version: type: string title: 乐观锁版本 description: 乐观锁版本。 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 required: - completion_id - completion_no - action - exec_conclusion - mode - pushed_at - pushed_by - receipt_at - receipt_valid - receipt_user_id - receipt_remark - ip_rule_version - pdf_ready - row_version - created_at description: Completion 业务数据 title: Completion CompletionGenerateResult: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 ticket_status: $ref: '#/components/schemas/TicketStatus' completion_id: type: string title: completion id description: 字段 completion_id。 completion_no: type: string title: completion no description: 字段 completion_no。 action: type: string title: 动作 description: 动作。 exec_conclusion: type: string title: exec conclusion description: 字段 exec_conclusion。 mode: type: string title: mode description: 字段 mode。 pushed_at: type: string title: pushed at description: 字段 pushed_at。 pushed_by: type: string title: pushed by description: 字段 pushed_by。 pushed_by_name: type: string nullable: true title: pushed by name description: 字段 pushed_by_name。 ip_rule_version: type: string title: ip rule version description: 字段 ip_rule_version。 pdf_oss_key: type: string nullable: true title: pdf oss key description: 字段 pdf_oss_key。 reissued: type: boolean title: 换新条数 description: 换新条数。 receipt_valid: type: boolean title: receipt valid description: 字段 receipt_valid。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 next_step: type: string title: next step description: 字段 next_step。 required: - ticket_id - ticket_status - completion_id - completion_no - action - exec_conclusion - mode - pushed_at - pushed_by - pushed_by_name - ip_rule_version - pdf_oss_key - reissued - receipt_valid - audit_written - next_step description: CompletionGenerateResult 业务数据 title: CompletionGenerateResult CompletionReceiptResult: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 ticket_status: $ref: '#/components/schemas/TicketStatus' completion_no: type: string nullable: true title: completion no description: 字段 completion_no。 receipt_at: type: string title: receipt at description: 字段 receipt_at。 receipt_user_id: type: string title: receipt user id description: 字段 receipt_user_id。 receipt_user_name: type: string nullable: true title: receipt user name description: 字段 receipt_user_name。 settled_at: type: string title: 办结时间 description: 办结时间。 completed_at: type: string title: 完成时间 description: 完成时间。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 next_step: type: string title: next step description: 字段 next_step。 required: - ticket_id - ticket_status - completion_no - receipt_at - receipt_user_id - receipt_user_name - settled_at - completed_at - audit_written - next_step description: CompletionReceiptResult 业务数据 title: CompletionReceiptResult CompletionReject: type: object properties: reject_seq: type: string title: reject seq description: 字段 reject_seq。 channel: type: string title: channel description: 字段 channel。 completion_no: type: string title: completion no description: 字段 completion_no。 primary_code: type: string title: primary code description: 字段 primary_code。 reason_codes: type: string title: reason codes description: 字段 reason_codes。 reason_text: type: string title: reason text description: 字段 reason_text。 pushed_at: type: string nullable: true title: pushed at description: 字段 pushed_at。 rejected_at: type: string nullable: true title: rejected at description: 字段 rejected_at。 required: - reject_seq - channel - completion_no - primary_code - reason_codes - reason_text - pushed_at - rejected_at description: 竣工驳回记录(`ticket_completion_reject`,)。 出参里没有 `external_reject_no`: 把它列为门户/合伙人 回显字段, 服务端直接把它排除在 SELECT 之外,前端 指望"拿到再隐藏"。 title: CompletionReject CompletionRejectResult: type: object description: 竣工驳回结果 properties: ticket_id: type: string description: 工单 ID title: 工单 ID ticket_no: type: string description: 工单号 nullable: true title: 工单号 ticket_status: type: string description: 工单状态 title: ticket status reject_seq: type: string description: 驳回序号 title: reject seq completion_no: type: string description: 竣工单号 title: completion no primary_code: type: string description: 主原因码 title: primary code reason_codes: type: array items: type: string title: reason_codes元素 description: 驳回原因码列表 title: reason codes completion_channel: type: string description: 竣工通道 nullable: true title: completion channel external_wait_seconds: type: integer description: 外部等待秒数 nullable: true title: external wait seconds row_version: type: integer description: 乐观锁版本 nullable: true title: 乐观锁版本 pathway: type: string description: 通路标识 nullable: true title: pathway idempotent_replay: type: boolean description: 是否幂等重放 nullable: true title: idempotent replay message: type: string description: 结果说明 title: 说明 required: - ticket_id - ticket_status - reject_seq - completion_no - primary_code - reason_codes - message title: CompletionRejectResult ConstructionGuide: type: object properties: ticket_type: type: string nullable: true title: 工单类型 description: 工单类型。 plan: $ref: '#/components/schemas/ConstructionPlanSummary' member_plans: type: array items: $ref: '#/components/schemas/ConstructionPlanSummary' nullable: true title: member plans description: 字段 member_plans。 defaults: $ref: '#/components/schemas/ConstructionGuideDefaults' prior_activation: $ref: '#/components/schemas/PriorActivation' plan_before: $ref: '#/components/schemas/ConstructionPlanSummary' plan_after: $ref: '#/components/schemas/ConstructionPlanSummary' pending_accounts: type: array items: $ref: '#/components/schemas/OpenStopAccount' nullable: true description: 开通类待开通分账号预览。 title: pending accounts bandwidth_missing: type: boolean nullable: true title: bandwidth missing description: 字段 bandwidth_missing。 subscription_missing: type: boolean nullable: true title: subscription missing description: 字段 subscription_missing。 subscription_fallback: type: boolean nullable: true title: subscription fallback description: 字段 subscription_fallback。 hint: type: string nullable: true title: hint description: 字段 hint。 description: ConstructionGuide 业务数据 title: ConstructionGuide ConstructionGuideDefaults: type: object properties: line_exits: type: array items: type: string title: line_exits元素 nullable: true title: line exits description: 字段 line_exits。 suggest_down_mbps: type: integer nullable: true title: suggest down mbps description: 字段 suggest_down_mbps。 suggest_up_mbps: type: integer nullable: true title: suggest up mbps description: 字段 suggest_up_mbps。 suggest_ip_bandwidth_mbps: type: integer nullable: true title: suggest ip bandwidth mbps description: 字段 suggest_ip_bandwidth_mbps。 suggest_seat_count: type: integer nullable: true title: suggest seat count description: 字段 suggest_seat_count。 description: ConstructionGuideDefaults 业务数据 title: ConstructionGuideDefaults ConstructionPlanSummary: type: object properties: subscription_id: type: string nullable: true title: 订阅 ID description: 订阅 ID。 plan_id: type: string nullable: true title: 档位 ID description: 档位 ID。 plan_name: type: string nullable: true title: 档位名称 description: 档位名称。 plan_kind: type: string nullable: true title: plan kind description: 字段 plan_kind。 plan_family: type: string nullable: true title: plan family description: 字段 plan_family。 quantity: type: number nullable: true title: quantity description: 字段 quantity。 sub_account_quota: type: number nullable: true title: sub account quota description: 字段 sub_account_quota。 quota_slots: type: number nullable: true title: quota slots description: 字段 quota_slots。 bandwidth_up_mbps: type: integer nullable: true title: bandwidth up mbps description: 字段 bandwidth_up_mbps。 bandwidth_down_mbps: type: integer nullable: true title: bandwidth down mbps description: 字段 bandwidth_down_mbps。 bandwidth_committed: type: boolean nullable: true title: bandwidth committed description: 字段 bandwidth_committed。 bandwidth_missing: type: boolean nullable: true description: 档位未配齐上下行。 title: bandwidth missing bandwidth_from_prior: type: boolean nullable: true description: 带宽取自历史开通通路,非档位承诺值。 title: bandwidth from prior line_exits: oneOf: - type: string - type: string nullable: true title: line exits description: 字段 line_exits。 status: type: string nullable: true title: 状态 description: 状态。 parent_subscription_id: type: string nullable: true title: parent subscription id description: 字段 parent_subscription_id。 replaces_subscription_id: type: string nullable: true title: replaces subscription id description: 字段 replaces_subscription_id。 summary: type: string nullable: true title: summary description: 字段 summary。 items: type: array items: $ref: '#/components/schemas/ServiceItem' nullable: true title: 列表项 description: 列表项。 description: 套餐/订阅施工参考摘要。 title: ConstructionPlanSummary ContractAttachmentDiscardResult: type: object properties: discarded: type: boolean description: '`true`=本次真的删了;`false`=仍被合同引用或删除未成功(看 `object_delete`)。' title: discarded referenced: type: boolean description: '`true`=查库发现仍有合同指向它(并发保存刚提交也会落到这里)⇒ 未删除。' title: referenced object_delete: $ref: '#/components/schemas/ContractObjectReclaim' note: type: string nullable: true title: 备注 description: 备注。 required: - discarded - referenced description: ContractAttachmentDiscardResult 业务数据 title: ContractAttachmentDiscardResult ContractChangeLogItem: type: object properties: occurred_at: type: string nullable: true title: occurred at description: 字段 occurred_at。 action: type: string title: 动作 description: 动作。 action_label: type: string title: action label description: 字段 action_label。 actor: type: object properties: user_id: type: string nullable: true name: type: string nullable: true required: - user_id - name title: actor description: 字段 actor。 detail: type: object additionalProperties: {} nullable: true description: 审计 detail:`fields`(字段旧→新)/`items_diff`/`item_labels`/`ip_diff` … title: detail cursor: type: string nullable: true description: '`occurred_at` 缺失时回 `null`(该条翻不动页)' title: 游标 required: - occurred_at - action - action_label - actor - detail - cursor description: ContractChangeLogItem 业务数据 title: ContractChangeLogItem ContractDeleteResult: type: object properties: deleted: type: boolean title: 是否已删除 description: 是否已删除。 blocks: type: object properties: subscriptions: type: array items: {} nullable: true tickets: type: array items: {} nullable: true nullable: true title: blocks description: 字段 blocks。 ticket_state: type: string nullable: true title: ticket state description: 字段 ticket_state。 attachment_object_delete: $ref: '#/components/schemas/ContractObjectReclaim' required: - deleted description: ContractDeleteResult 业务数据 title: ContractDeleteResult ContractEditAxis: type: object properties: editable: type: boolean title: editable description: 字段 editable。 reason: type: string nullable: true description: '`opened`|`expired`|`synced_source`|`grace_expired`|`effective`' title: reason required: - editable - reason description: 编辑口径的单轴结论(`reason` 是机器码,文案表在前端;`null`=该轴可改)。 title: ContractEditAxis ContractEditScope: type: object properties: state: type: string description: '`pending`|`effective_unopened`|`opened`|`expired`' title: state billing: $ref: '#/components/schemas/ContractEditAxis' archive: $ref: '#/components/schemas/ContractEditAxis' grace_until: type: string nullable: true description: 录后更正期截止时刻(RFC3339);`null`=录入时刻缺失或不可解析 title: grace until agent: type: object properties: editable: type: string description: 类型:false reason: type: string description: 类型:"filled_from_account" note: type: string required: - editable - reason - note nullable: true title: agent description: 字段 agent。 required: - state - billing - archive - grace_until description: ContractEditScope 业务数据 title: ContractEditScope ContractListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/ContractRow' title: 列表项 description: 列表项。 stats: type: object properties: total: type: number opened: type: number not_opened: type: number required: - total - opened - not_opened nullable: true description: 统计卡与列表同谓词 title: stats total: type: integer nullable: true title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 required: - items description: ContractListResult 业务数据 title: ContractListResult ContractLookupCustomer: type: object properties: customer_id: type: string title: 客户 ID description: 客户 ID。 customer_name: type: string title: 客户名称 description: 客户名称。 identity_no_masked: type: string nullable: true title: identity no masked description: 字段 identity_no_masked。 province_name: type: string nullable: true title: province name description: 字段 province_name。 required: - customer_id - customer_name description: ContractLookupCustomer 业务数据 title: ContractLookupCustomer ContractLookupResult: type: object properties: matched: type: boolean title: 是否匹配 description: 是否匹配。 customers: type: array items: $ref: '#/components/schemas/ContractLookupCustomer' title: 客户数 description: 客户数。 required: - matched - customers description: ContractLookupResult 业务数据 title: ContractLookupResult ContractObjectReclaim: type: object properties: status: type: string enum: - deleted - partial - failed title: 状态 description: 状态。 reason: type: string nullable: true title: reason description: 字段 reason。 deleted: type: number nullable: true title: 是否已删除 description: 是否已删除。 failed_codes: type: array items: type: number title: failed_codes元素 nullable: true title: failed codes description: 字段 failed_codes。 error: type: string nullable: true title: error description: 字段 error。 required: - status description: 附件对象回收回执(写口即时回收 / 孤儿回。 `reason`:`attachment_replaced`(被替换/清空)/`contract_deleted`(合同删除)/ `unsaved_upload`(上传后没人引用)。`failed` 时需运维按合同档案补删。 title: ContractObjectReclaim ContractRenewalConfig: type: object description: 合同续签提醒配置 properties: notice_days: type: integer description: 提前提醒天数(1~180) title: notice days generate_mode: type: string description: 生成模式 title: generate mode row_version: type: integer description: 乐观锁版本 title: 乐观锁版本 required: - notice_days - generate_mode - row_version title: ContractRenewalConfig ContractRenewalConfigUpdateResult: type: object description: 合同续签提醒配置更新结果 properties: notice_days: type: integer description: 提前提醒天数 title: notice days generate_mode: type: string description: 生成模式 title: generate mode row_version: type: integer description: 新版本号 title: 乐观锁版本 updated: type: boolean description: 是否已更新 title: 是否已更新 required: - notice_days - generate_mode - row_version - updated title: ContractRenewalConfigUpdateResult ContractReplacementResult: type: object properties: item_index: type: number description: 0 基条目下标(与请求 `service_items` 对齐)。 title: item index mode: type: string enum: - replaced - renewed nullable: true description: '* `replaced`=截原替换(升降配);`renewed`=续签新开(到期续签/按新订阅开通, * 截原、 替换边、 `updown`)。' title: mode subscription_id: type: string title: 订阅 ID description: 订阅 ID。 replaces_subscription_id: type: string nullable: true description: 续签新开时为 `null`(旧订阅没被回收)。 title: replaces subscription id ticket_type: type: string nullable: true description: 实际生成的工单类型:已交付且客户在用 ⇒ `updown`;未交付 ⇒ `open`/`service_open`;未生成 ⇒ `null`。 title: 工单类型 ticket_no: type: string nullable: true title: 工单号 description: 工单号。 note: type: string nullable: true title: 备注 description: 备注。 audit_written: type: boolean nullable: true title: 是否已写审计 description: 是否已写审计。 actual_opened_at: type: string nullable: true description: '* 续签且服务内容未变 ⇒ 免派工,新订阅按续签开始日视为已交付(`actual_opened_at` 的落点)。 * 未免派工(或回填失败)时为 `null`。' title: actual opened at required: - item_index - subscription_id - replaces_subscription_id description: '`POST /contract/create@v1` 回执里的逐条替换结果。' title: ContractReplacementResult ContractRow: type: object properties: contract_id: type: string title: 合同 ID description: 合同 ID。 customer_id: type: string title: 客户 ID description: 客户 ID。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 contract_no: type: string title: 合同编号 description: 合同编号。 external_no: type: string nullable: true title: external no description: 字段 external_no。 status: type: string title: 状态 description: 状态。 contract_amount_cents: type: integer title: contract amount cents description: 字段 contract_amount_cents。 amount_cents: type: integer nullable: true title: 金额(分) description: 金额(分)。 discount_rate_pct: type: number nullable: true description: 折扣率(百分数,默认 100);最终合同金额=套餐总×本列/100。 title: discount rate pct contract_type: type: string nullable: true description: 合同类型:`new`(新建)/`renew`(续签)/`expand`(扩容补充协议)/`change`(变更协议)。 title: contract type sign_date: type: string nullable: true description: 签署日期(`YYYY-MM-DD`;存量行按交接日期回填)。 title: sign date service_months: type: number nullable: true description: 服务期(月):结束日=生效日+服务期−1 天(替代原 `pay_cycle`)。 title: service months start_date: type: string nullable: true title: 开始日 description: 开始日。 end_date: type: string nullable: true title: 结束日 description: 结束日。 agent_name: type: string nullable: true title: agent name description: 字段 agent_name。 agent_mobile: type: string nullable: true title: agent mobile description: 字段 agent_mobile。 agent_handover_on: type: string nullable: true title: agent handover on description: 字段 agent_handover_on。 agent_org: type: string nullable: true title: agent org description: 字段 agent_org。 attachment_url: type: string nullable: true description: '* 合同附件(单值,):外部 `http(s)` 链接,或浏览器直传平台桶后回报的对象键 * (`klt/contract/attachment/…`)。 直接把对象键当可打开的链接用。' title: attachment url attachment_kind: type: string enum: - none - link - object - other nullable: true description: 附件取值形态:`none`/`link`(外部链接)/`object`(对象键,需读口现签)/`other`(存量脏值)。 title: attachment kind attachment_view_url: type: string nullable: true description: 短时效下载地址:`link`=原链接;`object`=详情读口现签;列表口恒 `null`( 按行 N 次调平台)。 title: attachment view url attachment_view_url_expires_at: type: string nullable: true title: attachment view url expires at description: 字段 attachment_view_url_expires_at。 service_items: type: array items: $ref: '#/components/schemas/ContractServiceItem' nullable: true title: service items description: 字段 service_items。 created_at: type: string description: 合同级 `ip_entries` 自 不再下发:固定 IP 条目已由「套餐档位 × 订阅份数」取代, * 历史行只留在库里追溯;读到该键=对端仍是旧版本,页面不应再据此渲染 IP 表。 title: 创建时间 source: type: string nullable: true description: 合同来源(`manual`/`import`/`operator_sync`)——编辑口径按它分叉 title: 来源 created_by: type: string nullable: true description: 合同经办人=界面录入账号 ID(存量行 `null`=未记录) title: created by created_by_name: type: string nullable: true title: created by name description: 字段 created_by_name。 created_by_org: type: string nullable: true description: 录入账号所属机构(运营/运维团队名;`hq` 账号回落「总运营」);`null`=未记录 title: created by org created_by_mobile: type: string nullable: true description: 录入账号绑定手机号(后端已按需求 掩码);`null`=未绑定 title: created by mobile edit_scope: $ref: '#/components/schemas/ContractEditScope' row_version: type: string title: 乐观锁版本 description: 乐观锁版本。 opened: type: boolean nullable: true title: opened description: 字段 opened。 opened_state: $ref: '#/components/schemas/ValueState' source_label: type: string nullable: true description: 合同来源标识 title: source label customer_free_text: type: string nullable: true description: 自由录入的客户资料(customer_lookup 未命中时) title: customer free text actual_opened_at: type: string nullable: true description: 实际开通日:本册只读,唯一写入方=工单回填 title: actual opened at required: - contract_id - customer_id - contract_no - external_no - status - contract_amount_cents - start_date - end_date - agent_name - agent_mobile - agent_handover_on - agent_org - attachment_url - created_at - row_version description: ContractRow 业务数据 title: ContractRow ContractServiceItem: type: object properties: item_id: type: string nullable: true title: item id description: 字段 item_id。 plan_id: type: string nullable: true title: 档位 ID description: 档位 ID。 quantity: type: number nullable: true title: quantity description: 字段 quantity。 item_family: type: string nullable: true description: 交付形态回落值:读侧随条目下发,写侧由后端从档位带入( 前端造值)。 title: item family line_exits: type: array items: type: string title: line_exits元素 nullable: true description: 线路出口:单选(恰 1 个);新建/修改条目多值由后端回 `KLT-L222`。 title: line exits succession: $ref: '#/components/schemas/ContractSuccessionReq' plan_name: type: string nullable: true title: 档位名称 description: 档位名称。 sub_account_quota: type: number nullable: true description: 所引目录档的分账号额度( 依赖目录列表接口才能显示账号数)。 title: sub account quota remark: type: string nullable: true title: 备注 description: 备注。 serves_item_id: type: string nullable: true description: '* P1:叠加服务所服务的父条目主键;`link` 条目恒空。 * 新建合同里父条目也是本次新建时,父还没有主键 ⇒ 改用 `serves_item_index`(0 基序号)。' title: serves item id serves_item_index: type: number nullable: true description: 写侧:父条目在 `service_items` 里的 0 基序号( 与 `serves_item_id` 同现)。 title: serves item index item_mode: type: string nullable: true description: P1:条目形态 `new`/`increment`;读侧缺省按 `new` 渲染。 title: item mode ref_subscription_id: type: string nullable: true description: P1:增量条目引用的既有链路订阅(可跨合同; 与 `serves_item_id` 同现)。 title: ref subscription id description: 合同服务构成条目(请求与应答同源)。 title: ContractServiceItem ContractSuccessionReq: type: object properties: replaces_subscription_id: type: string description: 被替换的原订阅(本客户、active/pending、同分类同出口、未被替换过)。 title: replaces subscription id start_date: type: string nullable: true description: 新订阅起日,缺省=max(业务当天, 合同生效日);结束日恒取合同止期。 title: 开始日 term: type: string nullable: true description: 订阅方式(`yearly`/`monthly`);缺省按档位与分类派生。 title: term required: - replaces_subscription_id description: 契约内逐条替换的 `service_items[].succession`。 只认这三键:价格、状态、`row_version` 等只读派生列出现即 `KLT-L222` 点名。 title: ContractSuccessionReq ContractUpdateResult: type: object properties: contract_id: type: string title: 合同 ID description: 合同 ID。 updated: type: boolean title: 是否已更新 description: 是否已更新。 attachment_object_delete: $ref: '#/components/schemas/ContractObjectReclaim' required: - contract_id - updated description: ContractUpdateResult 业务数据 title: ContractUpdateResult CorrectionCreateResult: type: object properties: correction_id: type: string title: correction id description: 字段 correction_id。 required: - correction_id description: CorrectionCreateResult 业务数据 title: CorrectionCreateResult CorrectionDetailResult: type: object properties: correction_id: type: string title: correction id description: 字段 correction_id。 created_at: type: string title: 创建时间 description: 创建时间。 period: type: string nullable: true title: 账期 description: 字段 period。 region_label: type: string nullable: true title: region label description: 字段 region_label。 region_node_id: type: string nullable: true description: 归属区域节点 ID:详情窗与列表同口径兜底取名(缺陷 详情「—」、列表「江苏省」)。 title: 区域节点 ID operator_name: type: string description: 登记人可读名(与列表「登记人」列同口径)。 title: operator name holder_name: type: string nullable: true description: 分成方(运营商)名, 当登记人渲染。 title: holder name error_text: type: string title: error text description: 字段 error_text。 raw_ref: type: string nullable: true title: 原始关联 description: 字段 raw_ref。 matched: type: boolean title: 是否匹配 description: 是否匹配。 matched_batch_no: type: string nullable: true title: matched batch no description: 字段 matched_batch_no。 matched_bill_detail_id: type: string nullable: true title: matched bill detail id description: 字段 matched_bill_detail_id。 matched_holder_id: type: string nullable: true description: '* 命中批次的持有方 id(拼批次详情路由 `/settlement-batches/:holderId/:no` 用); * 未下发 ⇒ batch_no 渲纯文本、不给批次入口(明细入口不受影响),已登记缺口清单。' title: matched holder id required: - correction_id - created_at - period - region_label - operator_name - error_text - raw_ref - matched - matched_batch_no - matched_bill_detail_id description: CorrectionDetailResult 业务数据 title: CorrectionDetailResult CorrectionDraftResult: type: object properties: form: type: string description: 字段 form。 nullable: true title: 表单 required: - form description: CorrectionDraftResult 业务数据 title: CorrectionDraftResult CorrectionDraftSaveResult: type: object description: 纠错单草稿保存结果 properties: correction_id: type: string description: 纠错单 ID title: correction id saved: type: boolean description: 是否已保存 title: 是否已保存 row_version: type: integer description: 乐观锁版本 nullable: true title: 乐观锁版本 required: - correction_id - saved title: CorrectionDraftSaveResult CorrectionRow: type: object properties: correction_id: type: string title: correction id description: 字段 correction_id。 created_at: type: string title: 创建时间 description: 创建时间。 period: type: string nullable: true description: 自然月不落库、现推;取不到 ⇒ null(界面显示「—」, 相似度推测) title: 账期 ref_label: type: string description: 关联对象展示文本(命中候选=候选标签;未命中=raw_ref 原文) title: ref label region_label: type: string nullable: true title: region label description: 字段 region_label。 region_node_id: type: string nullable: true description: 归属区域节点 ID(系统推导落库);`region_label` 缺值时前端据此从区域树取名。 title: 区域节点 ID operator_name: type: string description: 登记人可读名(显示名→登录名);`operator_keyword` 按同一口径筛(缺陷 此前是分成方名)。 title: operator name holder_name: type: string nullable: true description: 分成方(运营商)名—— 当登记人渲染,只在需要时另列。 title: holder name created_by: type: string nullable: true description: 登记人=网关注入的登录用户 ID。 title: created by error_excerpt: type: string description: 错误内容摘要(超 100 字截断;全文只在详情, 复制第二份) title: error excerpt matched: type: boolean description: false ⇒ 标「未关联到系统账目」 title: 是否匹配 required: - correction_id - created_at - period - ref_label - region_label - operator_name - error_excerpt - matched description: CorrectionRow 业务数据 title: CorrectionRow CostAmountListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/CostAmountPivotRow' title: 列表项 description: 列表项。 total: type: integer nullable: true title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 available: type: boolean nullable: true description: '`false`=一条透视行都配不出来,`message` 说明原因。' title: available message: type: string nullable: true title: 说明 description: 说明。 rows: type: array items: $ref: '#/components/schemas/CostAmountRow' nullable: true title: 行集 description: 行集。 rows_total: type: number nullable: true title: rows total description: 字段 rows_total。 rows_unattributed: type: array items: $ref: '#/components/schemas/CostAmountRow' nullable: true title: rows unattributed description: 字段 rows_unattributed。 rows_unattributed_total: type: number nullable: true title: rows unattributed total description: 字段 rows_unattributed_total。 required: - items description: CostAmountListResult 业务数据 title: CostAmountListResult CostAmountPivotRow: type: object properties: province_node_id: type: string title: province node id description: 字段 province_node_id。 province_name: type: string nullable: true title: province name description: 字段 province_name。 operator_id: type: string title: 运营商 ID description: 运营商 ID。 operator_name: type: string nullable: true title: operator name description: 字段 operator_name。 items: type: array items: $ref: '#/components/schemas/CostAmountRow' title: 列表项 description: 列表项。 required: - province_node_id - province_name - operator_id - operator_name - items description: CostAmountPivotRow 业务数据 title: CostAmountPivotRow CostAmountRow: type: object properties: amount_id: type: string nullable: true title: amount id description: 字段 amount_id。 province_node_id: type: string title: province node id description: 字段 province_node_id。 operator_id: type: string title: 运营商 ID description: 运营商 ID。 cost_item_id: type: string title: cost item id description: 字段 cost_item_id。 item_name: type: string nullable: true title: item name description: 字段 item_name。 category: type: string nullable: true title: category description: 字段 category。 province_name: type: string nullable: true description: 名称无来源(后端 区域名称表)⇒ `null`=后端未下发, 由前端造名称。 title: province name operator_name: type: string nullable: true title: operator name description: 字段 operator_name。 period: type: string nullable: true title: 账期 description: 字段 period。 amount_cents: type: integer nullable: true title: 金额(分) description: 金额(分)。 row_version: oneOf: - type: number - type: string nullable: true title: 乐观锁版本 description: 乐观锁版本。 required: - province_node_id - operator_id - cost_item_id - amount_cents - row_version description: 成本金额明细行 title: CostAmountRow CostAmountSaveResult: type: object properties: province_node_id: type: string title: province node id description: 字段 province_node_id。 operator_id: type: string title: 运营商 ID description: 运营商 ID。 saved: type: boolean title: 是否已保存 description: 是否已保存。 deleted_count: type: integer nullable: true description: 留空被删除的差异行数 title: deleted count required: - province_node_id - operator_id - saved description: CostAmountSaveResult 业务数据 title: CostAmountSaveResult CostItemDeleteResult: type: object properties: deleted: type: boolean title: 是否已删除 description: 是否已删除。 cost_item_id: type: string nullable: true title: cost item id description: 字段 cost_item_id。 audit_written: type: boolean nullable: true title: 是否已写审计 description: 是否已写审计。 note: type: string nullable: true title: 备注 description: 备注。 required: - deleted description: CostItemDeleteResult 业务数据 title: CostItemDeleteResult CostItemListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/CostItemRow' title: 列表项 description: 列表项。 total: type: integer nullable: true title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 columns_pending: type: array items: type: string title: columns_pending元素 nullable: true description: 下发的列名清单(dev 库尚未补列 ⇒ 名称之外的字段可能整体缺位)。 title: columns pending required: - items description: CostItemListResult 业务数据 title: CostItemListResult CostItemRow: type: object properties: cost_item_id: type: string title: cost item id description: 字段 cost_item_id。 item_id: type: string nullable: true title: item id description: 字段 item_id。 category: type: string nullable: true description: 类别(`intl_resource`/`device_purchase`/`project_fee`);`null`=历史行未灌值 ⇒「后端未下发」。 title: category item_name: type: string title: item name description: 字段 item_name。 billing_unit: type: string nullable: true description: 计费单位(`per_customer`/`per_account`/`per_copy`);同上可为 `null`。 title: billing unit is_amortized: type: boolean nullable: true title: is amortized description: 字段 is_amortized。 amortization_months: type: number nullable: true title: amortization months description: 字段 amortization_months。 deduct_from_base: type: boolean nullable: true title: deduct from base description: 字段 deduct_from_base。 remark: type: string nullable: true title: 备注 description: 备注。 status: type: string title: 状态 description: 状态。 row_version: oneOf: - type: number - type: string nullable: true title: 乐观锁版本 description: 乐观锁版本。 cycle: type: string nullable: true description: 周期(设计册 分成:一期恒 `monthly`);`null`=旧库未补列 ⇒「后端未下发」。 title: cycle configured_row_count: type: integer nullable: true description: 该成本项名下金额行总数(含缺省份/运营商轴的存量行;后端 `LEFT JOIN` 现算)。 title: configured row count configured_combo_count: type: integer nullable: true description: 已配金额的「省份×运营商」组合数(后端 `LEFT JOIN` 现算;0=一条都没配)。 title: configured combo count configured_total_cents: type: integer nullable: true description: 这些组合的月合计(整数分)。 title: configured total cents referring_plan_count: type: integer nullable: true description: 被套餐档引用份数(按 `plan_cost_item.cost_item_id` 强引用现算)。 title: referring plan count referring_plans: type: array items: type: object properties: plan_id: type: string plan_name: type: string nullable: true required: - plan_id - plan_name nullable: true description: 引用该成本项的套餐档;`[]`=真的没有档位引用,`null`=后端未下发该概况。 title: referring plans required: - cost_item_id - category - item_name - billing_unit - is_amortized - amortization_months - deduct_from_base - remark - status - row_version description: CostItemRow 业务数据 title: CostItemRow CostItemSaveResult: type: object properties: cost_item_id: type: string title: cost item id description: 字段 cost_item_id。 saved: type: boolean title: 是否已保存 description: 是否已保存。 required: - cost_item_id - saved description: CostItemSaveResult 业务数据 title: CostItemSaveResult CustomerAttributionResult: type: object properties: customer_id: type: string title: 客户 ID description: 客户 ID。 updated: type: boolean title: 是否已更新 description: 是否已更新。 blocked: type: array items: type: string title: 阻塞项元素 title: 阻塞项 description: 阻塞项。 operator_id: type: string nullable: true title: 运营商 ID description: 运营商 ID。 partner_id: type: string nullable: true title: 合伙人 ID description: 合伙人 ID。 required: - customer_id - updated - blocked description: CustomerAttributionResult 业务数据 title: CustomerAttributionResult CustomerCreateResult: type: object properties: customer_id: type: string title: 客户 ID description: 客户 ID。 user_id: type: string nullable: true title: 用户 ID description: 用户 ID。 activation_code: type: string nullable: true title: activation code description: 字段 activation_code。 required: - customer_id description: CustomerCreateResult 业务数据 title: CustomerCreateResult CustomerDeletePrecheck: type: object properties: customer_id: type: string nullable: true title: 客户 ID description: 客户 ID。 can_delete: type: boolean title: can delete description: 字段 can_delete。 blockers: type: array items: type: string title: blockers元素 title: blockers description: 字段 blockers。 verified_checks: type: array items: type: object properties: key: type: string label: type: string count: type: number blocking: type: boolean required: - key - label - count - blocking nullable: true title: verified checks description: 字段 verified_checks。 unverifiable_checks: type: array items: type: object properties: key: type: string label: type: string nullable: true why: type: string nullable: true reason: type: string nullable: true required: - key nullable: true title: unverifiable checks description: 字段 unverifiable_checks。 precheck_version: type: string title: precheck version description: 字段 precheck_version。 message: type: string nullable: true title: 说明 description: 说明。 required: - can_delete - blockers - precheck_version description: CustomerDeletePrecheck 业务数据 title: CustomerDeletePrecheck CustomerDeleteResult: type: object properties: customer_id: type: string title: 客户 ID description: 客户 ID。 deleted: type: boolean title: 是否已删除 description: 是否已删除。 blockers: type: array items: type: string title: blockers元素 nullable: true title: blockers description: 字段 blockers。 verified_checks: type: array items: type: object properties: key: type: string label: type: string count: type: number blocking: type: boolean required: - key - label - count - blocking nullable: true title: verified checks description: 字段 verified_checks。 unverifiable_checks: type: array items: type: object properties: key: type: string label: type: string nullable: true why: type: string nullable: true reason: type: string nullable: true required: - key nullable: true title: unverifiable checks description: 字段 unverifiable_checks。 precheck_version: type: string nullable: true title: precheck version description: 字段 precheck_version。 required: - customer_id - deleted description: CustomerDeleteResult 业务数据 title: CustomerDeleteResult CustomerDetail: type: object properties: customer: type: object properties: customer_id: type: string customer_name: type: string subject_type: type: string operator_id: type: string nullable: true operator_name: type: string nullable: true partner_id: type: string nullable: true partner_name: type: string nullable: true acct_status: type: string quota_cents: type: string created_at: type: string nullable: true updated_at: type: string nullable: true contact_name: type: string nullable: true contact_mobile: type: string nullable: true tech_contact_name: type: string nullable: true tech_contact_mobile: type: string nullable: true finance_contact_name: type: string nullable: true finance_contact_mobile: type: string nullable: true remark: type: string nullable: true address: type: string nullable: true identity_no_masked: type: string nullable: true row_version: type: number nullable: true required: - customer_id - customer_name - subject_type - operator_id - operator_name - partner_id - partner_name - acct_status - quota_cents - created_at title: customer description: 字段 customer。 team_ids: type: array items: type: string title: team_ids元素 description: 当期承接团队(运维团队;历史脏数据可能回显 >1,前端按实呈现并提示改派)。 title: team ids sub_account_count: type: integer title: sub account count description: 字段 sub_account_count。 region_mounts: type: array items: type: object properties: parent_node_id: type: string hierarchy_id: type: string terminal_state: type: string path_name: type: string nullable: true required: - parent_node_id - hierarchy_id - terminal_state description: '* 挂载区域。`path_name`=层级真源 `bos_region_meta.path_name`(形如「全网/上海市/市辖区/浦东新区」), * 后端 随挂载点下发:`/region/tree@v1` 只回省级两层,挂载点常是市/区县节点 ⇒ * 光靠区域树查名必查不到(客户档案「所属区域」显示「—」实证)。未定级时后端回落为节点 ID 本身。' title: region mounts license: type: object properties: file_name: type: string nullable: true status: type: string enum: - none - viewable - expired view_url: type: string nullable: true view_url_expires_at: type: string nullable: true required: - file_name - status - view_url - view_url_expires_at nullable: true description: "* 登记材料摘要( 第八分区,`` )——一次读口给全, 为影像另发请求。 * · `status='none'`:未登记影像(个人/个体工商户恒此态,页面显示「不适用」;企业也可能未登记——影像选填); * · `status='viewable'`:`view_url` 为平台 `unified-oss` 短时效下载签名(TTL 取平台默认), * 「查看」与「下载」共用同一张签名( 前端拼地址、 另签第二张); * · `status='expired'`:`now − customer.created_at > license_image_retention_days`(默认 3650 天, * 起算点=建档日、重新上传不重置)⇒ 两格为 `null`,页面固定渲染「已超期」空态。 * 对象键 出现在响应体——前端 自行拼 URL。" title: 登记材料 required: - customer - team_ids - sub_account_count - region_mounts description: CustomerDetail 业务数据 title: CustomerDetail CustomerHistoryResult: type: object properties: items: type: array items: $ref: '#/components/schemas/CustomerHistoryRow' title: 列表项 description: 列表项。 total: type: integer title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 message: type: string nullable: true title: 说明 description: 说明。 required: - items - total description: CustomerHistoryResult 业务数据 title: CustomerHistoryResult CustomerHistoryRow: type: object properties: field_key: type: string title: field key description: 字段 field_key。 old_value: type: string nullable: true title: old value description: 字段 old_value。 new_value: type: string nullable: true title: new value description: 字段 new_value。 operator: type: string nullable: true title: operator description: 字段 operator。 changed_at: type: string nullable: true title: changed at description: 字段 changed_at。 change_basis: type: string nullable: true title: 变更依据 description: 字段 change_basis。 source: type: string title: 来源 description: 来源。 required: - field_key - old_value - new_value - operator - changed_at - change_basis - source description: CustomerHistoryRow 业务数据 title: CustomerHistoryRow CustomerListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/CustomerListRow' title: 列表项 description: 列表项。 total: type: integer title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 required: - items - total description: CustomerListResult 业务数据 title: CustomerListResult CustomerListRow: type: object properties: customer_id: type: string title: 客户 ID description: 客户 ID。 customer_name: type: string title: 客户名称 description: 客户名称。 subject_type: type: string title: 主体类型 description: 主体类型。 operator_id: type: string nullable: true title: 运营商 ID description: 运营商 ID。 operator_name: type: string nullable: true title: operator name description: 字段 operator_name。 partner_id: type: string nullable: true title: 合伙人 ID description: 合伙人 ID。 partner_name: type: string nullable: true title: partner name description: 字段 partner_name。 acct_status: type: string title: 账号状态 description: 账号状态。 quota_cents: type: string title: quota cents description: 字段 quota_cents。 identity_no_masked: type: string nullable: true description: 脱敏识别号(后端经平台 keybox 解密后掩码下发;`null`=该客户未登记识别号)。 title: identity no masked parent_node_id: type: string nullable: true description: 客户挂载的区域节点 ID(后端 扩展自 customer_region_mount.parent_node_id)。 title: 父节点 ID region_path: type: string nullable: true description: '* 挂载区域的完整路径(后端 扩展:`customer_region_mount` LEFT JOIN * `bos_region_meta.path_name`,未定级时回落节点 ID;口径同 `region_mounts.path_name`)。 * 区域树只下发授权范围内两层,市/区县级挂载点 能在树里查到名 ⇒ 列表侧必须后端下发。' title: region path team_ids: type: array items: type: string title: team_ids元素 description: 运维团队 ID(;历史脏数据可能回显 >1,前端按实呈现并提示改派)。 title: team ids ops_team_names: type: array items: type: string title: ops_team_names元素 nullable: true description: 运维团队中文名数组(后端 JOIN ops_team 批量查)。 title: ops team names plan_names: type: array items: type: string title: plan_names元素 nullable: true description: 在用订阅的套餐名数组(后端批量查 order,status ∈ pending/active;空数组=无在用订阅)。 title: plan names sub_account_count: type: integer title: sub account count description: 字段 sub_account_count。 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 required: - customer_id - customer_name - subject_type - operator_id - operator_name - partner_id - partner_name - acct_status - quota_cents - team_ids - sub_account_count - created_at description: CustomerListRow 业务数据 title: CustomerListRow CustomerMoveRegionResult: type: object properties: customer_id: type: string title: 客户 ID description: 客户 ID。 moved: type: boolean title: moved description: 字段 moved。 blocked: type: array items: type: string title: 阻塞项元素 title: 阻塞项 description: 阻塞项。 new_region_node_id: type: string nullable: true title: new region node id description: 字段 new_region_node_id。 required: - customer_id - moved - blocked description: CustomerMoveRegionResult 业务数据 title: CustomerMoveRegionResult CustomerOption: type: object properties: customer_id: type: string title: 客户 ID description: 客户 ID。 customer_name: type: string title: 客户名称 description: 客户名称。 required: - customer_id - customer_name description: CustomerOption 业务数据 title: CustomerOption CustomerUpdateResult: type: object properties: customer_id: type: string title: 客户 ID description: 客户 ID。 updated: type: boolean title: 是否已更新 description: 是否已更新。 required: - customer_id - updated description: CustomerUpdateResult 业务数据 title: CustomerUpdateResult DelegateResult: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 assignee_user_id: type: string title: 处理人用户 ID description: 处理人用户 ID。 assignee_snapshot_name: type: string title: assignee snapshot name description: 字段 assignee_snapshot_name。 delegate_from_user_id: type: string title: delegate from user id description: 字段 delegate_from_user_id。 delegated_at: type: string title: delegated at description: 字段 delegated_at。 status: $ref: '#/components/schemas/TicketStatus' required: - ticket_id - assignee_user_id - assignee_snapshot_name - delegate_from_user_id - delegated_at - status description: DelegateResult 业务数据 title: DelegateResult DeliveryExportResult: type: object properties: file_name: type: string title: 文件名 description: 文件名。 oss_key: type: string title: 对象键 description: 对象键。 row_count: type: integer title: row count description: 字段 row_count。 limit: type: number title: limit description: 字段 limit。 truncated: type: boolean title: 是否截断 description: 是否截断。 required: - file_name - oss_key - row_count - limit - truncated description: '`POST /delivery/export@v1`' title: DeliveryExportResult DeliveryListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/DeliveryRow' title: 列表项 description: 列表项。 total: type: integer title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 state: type: string nullable: true description: 本次生效的三态过滤(默认 `in_use`=在用+已到期待回收)。 title: state include_released: type: boolean nullable: true title: include released description: 字段 include_released。 required: - items - total description: '`POST /delivery/list@v1`' title: DeliveryListResult DeliveryRow: type: object properties: assign_id: type: string title: assign id description: 字段 assign_id。 state: type: string enum: - in_use - pending_release - released description: 三态:`in_use`(在用)/`pending_release`(已到期待回收)/`released`(已回收)。 title: state customer_id: type: string title: 客户 ID description: 客户 ID。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 subscription_id: type: string title: 订阅 ID description: 订阅 ID。 plan_name: type: string nullable: true title: 档位名称 description: 档位名称。 plan_family: type: string nullable: true description: 交付形态:`link`(跨境)/`addon`(附加)。 title: plan family parent_subscription_id: type: string nullable: true description: 附加订阅的父单号(前端只标注「叠加于 ⟨父单号⟩」, 折叠嵌套)。 title: parent subscription id sub_start_date: type: string nullable: true title: sub start date description: 字段 sub_start_date。 sub_end_date: type: string nullable: true title: sub end date description: 字段 sub_end_date。 opened_at: type: string nullable: true description: 开通日(订阅 `actual_opened_at`)。 title: opened at sub_account_id: type: string title: sub account id description: 字段 sub_account_id。 username: type: string nullable: true title: 登录名 description: 登录名。 display_name: type: string nullable: true title: 显示名 description: 显示名。 net_account: type: string nullable: true title: net account description: 字段 net_account。 account_status: type: string nullable: true title: account status description: 字段 account_status。 overseas_ip: type: string nullable: true title: overseas ip description: 字段 overseas_ip。 ip_egress: type: string nullable: true title: ip egress description: 字段 ip_egress。 ip_type: type: string nullable: true title: ip type description: 字段 ip_type。 declared_bandwidth_mbps: type: integer nullable: true description: 台账申报带宽(IP 侧口径;跨境账号另见 `plan_bandwidth_*`)。 title: declared bandwidth mbps activated_at: type: string nullable: true title: 激活时间 description: 激活时间。 released_at: type: string nullable: true title: released at description: 字段 released_at。 release_reason: type: string nullable: true title: release reason description: 字段 release_reason。 source_ticket_no: type: string nullable: true description: 来源回填单号(`ticket.ticket_no`)。 title: source ticket no plan_bandwidth_committed: type: boolean nullable: true title: plan bandwidth committed description: 字段 plan_bandwidth_committed。 plan_bandwidth_up_mbps: type: integer nullable: true title: plan bandwidth up mbps description: 字段 plan_bandwidth_up_mbps。 plan_bandwidth_down_mbps: type: integer nullable: true title: plan bandwidth down mbps description: 字段 plan_bandwidth_down_mbps。 contract_exits: type: array items: type: string title: contract_exits元素 nullable: true description: 合同出口集合(`subscription.line_exits`)。 title: contract exits measured_egress: type: string nullable: true description: 实测出口(`ticket_backfill_route.egress_pop`)。 title: measured egress exit_mismatch: type: boolean nullable: true description: '`true`=实测出口不在合同出口集合内(前端两值同显并标红);`null`=无从比对。' title: exit mismatch intranet_ip: type: string nullable: true title: intranet ip description: 字段 intranet_ip。 measured_down_mbps: type: integer nullable: true title: measured down mbps description: 字段 measured_down_mbps。 measured_up_mbps: type: integer nullable: true title: measured up mbps description: 字段 measured_up_mbps。 measured_at: type: string nullable: true description: 实测日期(列头日期;`null`=该账号无成功回填)。 title: measured at required: - assign_id - state - customer_id - customer_name - subscription_id - plan_name - plan_family - parent_subscription_id - sub_start_date - sub_end_date - opened_at - sub_account_id - username - display_name - net_account - account_status - overseas_ip - ip_egress - ip_type - declared_bandwidth_mbps - activated_at - released_at - release_reason - source_ticket_no - plan_bandwidth_committed - plan_bandwidth_up_mbps - plan_bandwidth_down_mbps - contract_exits - measured_egress - exit_mismatch - intranet_ip - measured_down_mbps - measured_up_mbps - measured_at description: 交付现状行 [实](`POST /delivery/list@v1`)。 三类字段三个来源, 混读: - 在册资源(`overseas_ip`/`ip_egress`/`declared_bandwidth_mbps`/账号)=台账 `released_at IS NULL` 的行; - 账号资料与合同口径(`display_name`/`net_account`/`accoun title: DeliveryRow DeliveryTicketOutcome: type: object properties: kind: type: string nullable: true title: 类型 description: 类型。 ticket_id: type: string nullable: true title: 工单 ID description: 工单 ID。 ticket_no: type: string nullable: true title: 工单号 description: 工单号。 items: type: number nullable: true title: 列表项 description: 列表项。 note: type: string nullable: true title: 备注 description: 备注。 failed: type: boolean nullable: true title: failed description: 字段 failed。 description: 订阅保存触发的交付建单结论(`delivery_ticket`)。 title: DeliveryTicketOutcome DispatchResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 scanned: type: number title: scanned description: 字段 scanned。 dispatched: type: array items: $ref: '#/components/schemas/DispatchedTicket' title: dispatched description: 字段 dispatched。 skipped: type: array items: $ref: '#/components/schemas/DispatchSkipped' title: skipped description: 字段 skipped。 required: - team_id - scanned - dispatched - skipped description: DispatchResult 业务数据 title: DispatchResult DispatchSkipped: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 ticket_no: type: string nullable: true title: 工单号 description: 工单号。 reason: type: string description: no_candidate=无合适成员;already_taken=并发下已被他人分派 title: reason message: type: string nullable: true title: 说明 description: 说明。 required: - ticket_id - reason description: DispatchSkipped 业务数据 title: DispatchSkipped DispatchedTicket: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 ticket_no: type: string nullable: true title: 工单号 description: 工单号。 assignee_user_id: type: string title: 处理人用户 ID description: 处理人用户 ID。 assignee_snapshot_name: type: string nullable: true title: assignee snapshot name description: 字段 assignee_snapshot_name。 required: - ticket_id - ticket_no - assignee_user_id - assignee_snapshot_name description: 自动分派回执(create.rs dispatch_auto_inner):dispatched/skipped 是明细数组,不是计数。 title: DispatchedTicket EffectiveMode: type: string enum: - period_snapshot - live_at_billing description: 生效时点(对账/14.4)。 title: EffectiveMode EmptyObject: type: object description: 空业务载荷 additionalProperties: false properties: {} title: EmptyObject EntTeamCreateResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string title: 团队名称 description: 团队名称。 remark: type: string nullable: true description: '备注回读(未带=null)' title: 备注 is_builtin: type: boolean title: is builtin description: 字段 is_builtin。 owner_user_id: type: string nullable: true title: owner user id description: 字段 owner_user_id。 member_count: type: integer title: member count description: 字段 member_count。 members: type: array items: $ref: '#/components/schemas/EntTeamMember' title: members description: 字段 members。 account: $ref: '#/components/schemas/AccountOut' scope_note: type: string title: scope note description: 字段 scope_note。 builtin_note: type: string title: builtin note description: 字段 builtin_note。 required: - team_id - team_name - remark - is_builtin - owner_user_id - member_count - members - account - scope_note - builtin_note description: EntTeamCreateResult 业务数据 title: EntTeamCreateResult EntTeamDeleteResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string title: 团队名称 description: 团队名称。 deleted: type: string description: 类型:false title: 是否已删除 blockers: type: array items: $ref: '#/components/schemas/BlockerItem' title: blockers description: 字段 blockers。 unverifiable_checks: type: array items: $ref: '#/components/schemas/UnverifiableCheck' title: unverifiable checks description: 字段 unverifiable_checks。 audit_key: type: string nullable: true title: audit key description: 字段 audit_key。 note: type: string title: 备注 description: 备注。 required: - team_id - team_name - deleted - blockers - unverifiable_checks - note description: EntTeamDeleteResult 业务数据 title: EntTeamDeleteResult EntTeamListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/EntTeamRow' title: 列表项 description: 列表项。 total: type: integer title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 required: - items - total description: EntTeamListResult 业务数据 title: EntTeamListResult EntTeamMember: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 username: type: string nullable: true title: 登录名 description: 登录名。 display_name: type: string nullable: true description: '本人姓名(`bos_account_ext.display_name`);未填=null, 用登录名冒充。' title: 显示名 name: type: string nullable: true description: '展示名回落链:姓名 → 登录名 → user_id。下拉框/表格统一读此字段。' title: 名称 mobile: type: string nullable: true title: 手机号 description: 手机号。 role_code: type: string nullable: true title: 角色码 description: 角色码。 is_primary: type: boolean title: 是否主账号 description: 是否主账号。 binding_status: type: string nullable: true description: '`bos_user_binding.status`(账号启停:active/disabled);与激活码生命周期正交。' title: binding status activation_status: type: string nullable: true description: '`bos_account_ext.status`(激活码生命周期);`null`=无激活码扩展行。' title: 激活态 ticket_types: type: array items: type: string title: ticket_types元素 nullable: true description: '* 可承接工单类型清单(`ops_account_ticket_type`, 新增, 判据二)。 * 空数组=该运营账号不接任何单( 折算成「不限类型」);老后端 该键时视为未知。' title: 工单类型清单 required: - user_id - username - mobile - role_code - is_primary description: '[实] 成员行' title: EntTeamMember EntTeamMemberAddResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string title: 团队名称 description: 团队名称。 added: type: string description: 类型:true title: added user_id: type: string title: 用户 ID description: 用户 ID。 role_code: type: string description: '`opsMain`(主账号)/`opsSub`(子账号)' title: 角色码 is_primary: type: boolean title: 是否主账号 description: 是否主账号。 primary_forced: type: boolean description: '团队原 成员且 指定 ⇒ 自动置主账号' title: primary forced primary_forced_note: type: string title: primary forced note description: 字段 primary_forced_note。 account: $ref: '#/components/schemas/AccountOut' members: type: array items: $ref: '#/components/schemas/EntTeamMember' title: members description: 字段 members。 member_count: type: integer title: member count description: 字段 member_count。 duplicate_member_note: type: string description: 同 user_id 已在团 ⇒ 显式报错(本字段为「 重复」说明) title: duplicate member note scope_note: type: string title: scope note description: 字段 scope_note。 required: - team_id - team_name - added - user_id - role_code - is_primary - primary_forced - primary_forced_note - account - members - member_count - duplicate_member_note - scope_note description: EntTeamMemberAddResult 业务数据 title: EntTeamMemberAddResult EntTeamMemberRemoveResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string title: 团队名称 description: 团队名称。 user_id: type: string title: 用户 ID description: 用户 ID。 username: type: string nullable: true title: 登录名 description: 登录名。 role_code: type: string nullable: true title: 角色码 description: 角色码。 is_primary: type: boolean title: 是否主账号 description: 是否主账号。 team_primary_user_id: type: string nullable: true title: team primary user id description: 字段 team_primary_user_id。 member_count: type: integer title: member count description: 字段 member_count。 removed: type: string description: 类型:false title: removed blockers: type: array items: $ref: '#/components/schemas/BlockerItem' title: blockers description: 字段 blockers。 members: type: array items: $ref: '#/components/schemas/EntTeamMember' title: members description: 字段 members。 note: type: string title: 备注 description: 备注。 required: - team_id - team_name - user_id - username - role_code - is_primary - team_primary_user_id - member_count - removed - blockers - members - note description: EntTeamMemberRemoveResult 业务数据 title: EntTeamMemberRemoveResult EntTeamMemberUpdateResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string title: 团队名称 description: 团队名称。 user_id: type: string title: 用户 ID description: 用户 ID。 username: type: string nullable: true title: 登录名 description: 登录名。 display_name: type: string nullable: true description: '写后姓名(`bos_account_ext.display_name`);未填=null' title: 显示名 is_primary: type: boolean title: 是否主账号 description: 是否主账号。 updated: type: object properties: name: type: boolean mobile: type: boolean ticket_types: type: boolean nullable: true required: - name - mobile description: '本次实际改动的字段(缺省键= 改)' title: 是否已更新 ticket_types: type: array items: type: string title: ticket_types元素 nullable: true description: '本次提交的可承接类型清单(`ticket_types` 缺省时为 `null`)' title: 工单类型清单 ticket_types_note: type: string nullable: true title: ticket types note description: 字段 ticket_types_note。 unchanged_note: type: string title: unchanged note description: 字段 unchanged_note。 members: type: array items: $ref: '#/components/schemas/EntTeamMember' title: members description: 字段 members。 member_count: type: integer title: member count description: 字段 member_count。 required: - team_id - team_name - user_id - username - display_name - is_primary - updated - unchanged_note - members - member_count description: EntTeamMemberUpdateResult 业务数据 title: EntTeamMemberUpdateResult EntTeamRow: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string title: 团队名称 description: 团队名称。 remark: type: string nullable: true description: '* 备注=`ent_team.remark VARCHAR(200) NULL`( 补列, ``)。 * 参与唯一键、 参与算账与判权;未配置=null( 折算成空串冒充"已配置且无内容")。' title: 备注 is_builtin: type: boolean title: is builtin description: 字段 is_builtin。 owner_username: type: string nullable: true title: owner username description: 字段 owner_username。 member_count: type: integer title: member count description: 字段 member_count。 members: type: array items: $ref: '#/components/schemas/EntTeamMember' nullable: true description: '成员明细(含姓名);老后端 该键时按成员数缺失去展示, 编造名单。' title: members scope_regions: type: array items: type: string title: scope_regions元素 description: '* 「所属区域」列=`bos_data_scope` 里的授权节点(`ent_team` region 列,区域归属 * 按 只落 scope 表)。空数组:内置团队=「不限」,非内置=「未配置」, * 显示成某个真实区域。' title: scope regions scope_customers: type: array items: type: string title: scope_customers元素 description: '范围内直接多选的客户' title: scope customers coverage_customers: type: number nullable: true description: '覆盖客户数;内置空范围=全量在册;非内置空范围=null(未配置, 折算 0)' title: coverage customers created_at: type: string nullable: true title: 创建时间 description: 创建时间。 required: - team_id - team_name - remark - is_builtin - owner_username - member_count - scope_regions - scope_customers - coverage_customers - created_at description: EntTeamRow 业务数据 title: EntTeamRow EntTeamScope: type: object properties: grants: type: array items: $ref: '#/components/schemas/ScopeGrant' title: grants description: 字段 grants。 total: type: integer title: 总条数 description: 总条数。 required: - grants - total description: EntTeamScope 业务数据 title: EntTeamScope EntTeamScopeSaveResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string nullable: true description: '仅「确有改动」分支下发' title: 团队名称 region_node_ids: type: array items: type: string title: region_node_ids元素 description: '回读 `bos_data_scope` 的 target_id 集' title: region node ids total: type: integer title: 总条数 description: 总条数。 inserted: type: number title: inserted description: 字段 inserted。 deleted: type: number title: 是否已删除 description: 是否已删除。 unchanged: type: number title: unchanged description: 字段 unchanged。 empty_allowed: type: boolean description: 授权清零(全部子账号失去可见性)说明 title: empty allowed noop: type: boolean nullable: true title: noop description: 字段 noop。 consistent: type: boolean nullable: true title: consistent description: 字段 consistent。 diff_with_requested: type: object properties: expected: type: array items: type: string actual: type: array items: type: string required: - expected - actual nullable: true title: diff with requested description: 字段 diff_with_requested。 shrink_note: type: string title: shrink note description: 字段 shrink_note。 required: - team_id - region_node_ids - total - inserted - deleted - unchanged - empty_allowed - shrink_note description: EntTeamScopeSaveResult 业务数据 title: EntTeamScopeSaveResult EntTeamTransferPrimaryResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string title: 团队名称 description: 团队名称。 transferred: type: string description: 类型:true title: 是否已移交 from_user_id: type: string title: from user id description: 字段 from_user_id。 from_username: type: string nullable: true title: from username description: 字段 from_username。 to_user_id: type: string title: to user id description: 字段 to_user_id。 to_username: type: string nullable: true title: to username description: 字段 to_username。 owner_user_id: type: string title: owner user id description: 字段 owner_user_id。 statement_order: type: array items: type: string title: statement_order元素 description: '逐语句标签,顺序=执行顺序' title: statement order role_switch_note: type: string title: role switch note description: 字段 role_switch_note。 unchanged_note: type: string title: unchanged note description: 字段 unchanged_note。 members: type: array items: $ref: '#/components/schemas/EntTeamMember' title: members description: 字段 members。 audit_before_after: type: object properties: before: type: object properties: primary_user_id: type: string nullable: true owner_user_id: type: string nullable: true required: - primary_user_id - owner_user_id after: type: object properties: primary_user_id: type: string nullable: true owner_user_id: type: string nullable: true required: - primary_user_id - owner_user_id required: - before - after title: audit before after description: 字段 audit_before_after。 required: - team_id - team_name - transferred - from_user_id - from_username - to_user_id - to_username - owner_user_id - statement_order - role_switch_note - unchanged_note - members - audit_before_after description: EntTeamTransferPrimaryResult 业务数据 title: EntTeamTransferPrimaryResult EntTeamUpdateResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string title: 团队名称 description: 团队名称。 remark: type: string nullable: true description: '备注回读(写后真值)' title: 备注 remark_touched: type: boolean description: '本次是否改了备注(`true`=请求带 `remark` 键,含清空)' title: remark touched is_builtin: type: boolean title: is builtin description: 字段 is_builtin。 owner_user_id: type: string nullable: true title: owner user id description: 字段 owner_user_id。 members: type: array items: $ref: '#/components/schemas/EntTeamMember' title: members description: 字段 members。 builtin_renamed_note: type: string nullable: true description: '内置团队改名说明(非内置=null)' title: builtin renamed note platform_sync_note: type: string title: platform sync note description: 字段 platform_sync_note。 row_version_note: type: string description: 未传 `row_version` ⇒ `未传 row_version`(dev `ent_team` 版本列 ⇒ 乐观锁未启用) title: row version note required: - team_id - team_name - remark - remark_touched - is_builtin - owner_user_id - members - builtin_renamed_note - platform_sync_note - row_version_note description: EntTeamUpdateResult 业务数据 title: EntTeamUpdateResult ExportCodeItem: type: object title: 激活码条目 description: 平台导出条目原样转发;页面遇缺失字段显示「—」,勿猜测补全。 required: - id - user_id - purpose - plaintext - expires_at - reissued properties: id: type: string title: 平台条目 ID description: 平台侧凭证条目标识。 user_id: type: string title: 用户 ID description: 绑定的本系统用户 ID。 purpose: type: string title: 用途 description: 平台用途标识,常见值为 activate。 example: activate plaintext: type: string title: 激活码明文 description: 仅本次应答出现;平台不落库,须立即分发或安全保存。 expires_at: type: string title: 过期时间 description: 凭证失效时间(平台原样)。 reissued: type: boolean title: 是否换新 description: true=本条为先作废再换新得到的新码。 additionalProperties: true ExportResult: type: object properties: file_name: type: string nullable: true title: 文件名 description: 文件名。 download_url: type: string nullable: true title: 下载地址 description: 下载地址。 content_base64: type: string nullable: true title: content base64 description: 字段 content_base64。 expires_at: type: string nullable: true title: expires at description: 字段 expires_at。 task_id: type: string nullable: true description: 超 export_async_rows 时异步通道任务号。 title: task id async: type: boolean nullable: true title: async description: 字段 async。 rows: type: array items: type: object additionalProperties: {} title: 行集元素 nullable: true title: 行集 description: 行集。 status: type: string nullable: true title: 状态 description: 状态。 message: type: string nullable: true title: 说明 description: 说明。 scope_type: type: string nullable: true title: 作用域类型 description: 作用域类型。 scope_id: type: string nullable: true title: 作用域 ID description: 作用域 ID。 validity: type: string nullable: true title: 有效性口径 description: 有效性口径。 user_count: type: integer nullable: true title: 账号数 description: 账号数。 user_ids: type: array items: type: string title: 用户 ID 列表元素 nullable: true title: 用户 ID 列表 description: 用户 ID 列表。 total: type: integer nullable: true title: 总条数 description: 总条数。 items: type: array items: $ref: '#/components/schemas/ExportCodeItem' nullable: true title: 列表项 description: 列表项。 chunks: type: number nullable: true title: chunks description: 字段 chunks。 pages: type: number nullable: true title: pages description: 字段 pages。 reissued: type: number nullable: true title: 换新条数 description: 换新条数。 kept: type: number nullable: true title: 保留条数 description: 保留条数。 revoked: type: number nullable: true title: 作废条数 description: 作废条数。 write_capability: type: boolean nullable: true title: 是否写操作 description: 是否写操作。 export_mode: type: string nullable: true description: 与 `write_capability` 同义的显式枚举:`read`=只读导出,`write`=作废换新路径。 title: 导出模式 plaintext_once: type: boolean nullable: true title: 明文一次性 description: 明文一次性。 plaintext_note: type: string nullable: true title: 明文说明 description: 明文说明。 audit_written: type: boolean nullable: true title: 是否已写审计 description: 是否已写审计。 audit_note: type: string nullable: true description: 与 `audit_written` 成对:已留痕/未留痕的人读说明( 勿仅凭布尔值猜测)。 title: 审计说明 batch_id: type: string nullable: true title: 批次 ID description: 批次 ID。 batch_no: type: string nullable: true title: 批次号 description: 批次号。 description: 导出类应答 title: ExportResult FinalizeResult: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 status: $ref: '#/components/schemas/TicketStatus' closed_at: type: string nullable: true title: 关闭时间 description: 关闭时间。 open_stop_closed: type: boolean nullable: true title: open stop closed description: 字段 open_stop_closed。 settled_at: type: string nullable: true title: 办结时间 description: 办结时间。 defer_scope: type: string nullable: true title: defer scope description: 字段 defer_scope。 deferred_until: type: string nullable: true title: 延期至 description: 延期至。 reverted_from: type: string nullable: true title: reverted from description: 字段 reverted_from。 untouched: type: array items: type: string title: untouched元素 nullable: true title: untouched description: 字段 untouched。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 required: - ticket_id - status - audit_written description: FinalizeResult 业务数据 title: FinalizeResult FormExtPayload: type: object properties: template_id: type: string nullable: true title: template id description: 字段 template_id。 template_version: oneOf: - type: number - type: string nullable: true title: template version description: 字段 template_version。 schema: $ref: '#/components/schemas/FormSchema' values: type: object additionalProperties: {} nullable: true title: values description: 字段 values。 description: 详情 `backfill.ext`/回填提交 `ext`。 title: FormExtPayload FormFieldFormat: type: string description: FormFieldFormat 业务数据 title: FormFieldFormat FormFieldSchema: type: object properties: key: type: string title: key description: 字段 key。 label: type: string title: 标签 description: 标签。 type: type: string title: type description: 字段 type。 required: type: boolean nullable: true title: required description: 字段 required。 options: type: array items: type: object properties: value: type: string label: type: string required: - value - label nullable: true title: options description: 字段 options。 help: type: string nullable: true title: help description: 字段 help。 maxLength: type: number nullable: true description: 文本类长度上限:text/material_ref ≤200,textarea ≤2000。 title: maxLength min: type: number nullable: true description: number 最小值。 title: min max: type: number nullable: true description: number 最大值。 title: max step: type: number nullable: true description: number 步长(>0);相对 min(缺省 0)对齐。 title: step format: oneOf: - $ref: '#/components/schemas/FormFieldFormat' - type: string nullable: true description: 文本类命名格式规则。 title: format span: type: number nullable: true description: 本字段跨列数(1..=layout.columns);缺省 1。`array` 不使用。 title: span minItems: type: number nullable: true description: '`array`:最少卡片数;缺省 0;组 required 时至少 1。' title: minItems maxItems: type: number nullable: true description: '`array`:最多卡片数;缺省 20,上限 20。' title: maxItems itemLabel: type: string nullable: true description: '`array`:卡头前缀(呈现时拼 1 基序号)。' title: itemLabel fields: type: array items: $ref: '#/components/schemas/FormFieldSchema' nullable: true description: '`array`:卡内叶子字段(禁止再嵌套 array)。' title: fields required: - key - label - type description: FormFieldSchema 业务数据 title: FormFieldSchema FormSchema: type: object properties: fields: type: array items: $ref: '#/components/schemas/FormFieldSchema' title: fields description: 字段 fields。 layout: type: object properties: columns: type: number nullable: true nullable: true description: 布局列数:1/2/3。 title: layout required: - fields description: FormSchema 业务数据 title: FormSchema FormTemplateBundle: type: object properties: ticket_type: type: string title: 工单类型 description: 工单类型。 ticket_type_name: type: string nullable: true title: ticket type name description: 字段 ticket_type_name。 published: $ref: '#/components/schemas/FormTemplateRow' draft: $ref: '#/components/schemas/FormTemplateRow' versions: type: array items: $ref: '#/components/schemas/FormTemplateRow' title: versions description: 字段 versions。 required: - ticket_type - published - draft - versions description: FormTemplateBundle 业务数据 title: FormTemplateBundle FormTemplateRow: type: object properties: template_id: type: string title: template id description: 字段 template_id。 ticket_type: type: string title: 工单类型 description: 工单类型。 ticket_type_name: type: string nullable: true title: ticket type name description: 字段 ticket_type_name。 version: oneOf: - type: string - type: number title: version description: 字段 version。 status: type: string title: 状态 description: 状态。 schema: $ref: '#/components/schemas/FormSchema' row_version: oneOf: - type: string - type: number title: 乐观锁版本 description: 乐观锁版本。 published_at: type: string nullable: true title: published at description: 字段 published_at。 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 required: - template_id - ticket_type - version - status - schema - row_version description: 模板管理口单条版本行。 title: FormTemplateRow HealthInfo: type: object properties: status: type: string title: 状态 description: 状态。 required: - status description: HealthInfo 业务数据 title: HealthInfo HolderType: type: string enum: - operator - partner - ops_team description: 分成方类型值域(holder_type,对账)。 title: HolderType ImportBatchDetail: type: object properties: batch: $ref: '#/components/schemas/ImportBatchRowT' status_counts: type: array items: type: object properties: validate_status: type: string count: type: string required: - validate_status - count title: status counts description: 字段 status_counts。 rows: type: array items: $ref: '#/components/schemas/ImportRowDetail' title: 行集 description: 行集。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 required: - batch - status_counts - rows description: ImportBatchDetail 业务数据 title: ImportBatchDetail ImportBatchListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/ImportBatchRowT' title: 列表项 description: 列表项。 total: type: integer title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 required: - items - total description: ImportBatchListResult 业务数据 title: ImportBatchListResult ImportBatchRowT: type: object properties: batch_id: type: string title: 批次 ID description: 批次 ID。 batch_no: type: string title: 批次号 description: 批次号。 batch_type: type: string title: batch type description: 字段 batch_type。 status: type: string title: 状态 description: 状态。 total_rows: type: string title: total rows description: 字段 total_rows。 success_rows: type: string title: success rows description: 字段 success_rows。 fail_rows: type: string title: fail rows description: 字段 fail_rows。 operator_username: type: string nullable: true title: operator username description: 字段 operator_username。 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 file_name: type: string nullable: true description: 导入来源文件名;粘贴录入=「粘贴录入」;未传=null。 title: 文件名 customer_names: type: string nullable: true description: 批次内客户名称汇总(空格分隔);供台账按客户名搜索。 title: customer names required: - batch_id - batch_no - batch_type - status - total_rows - success_rows - fail_rows - operator_username - created_at description: ImportBatchRowT 业务数据 title: ImportBatchRowT ImportConfirmResult: type: object properties: batch_id: type: string title: 批次 ID description: 批次 ID。 batch_no: type: string title: 批次号 description: 批次号。 status: type: string title: 状态 description: 状态。 total_rows: oneOf: - type: string - type: number title: total rows description: 字段 total_rows。 success_rows: oneOf: - type: string - type: number title: success rows description: 字段 success_rows。 fail_rows: oneOf: - type: string - type: number title: fail rows description: 字段 fail_rows。 imported_this_call: type: number nullable: true title: imported this call description: 字段 imported_this_call。 failed_this_call: type: number nullable: true title: failed this call description: 字段 failed_this_call。 already_imported_rows: type: number nullable: true title: already imported rows description: 字段 already_imported_rows。 rows: type: string description: 行集。 nullable: true title: 行集 required: - batch_id - batch_no - status - total_rows - success_rows - fail_rows description: ImportConfirmResult 业务数据 title: ImportConfirmResult ImportResumeResult: type: object properties: batch_id: type: string title: 批次 ID description: 批次 ID。 batch_no: type: string title: 批次号 description: 批次号。 status_before: type: string title: status before description: 字段 status_before。 status_after: type: string title: status after description: 字段 status_after。 updated_rows: type: number title: updated rows description: 字段 updated_rows。 inserted_rows: type: number title: inserted rows description: 字段 inserted_rows。 affected_rows: type: number title: affected rows description: 字段 affected_rows。 already_imported_rows: type: number title: already imported rows description: 字段 already_imported_rows。 summary: type: object properties: status: type: string total_rows: type: string success_rows: type: string fail_rows: type: string required: - status - total_rows - success_rows - fail_rows title: summary description: 字段 summary。 rows: type: array items: $ref: '#/components/schemas/ImportResumeRow' title: 行集 description: 行集。 checks_pending: type: array items: type: string title: checks_pending元素 title: checks pending description: 字段 checks_pending。 required: - batch_id - batch_no - status_before - status_after - updated_rows - inserted_rows - affected_rows - already_imported_rows - summary - rows - checks_pending description: ImportResumeResult 业务数据 title: ImportResumeResult ImportResumeRow: type: object properties: row_no: type: number title: row no description: 字段 row_no。 outcome: type: string enum: - already_imported - overwritten - inserted title: outcome description: 字段 outcome。 customer_id: type: string nullable: true title: 客户 ID description: 客户 ID。 note: type: string nullable: true title: 备注 description: 备注。 validate_status: type: string nullable: true title: validate status description: 字段 validate_status。 errors: type: array items: type: string title: errors元素 nullable: true description: 行级错误(契约字段 `errors`);`error_list` 为过渡双写。 title: errors error_list: type: array items: type: string title: error_list元素 nullable: true title: error list description: 字段 error_list。 required: - row_no - outcome description: ImportResumeRow 业务数据 title: ImportResumeRow ImportRowDetail: type: object properties: row_no: type: string title: row no description: 字段 row_no。 validate_status: type: string title: validate status description: 字段 validate_status。 business_id: type: string nullable: true title: business id description: 字段 business_id。 errors: title: errors description: 字段 errors。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 region_name: type: string nullable: true title: region name description: 字段 region_name。 subject_type: type: string nullable: true title: 主体类型 description: 主体类型。 operator_name: type: string nullable: true title: operator name description: 字段 operator_name。 partner_name: type: string nullable: true title: partner name description: 字段 partner_name。 ops_team_names: type: array items: type: string title: ops_team_names元素 nullable: true title: ops team names description: 字段 ops_team_names。 required: - row_no - validate_status - business_id - errors description: 导入行明细 [实] title: ImportRowDetail ImportSubmitResult: type: object properties: batch_id: type: string title: 批次 ID description: 批次 ID。 batch_no: type: string title: 批次号 description: 批次号。 status: type: string title: 状态 description: 状态。 total_rows: type: number title: total rows description: 字段 total_rows。 success_rows: type: number title: success rows description: 字段 success_rows。 fail_rows: type: number title: fail rows description: 字段 fail_rows。 valid_rows: type: number title: valid rows description: 字段 valid_rows。 invalid_rows: type: number title: invalid rows description: 字段 invalid_rows。 rows_written: type: number title: rows written description: 字段 rows_written。 rows: type: array items: type: object properties: row_no: type: number validate_status: type: string errors: type: array items: type: string nullable: true error_list: type: array items: type: string nullable: true required: - row_no - validate_status title: 行集 description: 行集。 checks_pending: type: array items: type: string title: checks_pending元素 description: 上传阶段仍待能力项(如实披露) title: checks pending region_match_note: type: string title: region match note description: 字段 region_match_note。 audit_written: type: boolean nullable: true title: 是否已写审计 description: 是否已写审计。 audit_note: type: string nullable: true title: 审计说明 description: 审计说明。 required: - batch_id - batch_no - status - total_rows - success_rows - fail_rows - valid_rows - invalid_rows - rows_written - rows - checks_pending - region_match_note description: ImportSubmitResult 业务数据 title: ImportSubmitResult ImportTemplateDownloadResult: type: object description: 导入模板下载信息 properties: file_name: type: string description: 文件名 title: 文件名 oss_key: type: string description: 对象存储键 title: 对象键 download_url: type: string description: 短时效下载地址 nullable: true title: 下载地址 content_type: type: string description: MIME 类型 nullable: true title: 内容类型 required: - file_name - oss_key title: ImportTemplateDownloadResult ImportTemplateSpec: type: object properties: format: type: string title: format description: 字段 format。 columns: type: number title: columns description: 字段 columns。 max_rows: type: number title: max rows description: 字段 max_rows。 column_names: type: array items: type: string title: column_names元素 nullable: true description: 模板表头列名(顺序固定);缺省时前端按本地约定生成。 title: column names sample_row: type: array items: type: string title: sample_row元素 nullable: true description: 示例行(行编号=「示例」);上传时自动跳过。 title: sample row fill_notes: type: array items: type: string title: fill_notes元素 nullable: true description: 填写注意(主账号留空、区域名称/node_id 等)。 title: fill notes required: - format - columns - max_rows description: GET/POST /import_batch/template_download@v1 title: ImportTemplateSpec InboxListResult: type: object properties: total: type: integer title: 总条数 description: 总条数。 page: type: integer title: 页码 description: 页码。 page_size: type: integer title: 每页条数 description: 每页条数。 unread: type: integer description: 未读总数(不受 `unread_only` 影响)。 title: 未读数 rows: type: array items: $ref: '#/components/schemas/InboxMessage' title: 行集 description: 行集。 required: - total - page - page_size - unread - rows description: InboxListResult 业务数据 title: InboxListResult InboxMessage: type: object properties: message_id: type: string title: 消息 ID description: 消息 ID。 kind: type: string description: '* 消息类型:`contract_renewal`/`ticket_urge`/`customer_region_transfer`/ * `ticket_awaiting_confirm`/`completion_rejected`。' title: 类型 ref_type: type: string description: 关联对象类型:`contract`/`ticket`/`customer`。 title: ref type ref_id: type: string description: 关联对象 ID(续签=合同 ID;催办=`{ticket_id}:{业务日}`;改挂=`{customer_id}:{transfer_id}`)。 title: ref id title: type: string title: 标题 description: 标题。 body: type: string nullable: true title: body description: 字段 body。 action: type: string nullable: true description: '`create_renewal_ticket`/`open_ticket`/`open_customer`/`confirm_close`。' title: 动作 payload: type: object properties: contract_id: type: string nullable: true contract_no: type: string nullable: true customer_id: type: string nullable: true customer_name: type: string nullable: true end_date: type: string nullable: true days_left: type: number nullable: true ticket_id: type: string nullable: true ticket_no: type: string nullable: true ticket_type: type: string nullable: true ticket_title: type: string nullable: true counterparty_kind: type: string nullable: true counterparty_name: type: string nullable: true from_user_name: type: string nullable: true waiting_hours: type: number nullable: true business_date: type: string nullable: true nullable: true title: 载荷 description: 载荷。 read_at: type: string nullable: true title: 已读时间 description: 已读时间。 handled_at: type: string nullable: true title: 处理时间 description: 处理时间。 handled_by: type: string nullable: true title: handled by description: 字段 handled_by。 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 required: - message_id - kind - ref_type - ref_id - title - body - action - payload - read_at - handled_at - handled_by - created_at description: 消息行(列表与动作回执共用形状)。 title: InboxMessage InboxReadResult: type: object description: 站内信已读标记结果 properties: message_id: type: string description: 消息 ID title: 消息 ID changed: type: boolean description: 本次是否从未读变为已读 title: 是否已变更 required: - message_id - changed title: InboxReadResult InfluenceItem: type: object properties: key: type: string title: key description: 字段 key。 label: type: string title: 标签 description: 标签。 count: type: number title: count description: 字段 count。 note: type: string nullable: true title: 备注 description: 备注。 required: - key - label - count - note description: InfluenceItem 业务数据 title: InfluenceItem IpBandwidthTierListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/IpBandwidthTierRow' title: 列表项 description: 列表项。 total: type: integer nullable: true title: 总条数 description: 总条数。 source: type: string nullable: true title: 来源 description: 来源。 required: - items description: IpBandwidthTierListResult 业务数据 title: IpBandwidthTierListResult IpBandwidthTierRow: type: object properties: tier_key: type: string title: tier key description: 字段 tier_key。 tier_name: type: string title: tier name description: 字段 tier_name。 bandwidth_tier_mbps: type: integer nullable: true title: bandwidth tier mbps description: 字段 bandwidth_tier_mbps。 bandwidth_committed: type: boolean title: bandwidth committed description: 字段 bandwidth_committed。 sort_no: type: number title: sort no description: 字段 sort_no。 ref_count: type: integer nullable: true title: ref count description: 字段 ref_count。 ref_summary: type: string nullable: true title: ref summary description: 字段 ref_summary。 required: - tier_key - tier_name - bandwidth_tier_mbps - bandwidth_committed - sort_no description: IP 带宽档位目录行(套餐配置 → 线路出口 tab 内维护;)。 `bandwidth_tier_mbps === null` =「不承诺带宽」;`bandwidth_committed` 是同一件事的可读位。 `ref_count`/`ref_summary` 由后端逐条带出:>0 表示已被合同 IP 备案引用,目录侧不允许删除。 title: IpBandwidthTierRow IpBandwidthTierSaveResult: type: object properties: items: type: array items: $ref: '#/components/schemas/IpBandwidthTierRow' title: 列表项 description: 列表项。 total: type: integer nullable: true title: 总条数 description: 总条数。 source: type: string nullable: true title: 来源 description: 来源。 added: type: number nullable: true title: added description: 字段 added。 updated: type: number nullable: true title: 是否已更新 description: 是否已更新。 removed: type: number nullable: true title: removed description: 字段 removed。 audit_written: type: boolean nullable: true title: 是否已写审计 description: 是否已写审计。 required: - items description: IpBandwidthTierSaveResult 业务数据 title: IpBandwidthTierSaveResult IpRow: type: object properties: id: type: string title: ID description: ID。 row_no: type: string title: row no description: 字段 row_no。 egress: type: string nullable: true title: egress description: 字段 egress。 overseas_ip: type: string nullable: true title: overseas ip description: 字段 overseas_ip。 ip_type: type: string nullable: true title: ip type description: 字段 ip_type。 bandwidth_mbps: type: string nullable: true title: bandwidth mbps description: 字段 bandwidth_mbps。 pin_registered: type: string nullable: true title: pin registered description: 字段 pin_registered。 cpid_registered: type: string nullable: true title: cpid registered description: 字段 cpid_registered。 action: type: string nullable: true description: P1:行级动作 `allocate`/`release`;释放行只定位旧 IP,不再要求重填凭据。 title: 动作 sub_account_ids: type: array items: type: string title: sub_account_ids元素 nullable: true description: P1:该 IP 映射到的分账号主键(`fixed_ip` 恒 1 个、`nat_forward` 1..N 个)。 title: sub account ids required: - id - row_no - egress - overseas_ip - ip_type - bandwidth_mbps - pin_registered - cpid_registered description: PIN/CPID 库里只有密文 ⇒ 只出"有没有登记"(`"true"`/`"false"` 字符串)。 title: IpRow JobKey: type: string description: 作业 key(`bos_jobs::registry::JobKey` 的 serde 序列化名)。 title: JobKey JobRunDetailItem: type: object properties: object_type: type: string nullable: true title: object type description: 字段 object_type。 object_id: type: string nullable: true title: object id description: 字段 object_id。 object_name: type: string nullable: true title: object name description: 字段 object_name。 disposition: type: string nullable: true title: disposition description: 字段 disposition。 reason: type: string nullable: true title: reason description: 字段 reason。 description: 一轮执行的对象级明细(最多 200 条;后端 `bos_job_run.detail_json`)。 title: JobRunDetailItem JobRunReport: type: object properties: run_id: type: string title: run id description: 字段 run_id。 job_key: $ref: '#/components/schemas/JobKey' job_name: type: string title: job name description: 字段 job_name。 biz_date: type: string title: 业务日 description: 字段 biz_date。 period: type: string nullable: true title: 账期 description: 字段 period。 status: type: string enum: - success - partial - failed title: 状态 description: 状态。 status_label: type: string title: status label description: 字段 status_label。 scanned: type: number title: scanned description: 字段 scanned。 matched: type: number title: 是否匹配 description: 是否匹配。 processed: type: number title: processed description: 字段 processed。 succeeded: type: number title: succeeded description: 字段 succeeded。 skipped: type: number title: skipped description: 字段 skipped。 failed: type: number title: failed description: 字段 failed。 message: type: string title: 说明 description: 说明。 details: type: array items: $ref: '#/components/schemas/JobRunDetailItem' title: details description: 字段 details。 violations: type: array items: $ref: '#/components/schemas/JobRunDetailItem' title: violations description: 字段 violations。 disposition: type: string title: disposition description: 字段 disposition。 disposition_code: type: string title: disposition code description: 字段 disposition_code。 required: - run_id - job_key - job_name - biz_date - period - status - status_label - scanned - matched - processed - succeeded - skipped - failed - message - details - violations - disposition - disposition_code description: JobRunReport 业务数据 title: JobRunReport JobRunRow: type: object properties: run_id: type: string title: run id description: 字段 run_id。 job_key: $ref: '#/components/schemas/JobKey' job_name: type: string nullable: true title: job name description: 字段 job_name。 trigger: type: string description: 定时/事件/人工 title: trigger trigger_code: type: string enum: - schedule - event - manual title: trigger code description: 字段 trigger_code。 started_at: type: string title: started at description: 字段 started_at。 finished_at: type: string nullable: true title: finished at description: 字段 finished_at。 status: type: string enum: - 成功 - 部分成功 - 失败 title: 状态 description: 状态。 status_code: type: string enum: - success - partial - failed title: status code description: 字段 status_code。 scanned: type: number title: scanned description: 字段 scanned。 matched: type: number title: 是否匹配 description: 是否匹配。 succeeded: type: number title: succeeded description: 字段 succeeded。 skipped: type: number title: skipped description: 字段 skipped。 failed: type: number title: failed description: 字段 failed。 message: type: string nullable: true title: 说明 description: 说明。 disposition: type: string title: disposition description: 字段 disposition。 disposition_code: type: string enum: - none - pending_rerun - rerun_done - covered title: disposition code description: 字段 disposition_code。 goto_page: type: string nullable: true title: goto page description: 字段 goto_page。 goto_visible: type: boolean title: goto visible description: 字段 goto_visible。 detail: type: array items: $ref: '#/components/schemas/JobRunDetailItem' title: detail description: 字段 detail。 violations: type: array items: $ref: '#/components/schemas/JobRunDetailItem' title: violations description: 字段 violations。 actor_user_id: type: string nullable: true title: actor user id description: 字段 actor_user_id。 actor_role: type: string nullable: true title: actor role description: 字段 actor_role。 biz_date: type: string nullable: true title: 业务日 description: 字段 biz_date。 period: type: string nullable: true title: 账期 description: 字段 period。 required: - run_id - job_key - trigger - trigger_code - started_at - finished_at - status - status_code - scanned - matched - succeeded - skipped - failed - message - disposition - disposition_code - goto_page - goto_visible - detail - violations - actor_user_id - actor_role - biz_date - period description: JobRunRow 业务数据 title: JobRunRow JobSpecRow: type: object properties: key: $ref: '#/components/schemas/JobKey' name: type: string description: 注册契约名称 title: 名称 display_name: type: string nullable: true description: 业务展示名(清单第 2 列) title: 显示名 group: type: string enum: - business - system nullable: true title: group description: 字段 group。 annotation: type: boolean nullable: true title: annotation description: 字段 annotation。 cron_hint: type: string title: cron hint description: 字段 cron_hint。 cadence: type: object properties: kind: type: string enum: - daily - monthly_first hour: type: number minute: type: number required: - kind - hour - minute nullable: true title: cadence description: 字段 cadence。 trigger_text: type: string nullable: true title: trigger text description: 字段 trigger_text。 wired_in_phase1: type: boolean description: 作业体是否已接线可执行 title: wired in phase1 page_switch: type: boolean nullable: true title: page switch description: 字段 page_switch。 enabled: type: boolean nullable: true title: enabled description: 字段 enabled。 toggleable: type: boolean nullable: true title: toggleable description: 字段 toggleable。 reason_code: type: string enum: - NOT_WIRED - ROLE_READONLY - NO_SWITCH nullable: true title: reason code description: 字段 reason_code。 last_run_at: type: string nullable: true title: last run at description: 字段 last_run_at。 last_status: type: string nullable: true title: last status description: 字段 last_status。 last_status_code: type: string enum: - success - partial - failed nullable: true title: last status code description: 字段 last_status_code。 last_duration_ms: type: number nullable: true title: last duration ms description: 字段 last_duration_ms。 last_counts: type: object properties: scanned: type: number matched: type: number succeeded: type: number skipped: type: number failed: type: number required: - scanned - matched - succeeded - skipped - failed nullable: true title: last counts description: 字段 last_counts。 run_count: type: integer nullable: true description: 累计执行轮次 title: run count object_scope: type: string nullable: true description: 作业定义弹窗第 5–7 行(注册契约文案逐字) title: object scope action_text: type: string nullable: true title: action text description: 字段 action_text。 idempotency_text: type: string nullable: true title: idempotency text description: 字段 idempotency_text。 stop_impact_note: type: string nullable: true title: stop impact note description: 字段 stop_impact_note。 required: - key - name - cron_hint - wired_in_phase1 description: JobSpecRow 业务数据 title: JobSpecRow JobToggleResult: type: object properties: job_key: $ref: '#/components/schemas/JobKey' enabled: type: boolean title: enabled description: 字段 enabled。 changed: type: boolean title: 是否已变更 description: 是否已变更。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 request_id: type: string nullable: true title: request id description: 字段 request_id。 message: type: string title: 说明 description: 说明。 required: - job_key - enabled - changed - audit_written - message description: JobToggleResult 业务数据 title: JobToggleResult LineExitListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/LineExitRow' title: 列表项 description: 列表项。 total: type: integer nullable: true title: 总条数 description: 总条数。 source: type: string nullable: true title: 来源 description: 来源。 required: - items description: LineExitListResult 业务数据 title: LineExitListResult LineExitRow: type: object properties: exit_name: type: string title: exit name description: 字段 exit_name。 exit_key: type: string title: exit key description: 字段 exit_key。 sort_no: type: number title: sort no description: 字段 sort_no。 price_factor: type: number nullable: true description: 计费系数(默认 1,取值 (0, 1],最多两位小数);最终订阅价=档位价×本列。 title: price factor price_factor_text: type: string nullable: true title: price factor text description: 字段 price_factor_text。 ref_count: type: integer nullable: true title: ref count description: 字段 ref_count。 ref_summary: type: string nullable: true title: ref summary description: 字段 ref_summary。 required: - exit_name - exit_key - sort_no description: 线路出口目录行(套餐配置统一维护;合同条目只选择)。 `ref_count`/`ref_summary` 由后端逐条带出:>0 表示已被合同条目/派生档/订阅引用 (IP 备案那列随合同 IP 条目下线不再计入),目录侧不允许删除( 。 title: LineExitRow LineExitSaveResult: type: object properties: items: type: array items: $ref: '#/components/schemas/LineExitRow' title: 列表项 description: 列表项。 total: type: integer nullable: true title: 总条数 description: 总条数。 source: type: string nullable: true title: 来源 description: 来源。 added: type: number nullable: true title: added description: 字段 added。 updated: type: number nullable: true title: 是否已更新 description: 是否已更新。 removed: type: number nullable: true title: removed description: 字段 removed。 audit_written: type: boolean nullable: true title: 是否已写审计 description: 是否已写审计。 required: - items description: LineExitSaveResult 业务数据 title: LineExitSaveResult MarkDoneResult: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 status: $ref: '#/components/schemas/TicketStatus' completed_at: type: string title: 完成时间 description: 完成时间。 biz_date: type: string title: 业务日 description: 字段 biz_date。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 required: - ticket_id - status - completed_at - biz_date - audit_written description: MarkDoneResult 业务数据 title: MarkDoneResult MaterialAttachResult: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 material_id: type: string title: material id description: 字段 material_id。 kind: type: string title: 类型 description: 类型。 file_name: type: string title: 文件名 description: 文件名。 size_bytes: type: string nullable: true title: size bytes description: 字段 size_bytes。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 next_step: type: string title: next step description: 字段 next_step。 required: - ticket_id - material_id - kind - file_name - size_bytes - audit_written - next_step description: MaterialAttachResult 业务数据 title: MaterialAttachResult MaterialGrantDownload: type: object properties: purpose: type: string description: 类型:"download" title: purpose material_id: type: string title: material id description: 字段 material_id。 kind: type: string title: 类型 description: 类型。 ticket_id: type: string title: 工单 ID description: 工单 ID。 ticket_status: $ref: '#/components/schemas/TicketStatus' file_name: type: string title: 文件名 description: 文件名。 download_url: type: string title: 下载地址 description: 下载地址。 expires_at: type: string nullable: true title: expires at description: 字段 expires_at。 required: - purpose - material_id - kind - ticket_id - ticket_status - file_name - download_url - expires_at description: 下载分支: 对象键 下发,只给一条平台现签的短时效地址。 title: MaterialGrantDownload MaterialGrantResult: oneOf: - $ref: '#/components/schemas/MaterialGrantUpload' - $ref: '#/components/schemas/MaterialGrantDownload' description: MaterialGrantResult 业务数据 title: MaterialGrantResult MaterialGrantUpload: type: object properties: purpose: type: string description: 类型:"upload" title: purpose kind: type: string title: 类型 description: 类型。 ticket_id: type: string title: 工单 ID description: 工单 ID。 ticket_status: $ref: '#/components/schemas/TicketStatus' file_name: type: string title: 文件名 description: 文件名。 oss_key: type: string title: 对象键 description: 对象键。 prefix: type: string title: prefix description: 字段 prefix。 presign_endpoint: type: string title: presign endpoint description: 字段 presign_endpoint。 bucket: type: string title: bucket description: 字段 bucket。 size_limit_bytes: type: number title: size limit bytes description: 字段 size_limit_bytes。 next_step: type: string title: next step description: 字段 next_step。 required: - purpose - kind - ticket_id - ticket_status - file_name - oss_key - prefix - presign_endpoint - bucket - size_limit_bytes - next_step description: 上传分支:服务端派生的对象键与前缀(直传完成后必须原样交给 `material_attach`)。 title: MaterialGrantUpload MessageActionResult: type: object properties: message_id: type: string title: 消息 ID description: 消息 ID。 status: type: string title: 状态 description: 状态。 ticket_id: type: string title: 工单 ID description: 工单 ID。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 next_step: type: string title: next step description: 字段 next_step。 required: - message_id - status - ticket_id - audit_written - next_step description: MessageActionResult 业务数据 title: MessageActionResult MessagePendingResult: type: object properties: rows: type: array items: $ref: '#/components/schemas/TicketMessage' title: 行集 description: 行集。 total: type: integer title: 总条数 description: 总条数。 page: type: integer title: 页码 description: 页码。 page_size: type: integer title: 每页条数 description: 每页条数。 required: - rows - total - page - page_size description: MessagePendingResult 业务数据 title: MessagePendingResult MountCandidateRow: type: object properties: customer_id: type: string title: 客户 ID description: 客户 ID。 customer_name: type: string title: 客户名称 description: 客户名称。 region_node_id: type: string title: 区域节点 ID description: 区域节点 ID。 region_path: type: string title: region path description: 字段 region_path。 operator_id: type: string nullable: true title: 运营商 ID description: 运营商 ID。 required: - customer_id - customer_name - region_node_id - region_path - operator_id description: MountCandidateRow 业务数据 title: MountCandidateRow MountCandidatesResult: type: object properties: items: type: array items: $ref: '#/components/schemas/MountCandidateRow' title: 列表项 description: 列表项。 total: type: integer nullable: true title: 总条数 description: 总条数。 required: - items description: MountCandidatesResult 业务数据 title: MountCandidatesResult NotifyChannelPref: type: object properties: enabled: type: boolean title: enabled description: 字段 enabled。 available: type: boolean title: available description: 字段 available。 address_hint: type: string nullable: true description: 地址摘要(邮箱/手机号均脱敏);站内恒 `null`。 title: address hint required: - enabled - available - address_hint description: 单通道偏好:`enabled` 是记录值;`available` 是服务端判定的可否切换。 title: NotifyChannelPref OpenStop: type: object properties: open_stop_id: type: string nullable: true title: open stop id description: 字段 open_stop_id。 customer_id: type: string nullable: true title: 客户 ID description: 客户 ID。 subscription_id: type: string nullable: true title: 订阅 ID description: 订阅 ID。 action: type: string nullable: true title: 动作 description: 动作。 exec_status: type: string nullable: true title: exec status description: 字段 exec_status。 exec_date: type: string nullable: true title: exec date description: 字段 exec_date。 effective_account_count: type: string nullable: true title: effective account count description: 字段 effective_account_count。 backfill_id: type: string nullable: true title: backfill id description: 字段 backfill_id。 deferred_until: type: string nullable: true title: 延期至 description: 延期至。 note: type: string nullable: true title: 备注 description: 备注。 closed_flag: type: string nullable: true title: closed flag description: 字段 closed_flag。 row_version: type: string nullable: true title: 乐观锁版本 description: 乐观锁版本。 accounts: type: array items: $ref: '#/components/schemas/OpenStopAccount' title: accounts description: 字段 accounts。 overdue: type: boolean nullable: true title: overdue description: 字段 overdue。 preview: type: boolean nullable: true description: 尚无 open_stop 行时的待停账号预览块。 title: preview required: - effective_account_count - accounts description: OpenStop 业务数据 title: OpenStop OpenStopAccount: type: object properties: id: type: string nullable: true description: 回填落库行有 id; 预览行可能缺席。 title: ID sub_account_id: type: string nullable: true title: sub account id description: 字段 sub_account_id。 before_status: type: string nullable: true title: before status description: 字段 before_status。 after_status: type: string nullable: true title: after status description: 字段 after_status。 effective_date: type: string nullable: true title: effective date description: 字段 effective_date。 source: type: string nullable: true title: 来源 description: 来源。 display_name: type: string nullable: true title: 显示名 description: 显示名。 net_account: type: string nullable: true title: net account description: 字段 net_account。 required: - sub_account_id - before_status - source - display_name - net_account description: OpenStopAccount 业务数据 title: OpenStopAccount OperatorCreateResult: type: object properties: operator_id: type: string title: 运营商 ID description: 运营商 ID。 name: type: string title: 名称 description: 名称。 brand: type: string title: brand description: 字段 brand。 region_node_id: type: string title: 区域节点 ID description: 区域节点 ID。 required: - operator_id - name - brand - region_node_id description: OperatorCreateResult 业务数据 title: OperatorCreateResult OperatorDeleteResult: type: object properties: operator_id: type: string title: 运营商 ID description: 运营商 ID。 deleted: type: boolean title: 是否已删除 description: 是否已删除。 blocked: type: array items: type: string title: 阻塞项元素 description: 删除前检查未通过项(成功时为空) title: 阻塞项 revoked_user_ids: type: array items: type: string title: revoked_user_ids元素 nullable: true description: 级联处置的对账账号 user_id title: revoked user ids audit_written: type: boolean nullable: true title: 是否已写审计 description: 是否已写审计。 required: - operator_id - deleted - blocked description: OperatorDeleteResult 业务数据 title: OperatorDeleteResult OperatorListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/OperatorRow' title: 列表项 description: 列表项。 total: type: integer title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 required: - items - total description: OperatorListResult 业务数据 title: OperatorListResult OperatorRow: type: object properties: operator_id: type: string title: 运营商 ID description: 运营商 ID。 name: type: string title: 名称 description: 名称。 brand: type: string nullable: true title: brand description: 字段 brand。 region_node_id: type: string title: 区域节点 ID description: 区域节点 ID。 region_path_name: type: string nullable: true description: '`bos_region_meta.path_name`(现为节点 ID 链;未建档=null)' title: region path name region_level: type: string nullable: true description: '`bos_region_meta.level`,dev 值域:省/市/区县' title: region level account: $ref: '#/components/schemas/SubjectAccount' recon_day: type: number nullable: true description: '对账日;`null`=未单独设置(跟随系统默认), 与「字段缺失」混为一谈' title: recon day pay_cycle: type: string title: pay cycle description: 字段 pay_cycle。 settle_mode: type: string title: settle mode description: 字段 settle_mode。 settle_value: type: string nullable: true title: settle value description: 字段 settle_value。 customer_count: type: integer title: customer count description: 字段 customer_count。 required: - operator_id - name - brand - region_node_id - region_path_name - region_level - account - recon_day - pay_cycle - settle_mode - settle_value - customer_count description: OperatorRow 业务数据 title: OperatorRow OperatorUpdateResult: type: object properties: operator_id: type: string title: 运营商 ID description: 运营商 ID。 updated: type: boolean title: 是否已更新 description: 是否已更新。 required: - operator_id - updated description: OperatorUpdateResult 业务数据 title: OperatorUpdateResult OpsMemberAddResult: type: object properties: member_id: type: string title: 成员 ID description: 成员 ID。 team_id: type: string title: 团队 ID description: 团队 ID。 user_id: type: string title: 用户 ID description: 用户 ID。 is_primary: type: boolean title: 是否主账号 description: 是否主账号。 scope_mode: type: string title: 可见形态 description: 可见形态。 display_name: type: string nullable: true description: 成员姓名(`bos_account_ext.display_name`);`null`=未填,前端回落显示登录名 title: 显示名 username: type: string nullable: true title: 登录名 description: 登录名。 mobile: type: string nullable: true title: 手机号 description: 手机号。 member_count: type: integer title: member count description: 字段 member_count。 ticket_mode: type: string description: 可处理类型形态:`follow_team`=随团队;`custom`=勾选子集 title: ticket mode ticket_types: type: array items: type: string title: ticket_types元素 description: 成员有效可接类型(`follow_team`=团队可分配类型) title: 工单类型清单 account: $ref: '#/components/schemas/AccountOut' required: - member_id - team_id - user_id - is_primary - scope_mode - display_name - username - mobile - member_count - ticket_mode - ticket_types - account description: OpsMemberAddResult 业务数据 title: OpsMemberAddResult OpsMemberRemoveResult: type: object properties: member_id: type: string title: 成员 ID description: 成员 ID。 team_id: type: string title: 团队 ID description: 团队 ID。 user_id: type: string title: 用户 ID description: 用户 ID。 removed: type: string description: 类型:false title: removed blockers: type: array items: $ref: '#/components/schemas/BlockerItem' title: blockers description: 字段 blockers。 account_deactivation: type: object properties: applied: type: boolean reason: type: string required: - applied - reason title: account deactivation description: 字段 account_deactivation。 note: type: string title: 备注 description: 备注。 required: - member_id - team_id - user_id - removed - blockers - account_deactivation - note description: OpsMemberRemoveResult 业务数据 title: OpsMemberRemoveResult OpsMemberScopeSaveResult: type: object properties: member_id: type: string title: 成员 ID description: 成员 ID。 team_id: type: string title: 团队 ID description: 团队 ID。 scope_mode: type: string title: 可见形态 description: 可见形态。 scope_mode_before: type: string nullable: true title: scope mode before description: 字段 scope_mode_before。 is_primary: type: boolean title: 是否主账号 description: 是否主账号。 scope_rows: type: array items: type: string title: scope_rows元素 title: scope rows description: 字段 scope_rows。 scope_row_count: type: integer title: scope row count description: 字段 scope_row_count。 team_coverage_count: type: integer title: team coverage count description: 字段 team_coverage_count。 team_coverage_basis: type: string title: team coverage basis description: 字段 team_coverage_basis。 required: - member_id - team_id - scope_mode - scope_mode_before - is_primary - scope_rows - scope_row_count - team_coverage_count - team_coverage_basis description: OpsMemberScopeSaveResult 业务数据 title: OpsMemberScopeSaveResult OpsMemberUpdateResult: type: object properties: member_id: type: string title: 成员 ID description: 成员 ID。 team_id: type: string title: 团队 ID description: 团队 ID。 user_id: type: string title: 用户 ID description: 用户 ID。 is_primary: type: boolean title: 是否主账号 description: 是否主账号。 scope_mode: type: string title: 可见形态 description: 可见形态。 display_name: type: string nullable: true description: 回读的成员姓名真值(`bos_account_ext.display_name`) title: 显示名 display_name_updated: type: boolean title: display name updated description: 字段 display_name_updated。 mobile: type: string nullable: true title: 手机号 description: 手机号。 mobile_updated: type: boolean title: mobile updated description: 字段 mobile_updated。 ticket_mode: type: string description: 回读的类型形态:`follow_team`/`custom` title: ticket mode ticket_mode_updated: type: boolean title: ticket mode updated description: 字段 ticket_mode_updated。 ticket_types: type: array items: type: string title: ticket_types元素 description: 成员有效可接类型(`follow_team`/主账号=团队类型;`custom` 空数组=不接单) title: 工单类型清单 required: - member_id - team_id - user_id - is_primary - scope_mode - display_name - display_name_updated - mobile - mobile_updated - ticket_mode - ticket_mode_updated - ticket_types description: OpsMemberUpdateResult 业务数据 title: OpsMemberUpdateResult OpsTeamCoverage: type: object properties: customers: type: array items: type: object properties: customer_id: type: string customer_name: type: string valid_from: type: string nullable: true required: - customer_id - customer_name - valid_from title: 客户数 description: 客户数。 total: type: integer title: 总条数 description: 总条数。 required: - customers - total description: OpsTeamCoverage 业务数据 title: OpsTeamCoverage OpsTeamCreateResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string title: 团队名称 description: 团队名称。 region_node_id: type: string title: 区域节点 ID description: 区域节点 ID。 region_level: type: string description: '`bos_region_meta.level`(运维团队 限省级,可下沉市/区县)' title: region level region_path_name: type: string title: region path name description: 字段 region_path_name。 dispatch_mode: type: string title: dispatch mode description: 字段 dispatch_mode。 settle_mode: type: string nullable: true title: settle mode description: 字段 settle_mode。 settle_value: type: string nullable: true title: settle value description: 字段 settle_value。 ticket_types: type: array items: type: string title: ticket_types元素 description: '回读 `ops_team_ticket_type`' title: 工单类型清单 requested_ticket_types: type: array items: type: string title: requested_ticket_types元素 description: 本次请求提交的类型(与 `ticket_types` 不一致即未落库) title: requested ticket types member_count: type: integer title: member count description: 字段 member_count。 primary_member_id: type: string title: primary member id description: 字段 primary_member_id。 primary_account: $ref: '#/components/schemas/AccountOut' ops_main_scope_check: $ref: '#/components/schemas/ScopeCheck' required: - team_id - team_name - region_node_id - region_level - region_path_name - dispatch_mode - settle_mode - settle_value - ticket_types - requested_ticket_types - member_count - primary_member_id - primary_account - ops_main_scope_check description: OpsTeamCreateResult 业务数据 title: OpsTeamCreateResult OpsTeamDeleteResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string title: 团队名称 description: 团队名称。 deleted: type: string description: 类型:false title: 是否已删除 blockers: type: array items: $ref: '#/components/schemas/BlockerItem' title: blockers description: 字段 blockers。 unverifiable_checks: type: array items: $ref: '#/components/schemas/UnverifiableCheck' title: unverifiable checks description: 字段 unverifiable_checks。 ops_main_scope_check: $ref: '#/components/schemas/ScopeCheck' note: type: string title: 备注 description: 备注。 required: - team_id - team_name - deleted - blockers - unverifiable_checks - ops_main_scope_check - note description: OpsTeamDeleteResult 业务数据 title: OpsTeamDeleteResult OpsTeamDispatchResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 dispatch_mode: type: string title: dispatch mode description: 字段 dispatch_mode。 dispatch_mode_before: type: string nullable: true description: '仅「确有变更」分支下发' title: dispatch mode before changed: type: boolean title: 是否已变更 description: 是否已变更。 written: type: boolean title: written description: 字段 written。 scanned: type: number nullable: true description: '本次扫描的待分派工单数(切到 auto_avg 时才有意义)' title: scanned dispatched: type: array items: type: object properties: ticket_id: type: string ticket_no: type: string nullable: true assignee_user_id: type: string assignee_snapshot_name: type: string required: - ticket_id - ticket_no - assignee_user_id - assignee_snapshot_name description: '本次同批次分派成功的工单(与模式切换在同一次 `/dml/batch@v1` 提交)' title: dispatched skipped: type: array items: type: object properties: ticket_id: type: string ticket_no: type: string nullable: true reason: type: string message: type: string required: - ticket_id - ticket_no - reason - message description: '仍留在团队队列的工单:`no_candidate`/`ops_account_only`/`already_taken`' title: skipped mode_changed: type: boolean nullable: true description: '模式行是否真被本批改写;`false`=提交时模式已被并发改动( 谎报已切换)' title: mode changed note: type: string title: 备注 description: 备注。 ops_main_scope_check: $ref: '#/components/schemas/ScopeCheck' audit_written: type: boolean nullable: true title: 是否已写审计 description: 是否已写审计。 audit_note: type: string nullable: true title: 审计说明 description: 审计说明。 time_note: type: string nullable: true title: time note description: 字段 time_note。 required: - team_id - dispatch_mode - changed - written - dispatched - skipped - note - ops_main_scope_check description: OpsTeamDispatchResult 业务数据 title: OpsTeamDispatchResult OpsTeamListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/OpsTeamRow' title: 列表项 description: 列表项。 total: type: integer title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 load_pending: type: string nullable: true description: 后端在有条目时下发:负载列降级说明 title: load pending member_load_pending: type: string nullable: true description: 成员未完成工单列降级说明(`null`/缺省=取数成功) title: member load pending required: - items - total description: OpsTeamListResult 业务数据 title: OpsTeamListResult OpsTeamMemberRow: type: object properties: member_id: type: string title: 成员 ID description: 成员 ID。 user_id: type: string title: 用户 ID description: 用户 ID。 display_name: type: string nullable: true description: 成员姓名(`bos_account_ext.display_name`);`null`=未填,前端回落显示登录名 title: 显示名 username: type: string nullable: true title: 登录名 description: 登录名。 mobile: type: string nullable: true title: 手机号 description: 手机号。 role_code: type: string nullable: true title: 角色码 description: 角色码。 is_primary: type: boolean title: 是否主账号 description: 是否主账号。 scope_mode: type: string title: 可见形态 description: 可见形态。 scope_regions: type: array items: type: string title: scope_regions元素 title: scope regions description: 字段 scope_regions。 scope_customers: type: array items: type: string title: scope_customers元素 title: scope customers description: 字段 scope_customers。 ticket_mode: type: string description: 可处理类型形态:`follow_team`=随团队;`custom`=勾选子集 title: ticket mode ticket_types: type: array items: type: string title: ticket_types元素 nullable: true description: 成员有效可接类型(`follow_team`/主账号=团队类型;`custom` 空数组=不接单);`null`=后端未下发 title: 工单类型清单 binding_status: type: string nullable: true description: KLT 侧 `bos_user_binding.status` 原文;平台账号状态按权限单独判定 title: binding status activation_status: type: string nullable: true description: '`bos_account_ext.status`(激活码生命周期 none/issued/issuing/activated),与 `binding_status` 正交' title: 激活态 open_tickets: type: number nullable: true description: 成员未完成工单数(`pending`+`processing`,责任人是本人;`null`=取数失败) title: open tickets required: - member_id - user_id - display_name - username - mobile - role_code - is_primary - scope_mode - scope_regions - scope_customers - ticket_mode - ticket_types - binding_status description: '[实] `ops_team/get_list@v1` 内联成员投影(`ops_member` + `bos_user_binding`)。' title: OpsTeamMemberRow OpsTeamRow: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string title: 团队名称 description: 团队名称。 region_node_id: type: string title: 区域节点 ID description: 区域节点 ID。 region_path_name: type: string nullable: true description: '`bos_region_meta.path_name`(节点 ID 链;未建档=null)' title: region path name region_level: type: string nullable: true description: '`bos_region_meta.level`(运维团队 限省级,可下沉市/区县)' title: region level dispatch_mode: type: string title: dispatch mode description: 字段 dispatch_mode。 settle_mode: type: string nullable: true title: settle mode description: 字段 settle_mode。 settle_value: type: string nullable: true title: settle value description: 字段 settle_value。 primary_username: type: string nullable: true title: primary username description: 字段 primary_username。 member_count: type: integer title: member count description: 字段 member_count。 members: type: array items: $ref: '#/components/schemas/OpsTeamMemberRow' description: '成员明细投影(member_id/user_id 可定位成员级写接口)' title: members ticket_types: type: array items: type: string title: ticket_types元素 title: 工单类型清单 description: 字段 ticket_types。 scope_regions: type: array items: type: string title: scope_regions元素 description: '「负责范围」列:授权区域节点+直接多选客户' title: scope regions scope_customers: type: array items: type: string title: scope_customers元素 title: scope customers description: 字段 scope_customers。 coverage_customers: type: number nullable: true description: '「覆盖客户」列:范围(含下级)内去重在册客户数;未配置=null' title: coverage customers open_tickets: type: number nullable: true title: open tickets description: 字段 open_tickets。 overdue_open_tickets: type: number nullable: true title: overdue open tickets description: 字段 overdue_open_tickets。 required: - team_id - team_name - region_node_id - region_path_name - region_level - dispatch_mode - settle_mode - settle_value - primary_username - member_count - members - ticket_types - scope_regions - scope_customers - coverage_customers - open_tickets - overdue_open_tickets description: OpsTeamRow 业务数据 title: OpsTeamRow OpsTeamScopeSaveResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 region_node_ids: type: array items: type: string title: region_node_ids元素 title: region node ids description: 字段 region_node_ids。 customer_ids: type: array items: type: string title: customer_ids元素 title: customer ids description: 字段 customer_ids。 region_count: type: integer title: region count description: 字段 region_count。 customer_count: type: integer title: customer count description: 字段 customer_count。 coverage_before: type: number title: coverage before description: 字段 coverage_before。 coverage_after: type: number title: coverage after description: 字段 coverage_after。 coverage_basis_before: type: string title: coverage basis before description: 字段 coverage_basis_before。 coverage_basis_after: type: string title: coverage basis after description: 字段 coverage_basis_after。 coverage_basis_saved: type: string title: coverage basis saved description: 字段 coverage_basis_saved。 allow_empty: type: string description: 类型:true title: allow empty required: - team_id - region_node_ids - customer_ids - region_count - customer_count - coverage_before - coverage_after - coverage_basis_before - coverage_basis_after - coverage_basis_saved - allow_empty description: OpsTeamScopeSaveResult 业务数据 title: OpsTeamScopeSaveResult OpsTeamTransferPrimaryResult: type: object description: 运维团队主账号移交结果 properties: ops_team_id: type: string description: 运维团队 ID title: 运维团队 ID from_member_id: type: string description: 原主账号成员 ID title: from member id to_member_id: type: string description: 新主账号成员 ID title: to member id transferred: type: boolean description: 是否已移交 title: 是否已移交 required: - ops_team_id - transferred title: OpsTeamTransferPrimaryResult OpsTeamUpdateResult: type: object properties: team_id: type: string title: 团队 ID description: 团队 ID。 team_name: type: string title: 团队名称 description: 团队名称。 region_node_id: type: string title: 区域节点 ID description: 区域节点 ID。 dispatch_mode: type: string title: dispatch mode description: 字段 dispatch_mode。 settle_mode: type: string nullable: true title: settle mode description: 字段 settle_mode。 settle_value: type: string nullable: true title: settle value description: 字段 settle_value。 ticket_types: type: array items: type: string title: ticket_types元素 title: 工单类型清单 description: 字段 ticket_types。 dropped_team_types: type: array items: type: string title: dropped_team_types元素 description: '本次被收窄掉的团队类型( 收窄=空数组)' title: dropped team types member_type_trim: type: string description: '成员级类型载体表 `ops_member_ticket_type` 建表 ⇒ 有收窄即 `applied: false`' title: member type trim ops_main_scope_check: $ref: '#/components/schemas/ScopeCheck' required: - team_id - team_name - region_node_id - dispatch_mode - settle_mode - settle_value - ticket_types - dropped_team_types - member_type_trim - ops_main_scope_check description: OpsTeamUpdateResult 业务数据 title: OpsTeamUpdateResult OrderChangeResult: type: object properties: subscription_id: type: string title: 订阅 ID description: 订阅 ID。 customer_id: type: string title: 客户 ID description: 客户 ID。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 contract_id: type: string nullable: true title: 合同 ID description: 合同 ID。 contract_item_id: type: string nullable: true title: contract item id description: 字段 contract_item_id。 plan_id: type: string nullable: true title: 档位 ID description: 档位 ID。 plan_name: type: string nullable: true title: 档位名称 description: 档位名称。 plan_family: type: string nullable: true title: plan family description: 字段 plan_family。 status: type: string title: 状态 description: 状态。 status_display: type: object properties: key: type: string label: type: string note: type: string nullable: true required: - key - label nullable: true title: status display description: 字段 status_display。 start_date: type: string nullable: true title: 开始日 description: 开始日。 end_date: type: string nullable: true title: 结束日 description: 结束日。 effective_date: type: string nullable: true title: effective date description: 字段 effective_date。 expire_date: type: string nullable: true title: 到期日 description: 到期日。 annual_price_cents: type: integer nullable: true title: 年价(分) description: 年价(分)。 monthly_settle_cents: type: integer nullable: true title: 月结算(分) description: 月结算(分)。 quota_slots: type: number title: quota slots description: 字段 quota_slots。 quantity: type: number nullable: true title: quantity description: 字段 quantity。 parent_subscription_id: type: string nullable: true title: parent subscription id description: 字段 parent_subscription_id。 replaces_subscription_id: type: string nullable: true title: replaces subscription id description: 字段 replaces_subscription_id。 created_at: type: string title: 创建时间 description: 创建时间。 row_version: type: string title: 乐观锁版本 description: 乐观锁版本。 contract_no: type: string nullable: true title: 合同编号 description: 合同编号。 plan_kind: type: string nullable: true title: plan kind description: 字段 plan_kind。 plan_owner_customer_id: type: string nullable: true title: plan owner customer id description: 字段 plan_owner_customer_id。 sub_mode: type: string nullable: true title: sub mode description: 字段 sub_mode。 sub_mode_label: type: string nullable: true title: sub mode label description: 字段 sub_mode_label。 term: type: string nullable: true title: term description: 字段 term。 trial_months: type: number nullable: true title: trial months description: 字段 trial_months。 discount_monthly_cents: type: integer nullable: true title: discount monthly cents description: 字段 discount_monthly_cents。 line_exits: type: array items: type: string title: line_exits元素 nullable: true title: line exits description: 字段 line_exits。 line_exit_key: type: string nullable: true title: line exit key description: 字段 line_exit_key。 order_no: type: string nullable: true title: order no description: 字段 order_no。 actual_opened_at: type: string nullable: true title: actual opened at description: 字段 actual_opened_at。 early_stopped_at: type: string nullable: true title: early stopped at description: 字段 early_stopped_at。 plan_cost_cents: type: integer nullable: true title: plan cost cents description: 字段 plan_cost_cents。 plan_cost_state: $ref: '#/components/schemas/ValueState' billing: $ref: '#/components/schemas/SubscriptionBilling' editable: type: boolean nullable: true title: editable description: 字段 editable。 reason: type: string nullable: true title: reason description: 字段 reason。 replaced_by: $ref: '#/components/schemas/RelatedOrderRef' original: $ref: '#/components/schemas/RelatedOrderRef' replaced_subscription_id: type: string nullable: true title: replaced subscription id description: 字段 replaced_subscription_id。 cut_end_date: type: string nullable: true title: cut end date description: 字段 cut_end_date。 quota_changed: type: boolean nullable: true title: quota changed description: 字段 quota_changed。 notes: type: array items: type: string title: 说明列表元素 nullable: true title: 说明列表 description: 说明列表。 delivery_ticket: $ref: '#/components/schemas/DeliveryTicketOutcome' required: - subscription_id - customer_id - contract_id - contract_item_id - plan_id - plan_name - plan_family - status - start_date - end_date - effective_date - expire_date - annual_price_cents - monthly_settle_cents - quota_slots - replaces_subscription_id - created_at - row_version description: OrderChangeResult 业务数据 title: OrderChangeResult OrderContractItemOption: type: object properties: item_id: type: string title: item id description: 字段 item_id。 plan_id: type: string nullable: true title: 档位 ID description: 档位 ID。 plan_name: type: string nullable: true title: 档位名称 description: 档位名称。 item_family: type: string nullable: true title: item family description: 字段 item_family。 quantity: type: number nullable: true title: quantity description: 字段 quantity。 annual_price_cents: type: integer nullable: true title: 年价(分) description: 年价(分)。 line_exits: type: array items: type: string title: line_exits元素 nullable: true title: line exits description: 字段 line_exits。 available: type: boolean nullable: true description: 条目可选性(后端已剔除「已有订阅的条目」,此处再给档位停用等原因)。 title: available unavailable_reason: type: string nullable: true title: unavailable reason description: 字段 unavailable_reason。 required: - item_id - plan_id - plan_name - item_family - quantity - annual_price_cents - line_exits description: OrderContractItemOption 业务数据 title: OrderContractItemOption OrderCreateResult: type: object properties: subscription_id: type: string title: 订阅 ID description: 订阅 ID。 customer_id: type: string title: 客户 ID description: 客户 ID。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 contract_id: type: string nullable: true title: 合同 ID description: 合同 ID。 contract_item_id: type: string nullable: true title: contract item id description: 字段 contract_item_id。 plan_id: type: string nullable: true title: 档位 ID description: 档位 ID。 plan_name: type: string nullable: true title: 档位名称 description: 档位名称。 plan_family: type: string nullable: true title: plan family description: 字段 plan_family。 status: type: string title: 状态 description: 状态。 status_display: type: object properties: key: type: string label: type: string note: type: string nullable: true required: - key - label nullable: true title: status display description: 字段 status_display。 start_date: type: string nullable: true title: 开始日 description: 开始日。 end_date: type: string nullable: true title: 结束日 description: 结束日。 effective_date: type: string nullable: true title: effective date description: 字段 effective_date。 expire_date: type: string nullable: true title: 到期日 description: 到期日。 annual_price_cents: type: integer nullable: true title: 年价(分) description: 年价(分)。 monthly_settle_cents: type: integer nullable: true title: 月结算(分) description: 月结算(分)。 quota_slots: type: number title: quota slots description: 字段 quota_slots。 quantity: type: number nullable: true title: quantity description: 字段 quantity。 parent_subscription_id: type: string nullable: true title: parent subscription id description: 字段 parent_subscription_id。 replaces_subscription_id: type: string nullable: true title: replaces subscription id description: 字段 replaces_subscription_id。 created_at: type: string title: 创建时间 description: 创建时间。 row_version: type: string title: 乐观锁版本 description: 乐观锁版本。 contract_no: type: string nullable: true title: 合同编号 description: 合同编号。 plan_kind: type: string nullable: true title: plan kind description: 字段 plan_kind。 plan_owner_customer_id: type: string nullable: true title: plan owner customer id description: 字段 plan_owner_customer_id。 sub_mode: type: string nullable: true title: sub mode description: 字段 sub_mode。 sub_mode_label: type: string nullable: true title: sub mode label description: 字段 sub_mode_label。 term: type: string nullable: true title: term description: 字段 term。 trial_months: type: number nullable: true title: trial months description: 字段 trial_months。 discount_monthly_cents: type: integer nullable: true title: discount monthly cents description: 字段 discount_monthly_cents。 line_exits: type: array items: type: string title: line_exits元素 nullable: true title: line exits description: 字段 line_exits。 line_exit_key: type: string nullable: true title: line exit key description: 字段 line_exit_key。 order_no: type: string nullable: true title: order no description: 字段 order_no。 actual_opened_at: type: string nullable: true title: actual opened at description: 字段 actual_opened_at。 early_stopped_at: type: string nullable: true title: early stopped at description: 字段 early_stopped_at。 plan_cost_cents: type: integer nullable: true title: plan cost cents description: 字段 plan_cost_cents。 plan_cost_state: $ref: '#/components/schemas/ValueState' billing: $ref: '#/components/schemas/SubscriptionBilling' editable: type: boolean nullable: true title: editable description: 字段 editable。 reason: type: string nullable: true title: reason description: 字段 reason。 replaced_by: $ref: '#/components/schemas/RelatedOrderRef' original: $ref: '#/components/schemas/RelatedOrderRef' quota_changed: type: boolean nullable: true title: quota changed description: 字段 quota_changed。 notes: type: array items: type: string title: 说明列表元素 nullable: true title: 说明列表 description: 说明列表。 delivery_ticket: $ref: '#/components/schemas/DeliveryTicketOutcome' required: - subscription_id - customer_id - contract_id - contract_item_id - plan_id - plan_name - plan_family - status - start_date - end_date - effective_date - expire_date - annual_price_cents - monthly_settle_cents - quota_slots - replaces_subscription_id - created_at - row_version description: OrderCreateResult 业务数据 title: OrderCreateResult OrderDeleteCheckResult: type: object properties: deletable: type: boolean title: deletable description: 字段 deletable。 blocks: type: object properties: billing_details: type: array items: {} nullable: true change_chain: type: array items: {} nullable: true nullable: true title: blocks description: 字段 blocks。 billing_state: $ref: '#/components/schemas/ValueState' snapshot_version: type: string nullable: true title: snapshot version description: 字段 snapshot_version。 required: - deletable description: OrderDeleteCheckResult 业务数据 title: OrderDeleteCheckResult OrderDeleteResult: type: object properties: deleted: type: boolean title: 是否已删除 description: 是否已删除。 quota_released: type: number nullable: true title: quota released description: 字段 quota_released。 required: - deleted description: OrderDeleteResult 业务数据 title: OrderDeleteResult OrderGetResult: type: object properties: subscription_id: type: string title: 订阅 ID description: 订阅 ID。 customer_id: type: string title: 客户 ID description: 客户 ID。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 contract_id: type: string nullable: true title: 合同 ID description: 合同 ID。 contract_item_id: type: string nullable: true title: contract item id description: 字段 contract_item_id。 plan_id: type: string nullable: true title: 档位 ID description: 档位 ID。 plan_name: type: string nullable: true title: 档位名称 description: 档位名称。 plan_family: type: string nullable: true title: plan family description: 字段 plan_family。 status: type: string title: 状态 description: 状态。 status_display: type: object properties: key: type: string label: type: string note: type: string nullable: true required: - key - label nullable: true title: status display description: 字段 status_display。 start_date: type: string nullable: true title: 开始日 description: 开始日。 end_date: type: string nullable: true title: 结束日 description: 结束日。 effective_date: type: string nullable: true title: effective date description: 字段 effective_date。 expire_date: type: string nullable: true title: 到期日 description: 到期日。 annual_price_cents: type: integer nullable: true title: 年价(分) description: 年价(分)。 monthly_settle_cents: type: integer nullable: true title: 月结算(分) description: 月结算(分)。 quota_slots: type: number title: quota slots description: 字段 quota_slots。 quantity: type: number nullable: true title: quantity description: 字段 quantity。 parent_subscription_id: type: string nullable: true title: parent subscription id description: 字段 parent_subscription_id。 replaces_subscription_id: type: string nullable: true title: replaces subscription id description: 字段 replaces_subscription_id。 created_at: type: string title: 创建时间 description: 创建时间。 row_version: type: string title: 乐观锁版本 description: 乐观锁版本。 contract_no: type: string nullable: true title: 合同编号 description: 合同编号。 plan_kind: type: string nullable: true title: plan kind description: 字段 plan_kind。 plan_owner_customer_id: type: string nullable: true title: plan owner customer id description: 字段 plan_owner_customer_id。 sub_mode: type: string nullable: true title: sub mode description: 字段 sub_mode。 sub_mode_label: type: string nullable: true title: sub mode label description: 字段 sub_mode_label。 term: type: string nullable: true title: term description: 字段 term。 trial_months: type: number nullable: true title: trial months description: 字段 trial_months。 discount_monthly_cents: type: integer nullable: true title: discount monthly cents description: 字段 discount_monthly_cents。 line_exits: type: array items: type: string title: line_exits元素 nullable: true title: line exits description: 字段 line_exits。 line_exit_key: type: string nullable: true title: line exit key description: 字段 line_exit_key。 order_no: type: string nullable: true title: order no description: 字段 order_no。 actual_opened_at: type: string nullable: true title: actual opened at description: 字段 actual_opened_at。 early_stopped_at: type: string nullable: true title: early stopped at description: 字段 early_stopped_at。 plan_cost_cents: type: integer nullable: true title: plan cost cents description: 字段 plan_cost_cents。 plan_cost_state: $ref: '#/components/schemas/ValueState' billing: $ref: '#/components/schemas/SubscriptionBilling' editable: type: boolean nullable: true title: editable description: 字段 editable。 reason: type: string nullable: true title: reason description: 字段 reason。 replaced_by: $ref: '#/components/schemas/RelatedOrderRef' original: $ref: '#/components/schemas/RelatedOrderRef' related: type: object properties: replaced_by: $ref: '#/components/schemas/RelatedOrderRef' original: $ref: '#/components/schemas/RelatedOrderRef' nullable: true title: related description: 字段 related。 required: - subscription_id - customer_id - contract_id - contract_item_id - plan_id - plan_name - plan_family - status - start_date - end_date - effective_date - expire_date - annual_price_cents - monthly_settle_cents - quota_slots - replaces_subscription_id - created_at - row_version description: OrderGetResult 业务数据 title: OrderGetResult OrderListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/OrderRow' title: 列表项 description: 列表项。 total: type: integer nullable: true title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 required: - items description: OrderListResult 业务数据 title: OrderListResult OrderPlanOption: type: object properties: plan_id: type: string title: 档位 ID description: 档位 ID。 plan_name: type: string title: 档位名称 description: 档位名称。 plan_kind: type: string title: plan kind description: 字段 plan_kind。 owner_customer_id: type: string nullable: true description: 档位归属客户(固定档=null,自定义档=该客户)。 title: owner customer id plan_family: type: string nullable: true title: plan family description: 字段 plan_family。 annual_price_cents: type: integer title: 年价(分) description: 年价(分)。 monthly_settle_cents: type: integer nullable: true description: 月结算标准金额(`monthly_settle_of` 折算,只读带出)。 title: 月结算(分) sub_account_quota: type: number nullable: true title: sub account quota description: 字段 sub_account_quota。 line_exits: type: array items: type: string title: line_exits元素 nullable: true title: line exits description: 字段 line_exits。 referred_count: type: integer nullable: true description: 被引用次数/是否已首次引用(改档冻结判据)。 title: referred count first_referred: type: boolean nullable: true title: first referred description: 字段 first_referred。 available: type: boolean title: available description: 字段 available。 unavailable_reason: type: string nullable: true title: unavailable reason description: 字段 unavailable_reason。 required: - plan_id - plan_name - plan_kind - plan_family - annual_price_cents - sub_account_quota - line_exits - available description: OrderPlanOption 业务数据 title: OrderPlanOption OrderRow: type: object properties: subscription_id: type: string title: 订阅 ID description: 订阅 ID。 customer_id: type: string title: 客户 ID description: 客户 ID。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 contract_id: type: string nullable: true title: 合同 ID description: 合同 ID。 contract_item_id: type: string nullable: true title: contract item id description: 字段 contract_item_id。 plan_id: type: string nullable: true title: 档位 ID description: 档位 ID。 plan_name: type: string nullable: true title: 档位名称 description: 档位名称。 plan_family: type: string nullable: true title: plan family description: 字段 plan_family。 status: type: string title: 状态 description: 状态。 status_display: type: object properties: key: type: string label: type: string note: type: string nullable: true required: - key - label nullable: true description: 读侧状态:终态(含 early_stopped)原样保留,其余按起止日推导。 title: status display start_date: type: string nullable: true title: 开始日 description: 开始日。 end_date: type: string nullable: true title: 结束日 description: 结束日。 effective_date: type: string nullable: true title: effective date description: 字段 effective_date。 expire_date: type: string nullable: true title: 到期日 description: 到期日。 annual_price_cents: type: integer nullable: true title: 年价(分) description: 年价(分)。 monthly_settle_cents: type: integer nullable: true title: 月结算(分) description: 月结算(分)。 quota_slots: type: number title: quota slots description: 字段 quota_slots。 quantity: type: number nullable: true description: 订阅份数:可叠加档可 > 1(例:境外 IP 按个),其余恒 1。 title: quantity parent_subscription_id: type: string nullable: true description: P1:附加订阅的父订阅;`null`/缺省=独立订阅。 title: parent subscription id replaces_subscription_id: type: string nullable: true title: replaces subscription id description: 字段 replaces_subscription_id。 created_at: type: string title: 创建时间 description: 创建时间。 row_version: type: string title: 乐观锁版本 description: 乐观锁版本。 contract_no: type: string nullable: true title: 合同编号 description: 合同编号。 plan_kind: type: string nullable: true title: plan kind description: 字段 plan_kind。 plan_owner_customer_id: type: string nullable: true description: 档位归属客户:固定档=平台方,自定义档=该客户 title: plan owner customer id sub_mode: type: string nullable: true title: sub mode description: 字段 sub_mode。 sub_mode_label: type: string nullable: true title: sub mode label description: 字段 sub_mode_label。 term: type: string nullable: true description: 规格(年付/季付/月付三值, 显示英文码) title: term trial_months: type: number nullable: true title: trial months description: 字段 trial_months。 discount_monthly_cents: type: integer nullable: true title: discount monthly cents description: 字段 discount_monthly_cents。 line_exits: type: array items: type: string title: line_exits元素 nullable: true description: 线路出口(数组) title: line exits line_exit_key: type: string nullable: true title: line exit key description: 字段 line_exit_key。 order_no: type: string nullable: true description: 工单号:本册只读,写入方在 title: order no actual_opened_at: type: string nullable: true description: 实际开通日:本册只读,唯一写入方=工单回填 title: actual opened at early_stopped_at: type: string nullable: true description: 提前停机日:service_stop 回填生效写入;起止日不变 title: early stopped at plan_cost_cents: type: integer nullable: true description: 月成本三态 title: plan cost cents plan_cost_state: $ref: '#/components/schemas/ValueState' billing: $ref: '#/components/schemas/SubscriptionBilling' editable: type: boolean nullable: true description: 写口可见性由后端给出,前端 自行推导 title: editable reason: type: string nullable: true title: reason description: 字段 reason。 replaced_by: $ref: '#/components/schemas/RelatedOrderRef' original: $ref: '#/components/schemas/RelatedOrderRef' required: - subscription_id - customer_id - contract_id - contract_item_id - plan_id - plan_name - plan_family - status - start_date - end_date - effective_date - expire_date - annual_price_cents - monthly_settle_cents - quota_slots - replaces_subscription_id - created_at - row_version description: OrderRow 业务数据 title: OrderRow OrderStackResult: type: object properties: subscription_id: type: string title: 订阅 ID description: 订阅 ID。 updated_fields: type: array items: type: string title: updated_fields元素 nullable: true title: updated fields description: 字段 updated_fields。 required: - subscription_id description: OrderStackResult 业务数据 title: OrderStackResult OrderUpdateResult: type: object properties: subscription_id: type: string title: 订阅 ID description: 订阅 ID。 customer_id: type: string title: 客户 ID description: 客户 ID。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 contract_id: type: string nullable: true title: 合同 ID description: 合同 ID。 contract_item_id: type: string nullable: true title: contract item id description: 字段 contract_item_id。 plan_id: type: string nullable: true title: 档位 ID description: 档位 ID。 plan_name: type: string nullable: true title: 档位名称 description: 档位名称。 plan_family: type: string nullable: true title: plan family description: 字段 plan_family。 status: type: string title: 状态 description: 状态。 status_display: type: object properties: key: type: string label: type: string note: type: string nullable: true required: - key - label nullable: true title: status display description: 字段 status_display。 start_date: type: string nullable: true title: 开始日 description: 开始日。 end_date: type: string nullable: true title: 结束日 description: 结束日。 effective_date: type: string nullable: true title: effective date description: 字段 effective_date。 expire_date: type: string nullable: true title: 到期日 description: 到期日。 annual_price_cents: type: integer nullable: true title: 年价(分) description: 年价(分)。 monthly_settle_cents: type: integer nullable: true title: 月结算(分) description: 月结算(分)。 quota_slots: type: number title: quota slots description: 字段 quota_slots。 quantity: type: number nullable: true title: quantity description: 字段 quantity。 parent_subscription_id: type: string nullable: true title: parent subscription id description: 字段 parent_subscription_id。 replaces_subscription_id: type: string nullable: true title: replaces subscription id description: 字段 replaces_subscription_id。 created_at: type: string title: 创建时间 description: 创建时间。 row_version: type: string title: 乐观锁版本 description: 乐观锁版本。 contract_no: type: string nullable: true title: 合同编号 description: 合同编号。 plan_kind: type: string nullable: true title: plan kind description: 字段 plan_kind。 plan_owner_customer_id: type: string nullable: true title: plan owner customer id description: 字段 plan_owner_customer_id。 sub_mode: type: string nullable: true title: sub mode description: 字段 sub_mode。 sub_mode_label: type: string nullable: true title: sub mode label description: 字段 sub_mode_label。 term: type: string nullable: true title: term description: 字段 term。 trial_months: type: number nullable: true title: trial months description: 字段 trial_months。 discount_monthly_cents: type: integer nullable: true title: discount monthly cents description: 字段 discount_monthly_cents。 line_exits: type: array items: type: string title: line_exits元素 nullable: true title: line exits description: 字段 line_exits。 line_exit_key: type: string nullable: true title: line exit key description: 字段 line_exit_key。 order_no: type: string nullable: true title: order no description: 字段 order_no。 actual_opened_at: type: string nullable: true title: actual opened at description: 字段 actual_opened_at。 early_stopped_at: type: string nullable: true title: early stopped at description: 字段 early_stopped_at。 plan_cost_cents: type: integer nullable: true title: plan cost cents description: 字段 plan_cost_cents。 plan_cost_state: $ref: '#/components/schemas/ValueState' billing: $ref: '#/components/schemas/SubscriptionBilling' editable: type: boolean nullable: true title: editable description: 字段 editable。 reason: type: string nullable: true title: reason description: 字段 reason。 replaced_by: $ref: '#/components/schemas/RelatedOrderRef' original: $ref: '#/components/schemas/RelatedOrderRef' updated: type: boolean nullable: true title: 是否已更新 description: 是否已更新。 required: - subscription_id - customer_id - contract_id - contract_item_id - plan_id - plan_name - plan_family - status - start_date - end_date - effective_date - expire_date - annual_price_cents - monthly_settle_cents - quota_slots - replaces_subscription_id - created_at - row_version description: OrderUpdateResult 业务数据 title: OrderUpdateResult OverviewStat: type: object properties: role: oneOf: - $ref: '#/components/schemas/RoleCode' - type: string title: role description: 字段 role。 tickets: type: object properties: pending: type: number nullable: true processing: type: number nullable: true available: type: boolean required: - pending - processing - available title: tickets description: 字段 tickets。 overdue: type: object properties: count: type: number nullable: true available: type: boolean required: - count - available title: overdue description: 字段 overdue。 message: type: string title: 说明 description: 说明。 required: - role - tickets - overdue - message description: OverviewStat 业务数据 title: OverviewStat PartnerCreateResult: type: object properties: partner_id: type: string title: 合伙人 ID description: 合伙人 ID。 name: type: string title: 名称 description: 名称。 duty_desc: type: string nullable: true title: duty desc description: 字段 duty_desc。 region_node_id: type: string title: 区域节点 ID description: 区域节点 ID。 region_level: type: string description: '`bos_region_meta` 回读(合伙人限省级)' title: region level region_path_name: type: string title: region path name description: 字段 region_path_name。 ops_main_scope_check: $ref: '#/components/schemas/ScopeCheck' mobile: type: string nullable: true description: '已按 掩码' title: 手机号 status: type: string title: 状态 description: 状态。 settle_mode: type: string nullable: true title: settle mode description: 字段 settle_mode。 settle_value: type: string nullable: true description: dev UDS 对 numeric 写入有静默落 NULL 缺陷 ⇒ 与 `settle_requested` 不一致即未落库 title: settle value settle_value_note: type: string title: settle value note description: 字段 settle_value_note。 settle_requested: type: object properties: settle_mode: type: string nullable: true settle_value: oneOf: - type: string - type: number nullable: true required: - settle_mode - settle_value description: 本次请求的分成入参(原样回显,供与 `settle_value` 比对) title: settle requested account: $ref: '#/components/schemas/AccountOut' required: - partner_id - name - duty_desc - region_node_id - region_level - region_path_name - ops_main_scope_check - mobile - status - settle_mode - settle_value - settle_value_note - settle_requested - account description: PartnerCreateResult 业务数据 title: PartnerCreateResult PartnerDeleteResult: type: object properties: partner_id: type: string title: 合伙人 ID description: 合伙人 ID。 name: type: string title: 名称 description: 名称。 deleted: type: string description: 类型:false title: 是否已删除 blockers: type: array items: $ref: '#/components/schemas/BlockerItem' title: blockers description: 字段 blockers。 unverifiable_checks: type: array items: $ref: '#/components/schemas/UnverifiableCheck' title: unverifiable checks description: 字段 unverifiable_checks。 note: type: string title: 备注 description: 备注。 required: - partner_id - name - deleted - blockers - unverifiable_checks - note description: PartnerDeleteResult 业务数据 title: PartnerDeleteResult PartnerListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/PartnerRow' title: 列表项 description: 列表项。 total: type: integer title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 required: - items - total description: PartnerListResult 业务数据 title: PartnerListResult PartnerRow: type: object properties: partner_id: type: string title: 合伙人 ID description: 合伙人 ID。 name: type: string title: 名称 description: 名称。 duty_desc: type: string nullable: true title: duty desc description: 字段 duty_desc。 region_node_id: type: string title: 区域节点 ID description: 区域节点 ID。 region_path_name: type: string nullable: true description: '`bos_region_meta.path_name`(节点 ID 链;未建档=null)' title: region path name region_level: type: string nullable: true description: '`bos_region_meta.level`(合伙人限省级)' title: region level mobile: type: string nullable: true title: 手机号 description: 手机号。 status: type: string title: 状态 description: 状态。 settle_mode: type: string nullable: true title: settle mode description: 字段 settle_mode。 settle_value: type: string nullable: true title: settle value description: 字段 settle_value。 customer_count: type: integer title: customer count description: 字段 customer_count。 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 account: $ref: '#/components/schemas/SubjectAccount' scope: type: object properties: regions: type: array items: type: string customers: type: array items: type: string coverage_customers: type: number nullable: true required: - regions - customers - coverage_customers description: '* 「配置范围」弹窗回显 —— 随列表一并下发, 另开「按 id 查他人范围」的接口 * (`partner/scope/get@v1` 设计上只允许本人查自己,admin 越权读他人范围在本域被禁止)。' title: scope required: - partner_id - name - duty_desc - region_node_id - region_path_name - region_level - mobile - status - settle_mode - settle_value - customer_count - created_at - account - scope description: PartnerRow 业务数据 title: PartnerRow PartnerScope: type: object properties: grants: type: array items: $ref: '#/components/schemas/ScopeGrant' title: grants description: 字段 grants。 total: type: integer title: 总条数 description: 总条数。 required: - grants - total description: PartnerScope 业务数据 title: PartnerScope PartnerScopeSaveResult: type: object properties: partner_id: type: string title: 合伙人 ID description: 合伙人 ID。 grants: type: array items: $ref: '#/components/schemas/ScopeGrant' title: grants description: 字段 grants。 region_count: type: integer title: region count description: 字段 region_count。 customer_count: type: integer title: customer count description: 字段 customer_count。 total: type: integer title: 总条数 description: 总条数。 inserted: type: number title: inserted description: 字段 inserted。 deleted: type: number title: 是否已删除 description: 是否已删除。 unchanged: type: number title: unchanged description: 字段 unchanged。 noop: type: boolean nullable: true description: '仅「本次无需改动」分支下发' title: noop consistent: type: boolean nullable: true description: '回读与请求是否一致( 假定 true);noop 分支 下发' title: consistent diff_with_requested: type: object properties: expected: type: array items: type: string actual: type: array items: type: string required: - expected - actual nullable: true title: diff with requested description: 字段 diff_with_requested。 scope_note: type: string title: scope note description: 字段 scope_note。 required: - partner_id - grants - region_count - customer_count - total - inserted - deleted - unchanged - scope_note description: PartnerScopeSaveResult 业务数据 title: PartnerScopeSaveResult PartnerUpdateResult: type: object properties: partner_id: type: string title: 合伙人 ID description: 合伙人 ID。 name: type: string title: 名称 description: 名称。 duty_desc: type: string nullable: true title: duty desc description: 字段 duty_desc。 region_node_id: type: string title: 区域节点 ID description: 区域节点 ID。 region_level: type: string title: region level description: 字段 region_level。 region_path_name: type: string title: region path name description: 字段 region_path_name。 ops_main_scope_check: $ref: '#/components/schemas/ScopeCheck' mobile: type: string nullable: true title: 手机号 description: 手机号。 status: type: string title: 状态 description: 状态。 settle_mode: type: string nullable: true title: settle mode description: 字段 settle_mode。 settle_value: type: string nullable: true title: settle value description: 字段 settle_value。 settle_requested: type: object properties: settle_mode: type: string nullable: true settle_value: oneOf: - type: string - type: number nullable: true required: - settle_mode - settle_value title: settle requested description: 字段 settle_requested。 username: type: string nullable: true description: 随本接口同步平台账号,此处=本地绑定行真值 title: 登录名 form_semantics: type: string title: form semantics description: 字段 form_semantics。 platform_sync_note: type: string title: platform sync note description: 字段 platform_sync_note。 row_version_note: type: string title: row version note description: 字段 row_version_note。 required: - partner_id - name - duty_desc - region_node_id - region_level - region_path_name - ops_main_scope_check - mobile - status - settle_mode - settle_value - settle_requested - username - form_semantics - platform_sync_note - row_version_note description: PartnerUpdateResult 业务数据 title: PartnerUpdateResult PendingQueueItem: type: object properties: seq_no: type: number nullable: true title: 序号 description: 序号。 ticket_id: type: string title: 工单 ID description: 工单 ID。 ticket_no: type: string nullable: true title: 工单号 description: 工单号。 ticket_type: $ref: '#/components/schemas/TicketType' title: type: string nullable: true title: 标题 description: 标题。 customer_id: type: string nullable: true title: 客户 ID description: 客户 ID。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 assign_team_id: type: string nullable: true title: 承接团队 ID description: 承接团队 ID。 team_name: type: string nullable: true title: 团队名称 description: 团队名称。 assignee_user_id: type: string nullable: true title: 处理人用户 ID description: 处理人用户 ID。 assignee_name: type: string nullable: true title: 处理人姓名 description: 处理人姓名。 status: $ref: '#/components/schemas/TicketStatus' backfill_source: type: string nullable: true title: 回填来源 description: 回填来源。 expected_done_date: type: string nullable: true title: 期望完成日 description: 期望完成日。 deferred_until: type: string nullable: true title: 延期至 description: 延期至。 overdue_7d: type: boolean nullable: true title: 七日超期 description: 七日超期。 execution_locked: type: boolean nullable: true title: 执行锁定 description: 执行锁定。 execution_not_before: type: string nullable: true title: 最早可执行日 description: 最早可执行日。 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 completed_at: type: string nullable: true title: 完成时间 description: 完成时间。 waiting: $ref: '#/components/schemas/TicketWaiting' submitter_type: type: string nullable: true title: 提交方类型 description: 提交方类型。 candidates: type: array items: $ref: '#/components/schemas/AssignCandidate' title: 候选人 description: 候选人。 required: - ticket_id - ticket_no - ticket_type - title - customer_id - customer_name - assign_team_id - assignee_user_id - status - backfill_source - expected_done_date - created_at - candidates description: PendingQueueItem 业务数据 title: PendingQueueItem PendingQueueResult: type: object properties: rows: type: array items: $ref: '#/components/schemas/PendingQueueItem' title: 行集 description: 行集。 total: type: integer title: 总条数 description: 总条数。 page: type: integer title: 页码 description: 页码。 page_size: type: integer title: 每页条数 description: 每页条数。 required: - rows - total - page - page_size description: PendingQueueResult 业务数据 title: PendingQueueResult PingInfo: type: object properties: status: type: string title: 状态 description: 状态。 service: type: string title: 服务名 description: 服务名。 user_id: type: string title: 用户 ID description: 用户 ID。 role_code: $ref: '#/components/schemas/RoleCode' required: - status - service - user_id - role_code description: PingInfo 业务数据 title: PingInfo PlanCostItemListResult: type: object description: 档位随附成本项列表 properties: items: type: array description: 成本项行 items: type: object additionalProperties: true title: 列表项元素 title: 列表项 plan_id: type: string description: 套餐档位 ID nullable: true title: 档位 ID frozen: type: boolean description: 是否冻结(只读提示) nullable: true title: frozen required: - items title: PlanCostItemListResult PlanCostItemRow: type: object properties: item_id: type: string nullable: true title: item id description: 字段 item_id。 cost_item_id: type: string nullable: true description: 全局成本项 ID(强引用,保存时必填)。 title: cost item id item_name: type: string title: item name description: 字段 item_name。 amount_cents: type: integer nullable: true title: 金额(分) description: 金额(分)。 billing_unit: type: string nullable: true title: billing unit description: 字段 billing_unit。 category: type: string nullable: true title: category description: 字段 category。 remark: type: string nullable: true title: 备注 description: 备注。 sort_no: type: number nullable: true title: sort no description: 字段 sort_no。 required: - item_name - amount_cents - billing_unit - category - remark description: 套餐随附成本项(`plan_cost_item`)。`cost_item_id` 为对全局 `cost_item` 的强引用; `item_name`/`category`/`billing_unit` 读时取全局现名(服务端 JOIN),保存时由服务端快照覆盖。 title: PlanCostItemRow PlanCostItemSaveResult: type: object properties: items: type: array items: $ref: '#/components/schemas/PlanCostItemRow' title: 列表项 description: 列表项。 saved_count: type: integer nullable: true title: saved count description: 字段 saved_count。 required: - items description: PlanCostItemSaveResult 业务数据 title: PlanCostItemSaveResult PortalPlanBoardResult: type: object description: 客户门户套餐看板 properties: view: type: string description: 视图:board/list/detail title: 视图 party: type: object description: 页头主体 properties: customer_id: type: string description: 客户 ID customer_name: type: string description: 客户名称 nullable: true operator_name: type: string description: 签订方运营商名称 nullable: true region_path: type: string description: 区域路径 nullable: true title: 主体信息 current_rows: type: array description: 当前套餐行(status.key ∈ active/pending) items: $ref: '#/components/schemas/PortalPlanBoardRow' title: 当前行 history_rows: type: array description: 往期套餐行(含 expired/cancelled/replaced) items: $ref: '#/components/schemas/PortalPlanBoardRow' title: 历史行 amount_note: type: string description: 合同总额与每期结算口径说明 title: 金额说明 notes: type: array items: type: string title: 说明列表元素 description: 补充说明 title: 说明列表 required: - view - current_rows - history_rows title: PortalPlanBoardResult PriorActivation: type: object properties: ticket_id: type: string nullable: true title: 工单 ID description: 工单 ID。 ticket_no: type: string nullable: true title: 工单号 description: 工单号。 actual_opened_date: type: string nullable: true title: actual opened date description: 字段 actual_opened_date。 pin_bind_mode: type: string nullable: true title: pin bind mode description: 字段 pin_bind_mode。 routes: type: array items: $ref: '#/components/schemas/RouteRow' nullable: true title: routes description: 字段 routes。 ips: type: array items: $ref: '#/components/schemas/IpRow' nullable: true title: ips description: 字段 ips。 ip_binds: type: array items: type: object properties: backfill_ip_id: type: string nullable: true sub_account_id: type: string nullable: true nullable: true title: ip binds description: 字段 ip_binds。 description: PriorActivation 业务数据 title: PriorActivation ProcessLog: type: object properties: log_id: type: string title: log id description: 字段 log_id。 action: type: string nullable: true title: 动作 description: 动作。 actor_user_id: type: string nullable: true description: '* 操作人平台主体号。 服务端按角色下发:台账读侧五档给原值(要拿它对齐审计流水), * 客户侧/合作方侧置 `null`;`"0"`=系统/定时作。' title: actor user id actor_name: type: string nullable: true description: 操作人姓名/展示名(服务端按 `bos_account_ext.display_name` 优先、未自填回落登录名现查;查无或系统主体为 `null`)。 title: actor name actor_role: type: string nullable: true title: actor role description: 字段 actor_role。 note: type: string nullable: true title: 备注 description: 备注。 at: type: string nullable: true title: at description: 字段 at。 required: - log_id - action - actor_user_id - actor_role - note - at description: 处理记录=append-only 纯文本留痕(数据模型): `related_id` 之类的关联列。 title: ProcessLog ReconAccountCreateResult: type: object properties: operator_id: type: string title: 运营商 ID description: 运营商 ID。 user_id: type: string title: 用户 ID description: 用户 ID。 username: type: string title: 登录名 description: 登录名。 mobile: type: string nullable: true title: 手机号 description: 手机号。 status: type: string title: 状态 description: 状态。 status_hint: type: string nullable: true description: 状态提示,如「未发送,线下告知本人」 title: status hint initial_password: type: string nullable: true description: 仅创建当次返回,查询接口不下发 title: initial password required: - operator_id - user_id - username - mobile - status - status_hint description: ReconAccountCreateResult 业务数据 title: ReconAccountCreateResult ReconAccountGetResult: type: object properties: found: type: boolean title: 是否命中 description: 是否命中。 operator_id: type: string title: 运营商 ID description: 运营商 ID。 user_id: type: string nullable: true title: 用户 ID description: 用户 ID。 username: type: string nullable: true title: 登录名 description: 登录名。 mobile: type: string nullable: true title: 手机号 description: 手机号。 status: type: string nullable: true title: 状态 description: 状态。 status_hint: type: string nullable: true title: status hint description: 字段 status_hint。 required: - found - operator_id - user_id - username - mobile - status - status_hint description: ReconAccountGetResult 业务数据 title: ReconAccountGetResult ReconBatchRow: type: object properties: batch_no: type: string title: 批次号 description: 批次号。 holder_type: $ref: '#/components/schemas/HolderType' holder_id: type: string title: holder id description: 字段 holder_id。 holder_name: type: string description: 当期快照名称( 不存批次快照,显示时按快照口径取名) title: holder name period: type: string title: 账期 description: 字段 period。 recon_date: type: string title: recon date description: 字段 recon_date。 trigger_type: $ref: '#/components/schemas/ReconTriggerType' detail_count: type: integer description: 明细条数:count(active) 现算,void 行不计 title: detail count base_cents: type: integer description: 本批 SUM(active share_base_cents)——与卡片口径不同(不去重) title: base cents share_cents: type: integer description: 本批 SUM(active share_amount_cents) title: share cents reconcile_status: $ref: '#/components/schemas/ReconcileStatus' status: $ref: '#/components/schemas/ReconBatchStatus' fail_reason: type: string nullable: true description: failed 行行末红点悬浮原文( 不是 KLT-* 码,对账 末格) title: fail reason operator_user_id: type: string nullable: true description: 执行人;NULL ⇒ 界面显示「系统」( 显示 0/占位用户名) title: operator user id operator_username: type: string nullable: true description: 执行人可读名(`bos_user_binding` 联表): 无绑定 ⇒ null ⇒ 回落「系统」。 title: operator username required: - batch_no - holder_type - holder_id - holder_name - period - recon_date - trigger_type - detail_count - base_cents - share_cents - reconcile_status - status - fail_reason - operator_user_id description: ReconBatchRow 业务数据 title: ReconBatchRow ReconBatchStatus: type: string enum: - pending - executed - failed - voided description: 批次状态四值(对账)。 与出账状态是两个维度, 混列。 title: ReconBatchStatus ReconDetailLine: type: object properties: bill_detail_id: type: string title: bill detail id description: 字段 bill_detail_id。 customer_name: type: string title: 客户名称 description: 客户名称。 subscription_label: type: string title: subscription label description: 字段 subscription_label。 receivable_cents: type: integer title: receivable cents description: 字段 receivable_cents。 share_base_cents: type: integer title: share base cents description: 字段 share_base_cents。 share_mode: type: string title: share mode description: 字段 share_mode。 share_value: type: number title: share value description: 字段 share_value。 share_amount_cents: type: integer title: share amount cents description: 字段 share_amount_cents。 zero_note: $ref: '#/components/schemas/ZeroNote' required: - bill_detail_id - customer_name - subscription_label - receivable_cents - share_base_cents - share_mode - share_value - share_amount_cents - zero_note description: ReconDetailLine 业务数据 title: ReconDetailLine ReconDetailResult: type: object properties: batch_no: type: string title: 批次号 description: 批次号。 holder_type: $ref: '#/components/schemas/HolderType' holder_id: type: string title: holder id description: 字段 holder_id。 holder_name: type: string title: holder name description: 字段 holder_name。 period: type: string title: 账期 description: 字段 period。 recon_date: type: string title: recon date description: 字段 recon_date。 status: $ref: '#/components/schemas/ReconBatchStatus' operator_user_id: type: string nullable: true title: operator user id description: 字段 operator_user_id。 operator_username: type: string nullable: true description: 执行人可读名(`bos_user_binding` 联表):人工补跑=操作人账号名,自动出账/ 无绑定 ⇒ null。 title: operator username executed_at: type: string nullable: true title: executed at description: 字段 executed_at。 fail_reason: type: string nullable: true description: 只在 failed/voided 时渲染 title: fail reason voided_by_batch_no: type: string nullable: true description: voided 时必带:由哪一次补跑作废(新批 batch_no,作废通路唯一人类可读轨迹) title: voided by batch no trigger_type: $ref: '#/components/schemas/ReconTriggerType' detail_count: type: integer title: detail count description: 字段 detail_count。 base_cents: type: integer title: base cents description: 字段 base_cents。 share_cents: type: integer title: share cents description: 字段 share_cents。 can_rerun: type: boolean nullable: true description: '* 动作可用性三布尔位:服务端算、与 对账 同源常量, 前端按角色自猜=第二套判据。 * 后端未下发 ⇒ null ⇒ 界面禁用+「可操作性位后端未下发」。' title: can rerun can_export: type: boolean nullable: true title: can export description: 字段 can_export。 can_correct: type: boolean nullable: true title: can correct description: 字段 can_correct。 ticket_gap_count: type: integer nullable: true description: 本批仍有未完成开户工单(ticket_gap_counts);KLT-S406 ⇒ null 且 gap_failed=true(只坏该格) title: ticket gap count ticket_gap_failed: type: boolean title: ticket gap failed description: 字段 ticket_gap_failed。 cost_unconfigured: type: array items: type: string title: cost_unconfigured元素 description: 成本未配置提示(configured=false 的成本项名,一行文本,不建提醒表) title: cost unconfigured items: type: array items: $ref: '#/components/schemas/ReconDetailLine' title: 列表项 description: 列表项。 required: - batch_no - holder_type - holder_id - holder_name - period - recon_date - status - operator_user_id - executed_at - fail_reason - voided_by_batch_no - trigger_type - detail_count - base_cents - share_cents - can_rerun - can_export - can_correct - ticket_gap_count - ticket_gap_failed - cost_unconfigured - items description: ReconDetailResult 业务数据 title: ReconDetailResult ReconExportResult: type: object properties: file_name: type: string nullable: true title: 文件名 description: 文件名。 oss_key: type: string nullable: true title: 对象键 description: 对象键。 row_count: type: integer nullable: true title: row count description: 字段 row_count。 accepted_id: type: string nullable: true description: 异步受理号(超 export_async_rows 阈值时同步/异步共用同一段行集查询) title: accepted id description: ReconExportResult 业务数据 title: ReconExportResult ReconPeriodsResult: type: object properties: periods: type: array items: type: string title: periods元素 title: periods description: 字段 periods。 required: - periods description: ReconPeriodsResult 业务数据 title: ReconPeriodsResult ReconRerunResult: type: object properties: batch_no: type: string title: 批次号 description: 批次号。 required: - batch_no description: ReconRerunResult 业务数据 title: ReconRerunResult ReconTriggerType: type: string enum: - auto - manual description: 触发方式两值( 补账功能取消后无第三值, 二次。 title: ReconTriggerType ReconcileStatus: type: string enum: - settled - abnormal - unsettled description: 出账状态三值(唯一派生 reconcile_status_of,对账; 前端自写 CASE)。 title: ReconcileStatus RegionChangeLogResult: type: object properties: items: type: array items: $ref: '#/components/schemas/RegionChangeLogRow' title: 列表项 description: 列表项。 total: type: integer title: 总条数 description: 总条数。 audit_write_ready: type: boolean nullable: true title: 审计可写 description: 审计可写。 truncated: type: boolean nullable: true title: 是否截断 description: 是否截断。 window_size: type: integer nullable: true title: 窗口大小 description: 窗口大小。 message: type: string nullable: true title: 说明 description: 说明。 required: - items - total description: RegionChangeLogResult 业务数据 title: RegionChangeLogResult RegionChangeLogRow: type: object properties: action: type: string title: 动作 description: 动作。 object: type: object properties: type: type: string nullable: true id: type: string nullable: true nullable: true title: object description: 字段 object。 before: type: string nullable: true title: before description: 字段 before。 after: type: string nullable: true title: after description: 字段 after。 actor: type: object properties: user_id: type: string nullable: true username: type: string nullable: true nullable: true title: actor description: 字段 actor。 detail: type: object properties: object: type: string nullable: true before: type: string nullable: true after: type: string nullable: true actor_name: type: string nullable: true nullable: true title: detail description: 字段 detail。 occurred_at: type: string nullable: true title: occurred at description: 字段 occurred_at。 required: - action - object - before - after - actor - detail - occurred_at description: RegionChangeLogRow 业务数据 title: RegionChangeLogRow RegionCreateResult: type: object properties: node_id: type: string title: 节点 ID description: 节点 ID。 node_name: type: string nullable: true title: 节点名称 description: 节点名称。 parent_node_id: type: string nullable: true title: 父节点 ID description: 父节点 ID。 level: type: string nullable: true title: 层级 description: 层级。 level_label: type: string nullable: true title: 层级标签 description: 层级标签。 required: - node_id description: RegionCreateResult 业务数据 title: RegionCreateResult RegionDeleteResult: type: object properties: node_id: type: string title: 节点 ID description: 节点 ID。 deleted: type: boolean title: 是否已删除 description: 是否已删除。 blocked: type: array items: type: string title: 阻塞项元素 description: 阻塞项:has_children / has_children_customers / has_operator_profiles / has_partner_profiles / has_ops_teams / has_team_scope_refs title: 阻塞项 required: - node_id - deleted - blocked description: RegionDeleteResult 业务数据 title: RegionDeleteResult RegionNode: type: object properties: node_id: type: string title: 节点 ID description: 节点 ID。 parent_id: type: string nullable: true title: 父 ID description: 父 ID。 node_name: type: string nullable: true description: RM 下发的节点中文名;`null`=后端未下发( 用 ID 顶名) title: 节点名称 name: type: string nullable: true description: 展示名(=path_name,现为节点 ID 链;未建档=null) title: 名称 path_name: type: string nullable: true title: 路径名 description: 路径名。 level: type: string nullable: true description: dev 值域:省/市/区县 title: 层级 level_label: type: string nullable: true title: 层级标签 description: 层级标签。 counters: type: object properties: operators: type: number partners: type: number ops_teams: type: number customers: type: number customers_in_subtree: type: number children: type: number required: - operators - partners - ops_teams - customers - customers_in_subtree - children title: 计数 description: 计数。 required: - node_id - parent_id - node_name - name - path_name - level - level_label - counters description: 区域树节点 [实] title: RegionNode RegionOrphanResult: type: object properties: items: type: array items: $ref: '#/components/schemas/RegionOrphanRow' title: 列表项 description: 列表项。 total: type: integer title: 总条数 description: 总条数。 dangling_count: type: integer title: 疑似悬空数 description: 疑似悬空数。 window_size: type: integer nullable: true title: 窗口大小 description: 窗口大小。 platform_state_verified: type: boolean nullable: true title: 是否已核平台态 description: 是否已核平台态。 message: type: string nullable: true title: 说明 description: 说明。 required: - items - total - dangling_count description: RegionOrphanResult 业务数据 title: RegionOrphanResult RegionOrphanRow: type: object properties: mount_request_id: type: string title: mount request id description: 字段 mount_request_id。 customer_id: type: string title: 客户 ID description: 客户 ID。 hierarchy_id: type: string title: hierarchy id description: 字段 hierarchy_id。 parent_node_id: type: string nullable: true title: 父节点 ID description: 父节点 ID。 terminal_state: type: string title: terminal state description: 字段 terminal_state。 local_customer_exists: type: boolean title: local customer exists description: 字段 local_customer_exists。 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 cleaned_at: type: string nullable: true title: cleaned at description: 字段 cleaned_at。 required: - mount_request_id - customer_id - hierarchy_id - parent_node_id - terminal_state - local_customer_exists - created_at - cleaned_at description: RegionOrphanRow 业务数据 title: RegionOrphanRow RegionRenameResult: type: object properties: node_id: type: string title: 节点 ID description: 节点 ID。 node_name: type: string title: 节点名称 description: 节点名称。 required: - node_id - node_name description: RegionRenameResult 业务数据 title: RegionRenameResult RegionSubtreeResult: $ref: '#/components/schemas/RegionTreeResult' RegionTreeResult: type: object properties: node_ids: type: array items: type: string title: 节点 ID 列表元素 title: 节点 ID 列表 description: 节点 ID 列表。 nodes: type: array items: $ref: '#/components/schemas/RegionNode' title: 节点列表 description: 节点列表。 root: type: string nullable: true title: 根节点 description: 根节点。 name_ready: type: boolean description: false=可见集合的中文名 全部到手(`name_source` 说明卡在哪一环) title: 名称是否齐全 name_source: type: string title: 名称来源 description: 名称来源。 name_missing: type: array items: type: string title: 缺名节点元素 description: RM 明确未给名的节点 id(截 20 条控体积)。 平台把「不存在」与「越权」混在一起, 渲染成"节点不存在" title: 缺名节点 name_missing_count: type: integer title: 缺名数量 description: 缺名数量。 grant_scope: type: string nullable: true description: RM 据以判权的调用方作用域(如 `end_user:376985101906509824`);排障用, 据此放宽可见范围 title: 授权作用域 note: type: string title: 备注 description: 备注。 required: - node_ids - nodes - root - name_ready - name_source - name_missing - name_missing_count - grant_scope - note description: RegionTreeResult 业务数据 title: RegionTreeResult RelatedOrderRef: type: object properties: subscription_id: type: string title: 订阅 ID description: 订阅 ID。 plan_name: type: string nullable: true title: 档位名称 description: 档位名称。 status: type: string nullable: true title: 状态 description: 状态。 term: type: string nullable: true title: term description: 字段 term。 annual_price_cents: type: integer nullable: true title: 年价(分) description: 年价(分)。 monthly_settle_cents: type: integer nullable: true title: 月结算(分) description: 月结算(分)。 start_date: type: string nullable: true title: 开始日 description: 开始日。 end_date: type: string nullable: true title: 结束日 description: 结束日。 required: - subscription_id description: 升降配替换关系的对照行(订阅 条件面板)。 title: RelatedOrderRef RenewalCandidate: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 username: type: string nullable: true title: 登录名 description: 登录名。 member_id: type: string nullable: true description: 团队成员档案号;运营账号(`source=ops_account`)没有成员档案 ⇒ null title: 成员 ID is_primary: type: boolean title: 是否主账号 description: 是否主账号。 label: type: string title: 标签 description: 标签。 source: type: string enum: - member - ops_account nullable: true description: 候选来源:缺省/`member`=运维团队成员,`ops_account`=运营主/子账号 title: 来源 required: - user_id - username - member_id - is_primary - label description: 可指派成员(同团队 ∩ 可接 renewal ∩ 负责范围覆盖客户;含运营账号)[实]。 title: RenewalCandidate RenewalCandidatesResult: type: object properties: message_id: type: string title: 消息 ID description: 消息 ID。 contract_id: type: string title: 合同 ID description: 合同 ID。 customer_id: type: string title: 客户 ID description: 客户 ID。 team_id: type: string title: 团队 ID description: 团队 ID。 rows: type: array items: $ref: '#/components/schemas/RenewalCandidate' title: 行集 description: 行集。 required: - message_id - contract_id - customer_id - team_id - rows description: RenewalCandidatesResult 业务数据 title: RenewalCandidatesResult RenewalTicketResult: type: object properties: message_id: type: string title: 消息 ID description: 消息 ID。 contract_id: type: string title: 合同 ID description: 合同 ID。 ticket_id: type: string title: 工单 ID description: 工单 ID。 ticket_no: type: string title: 工单号 description: 工单号。 created: type: boolean title: 是否已创建 description: 是否已创建。 assignee_user_id: type: string nullable: true title: 处理人用户 ID description: 处理人用户 ID。 status: type: string nullable: true title: 状态 description: 状态。 messages_handled: type: integer title: messages handled description: 字段 messages_handled。 next_step: type: string title: next step description: 字段 next_step。 required: - message_id - contract_id - ticket_id - ticket_no - created - assignee_user_id - status - messages_handled - next_step description: 读信人生成续签工单并指派 [实]。 title: RenewalTicketResult ReplacementProbeReq: type: object properties: index: type: number nullable: true description: 0 基条目下标(缺省=数组位置)。 title: index plan_id: type: string nullable: true title: 档位 ID description: 档位 ID。 plan_family: type: string nullable: true description: 缺省时后端回落档位的交付形态。 title: plan family line_exits: type: array items: type: string title: line_exits元素 nullable: true title: line exits description: 字段 line_exits。 description: '`POST /subscription/replacement_candidates@v1`' title: ReplacementProbeReq RoleCode: type: string enum: - admin - opsMain - opsSub - teamLead - ops - enterprise - sub - partner - operator description: klt-bos 前端类型层(应答载荷契约)。 权威依据(优先级从高到低): 1. `src/modules/account/src/handlers/*.rs` 中 `json_ok(...)` 真实写出的 JSON title: RoleCode RouteRow: type: object properties: id: type: string title: ID description: ID。 sub_account_id: type: string nullable: true title: sub account id description: 字段 sub_account_id。 network_account_name: type: string nullable: true title: network account name description: 字段 network_account_name。 intranet_ip: type: string nullable: true title: intranet ip description: 字段 intranet_ip。 subnet_mask: type: string nullable: true title: subnet mask description: 字段 subnet_mask。 gateway: type: string nullable: true title: gateway description: 字段 gateway。 vlan: type: string nullable: true title: vlan description: 字段 vlan。 tunnel_encap: type: string nullable: true title: tunnel encap description: 字段 tunnel_encap。 vni: type: string nullable: true title: vni description: 字段 vni。 src_endpoint: type: string nullable: true title: src endpoint description: 字段 src_endpoint。 dst_endpoint: type: string nullable: true title: dst endpoint description: 字段 dst_endpoint。 egress_pop: type: string nullable: true title: egress pop description: 字段 egress_pop。 down_mbps: type: string nullable: true title: down mbps description: 字段 down_mbps。 up_mbps: type: string nullable: true title: up mbps description: 字段 up_mbps。 proxy_host: type: string nullable: true title: proxy host description: 字段 proxy_host。 proxy_port: type: string nullable: true title: proxy port description: 字段 proxy_port。 pin_registered: type: string nullable: true title: pin registered description: 字段 pin_registered。 cpid_registered: type: string nullable: true title: cpid registered description: 字段 cpid_registered。 required: - id - sub_account_id - network_account_name - intranet_ip - subnet_mask - gateway - vlan - vni - src_endpoint - dst_endpoint - egress_pop - down_mbps - up_mbps description: RouteRow 业务数据 title: RouteRow ScopeCheck: type: object properties: applied: type: boolean title: applied description: 字段 applied。 evidence: type: string nullable: true title: evidence description: 字段 evidence。 reason: type: string nullable: true title: reason description: 字段 reason。 required: - applied description: opsMain 区域上界核对 [实] title: ScopeCheck ScopeGrant: type: object properties: target_type: type: string title: target type description: 字段 target_type。 target_id: type: string title: target id description: 字段 target_id。 grant_id: type: string nullable: true title: grant id description: 字段 grant_id。 holder_type: type: string nullable: true title: holder type description: 字段 holder_type。 holder_id: type: string nullable: true title: holder id description: 字段 holder_id。 updated_at: type: string nullable: true title: 更新时间 description: 更新时间。 required: - target_type - target_id description: '`bos_data_scope` 一行(holder×target 模型;partner/ent_team 共用)。后端只下发 target 两列。' title: ScopeGrant ScopeView: type: object properties: kind: type: string enum: - all - regions - teams - customers - self title: 类型 description: 类型。 region_node_ids: type: array items: type: string title: region_node_ids元素 title: region node ids description: 字段 region_node_ids。 customer_ids: type: array items: type: string title: customer_ids元素 title: customer ids description: 字段 customer_ids。 team_ids: type: array items: type: string title: team_ids元素 title: team ids description: 字段 team_ids。 required: - kind - region_node_ids - customer_ids - team_ids description: '后端待实现,契约以此为准:auth/context 目前只下发 `scope_mode: string | null`,未下发本结构。' title: ScopeView ServiceItem: type: object properties: item_id: type: string title: item id description: 字段 item_id。 seq_no: type: string title: 序号 description: 序号。 item_name: type: string nullable: true title: item name description: 字段 item_name。 spec_text: type: string nullable: true title: spec text description: 字段 spec_text。 spec_before: type: string nullable: true description: '* 升降配(`updown`)的参数对照( 补列):`spec_before`=原档位参数摘要、 * `spec_after`=新档位参数摘要(回收行写「停用(截止新订阅生效前一日)」);其余类型两列为 null。' title: spec before spec_after: type: string nullable: true title: spec after description: 字段 spec_after。 expect_qty: type: string nullable: true title: expect qty description: 字段 expect_qty。 check_result: type: string nullable: true title: check result description: 字段 check_result。 checked_at: type: string nullable: true title: checked at description: 字段 checked_at。 checked_by: type: string nullable: true title: checked by description: 字段 checked_by。 note: type: string nullable: true title: 备注 description: 备注。 required: - item_id - seq_no - item_name - spec_text - spec_before - spec_after - expect_qty - check_result - checked_at - checked_by - note description: ServiceItem 业务数据 title: ServiceItem ShareParamSummaryRequest: type: object properties: holders: type: array items: type: object properties: holder_type: $ref: '#/components/schemas/HolderType' holder_id: type: string required: - holder_type - holder_id description: 调用计数=1:列表页一次提交全部 holder(契约 14.1.3 注 3, 逐行调用)。 title: holders required: - holders description: '[实] POST /share_rule/param_summary@v1' title: ShareParamSummaryRequest ShareRuleDeleteResult: type: object properties: rule_id: type: string nullable: true title: rule id description: 字段 rule_id。 deleted: type: boolean nullable: true title: 是否已删除 description: 是否已删除。 description: ShareRuleDeleteResult 业务数据 title: ShareRuleDeleteResult ShareRuleDetail: type: object properties: holder_type: type: string title: holder type description: 字段 holder_type。 holder_id: type: string title: holder id description: 字段 holder_id。 holder_name: type: string nullable: true title: holder name description: 字段 holder_name。 cards: type: object additionalProperties: type: number nullable: true description: 四张卡=结算口径(宿主,一期恒 `null`。 title: cards cards_available: type: boolean nullable: true title: cards available description: 字段 cards_available。 cards_message: type: string nullable: true title: cards message description: 字段 cards_message。 rules: type: array items: $ref: '#/components/schemas/ShareRuleRow' title: rules description: 字段 rules。 available: type: boolean nullable: true description: '`false`=该档案行查不到/未知 `holder_type`。' title: available message: type: string nullable: true title: 说明 description: 说明。 source: type: string nullable: true title: 来源 description: 来源。 derived: type: string nullable: true title: derived description: 字段 derived。 columns_pending: type: array items: type: string title: columns_pending元素 nullable: true title: columns pending description: 字段 columns_pending。 required: - holder_type - holder_id - holder_name - cards - rules description: ShareRuleDetail 业务数据 title: ShareRuleDetail ShareRuleListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/ShareRuleRow' title: 列表项 description: 列表项。 total: type: integer nullable: true title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 source: type: string nullable: true description: 恒 `"archive"`=取值来自档案两列, 读 dev 库遗留 `share_rule` 表。 title: 来源 derived: type: string nullable: true description: 派生代价说明(`rule_id`/`rule_level` 为视图键)。 title: derived columns_pending: type: array items: type: string title: columns_pending元素 nullable: true description: 下发的列名清单,页面据此标「后端未下发」。 title: columns pending message: type: string nullable: true title: 说明 description: 说明。 required: - items description: ShareRuleListResult 业务数据 title: ShareRuleListResult ShareRuleRow: type: object properties: rule_id: type: string title: rule id description: 字段 rule_id。 holder_type: type: string title: holder type description: 字段 holder_type。 holder_id: type: string title: holder id description: 字段 holder_id。 holder_name: type: string nullable: true title: holder name description: 字段 holder_name。 customer_id: type: string nullable: true title: 客户 ID description: 客户 ID。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 rule_level: type: string title: rule level description: 字段 rule_level。 share_mode: type: string nullable: true title: share mode description: 字段 share_mode。 share_value: type: number nullable: true title: share value description: 字段 share_value。 remark: type: string nullable: true title: 备注 description: 备注。 status: type: string nullable: true title: 状态 description: 状态。 row_version: type: integer title: 乐观锁版本 description: |- 档案乐观锁版本(operator/ops_team/partner.row_version;与 save/三档案 update 同链)。 minimum: 1 required: - rule_id - holder_type - holder_id - customer_id - rule_level - share_mode - share_value - remark - status - row_version description: ShareRuleRow 业务数据 title: ShareRuleRow ShareRuleSaveResult: type: object properties: holder_type: type: string title: holder type description: 字段 holder_type。 holder_id: type: string title: holder id description: 字段 holder_id。 saved: type: boolean title: 是否已保存 description: 是否已保存。 saved_count: type: integer nullable: true title: saved count description: 净写入条数;同值=0。 changed: type: integer nullable: true title: changed description: 0=同值未改;1=已写入并推版本。 row_version: type: integer nullable: true title: 乐观锁版本 description: 写后档案版本(同值=原版本)。 rule: $ref: '#/components/schemas/ShareRuleRow' source: type: string nullable: true title: 来源 description: 来源。 derived: type: string nullable: true title: derived description: 字段 derived。 columns_pending: type: array items: type: string title: columns_pending元素 nullable: true title: columns pending description: 仍未落库的派生列(customer_id/customer_name/remark);row_version 已落地。 message: type: string nullable: true title: 说明 description: 说明。 required: - holder_type - holder_id - saved description: ShareRuleSaveResult 业务数据 title: ShareRuleSaveResult StartResult: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 advanced: type: boolean title: advanced description: 字段 advanced。 status: $ref: '#/components/schemas/TicketStatus' reason: type: string enum: - not_assignee - already_advanced - concurrent nullable: true description: '`advanced:false` 时后端回的原因:非责任人/已被推进/并发。' title: reason advanced_at: type: string nullable: true title: advanced at description: 字段 advanced_at。 audit_written: type: boolean nullable: true title: 是否已写审计 description: 是否已写审计。 required: - ticket_id - advanced - status description: StartResult 业务数据 title: StartResult SubAccountListResult: type: object properties: items: type: array items: $ref: '#/components/schemas/SubAccountRow' title: 列表项 description: 列表项。 total: type: integer title: 总条数 description: 总条数。 page: type: integer nullable: true title: 页码 description: 页码。 page_size: type: integer nullable: true title: 每页条数 description: 每页条数。 required: - items - total description: GET(列表)/sub_account/get_list@v1 title: SubAccountListResult SubAccountRow: type: object properties: sub_account_id: type: string title: sub account id description: 字段 sub_account_id。 customer_id: type: string title: 客户 ID description: 客户 ID。 username: type: string nullable: true title: 登录名 description: 登录名。 display_name: type: string nullable: true title: 显示名 description: 显示名。 purpose: type: string nullable: true title: purpose description: 字段 purpose。 net_account: type: string nullable: true title: net account description: 字段 net_account。 status: type: string title: 状态 description: 状态。 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 stopped_at: type: string nullable: true description: 停用日 :取最近一次停机类开停记录的生效日(`ticket_open_stop_account.effective_date`);`null`=从未停用。 title: stopped at required: - sub_account_id - customer_id - username - display_name - purpose - net_account - status - created_at - stopped_at description: 分账号行 [实](`sub_account` LEFT JOIN `bos_user_binding`)。 title: SubAccountRow SubAccountUpdateResult: type: object properties: sub_account_id: type: string title: sub account id description: 字段 sub_account_id。 customer_id: type: string title: 客户 ID description: 客户 ID。 display_name: type: string nullable: true title: 显示名 description: 显示名。 network_account_name: type: string nullable: true description: =库内 `sub_account.net_account`(与列表行同值,仅键名不同) title: network account name purpose: type: string nullable: true description: 可改,恒为改前原值 title: purpose status: type: string title: 状态 description: 状态。 updated_fields: type: array items: type: string title: updated_fields元素 description: 本次实际写入的列名:`display_name`/`net_account` title: updated fields written_cols: type: array items: type: string title: written_cols元素 title: written cols description: 字段 written_cols。 audit_key: type: string title: audit key description: 字段 audit_key。 audit_before_after: type: object properties: before: type: object properties: display_name: type: string nullable: true net_account: type: string nullable: true required: - display_name - net_account after: type: object properties: display_name: type: string nullable: true net_account: type: string nullable: true required: - display_name - net_account required: - before - after title: audit before after description: 字段 audit_before_after。 audit_written: type: boolean title: 是否已写审计 description: 是否已写审计。 audit_note: type: string title: 审计说明 description: 审计说明。 purpose_note: type: string title: purpose note description: 字段 purpose_note。 platform_sync: type: object properties: applied: type: boolean reason: type: string required: - applied - reason title: platform sync description: 字段 platform_sync。 time_note: type: string title: time note description: 字段 time_note。 required: - sub_account_id - customer_id - display_name - network_account_name - purpose - status - updated_fields - written_cols - audit_key - audit_before_after - audit_written - audit_note - purpose_note - platform_sync - time_note description: SubAccountUpdateResult 业务数据 title: SubAccountUpdateResult SubjectAccount: type: object properties: user_id: type: string title: 用户 ID description: 用户 ID。 username: type: string title: 登录名 description: 登录名。 mobile: type: string nullable: true title: 手机号 description: 手机号。 status: type: string description: '`bos_user_binding.status`(启停 active/disabled)。' title: 状态 activation_status: type: string nullable: true description: '`bos_account_ext.status`(激活码生命周期 none/issued/issuing/activated),与 `status` 正交。' title: 激活态 account_count: type: integer title: account count description: 字段 account_count。 required: - user_id - username - mobile - status - account_count description: 主体名下账号(列表页内联下发,`bos_user_binding` ⋈ `bos_account_ext`)[实]。 同主体绑定多账号时取 `user_id` 最小的一行作代表,`account_count` 给出总数; `mobile` 已按 掩码, 再用于拨打/复制。 title: SubjectAccount SubjectType: type: string enum: - hq - region - ops_team - ent_team - customer - sub_account - partner - operator description: 主体类型(spec subject_type;SQL 注释含 hq/region/ops_team/ent_team/customer/sub_account/partner/operator) title: SubjectType SubscriptionBilling: type: object properties: state: type: string enum: - ok - no_receivable title: state description: 字段 state。 receivable_cents: type: integer nullable: true title: receivable cents description: 字段 receivable_cents。 billed_cents: type: integer nullable: true title: billed cents description: 字段 billed_cents。 unbilled_cents: type: integer nullable: true title: unbilled cents description: 字段 unbilled_cents。 cost_cents: type: integer nullable: true title: cost cents description: 字段 cost_cents。 periods: type: number title: periods description: 字段 periods。 required: - state - receivable_cents - billed_cents - unbilled_cents - cost_cents - periods description: 订阅出账聚合(。 `state="no_receivable"` ⇒ 四值 `null`(该订阅尚无应收行, 用 0 元冒充「未出账」); `state="ok"` ⇒ 数值来自 `billing_receivable` 与已执行批次 `bill_detail`。 title: SubscriptionBilling TicketCreateResult: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 ticket_no: type: string title: 工单号 description: 工单号。 status: $ref: '#/components/schemas/TicketStatus' assign_team_id: type: string nullable: true title: 承接团队 ID description: 承接团队 ID。 materials: type: number nullable: true description: 随单登记的材料条数(建单不再有「同类未完成并入」分支) title: materials required: - ticket_id - ticket_no - status - assign_team_id description: TicketCreateResult 业务数据 title: TicketCreateResult TicketDetail: type: object properties: ticket: $ref: '#/components/schemas/TicketHead' customer: type: object properties: customer_id: type: string customer_name: type: string nullable: true customer_code: type: string nullable: true contact_name: type: string nullable: true contact_mobile: type: string nullable: true contact_mobile_full: type: string nullable: true contact_name_missing: type: boolean nullable: true contact_mobile_missing: type: boolean nullable: true address: type: string nullable: true address_missing: type: boolean nullable: true required: - customer_id - customer_name - customer_code - contact_name - contact_mobile - address nullable: true title: customer description: 字段 customer。 order: type: object properties: subscription_id: type: string customer_id: type: string nullable: true contract_id: type: string nullable: true plan_id: type: string nullable: true plan_name: type: string nullable: true plan_kind: type: string nullable: true plan_family: type: string nullable: true sub_mode: type: string nullable: true line_exits: type: array items: oneOf: - type: string - type: string nullable: true order_no: type: string nullable: true term: type: string nullable: true start_date: type: string nullable: true status: type: string nullable: true actual_opened_at: type: string nullable: true quantity: oneOf: - type: string - type: number nullable: true quota_slots: oneOf: - type: string - type: number nullable: true sub_account_quota: oneOf: - type: string - type: number nullable: true bandwidth_up_mbps: oneOf: - type: string - type: number nullable: true bandwidth_down_mbps: oneOf: - type: string - type: number nullable: true bandwidth_committed: oneOf: - type: string - type: boolean nullable: true bandwidth_missing: type: boolean nullable: true replaces_subscription_id: type: string nullable: true parent_subscription_id: type: string nullable: true required: - subscription_id - customer_id - plan_name - plan_kind - plan_family - sub_mode - line_exits - order_no - term - start_date - status - actual_opened_at nullable: true title: order description: 字段 order。 service_items: type: array items: $ref: '#/components/schemas/ServiceItem' title: service items description: 字段 service_items。 subscriptions: type: array items: $ref: '#/components/schemas/TicketMemberSubscription' nullable: true description: '* P1:并单成员订阅(`ticket_subscription`,只装本单交付的附加订阅)。 * 主订阅仍唯一落在 `order`;本数组永远平铺,附加成员靠 `parent_subscription_id` 标「叠加于」。' title: subscriptions open_stop: $ref: '#/components/schemas/OpenStop' backfill: $ref: '#/components/schemas/Backfill' completion: $ref: '#/components/schemas/Completion' completion_rejects: type: array items: $ref: '#/components/schemas/CompletionReject' nullable: true description: 驳回流水(旧→新)。门户/合伙人拿到的行集与运维侧同形,只是少了对外编号列。 title: completion rejects reject_pending: type: boolean nullable: true description: 「外部等待中」判据( 第六条):由服务端判, 前端用 `length > 0` 推导。 title: reject pending process_logs: type: array items: $ref: '#/components/schemas/ProcessLog' title: process logs description: 字段 process_logs。 materials: type: array items: $ref: '#/components/schemas/TicketMaterial' title: materials description: 字段 materials。 messages: type: array items: $ref: '#/components/schemas/TicketMessage' title: messages description: 字段 messages。 gaps: type: array items: type: string title: gaps元素 description: 缺口分组名(与 `required_groups` 同词典);空集=可出竣工 title: gaps required_groups: type: array items: type: string title: required_groups元素 title: required groups description: 字段 required_groups。 actions: type: object additionalProperties: type: boolean title: actions description: 字段 actions。 read_advanced: type: boolean title: read advanced description: 字段 read_advanced。 waiting: $ref: '#/components/schemas/TicketWaiting' construction_guide: $ref: '#/components/schemas/ConstructionGuide' backfill_draft: $ref: '#/components/schemas/BackfillDraft' required: - ticket - customer - order - service_items - open_stop - backfill - completion - process_logs - materials - messages - gaps - required_groups - actions - read_advanced description: TicketDetail 业务数据 title: TicketDetail TicketHead: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 ticket_no: type: string title: 工单号 description: 工单号。 ticket_type: $ref: '#/components/schemas/TicketType' status: $ref: '#/components/schemas/TicketStatus' title: type: string title: 标题 description: 标题。 detail: type: string nullable: true title: detail description: 字段 detail。 customer_id: type: string nullable: true title: 客户 ID description: 客户 ID。 subscription_id: type: string nullable: true title: 订阅 ID description: 订阅 ID。 contract_id: type: string nullable: true description: 经订阅/续签投影的合同 ID(工单表本身不存)。 title: 合同 ID reporter_account_id: type: string nullable: true title: reporter account id description: 字段 reporter_account_id。 carrier_order_no: type: string nullable: true title: carrier order no description: 字段 carrier_order_no。 submitter_type: type: string nullable: true title: 提交方类型 description: 提交方类型。 submitter_user_id: type: string nullable: true title: submitter user id description: 字段 submitter_user_id。 assign_team_id: type: string nullable: true title: 承接团队 ID description: 承接团队 ID。 assignee_user_id: type: string nullable: true title: 处理人用户 ID description: 处理人用户 ID。 assignee_snapshot_name: type: string nullable: true title: assignee snapshot name description: 字段 assignee_snapshot_name。 assign_team_name: type: string nullable: true description: 服务端把 *_user_id 解析成的姓名回填进这三键(无匹配 ⇒ 键缺席,保留 ID 值) title: assign team name creator_name: type: string nullable: true title: creator name description: 字段 creator_name。 delegate_from_name: type: string nullable: true title: delegate from name description: 字段 delegate_from_name。 assignee_name: type: string nullable: true title: 处理人姓名 description: 处理人姓名。 delegate_from_user_id: type: string nullable: true title: delegate from user id description: 字段 delegate_from_user_id。 delegated_at: type: string nullable: true title: delegated at description: 字段 delegated_at。 expected_done_date: type: string nullable: true title: 期望完成日 description: 期望完成日。 execution_locked: type: boolean nullable: true description: 执行锁:开通类未到服务开始日 ⇒ `true`(写侧同口径拒绝)。 title: 执行锁定 execution_not_before: type: string nullable: true description: 计划执行日=服务开始日(非开通类恒 `null`)。 title: 最早可执行日 deferred_until: type: string nullable: true title: 延期至 description: 延期至。 confirm_deadline: type: string nullable: true title: confirm deadline description: 字段 confirm_deadline。 source_message_id: type: string nullable: true title: source message id description: 字段 source_message_id。 close_reason: type: string nullable: true title: close reason description: 字段 close_reason。 completed_at: type: string nullable: true title: 完成时间 description: 完成时间。 closed_at: type: string nullable: true title: 关闭时间 description: 关闭时间。 settled_at: type: string nullable: true title: 办结时间 description: 办结时间。 creator_user_id: type: string nullable: true title: creator user id description: 字段 creator_user_id。 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 updated_at: type: string nullable: true title: 更新时间 description: 更新时间。 row_version: type: string title: 乐观锁版本 description: 乐观锁版本。 overdue: type: boolean title: overdue description: 字段 overdue。 renew_from_contract_id: type: string nullable: true description: 续签:原合同/新合同(;非续签单缺席) title: renew from contract id renew_contract_id: type: string nullable: true title: renew contract id description: 字段 renew_contract_id。 renew_from_contract_no: type: string nullable: true title: renew from contract no description: 字段 renew_from_contract_no。 renew_from_end_date: type: string nullable: true title: renew from end date description: 字段 renew_from_end_date。 renew_contract_no: type: string nullable: true title: renew contract no description: 字段 renew_contract_no。 required: - ticket_id - ticket_no - ticket_type - status - title - detail - customer_id - subscription_id - reporter_account_id - carrier_order_no - submitter_type - submitter_user_id - assign_team_id - assignee_user_id - assignee_snapshot_name - delegate_from_user_id - delegated_at - expected_done_date - deferred_until - confirm_deadline - source_message_id - close_reason - completed_at - closed_at - settled_at - creator_user_id - created_at - updated_at - row_version - overdue description: TicketHead 业务数据 title: TicketHead TicketListItem: type: object properties: seq_no: type: number nullable: true description: 全局序号(按当页偏移现算) title: 序号 ticket_id: type: string title: 工单 ID description: 工单 ID。 ticket_no: type: string nullable: true title: 工单号 description: 工单号。 ticket_type: $ref: '#/components/schemas/TicketType' title: type: string nullable: true title: 标题 description: 标题。 customer_id: type: string nullable: true title: 客户 ID description: 客户 ID。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 assign_team_id: type: string nullable: true title: 承接团队 ID description: 承接团队 ID。 team_name: type: string nullable: true title: 团队名称 description: 团队名称。 assignee_user_id: type: string nullable: true title: 处理人用户 ID description: 处理人用户 ID。 assignee_name: type: string nullable: true title: 处理人姓名 description: 处理人姓名。 status: $ref: '#/components/schemas/TicketStatus' backfill_source: type: string nullable: true description: 回填来源(manual/unicom_feedback/mixed;NULL=未回填) title: 回填来源 expected_done_date: type: string nullable: true title: 期望完成日 description: 期望完成日。 deferred_until: type: string nullable: true description: '* 延期后的生效期限(`YYYY-MM-DD`;无延期=`null`/`undefined`)。 * * 服务端 `handlers/read.rs` 已按 `os.deferred_until` → `t.deferred_until` 折算后下发 * (与 `overdue_7d` 同一优先级)。行内日期、分组与「还剩 N 天」都用它, 再用 * `expected_done_date`——那会让延期单显示「已超 N 天」而页顶「已超期」不数它。' title: 延期至 overdue_7d: type: boolean nullable: true description: 7 日内到期/已超期(真布尔;仅队列口下发) title: 七日超期 execution_locked: type: boolean nullable: true description: '* 执行锁(,服务端业务日现算):开通类三类 * (`open`/`service_open`/`updown`)的计划执行日=订阅服务开始日,未到该日 * ⇒ `true`:工单可见可分派,但回填/核对一律被 `KLT-G20403` 拒。 * * 前端按 `expected_done_date - 今天` 自行推断:业务日锚在 `Asia/Shanghai`, * 浏览器时钟与它不同源(跨零点会打架)。' title: 执行锁定 execution_not_before: type: string nullable: true description: 计划执行日(=服务开始日;非开通类恒 `null`),可作日期输入的 `min`。 title: 最早可执行日 created_at: type: string nullable: true title: 创建时间 description: 创建时间。 completed_at: type: string nullable: true title: 完成时间 description: 完成时间。 waiting: $ref: '#/components/schemas/TicketWaiting' submitter_type: type: string nullable: true description: '* 提交方(`customer`=客户自报/`ops`=运营代建/`system`/`unicom`)。 * * 声明成可选是事实而非猜测:`handlers/read.rs` 的 `LIST_COLS` 投影里没有这一列, * `list_inner` 的 `json!` 也不下发 ⇒ 列表行拿到这里通常是 `undefined`。 * 客户侧「我的工单」据此判闸门(`customerLiveTicketActions`):`undefined`=还没取过详情, * 凭空当作 `customer` 给「确认完成,关闭工单」按钮(运维代建的单点了必被 `KLT-G20401` 拒)。 * 后端哪天补上这列,前端无需改动即可直接在同一行给出按钮。' title: 提交方类型 required: - ticket_id - ticket_no - ticket_type - title - customer_id - customer_name - assign_team_id - assignee_user_id - status - backfill_source - expected_done_date - created_at description: '`POST /ticket/list@v1` 行(`list_inner` 的 `json!`,键名逐字对齐)。' title: TicketListItem TicketListResult: type: object properties: rows: type: array items: $ref: '#/components/schemas/TicketListItem' title: 行集 description: 行集。 total: type: integer title: 总条数 description: 总条数。 page: type: integer title: 页码 description: 页码。 page_size: type: integer title: 每页条数 description: 每页条数。 status_totals: type: object additionalProperties: type: number nullable: true description: '`include_status_totals=true` 时下发:可见范围内各状态张数(台账 Tab 角标)。' title: status totals required: - rows - total - page - page_size description: TicketListResult 业务数据 title: TicketListResult TicketMaterial: type: object properties: material_id: type: string title: material id description: 字段 material_id。 kind: type: string nullable: true title: 类型 description: 类型。 file_name: type: string nullable: true title: 文件名 description: 文件名。 size_bytes: type: string nullable: true title: size bytes description: 字段 size_bytes。 uploaded_by: type: string nullable: true title: uploaded by description: 字段 uploaded_by。 uploaded_at: type: string nullable: true title: uploaded at description: 字段 uploaded_at。 required: - material_id - kind - file_name - size_bytes - uploaded_by - uploaded_at description: 期望 `oss_key`:下载走 `material_grant`,服务端不外泄对象键。 title: TicketMaterial TicketMemberSubscription: type: object properties: subscription_id: type: string title: 订阅 ID description: 订阅 ID。 plan_name: type: string nullable: true title: 档位名称 description: 档位名称。 plan_family: type: string nullable: true title: plan family description: 字段 plan_family。 status: type: string nullable: true title: 状态 description: 状态。 parent_subscription_id: type: string nullable: true description: 指向父链路订阅;非空即界面上标「叠加于 SUB-xxx」。 title: parent subscription id required: - subscription_id description: 并单成员订阅(P1,`ticket_subscription`):只承载本单交付的附加订阅,平铺呈现。 title: TicketMemberSubscription TicketMessage: type: object properties: message_id: type: string title: 消息 ID description: 消息 ID。 carrier_order_no: type: string nullable: true title: carrier order no description: 字段 carrier_order_no。 reported_ticket_no: type: string nullable: true title: reported ticket no description: 字段 reported_ticket_no。 action: type: string nullable: true title: 动作 description: 动作。 status: type: string nullable: true title: 状态 description: 状态。 external_date: type: string nullable: true title: external date description: 字段 external_date。 received_at: type: string nullable: true title: received at description: 字段 received_at。 effective_at: type: string nullable: true title: effective at description: 字段 effective_at。 void_reason: type: string nullable: true title: void reason description: 字段 void_reason。 conflict_note: type: string nullable: true title: conflict note description: 字段 conflict_note。 customer_name: type: string nullable: true title: 客户名称 description: 客户名称。 identity_no: type: string nullable: true title: identity no description: 字段 identity_no。 contact_name: type: string nullable: true title: contact name description: 字段 contact_name。 contact_phone: type: string nullable: true title: contact phone description: 字段 contact_phone。 network_account_name: type: string nullable: true title: network account name description: 字段 network_account_name。 required: - message_id - carrier_order_no - reported_ticket_no - action - status - external_date - received_at - effective_at - void_reason - conflict_note - customer_name - identity_no - contact_name - contact_phone - network_account_name description: 报文出参(`message_json`:已脱敏, 期望拿到原文)。 title: TicketMessage TicketStatus: oneOf: - type: string - type: string description: TicketStatus 业务数据 title: TicketStatus TicketType: oneOf: - type: string - type: string description: TicketType 业务数据 title: TicketType TicketUrgeResult: type: object properties: ticket_id: type: string title: 工单 ID description: 工单 ID。 created: type: boolean description: '`true`=本轮真的投递了一封;`false`=当日已发过(幂等去重)或并发已投。' title: 是否已创建 reason: type: string nullable: true title: reason description: 字段 reason。 message_id: type: string nullable: true title: 消息 ID description: 消息 ID。 business_date: type: string title: business date description: 字段 business_date。 counterparty: type: object properties: user_id: type: string name: type: string role: type: string org_name: type: string nullable: true required: - user_id - name - role - org_name nullable: true title: counterparty description: 字段 counterparty。 waiting: $ref: '#/components/schemas/TicketWaiting' audit_written: type: boolean nullable: true title: 是否已写审计 description: 是否已写审计。 next_step: type: string title: next step description: 字段 next_step。 required: - ticket_id - created - reason - business_date - waiting - next_step description: 站内催办 [实](,) title: TicketUrgeResult TicketWaiting: type: object properties: kind: type: string title: 类型 description: 类型。 label: type: string description: 服务端中文主文案(「等运营商回执」/「等客户确认」), 前端再拼一份。 title: 标签 counterparty_user_id: type: string nullable: true title: counterparty user id description: 字段 counterparty_user_id。 counterparty_name: type: string nullable: true title: counterparty name description: 字段 counterparty_name。 counterparty_role: type: string nullable: true title: counterparty role description: 字段 counterparty_role。 org_name: type: string nullable: true description: 所属主体名(运营商所在地/客户名);无值时不加括号。 title: org name since: type: string nullable: true title: since description: 字段 since。 hours: type: number nullable: true title: hours description: 字段 hours。 urge: type: object properties: eligible: type: boolean reason: type: string nullable: true sent_today: type: boolean last_sent_at: type: string nullable: true min_hours: type: number required: - eligible - reason - sent_today - last_sent_at - min_hours title: urge description: 字段 urge。 required: - kind - label - counterparty_user_id - counterparty_name - counterparty_role - org_name - since - hours - urge description: 「卡在别人手里」的对家与催办读数(`waiting.rs::to_json`,列表 `rows[].waiting` 与详情 `waiting` 同形)。 * `kind`:`receipt`=等运营商回执(v1.62 起对家=该客户所属运营商的账号); `customer`=等客户确认(对家=提交方账号)。 * `counterparty_user_id` 为 `null` =主体档案在 title: TicketWaiting TodoCounts: type: object properties: item_1_pending_exec_overdue: type: number description: 件1:开户/到期停机/服务停用/升降配 ∧ 尚未回填出开停事实 ∧ 已超期(开通类=超过服务开始日才计入;停机类=建单日+7 当天计入;批准延期后按新期限) title: item 1 pending exec overdue item_2_service_open_incomplete: type: number description: 件2:服务开通工单(待分派/待处理/处理中)同口径筛超期,与件1 单集互斥 title: item 2 service open incomplete item_4_message_pending: type: number description: 件4:待处置报文(未归集+待确认), 与未回填合算 title: item 4 message pending note: type: string title: 备注 description: 备注。 required: - item_1_pending_exec_overdue - item_2_service_open_incomplete - item_4_message_pending - note description: '`GET /ticket/todo_counts@v1`:四件套计数(口径写死在 SQL,`note` 是人读口径说明)。' title: TodoCounts TraceResult: type: object properties: ticket: type: object properties: ticket_id: type: string ticket_no: type: string nullable: true ticket_type: $ref: '#/components/schemas/TicketType' status: $ref: '#/components/schemas/TicketStatus' customer_id: type: string nullable: true carrier_order_no: type: string nullable: true title: type: string nullable: true required: - ticket_id - ticket_no - ticket_type - status - customer_id - carrier_order_no - title title: ticket description: 字段 ticket。 open_stop: type: array items: type: object additionalProperties: type: string nullable: true title: open_stop元素 description: 开停载体行(`::text` 字符串布尔判 `isYes`) title: open stop backfill: type: array items: type: object additionalProperties: type: string nullable: true title: backfill元素 description: 回填头(至多一行) title: backfill completion: type: array items: type: object additionalProperties: type: string nullable: true title: completion元素 description: 竣工件行 title: completion messages: type: array items: $ref: '#/components/schemas/TicketMessage' title: messages description: 字段 messages。 required: - ticket - open_stop - backfill - completion - messages description: TraceResult 业务数据 title: TraceResult UnverifiableCheck: type: object properties: key: type: string title: key description: 字段 key。 reason: type: string title: reason description: 字段 reason。 required: - key - reason description: 可判定项 [实] title: UnverifiableCheck ValueState: type: string enum: - ok - unconfigured - by_combination - error - failed description: 取值状态:成功 / 未配置 / 按组合(无唯一金额)/ 取数失败(后端 回退 0 冒充缺值)。 title: ValueState ViewBillDetailRow: type: object properties: bill_detail_id: type: string title: bill detail id description: 字段 bill_detail_id。 customer_id: type: string description: 客户行键(V-D1 客户详情链接入参;customer_visible=false 时不渲染链接) title: 客户 ID customer_name: type: string title: 客户名称 description: 客户名称。 receivable_no: type: string description: 应收单号 title: receivable no period: type: string title: 账期 description: 字段 period。 receivable_cents: type: integer description: 应结金额(整数分) title: receivable cents batch_no: type: string description: 所属对账单号(恒有值;批次详情宿主路由未在 14.1 声明 ⇒ 前端暂渲纯文本,缺口已登记) title: 批次号 customer_visible: type: boolean description: false ⇒ 客户名纯文本无链接+标「归属已变更」(C76/视图,断链只在快照侧出现) title: customer visible required: - bill_detail_id - customer_id - customer_name - receivable_no - period - receivable_cents - batch_no - customer_visible description: V- 表 2 明细行(A18:只含已进入本方 executed 批次且 active 的行)。 title: ViewBillDetailRow ViewPartnerReconResult: type: object properties: settle: type: object properties: mode: type: string nullable: true value: type: number nullable: true required: - mode - value description: 卡 1:本方分成方式与取值(档案现值、三档同构;value 未配 ⇒ null, 返 0) title: settle config: type: object properties: recon_day: type: number nullable: true pay_cycle: type: string nullable: true required: - recon_day - pay_cycle nullable: true description: '* 页顶配置卡(14.2① V6):对账日/付款周期。两格都给具体取值: * `recon_day` 缺失 ⇒ 「留空=跟随默认」;`pay_cycle` 由后端给生效值 * (未配置 ⇒ 系统默认「按月」, 页面显示「留空=跟随默认」)。' title: config batch_total: type: number title: batch total description: 字段 batch_total。 batch_shown: type: number title: batch shown description: 字段 batch_shown。 detail_total: type: number title: detail total description: 字段 detail_total。 detail_shown: type: number title: detail shown description: 字段 detail_shown。 batches: type: array items: $ref: '#/components/schemas/ViewReconBatchRow' title: batches description: 字段 batches。 details: type: array items: $ref: '#/components/schemas/ViewBillDetailRow' title: details description: 字段 details。 share_sum: type: number nullable: true description: 卡 4 当前筛选合计(整数分;取数失败 ⇒ null + 状态位, 返 0) title: share sum share_sum_all: type: number nullable: true description: 本方全部合计(筛选态双值常驻,视图 条 7) title: share sum all month_options: type: string description: A52;取数失败 ⇒ 整个字段 "failed"(前端禁用下拉, 回落近 12 个月) title: month options month_options_truncated: type: boolean nullable: true description: true ⇒ 筛选条下显示「仅显示最近 {N} 个月」(view_month_option_limit) title: month options truncated snapshot_state: type: string enum: - ok - not_ready - failed description: not_ready ⇒ 整页 KLT-O20703(①—⑥ 全替换, 渲染空表) title: snapshot state required: - settle - config - batch_total - batch_shown - detail_total - detail_shown - batches - details - share_sum - share_sum_all - month_options - snapshot_state description: ViewPartnerReconResult 业务数据 title: ViewPartnerReconResult ViewReconBatchRow: type: object properties: batch_no: type: string description: 对账单号=行键+导出本批入参(recon/export_detail@v1 以 batch_no 作 batch_id,同册 6 惯例) title: 批次号 period: type: string title: 账期 description: 字段 period。 reconcile_status: $ref: '#/components/schemas/ReconcileStatus' status: $ref: '#/components/schemas/ReconBatchStatus' detail_count: type: integer title: detail count description: 字段 detail_count。 share_cents: type: integer description: 本方分成金额(整数分) title: share cents has_detail: type: boolean description: 该批次本方有明细 ⇒ 行末「导出本批」渲染判据( 无明细=按钮整块不渲染,) title: has detail required: - batch_no - period - reconcile_status - status - detail_count - share_cents - has_detail description: V- 表 1 批次行(视图 列清单; 无「其他分成方」列)。 title: ViewReconBatchRow ZeroNote: type: string enum: - base_zero - no_in_period_account description: 明细行 zero_note 取值域(对账 恒 0 表;partner_amount_unsupported 已随 删除)。 title: ZeroNote ActivationCodeExportData: type: object title: 激活码导出结果 description: 读(validity=valid)与写(expired/all)共用同一信封;差别体现在 write_capability、export_mode 与计数。 required: - status - validity - user_count - user_ids - total - items - write_capability - export_mode - plaintext_once - audit_written properties: status: type: string title: 处理状态 description: 成功导出时为 ok。 example: ok scope_type: type: string title: 作用域类型 description: 服务端派生,固定为 end_user。 example: end_user scope_id: type: string title: 作用域 ID description: 服务端派生的项目空间 ID。 validity: type: string title: 导出口径 description: valid=仍有效(只读);expired=已过期(写/换新);all=全部(写)。 enum: - valid - expired - all user_count: type: integer title: 请求账号数 description: 本次提交并经可见性收窄后的账号个数。 minimum: 0 user_ids: type: array title: 账号 ID 列表 description: 实际参与导出的用户 ID。 items: type: string title: 用户 ID total: type: integer title: 条目总数 description: items 数组长度。 minimum: 0 items: type: array title: 激活码条目 description: 平台 bootstrap_credential/export 条目原样转发;含明文 plaintext。 items: $ref: '#/components/schemas/ExportCodeItem' chunks: type: integer title: 分片数 description: 按平台分页自动分片时的片数。 minimum: 0 pages: type: integer title: 翻页数 description: 平台翻页次数。 minimum: 0 reissued: type: integer title: 换新条数 description: 本次作废并换发的凭证条数;只读导出时为 0。 minimum: 0 kept: type: integer title: 保留条数 description: 未换新、仍保留的未消费凭证条数。 minimum: 0 revoked: type: integer title: 作废条数 description: 本次作废的凭证条数。 minimum: 0 write_capability: type: boolean title: 是否写操作 description: true=本次含换新/作废(validity 为 expired 或 all);false=只读。 export_mode: type: string title: 导出模式 description: read=只读导出;write=作废换新路径。与 write_capability 对应。 enum: - read - write plaintext_once: type: boolean title: 明文一次性 description: 恒为 true:明文只随本次应答回显,平台侧不落库。 example: true plaintext_note: type: string title: 明文说明 description: 提示调用方立即分发或安全保存明文。 audit_written: type: boolean title: 是否已写审计 description: true=已写入 bos_audit_log;false=本次未留痕。 audit_note: type: string title: 审计说明 description: 与 audit_written 成对的人读说明,勿仅凭布尔值猜测。 batch_id: type: string title: 批次 ID description: 按批次导出口回显;账号导出口不下发。 nullable: true batch_no: type: string title: 批次号 description: 按批次导出口回显;账号导出口不下发。 nullable: true ApiResponseHealth: type: object title: 健康检查响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/HealthInfo' ApiResponseHealthV1: type: object title: 健康检查(v1)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/HealthInfo' ApiResponsePing: type: object title: 存活探测响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/PingInfo' ApiResponseAuthContext: type: object title: 当前登录上下文响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AuthContext' ApiResponseRegionCreate: type: object title: 新建区域节点响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/RegionCreateResult' ApiResponseRegionRename: type: object title: 重命名区域节点响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/RegionRenameResult' ApiResponseRegionDelete: type: object title: 删除区域节点响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/RegionDeleteResult' ApiResponseRegionTree: type: object title: 查询可见区域树响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/RegionTreeResult' ApiResponseRegionSubtree: type: object title: 查询区域子树响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/RegionSubtreeResult' ApiResponseRegionChangeLog: type: object title: 区域变更流水响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/RegionChangeLogResult' ApiResponseRegionOrphans: type: object title: 悬空区域节点响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/RegionOrphanResult' ApiResponseAccountGetList: type: object title: 成员账号列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AccountListResult' ApiResponseEntTeamGetList: type: object title: 运营团队列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/EntTeamListResult' ApiResponseOpsTeamGetList: type: object title: 运维团队列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OpsTeamListResult' ApiResponseAuditGetList: type: object title: 审计日志检索响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AuditItem' ApiResponseAuditExport: type: object title: 审计日志导出响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AuditExportResult' ApiResponseAccountProvision: type: object title: 开通账号响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AccountProvisionResult' ApiResponseAccountUpdateStatus: type: object title: 停用或恢复账号响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AccountStatusResult' ApiResponseAccountUnbind: type: object title: 注销/解绑账号响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AccountUnbindResult' ApiResponseAccountResetCode: type: object title: 重置激活码响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AccountResetCodeResult' ApiResponseAccountExportCodes: type: object title: 导出激活码响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ActivationCodeExportData' ApiResponseAccountChangePassword: type: object title: 自助修改密码响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AccountChangePasswordResult' ApiResponseAccountProfileUpdate: type: object title: 本人维护姓名响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AccountProfileUpdateResult' ApiResponseAccountNotifyPref: type: object title: 读通知投递偏好响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AccountNotifyPrefResult' ApiResponseAccountNotifyPrefSave: type: object title: 保存通知投递开关响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AccountNotifyPrefSaveResult' ApiResponseAccountNotifyEmailGet: type: object title: 本人只读通知投递邮箱响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AccountNotifyEmailResult' ApiResponseAccountNotifyEmail: type: object title: 本人维护通知投递邮箱响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AccountNotifyEmailResult' ApiResponseAccountNotifyEmailSet: type: object title: 运营代办维护通知投递邮箱响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AccountNotifyEmailSetResult' ApiResponseActivationVerify: type: object title: 激活并设置密码响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ActivationVerifyResult' ApiResponseActivationPrecheck: type: object title: 激活第 1 步预校验(登录名与激活状态)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ActivationPrecheckResult' ApiResponseOperatorCreate: type: object title: 新建运营商响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OperatorCreateResult' ApiResponseOperatorUpdate: type: object title: 编辑运营商响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OperatorUpdateResult' ApiResponseOperatorDelete: type: object title: 删除运营商响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OperatorDeleteResult' ApiResponseOperatorGetList: type: object title: 运营商列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OperatorListResult' ApiResponseOperatorReconAccountCreate: type: object title: 创建对账账号响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ReconAccountCreateResult' ApiResponseOperatorReconAccountGet: type: object title: 查询对账账号响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ReconAccountGetResult' ApiResponsePartnerCreate: type: object title: 新建合伙人响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/PartnerCreateResult' ApiResponsePartnerUpdate: type: object title: 编辑合伙人响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/PartnerUpdateResult' ApiResponsePartnerDelete: type: object title: 删除合伙人响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/PartnerDeleteResult' ApiResponsePartnerGetList: type: object title: 合伙人列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/PartnerListResult' ApiResponsePartnerScopeGet: type: object title: 读取合伙人负责范围响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/PartnerScope' ApiResponsePartnerScopeSave: type: object title: 保存合伙人负责范围响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/PartnerScopeSaveResult' ApiResponseEntTeamCreate: type: object title: 新建运营团队响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/EntTeamCreateResult' ApiResponseEntTeamUpdate: type: object title: 编辑运营团队响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/EntTeamUpdateResult' ApiResponseEntTeamDelete: type: object title: 删除运营团队响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/EntTeamDeleteResult' ApiResponseEntTeamMemberAdd: type: object title: 添加运营团队成员响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/EntTeamMemberAddResult' ApiResponseEntTeamMemberUpdate: type: object title: 编辑运营团队成员资料响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/EntTeamMemberUpdateResult' ApiResponseEntTeamMemberRemove: type: object title: 移除运营团队成员响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/EntTeamMemberRemoveResult' ApiResponseEntTeamTransferPrimary: type: object title: 转交运营团队主账号响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/EntTeamTransferPrimaryResult' ApiResponseEntTeamScopeGet: type: object title: 读取运营团队负责范围响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/EntTeamScope' ApiResponseEntTeamScopeSave: type: object title: 保存运营团队负责范围响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/EntTeamScopeSaveResult' ApiResponseOpsTeamCreate: type: object title: 新建运维团队响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OpsTeamCreateResult' ApiResponseOpsTeamUpdate: type: object title: 编辑运维团队响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OpsTeamUpdateResult' ApiResponseOpsTeamDelete: type: object title: 删除运维团队响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OpsTeamDeleteResult' ApiResponseOpsTeamScopeSave: type: object title: 保存运维团队负责范围响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OpsTeamScopeSaveResult' ApiResponseOpsTeamMemberAdd: type: object title: 添加运维成员响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OpsMemberAddResult' ApiResponseOpsTeamMemberUpdate: type: object title: 更新运维成员响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OpsMemberUpdateResult' ApiResponseOpsTeamTransferPrimary: type: object title: 转交运维团队主账号响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OpsTeamTransferPrimaryResult' ApiResponseOpsTeamMemberRemove: type: object title: 移除运维成员响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OpsMemberRemoveResult' ApiResponseOpsMemberScopeSave: type: object title: 保存运维成员负责范围响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OpsMemberScopeSaveResult' ApiResponseOpsTeamDispatchModeUpdate: type: object title: 更新分派方式响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OpsTeamDispatchResult' ApiResponseOpsTeamCoverageGet: type: object title: 运维团队覆盖客户响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OpsTeamCoverage' ApiResponseCustomerCreate: type: object title: 新建客户响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CustomerCreateResult' ApiResponseCustomerGetList: type: object title: 客户列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CustomerListResult' ApiResponseCustomerGet: type: object title: 客户详情响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CustomerDetail' ApiResponseCustomerUpdate: type: object title: 编辑客户响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CustomerUpdateResult' ApiResponseCustomerDeletePrecheck: type: object title: 客户删除前置检查响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CustomerDeletePrecheck' ApiResponseCustomerDelete: type: object title: 删除客户响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CustomerDeleteResult' ApiResponseCustomerHistory: type: object title: 客户变更历史响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CustomerHistoryResult' ApiResponseCustomerMountCandidates: type: object title: 改挂候选客户响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/MountCandidatesResult' ApiResponseCustomerInfluence: type: object title: 改挂影响面响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/InfluenceItem' ApiResponseCustomerMoveRegion: type: object title: 客户改挂区域响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CustomerMoveRegionResult' ApiResponseCustomerAttributionUpdate: type: object title: 更新客户归属响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CustomerAttributionResult' ApiResponseImportBatchTemplateDownload: type: object title: 下载导入模板响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ImportTemplateDownloadResult' ApiResponseImportBatchTemplateDownloadPost: type: object title: 下载导入模板(POST 兼容)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ImportTemplateSpec' ApiResponseCustomerImportConfirm: type: object title: 确认导入(逐行建档)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ImportConfirmResult' ApiResponseImportBatchSubmit: type: object title: 提交客户批量导入响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ImportSubmitResult' ApiResponseImportBatchGetList: type: object title: 导入批次列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ImportBatchListResult' ApiResponseImportBatchGet: type: object title: 导入批次详情响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ImportBatchDetail' ApiResponseImportBatchResume: type: object title: 失败行续传响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ImportResumeResult' ApiResponseImportBatchExportCodes: type: object title: 按批次导出激活码响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ActivationCodeExportData' ApiResponseImportBatchExportCustomers: type: object title: 按批次导出客户响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/DeliveryExportResult' ApiResponseSubAccountGetList: type: object title: 分账号列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/SubAccountListResult' ApiResponseSubAccountUpdate: type: object title: 更新分账号响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/SubAccountUpdateResult' ApiResponseDeliveryList: type: object title: 交付现状(在册资源一览)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/DeliveryListResult' ApiResponseDeliveryExport: type: object title: 交付现状导出响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/DeliveryExportResult' ApiResponseLineExitGetList: type: object title: 线路出口目录列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/LineExitListResult' ApiResponseLineExitSave: type: object title: 线路出口目录整段全量替换响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/LineExitSaveResult' ApiResponseIpBandwidthTierGetList: type: object title: 带宽档位目录列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/IpBandwidthTierListResult' ApiResponseIpBandwidthTierSave: type: object title: 带宽档位目录整段全量替换响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/IpBandwidthTierSaveResult' ApiResponsePortalPlanBoard: type: object title: 客户侧「我的套餐」看板响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/PortalPlanBoardResult' ApiResponseCatalogCreate: type: object title: 新建套餐档位响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CatalogCreateResult' ApiResponseCatalogUpdate: type: object title: 编辑套餐档位响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CatalogUpdateResult' ApiResponseCatalogGetList: type: object title: 套餐档位列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CatalogListResult' ApiResponseCatalogGet: type: object title: 套餐档位详情响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CatalogGetResult' ApiResponseCatalogDelete: type: object title: 套餐档位条件删除响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CatalogDeleteResult' ApiResponseCatalogCustomerOptions: type: object title: 归属客户下拉响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CustomerOption' ApiResponsePlanCostItemGetList: type: object title: 档位随附成本项列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/PlanCostItemListResult' ApiResponsePlanCostItemSave: type: object title: 档位随附成本项整段全量替换响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/PlanCostItemSaveResult' ApiResponseContractCreate: type: object title: 新建合同响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ContractReplacementResult' ApiResponseContractUpdate: type: object title: 编辑合同响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ContractUpdateResult' ApiResponseContractGetList: type: object title: 合同列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ContractListResult' ApiResponseContractChangeLog: type: object title: 合同修改记录响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ContractChangeLogItem' ApiResponseContractGet: type: object title: 合同详情响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ContractEditScope' ApiResponseContractCustomerLookup: type: object title: 合同客户身份解析响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ContractLookupResult' ApiResponseContractDelete: type: object title: 合同条件删除响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ContractDeleteResult' ApiResponseContractAttachmentDiscard: type: object title: 回收无人引用的上传附件(孤儿对象)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ContractAttachmentDiscardResult' ApiResponseSubscriptionCreate: type: object title: 新建订阅响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OrderCreateResult' ApiResponseSubscriptionChange: type: object title: 订阅升降配响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OrderChangeResult' ApiResponseSubscriptionReplacementCandidates: type: object title: 替换候选探测(只读)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ReplacementProbeReq' ApiResponseSubscriptionStack: type: object title: 订阅叠加(已停用 · 请改走 create)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OrderStackResult' ApiResponseSubscriptionGetList: type: object title: 订阅列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OrderListResult' ApiResponseSubscriptionGet: type: object title: 订阅详情响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OrderGetResult' ApiResponseSubscriptionPlanOptions: type: object title: 订阅档位候选响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OrderPlanOption' ApiResponseSubscriptionContractOptions: type: object title: 未开通合同与服务条目候选响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OrderContractItemOption' ApiResponseSubscriptionUpdate: type: object title: 订阅修改(白名单)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OrderUpdateResult' ApiResponseSubscriptionDeleteCheck: type: object title: 订阅删除前阻塞检查响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OrderDeleteCheckResult' ApiResponseSubscriptionDelete: type: object title: 删除订阅并回退额度响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OrderDeleteResult' ApiResponseSubscriptionListAll: type: object title: 全部订阅(跨客户)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OrderListResult' ApiResponseCostItemSave: type: object title: 保存成本项定义响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CostItemSaveResult' ApiResponseCostItemDelete: type: object title: 删除成本项定义响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CostItemDeleteResult' ApiResponseCostItemGetList: type: object title: 成本项列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CostItemListResult' ApiResponseCostAmountSave: type: object title: 保存成本金额响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CostAmountSaveResult' ApiResponseCostAmountGetList: type: object title: 成本金额一览响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CostAmountListResult' ApiResponseShareRuleSave: type: object title: 保存分成规则响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ShareRuleSaveResult' ApiResponseShareRuleGetList: type: object title: 分成规则列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ShareRuleListResult' ApiResponseShareRuleGet: type: object title: 分成规则详情响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ShareRuleDetail' ApiResponseShareRuleDelete: type: object title: 删除分成规则响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ShareRuleDeleteResult' ApiResponseOpsviewHome: type: object title: 运维只读首页响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/OverviewStat' ApiResponseJobsGetList: type: object title: 定时作业清单响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/JobSpecRow' ApiResponseJobsToggle: type: object title: 启停定时作业响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/JobToggleResult' ApiResponseJobsRuns: type: object title: 作业执行记录响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/JobRunRow' ApiResponseJobsRunOnce: type: object title: 补跑作业一次响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/JobRunReport' ApiResponseShareRuleParamSummary: type: object title: 分成参数摘要响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ShareParamSummaryRequest' ApiResponseBillingConfigGet: type: object title: 出账配置读响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/BillingConfigResult' ApiResponseBillingConfigUpdate: type: object title: 出账配置写响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/BillingConfigUpdateResult' ApiResponseReconPeriods: type: object title: 对账期次下拉响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ReconPeriodsResult' ApiResponseReconGetList: type: object title: 对账批次清单响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ReconBatchRow' ApiResponseReconDetail: type: object title: 对账批次详情响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ReconDetailResult' ApiResponseReconRerun: type: object title: 人工补跑出账响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ReconRerunResult' ApiResponseReconExportList: type: object title: 导出对账清单(B 表)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ReconExportResult' ApiResponseReconExportDetail: type: object title: 导出账单明细(A 表)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ReconExportResult' ApiResponseViewPartnerRecon: type: object title: 合伙人与运维团队本方对账合并页响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ViewPartnerReconResult' ApiResponseBillGetList: type: object title: 账单明细清单响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/BillLineRow' ApiResponseBillDetail: type: object title: 账单明细详情响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/BillDetailResult' ApiResponseCorrectionCreate: type: object title: 登记出账更正响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CorrectionCreateResult' ApiResponseCorrectionGetList: type: object title: 出账更正列表响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CorrectionRow' ApiResponseCorrectionDetail: type: object title: 出账更正详情响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CorrectionDetailResult' ApiResponseCorrectionDraftSave: type: object title: 保存更正草稿响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CorrectionDraftSaveResult' ApiResponseCorrectionDraftGet: type: object title: 读取更正草稿响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CorrectionDraftResult' ApiResponseTicketList: type: object title: 工单列表查询响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/TicketListResult' ApiResponseTicketDetail: type: object title: 工单详情查询响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/TicketDetail' ApiResponseTicketPendingQueue: type: object title: 待分派队列查询响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/PendingQueueResult' ApiResponseTicketTodoCounts: type: object title: 待办计数查询响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/TodoCounts' ApiResponseTicketTrace: type: object title: 跨主体追溯查询响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/TraceResult' ApiResponseMessagePending: type: object title: 报文待处置队列查询响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/MessagePendingResult' ApiResponseTicketCreate: type: object title: 新建工单响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/TicketCreateResult' ApiResponseTicketAssign: type: object title: 手动分派工单响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/AssignResult' ApiResponseTicketDispatchAuto: type: object title: 自动分派(整批)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/DispatchResult' ApiResponseTicketDeliveryReissue: type: object title: 按订阅补发交付工单响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/TicketCreateResult' ApiResponseTicketDelegate: type: object title: 交接转派响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/DelegateResult' ApiResponseTicketStart: type: object title: 进入处理中(阅读推进)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/StartResult' ApiResponseTicketBackfill: type: object title: 回填竣工信息响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/BackfillResult' ApiResponseTicketBackfillDraft: type: object title: 暂存施工回填草稿响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/BackfillDraft' ApiResponseTicketCheckDone: type: object title: 服务项完成直接闭环响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CheckDoneResult' ApiResponseTicketMarkDone: type: object title: 标记已处理(仅服务开通)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/MarkDoneResult' ApiResponseTicketClose: type: object title: 关闭工单响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/FinalizeResult' ApiResponseTicketWithdraw: type: object title: 撤回工单响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/FinalizeResult' ApiResponseTicketConfirmClose: type: object title: 确认闭环响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/FinalizeResult' ApiResponseTicketDefer: type: object title: 临时延期(延后提醒)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/FinalizeResult' ApiResponseTicketUrge: type: object title: 站内催办(向「卡在别人手里」的对家发催办信)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/TicketUrgeResult' ApiResponseTicketRevert: type: object title: 退回重办响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/FinalizeResult' ApiResponseCompletionGenerate: type: object title: 生成竣工回传文件响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CompletionGenerateResult' ApiResponseCompletionReceipt: type: object title: 录入运营商回执响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CompletionReceiptResult' ApiResponseCompletionReject: type: object title: 登记竣工驳回响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/CompletionRejectResult' ApiResponseMessageAttach: type: object title: 挂接并生效响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/MessageActionResult' ApiResponseMessageVoid: type: object title: 作废报文响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/MessageActionResult' ApiResponseMessageConfirmConflict: type: object title: 冲突确认响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/MessageActionResult' ApiResponseMessageRematch: type: object title: 改挂归属工单响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/MessageActionResult' ApiResponseTicketMaterialGrant: type: object title: 材料上传/下载凭证响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/MaterialGrantResult' ApiResponseTicketMaterialAttach: type: object title: 登记材料元信息响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/MaterialAttachResult' ApiResponseTicketConfigGet: type: object title: 域配置查询(闭环方式)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ClosureConfig' ApiResponseTicketConfigUpdate: type: object title: 域配置修改(闭环方式)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ClosureConfigUpdateResult' ApiResponseTicketFormTemplateGet: type: object title: 施工回填扩展模板查询响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/FormTemplateBundle' ApiResponseTicketFormTemplateSave: type: object title: 施工回填扩展模板保存草稿响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/FormTemplateBundle' ApiResponseTicketFormTemplatePublish: type: object title: 施工回填扩展模板发布响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/FormTemplateBundle' ApiResponseContractRenewalConfigGet: type: object title: 合同续签提醒配置查询(GET)响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ContractRenewalConfig' ApiResponseContractRenewalConfig: type: object title: 合同续签提醒配置查询响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ContractRenewalConfig' ApiResponseContractRenewalConfigUpdate: type: object title: 合同续签提醒配置修改响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/ContractRenewalConfigUpdateResult' ApiResponseInboxList: type: object title: 本人站内提醒箱响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/InboxListResult' ApiResponseInboxRead: type: object title: 标记站内提醒已读响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/InboxReadResult' ApiResponseInboxRenewalCandidates: type: object title: 续签工单可指派人员响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/RenewalCandidatesResult' ApiResponseInboxRenewalTicket: type: object title: 读信人生成续签工单并指派响应 description: 统一响应信封;HTTP 状态码 200,通过 code 区分成功与业务错误。 required: - code - message properties: code: type: integer title: 业务码 description: 10000 表示成功;6xxxx/11xxx 等为业务或协议错误。 example: 10000 message: type: string title: 响应消息 description: 成功或错误说明。 example: ok error_code: type: string title: 稳定错误码 description: 失败时的 KLT-* 字符串;成功时不下发。 nullable: true data: $ref: '#/components/schemas/RenewalTicketResult'