# 批量查看合同覆盖的版本集
# 调用方式: GET
# 接口地址:
https://api.freelog.com/v2/resources/{resourceId}/contracts/coverageVersions?contractIds={contractIds}
1
# url传入参数说明:
参数 | 必选 | 类型及范围 | 说明 |
---|---|---|---|
resourceId | 必选 | string | 资源ID |
contractIds | 必选 | string | 合同ID,多个用逗号分隔 |
# 返回说明:
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
contractId | string | 合同ID |
versions | object[] | 合约所应用的版本 |
**version | string | 合约所应用的版本 |
**versionId | string | 合约所应用的版本ID |
**contractIsExcluded | boolean | 当前合约是否已被排除在授权体系之外 |
**authExcludedItems | object | 针对当前合约的排除项 |
**validContractIds | string[] | 当前合约标的物的生效的授权合约ID集 |
# 示例
{
"ret": 0,
"errCode": 0,
"errcode": 0,
"msg": "success",
"data": [{
"contractId": "5f326eb01bcaeb00347b8eac",
"versions": [{
"version": "0.0.4",
"versionId": "ebc93ff18b8c17926e15cd84a0a9911e",
"contractIsExcluded": true,
"authExcludedItems": [{
"resourceId": "5f3245bbf5d0dd002f2f0610",
"excludedType": "contractId",
"excludedValue": "5f326eb01bcaeb00347b8eac"
}],
"validContractIds": [
"5f326e6beaa800002e8f50f0",
"5f334e901bcaeb00347b8eae"
]
},
{
"version": "0.0.5",
"versionId": "0f62f036dfdee9f71895283364d4864e",
"contractIsExcluded": false,
"authExcludedItems": [],
"validContractIds": [
"5f326eb01bcaeb00347b8eac",
"5f334e901bcaeb00347b8eae"
]
},
{
"version": "0.0.6",
"versionId": "e9ad1b10074c94933d39854a36ae70c6",
"contractIsExcluded": false,
"authExcludedItems": [],
"validContractIds": [
"5f326e6beaa800002e8f50f0",
"5f326eb01bcaeb00347b8eac",
"5f334e901bcaeb00347b8eae"
]
}
]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44