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