프로젝트

일반

사용자정보

ActivateProposal » 이력 » 버전 9

이름없음, 2022/02/21 05:21

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 9 이름없음
| tokenDuration | String | 리워드 유효기간 |
60 6 이름없음
61 2 이름없음
---
62
63
*Request Example*
64
65
<pre><code class="java">
66
mutation {
67
  activateProposal (param: {
68 3 이름없음
    did: "NfoPEFaG1adkCpijR85L66" 
69
    command: "activateProposal" 
70
    proposalId: "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X" 
71
    deposit: "Gjk8x4CWuN9XcZeW3ivXNET4v4AoTTUVrjoNZNrrSPCjUUbM1T2CmZ1BRZ39dgmQcNpvpfcNoGZDMxdY6dTTe2QG5py5PRMe37JPAEwFLdLbejXZKfZb" 
72 2 이름없음
  }) {
73
    status
74
    proposalId
75
  }
76
}
77
</code></pre>
78
79
*Response Example*
80
81
<pre><code class="java">
82
{
83
  "data": {
84
    "activateProposal": {
85
      "status": 0,
86 3 이름없음
      "proposalId": "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X" 
87 1 이름없음
    }
88
  }
89
}
90
</code></pre>
91 3 이름없음
92
---
93
94
*필드 관련하여 자세한 내용은 아래 URL 참고*
95
96
* "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode
클립보드 이미지 추가 (최대 크기: 97.7 MB)