ActivateProposal » 이력 » 개정판 6
개정판 5 (이름없음, 2021/06/07 04:28) → 개정판 6/9 (이름없음, 2021/06/07 04:30)
h1. ActivateProposal
* 비활성화 상태인 제안서를 활성화 합니다.
*ProposalActivateRequest (param)*
| *field* | *type* | *description* | *note* |
| did | String | | |
| command | String | | |
| proposalId | String | | |
| deposit | String | | |
*ProposalResponse*
| *field* | *type* | *description* | *note* |
| command | String | | |
| status | int | | |
| purpose | int | | |
| maxIssuable | int | | |
| category | int[] | | |
| disAllowMultiIssue | boolean | | |
| condition | String | | |
| content | String | | |
| createdAt | String | | |
| revokedAt | String | | |
| updatedAt | String | | |
| deposit | String | | |
| duration | String | | |
| filter | String | | |
| notAfter | String | | |
| notBefore | String | | |
| owner | String | | |
| proposalId | String | | |
| ticketValidFrom | String | | |
| description | String[] | | |
| imageurl | String[] | | |
| consumePolicy | ProposalConsumePolicy | | |
| rewardPolicy | ProposalRewardPolicy | | |
*ProposalConsumePolicy*
| *field* | *type* | *description* | *note* |
| type | int | 소모 유형 | |
| count | int | 소모 허용 횟수 | |
| maxDataCount | int | consume시 최대 데이터 소모 수 | optional |
| period | String | 소모 주기 | optional |
*ProposalRewardPolicy*
| *field* | *type* | *description* |
| type | int | 지급 유형 |
| amount | int | 티켓의 지급 가능 총량 |
---
*Request Example*
<pre><code class="java">
mutation {
activateProposal (param: {
did: "NfoPEFaG1adkCpijR85L66"
command: "activateProposal"
proposalId: "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X"
deposit: "Gjk8x4CWuN9XcZeW3ivXNET4v4AoTTUVrjoNZNrrSPCjUUbM1T2CmZ1BRZ39dgmQcNpvpfcNoGZDMxdY6dTTe2QG5py5PRMe37JPAEwFLdLbejXZKfZb"
}) {
status
proposalId
}
}
</code></pre>
*Response Example*
<pre><code class="java">
{
"data": {
"activateProposal": {
"status": 0,
"proposalId": "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X"
}
}
}
</code></pre>
---
*필드 관련하여 자세한 내용은 아래 URL 참고*
* "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode