프로젝트

일반

사용자정보

RevokeProposal » 이력 » 버전 7

이름없음, 2021/06/10 05:33

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