-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: get tmpl rev with signature --task=74871191 (#2983)
* feat: get tmpl rev with signature --task=74871191 * docs: update api doc
- Loading branch information
Showing
6 changed files
with
193 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
...p/api/api-docs/api-server/docs/zh/list_template_revision_name_by_template_id.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
### 描述 | ||
|
||
该接口提供版本:v1.0.0+ | ||
|
||
批量查询模版的版本名称 | ||
|
||
### 输入参数 | ||
|
||
| 参数名称 | 参数类型 | 必选 | 描述 | | ||
| ------------ | -------- | ---- | --------------------- | | ||
| biz_id | uint32 | 是 | 业务ID | | ||
| template_ids | []uint32 | 是 | 模版ID列表,最多200个 | | ||
|
||
### 调用示例 | ||
|
||
```json | ||
{ | ||
"template_ids": [ | ||
1, | ||
2 | ||
] | ||
} | ||
``` | ||
|
||
### 响应示例 | ||
|
||
```json | ||
{ | ||
"data": { | ||
"details": [ | ||
[ | ||
{ | ||
"template_id": 1, | ||
"template_name": "template001", | ||
"latest_template_revision_id": 2, | ||
"latest_signature": "11e3a57c479ebfae641c5821ee70bf61dca74b8e6596b78950526c397a3b1234", | ||
"latest_byte_size": "2067", | ||
"template_revisions": [ | ||
{ | ||
"template_revision_id": 1, | ||
"template_revision_name": "v20230815120105", | ||
"template_revision_memo": "my revision for test1" | ||
}, | ||
{ | ||
"template_revision_id": 2, | ||
"template_revision_name": "v20230815130206", | ||
"template_revision_memo": "my revision for test2" | ||
} | ||
] | ||
}, | ||
{ | ||
"template_id": 2, | ||
"template_name": "template002", | ||
"latest_template_revision_id": 4, | ||
"latest_signature": "22e3a57c479ebfae641c5821ee70bf61dca74b8e6596b78950526c397a3b1253", | ||
"latest_byte_size": "1023", | ||
"template_revisions": [ | ||
{ | ||
"template_revision_id": 3, | ||
"template_revision_name": "v20230815140307", | ||
"template_revision_memo": "my revision for test3" | ||
}, | ||
{ | ||
"template_revision_id": 4, | ||
"template_revision_name": "v20230815150408", | ||
"template_revision_memo": "my revision for test2" | ||
} | ||
] | ||
} | ||
] | ||
] | ||
} | ||
} | ||
``` | ||
|
||
### 响应参数说明 | ||
|
||
| 参数名称 | 参数类型 | 描述 | | ||
| -------- | -------- | -------- | | ||
| data | object | 响应数据 | | ||
|
||
#### data | ||
|
||
| 参数名称 | 参数类型 | 描述 | | ||
| -------- | -------- | -------------- | | ||
| detail | array | 查询返回的数据 | | ||
|
||
#### data.detail[n] | ||
|
||
| 参数名称 | 参数类型 | 描述 | | ||
| --------------------------- | -------- | -------------------------- | | ||
| template_id | uint32 | 模版ID | | ||
| template_name | string | 模版名称 | | ||
| latest_template_revision_id | uint32 | 最新模版版本ID | | ||
| latest_sinature | string | 最新模版版本内容的sha256 | | ||
| latest_byte_size | uint64 | 最新模版版本内容的字节大小 | | ||
| template_revisions | object | 模版版本信息 | | ||
|
||
#### template_revisions | ||
|
||
| 参数名称 | 参数类型 | 描述 | | ||
| ---------------------- | -------- | ------------ | | ||
| template_revision_id | uint32 | 模版版本ID | | ||
| template_revision_name | string | 模版版本名称 | | ||
| template_revision_memo | string | 模版版本描述 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 47 additions & 26 deletions
73
bcs-services/bcs-bscp/pkg/protocol/core/template-revision/template_revision.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters