ActivateProposal » 이력 » 버전 6
이름없음, 2021/06/07 04:30
| 1 | 1 | 이름없음 | h1. ActivateProposal |
|---|---|---|---|
| 2 | 2 | 이름없음 | |
| 3 | 4 | 이름없음 | * 비활성화 상태인 제안서를 활성화 합니다. |
| 4 | 2 | 이름없음 | |
| 5 | 4 | 이름없음 | *ProposalActivateRequest (param)* |
| 6 | 2 | 이름없음 | |
| 7 | | *field* | *type* | *description* | *note* | |
||
| 8 | | did | String | | | |
||
| 9 | | command | String | | | |
||
| 10 | | proposalId | String | | | |
||
| 11 | | deposit | String | | | |
||
| 12 | |||
| 13 | *ProposalResponse* |
||
| 14 | |||
| 15 | 5 | 이름없음 | | *field* | *type* | *description* | *note* | |
| 16 | | command | String | | | |
||
| 17 | | status | int | | | |
||
| 18 | | purpose | int | | | |
||
| 19 | | maxIssuable | int | | | |
||
| 20 | | category | int[] | | | |
||
| 21 | | disAllowMultiIssue | boolean | | | |
||
| 22 | | condition | String | | | |
||
| 23 | | content | String | | | |
||
| 24 | | createdAt | String | | | |
||
| 25 | | revokedAt | String | | | |
||
| 26 | | updatedAt | String | | | |
||
| 27 | | deposit | String | | | |
||
| 28 | | duration | String | | | |
||
| 29 | | filter | String | | | |
||
| 30 | | notAfter | String | | | |
||
| 31 | | notBefore | String | | | |
||
| 32 | | owner | String | | | |
||
| 33 | | proposalId | String | | | |
||
| 34 | | ticketValidFrom | String | | | |
||
| 35 | | description | String[] | | | |
||
| 36 | | imageurl | String[] | | | |
||
| 37 | | consumePolicy | ProposalConsumePolicy | | | |
||
| 38 | | rewardPolicy | ProposalRewardPolicy | | | |
||
| 39 | |||
| 40 | 6 | 이름없음 | *ProposalConsumePolicy* |
| 41 | |||
| 42 | | *field* | *type* | *description* | *note* | |
||
| 43 | | type | int | 소모 유형 | | |
||
| 44 | | count | int | 소모 허용 횟수 | | |
||
| 45 | | maxDataCount | int | consume시 최대 데이터 소모 수 | optional | |
||
| 46 | | period | String | 소모 주기 | optional | |
||
| 47 | |||
| 48 | *ProposalRewardPolicy* |
||
| 49 | |||
| 50 | | *field* | *type* | *description* | |
||
| 51 | | type | int | 지급 유형 | |
||
| 52 | | amount | int | 티켓의 지급 가능 총량 | |
||
| 53 | |||
| 54 | 2 | 이름없음 | --- |
| 55 | |||
| 56 | *Request Example* |
||
| 57 | |||
| 58 | <pre><code class="java"> |
||
| 59 | mutation { |
||
| 60 | activateProposal (param: { |
||
| 61 | 3 | 이름없음 | did: "NfoPEFaG1adkCpijR85L66" |
| 62 | command: "activateProposal" |
||
| 63 | proposalId: "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X" |
||
| 64 | deposit: "Gjk8x4CWuN9XcZeW3ivXNET4v4AoTTUVrjoNZNrrSPCjUUbM1T2CmZ1BRZ39dgmQcNpvpfcNoGZDMxdY6dTTe2QG5py5PRMe37JPAEwFLdLbejXZKfZb" |
||
| 65 | 2 | 이름없음 | }) { |
| 66 | status |
||
| 67 | proposalId |
||
| 68 | } |
||
| 69 | } |
||
| 70 | </code></pre> |
||
| 71 | |||
| 72 | *Response Example* |
||
| 73 | |||
| 74 | <pre><code class="java"> |
||
| 75 | { |
||
| 76 | "data": { |
||
| 77 | "activateProposal": { |
||
| 78 | "status": 0, |
||
| 79 | 3 | 이름없음 | "proposalId": "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X" |
| 80 | 1 | 이름없음 | } |
| 81 | } |
||
| 82 | } |
||
| 83 | </code></pre> |
||
| 84 | 3 | 이름없음 | |
| 85 | --- |
||
| 86 | |||
| 87 | *필드 관련하여 자세한 내용은 아래 URL 참고* |
||
| 88 | |||
| 89 | * "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode |