为权利模板 right_templates 新增两段展示文案字段,供前端在授权类型卡片中展示:
summary:短标题,对应卡片内第一行适用场景说明(例如「适用于个人及非营利用途」)description:详细说明,对应卡片内第二段解释文案字段均为多语言 JSON,与现有 name 一致,常见结构:
本次为纯返回字段扩展,不新增接口,不改请求参数。所有直接返回 right_template / right_templates,或在 service / product 快照中嵌套返回它们的接口都会自动带上这两个字段。
| 对象 | 字段 | 类型 | 说明 |
|---|---|---|---|
right_template / right_templates[] | summary | object | null | 适用场景短标题,多语言 JSON |
right_template / right_templates[] | description | object | null | 详细用途说明,多语言 JSON |
前端可按当前语言读取 summary.zh / summary.en、description.zh / description.en;字段可能为 null(历史数据尚未补齐时)。
GET /api/content/site/meta
right_templatesdata.right_templates[] 新增 summary、descriptionGET /api/content/service/info
data.right_templates[] 新增 summary、descriptionPOST /api/content/products/info
data.options[].right_template 新增 summary、descriptionPOST /api/content/projects/list
data[].right_template 新增 summary、descriptionGET /api/content/projects/info
data.right_template 新增 summary、descriptionPOST /api/service_requests/create
service_snap.data.right_templates[] 新增 summary、descriptionPOST /api/service_requests/info
data.service_snap.data.right_templates[] 新增 summary、descriptionPOST /api/projects/list
data[].right_template 新增 summary、descriptionGET /api/projects/info
data.right_template 新增 summary、descriptionPOST /api/product_licenses/info
product_option_snap.right_template 新增 summary、descriptionGET /api/artist_center/services/meta
right_templatesdata.right_templates[] 新增 summary、descriptionGET /api/artist_center/services/info
data.right_templates[] 新增 summary、descriptionright_template 同样新增 summary、descriptionGET /api/content/site/metaright_templates 每一项新增 summary、description,用于前端授权卡片展示。无
无新增,沿用原有错误语义。
GET /api/content/service/inforight_templates[] 新增 summary、description;原有 markup_type、markup_value、right_tree 不变。| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
service_id | number | 是 | service id |
404:service 不存在或不可访问
POST /api/content/products/inforight_template 新增 summary、description。| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
product_id | number | 是 | product id |
无新增,沿用原有错误语义。
POST /api/content/projects/listright_template 新增 summary、description。| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
page | number | 否 | 页码 |
size | number | 否 | 每页数量 |
无新增,沿用原有错误语义。
GET /api/content/projects/infodata.right_template 新增 summary、description。| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | number | 是 | project id |
无新增,沿用原有错误语义。
POST /api/service_requests/infoservice_snap.data.right_templates[] 快照中新增 summary、description。新创建的 request 会写入当前模板文案;历史 request 快照取决于创建时的数据。| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | number | 是 | service request id |
无新增,沿用原有错误语义。
POST /api/projects/list /GET /api/projects/inforight_template 字段结构与 content 侧一致,新增 summary、description。列表:无新增。详情:
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | number | 是 | project id |
与 content project 的 right_template 结构一致。
无新增,沿用原有错误语义。
GET /api/artist_center/services/metadata.right_templates[] 新增 summary、description,便于配置页预览授权说明。无
无新增,沿用原有错误语义。
GET /api/artist_center/services/infodata.right_templates[] 新增 summary、description,同时保留 markup_type、markup_value、right_tree。| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
id | number | 是 | service id |
与 GET /api/content/service/info 的 right_templates 结构一致。
无新增,沿用原有错误语义。
summary / description 可能为 null:
summary、descriptionright_template.summary / right_template.description