{
  "input": "{\n  \"openapi\": \"3.0.3\",\n  \"info\": {\n    \"title\": \"IDACHF-3 邮储收款账户详情密钥脱敏增量\",\n    \"version\": \"2026-07-21-masked-keys\",\n    \"description\": \"PC 管理端邮储收款账户列表、详情和保存接口。写入 Apifox 项目 5737553 的 PC 端目录 48690332。\"\n  },\n  \"tags\": [\n    {\n      \"name\": \"邮储收款账户\",\n      \"description\": \"账单管理下的邮储支付配置维护接口，与账单记录模块同级。\"\n    }\n  ],\n  \"paths\": {\n    \"/p/psbcaccount/detail\": {\n      \"post\": {\n        \"tags\": [\n          \"邮储收款账户\"\n        ],\n        \"x-apifox-folder\": \"邮储收款账户\",\n        \"summary\": \"邮储收款账户详情\",\n        \"description\": \"按 ID 查询账户详情。平台管理员得到三个密钥的脱敏值，格式为开头 8 位 + ******** + 结尾 8 位，用于查看和比对；浏览器不会收到完整密钥。其他有页面权限的账号只得到已配置标记，不返回密钥字段。响应禁止缓存。\",\n        \"operationId\": \"psbcAccountDetail\",\n        \"requestBody\": {\n          \"required\": true,\n          \"content\": {\n            \"application/x-www-form-urlencoded\": {\n              \"schema\": {\n                \"$ref\": \"#/components/schemas/PsbcAccountDetailRequest\"\n              },\n              \"example\": {\n                \"id\": 1\n              }\n            }\n          }\n        },\n        \"responses\": {\n          \"200\": {\n            \"description\": \"业务结果，以 code=0 表示成功\",\n            \"headers\": {\n              \"Cache-Control\": {\n                \"description\": \"固定包含 no-store、no-cache\",\n                \"schema\": {\n                  \"type\": \"string\",\n                  \"example\": \"no-store, no-cache, must-revalidate\"\n                }\n              },\n              \"Pragma\": {\n                \"description\": \"禁止缓存\",\n                \"schema\": {\n                  \"type\": \"string\",\n                  \"example\": \"no-cache\"\n                }\n              }\n            },\n            \"content\": {\n              \"application/json\": {\n                \"schema\": {\n                  \"$ref\": \"#/components/schemas/PsbcAccountMaskedDetailResponse\"\n                },\n                \"examples\": {\n                  \"platformManager\": {\n                    \"summary\": \"平台管理员查询成功\",\n                    \"value\": {\n                      \"code\": 0,\n                      \"message\": \"查询成功\",\n                      \"data\": {\n                        \"id\": 1,\n                        \"uuid\": \"cc819d52-14c3-4bd1-a81b-c08ae3ce1cad\",\n                        \"name\": \"荣海小学餐费账户\",\n                        \"status\": 3,\n                        \"status_label\": \"可用\",\n                        \"settlement_desc\": \"学生餐费统一结算\",\n                        \"school_uuid\": \"school-a-uuid\",\n                        \"school_name\": \"荣海小学\",\n                        \"merchant_no\": \"100610100002386\",\n                        \"merchant_no_masked\": \"********2386\",\n                        \"payment_id\": \"shop-payment-001\",\n                        \"merchant_public_key\": \"MERCHANT********BLIC-KEY\",\n                        \"merchant_private_key\": \"MERCHANT********VATE-KEY\",\n                        \"psbc_public_key\": \"PSBC-SM2********BLIC-KEY\",\n                        \"merchant_public_key_configured\": true,\n                        \"merchant_private_key_configured\": true,\n                        \"psbc_public_key_configured\": true,\n                        \"config_complete\": true,\n                        \"version_no\": 1,\n                        \"remark\": \"测试账户\",\n                        \"is_legacy\": false,\n                        \"editable\": true,\n                        \"update_time\": \"2026-07-21 14:30:00\"\n                      }\n                    }\n                  },\n                  \"notFoundOrForbidden\": {\n                    \"summary\": \"不存在或无学校权限\",\n                    \"value\": {\n                      \"code\": 1,\n                      \"message\": \"邮储收款账户不存在或无权查看\",\n                      \"data\": []\n                    }\n                  }\n                }\n              }\n            }\n          }\n        }\n      }\n    }\n  },\n  \"components\": {\n    \"schemas\": {\n      \"PsbcAccountListItem\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"id\": {\n            \"oneOf\": [\n              {\n                \"type\": \"integer\"\n              },\n              {\n                \"type\": \"string\"\n              }\n            ],\n            \"description\": \"配置主键；历史只读兼容记录为 legacy_psbc_config\"\n          },\n          \"uuid\": {\n            \"type\": \"string\",\n            \"description\": \"配置 UUID\"\n          },\n          \"name\": {\n            \"type\": \"string\",\n            \"description\": \"账户名称\"\n          },\n          \"status\": {\n            \"type\": \"integer\",\n            \"enum\": [\n              3,\n              4\n            ],\n            \"description\": \"账户状态：3可用，4停用\"\n          },\n          \"status_label\": {\n            \"type\": \"string\",\n            \"enum\": [\n              \"可用\",\n              \"停用\"\n            ]\n          },\n          \"settlement_desc\": {\n            \"type\": \"string\"\n          },\n          \"school_uuid\": {\n            \"type\": \"string\",\n            \"description\": \"绑定学校 UUID；未绑定时为空字符串\"\n          },\n          \"school_name\": {\n            \"type\": \"string\",\n            \"description\": \"绑定学校名称\"\n          },\n          \"school_uuids\": {\n            \"type\": \"array\",\n            \"deprecated\": true,\n            \"description\": \"旧前端兼容字段，当前最多一个学校\",\n            \"items\": {\n              \"type\": \"string\"\n            }\n          },\n          \"school_names\": {\n            \"type\": \"array\",\n            \"deprecated\": true,\n            \"description\": \"旧前端兼容字段，当前最多一个学校\",\n            \"items\": {\n              \"type\": \"string\"\n            }\n          },\n          \"merchant_no_masked\": {\n            \"type\": \"string\",\n            \"description\": \"脱敏商户号，仅显示最后4位\",\n            \"example\": \"********2386\"\n          },\n          \"version_no\": {\n            \"type\": \"integer\",\n            \"description\": \"支付参数版本号\"\n          },\n          \"remark\": {\n            \"type\": \"string\"\n          },\n          \"is_legacy\": {\n            \"type\": \"boolean\",\n            \"description\": \"是否为缺表场景下的历史只读兼容记录\"\n          },\n          \"editable\": {\n            \"type\": \"boolean\",\n            \"description\": \"当前记录是否允许编辑\"\n          },\n          \"create_time\": {\n            \"type\": \"string\",\n            \"description\": \"创建时间\"\n          },\n          \"update_time\": {\n            \"type\": \"string\",\n            \"description\": \"最近更新时间\"\n          }\n        }\n      },\n      \"PsbcAccountDetailRequest\": {\n        \"type\": \"object\",\n        \"required\": [\n          \"id\"\n        ],\n        \"properties\": {\n          \"id\": {\n            \"oneOf\": [\n              {\n                \"type\": \"integer\",\n                \"minimum\": 1\n              },\n              {\n                \"type\": \"string\",\n                \"enum\": [\n                  \"legacy_psbc_config\"\n                ]\n              }\n            ],\n            \"description\": \"配置主键；legacy_psbc_config 仅用于配置表未初始化时的历史只读记录\",\n            \"example\": 1\n          }\n        }\n      },\n      \"PsbcAccountMaskedDetail\": {\n        \"allOf\": [\n          {\n            \"$ref\": \"#/components/schemas/PsbcAccountListItem\"\n          },\n          {\n            \"type\": \"object\",\n            \"properties\": {\n              \"merchant_no\": {\n                \"type\": \"string\",\n                \"description\": \"完整 B2C 商户号\"\n              },\n              \"payment_id\": {\n                \"type\": \"string\",\n                \"description\": \"统一收单门店号或支付标识\"\n              },\n              \"merchant_public_key\": {\n                \"type\": \"string\",\n                \"readOnly\": true,\n                \"description\": \"商户 SM2 公钥脱敏值，仅平台管理员详情返回；格式为开头 8 位 + ******** + 结尾 8 位\"\n              },\n              \"merchant_private_key\": {\n                \"type\": \"string\",\n                \"format\": \"password\",\n                \"readOnly\": true,\n                \"description\": \"商户 SM2 私钥脱敏值，仅平台管理员详情返回；格式为开头 8 位 + ******** + 结尾 8 位\"\n              },\n              \"psbc_public_key\": {\n                \"type\": \"string\",\n                \"readOnly\": true,\n                \"description\": \"邮储支付 SM2 公钥脱敏值，仅平台管理员详情返回；格式为开头 8 位 + ******** + 结尾 8 位\"\n              },\n              \"merchant_public_key_configured\": {\n                \"type\": \"boolean\"\n              },\n              \"merchant_private_key_configured\": {\n                \"type\": \"boolean\"\n              },\n              \"psbc_public_key_configured\": {\n                \"type\": \"boolean\"\n              },\n              \"config_complete\": {\n                \"type\": \"boolean\",\n                \"description\": \"支付参数是否完整\"\n              }\n            }\n          }\n        ]\n      },\n      \"PsbcAccountMaskedDetailResponse\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"code\": {\n            \"type\": \"integer\",\n            \"description\": \"0成功，1失败\"\n          },\n          \"message\": {\n            \"type\": \"string\"\n          },\n          \"data\": {\n            \"oneOf\": [\n              {\n                \"$ref\": \"#/components/schemas/PsbcAccountMaskedDetail\"\n              },\n              {\n                \"type\": \"array\",\n                \"maxItems\": 0,\n                \"description\": \"失败时返回空数组\"\n              }\n            ]\n          }\n        },\n        \"required\": [\n          \"code\",\n          \"message\",\n          \"data\"\n        ]\n      }\n    }\n  }\n}\n",
  "options": {
    "targetEndpointFolderId": 48690332,
    "targetSchemaFolderId": 0,
    "endpointOverwriteBehavior": "OVERWRITE_EXISTING",
    "schemaOverwriteBehavior": "KEEP_EXISTING",
    "updateFolderOfChangedEndpoint": true,
    "prependBasePath": false
  }
}
