GetProposals » 이력 » 버전 9
이름없음, 2021/06/03 05:21
1 | 1 | 이름없음 | h1. GetProposals |
---|---|---|---|
2 | 2 | 이름없음 | |
3 | 신규 등록 포함 변경된(활성화, 폐기) 제안서를 조회합니다. |
||
4 | |||
5 | 3 | 이름없음 | *ProposalListRequest* |
6 | |||
7 | 4 | 이름없음 | | *field* | *field* | *description* | |
8 | | did | String | | |
||
9 | | command | String | | |
||
10 | | lowerBound | String | 조회 범위(시작) | |
||
11 | | upperBound | String | 조회 범위(끝) | |
||
12 | | index | String | 목록 조회 기준(UpdatedAt 만 가능) | |
||
13 | |||
14 | *ProposalListResponse* |
||
15 | |||
16 | | *field* | *type* | *description* | |
||
17 | | command | String | | |
||
18 | 5 | 이름없음 | | proposals | List<ProposalBase> | | |
19 | |||
20 | *ProposalBase* |
||
21 | |||
22 | | *field* | *type* | *description* | |
||
23 | | 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 | *ProposalConsumePolicy* |
||
47 | |||
48 | | *field* | *type* | *description* | |
||
49 | | type | int | | |
||
50 | | count | int | | |
||
51 | | maxDataCount | int | | |
||
52 | |||
53 | *ProposalRewardPolicy* |
||
54 | |||
55 | | *field* | *type* | *description* | |
||
56 | | type | int | | |
||
57 | | amount | int | | |
||
58 | 6 | 이름없음 | |
59 | 9 | 이름없음 | --- |
60 | |||
61 | 7 | 이름없음 | *Request Example* |
62 | |||
63 | <pre><code class="java"> |
||
64 | 1 | 이름없음 | query { |
65 | getProposals(param: { |
||
66 | 9 | 이름없음 | command: "listProposal" |
67 | index:"UpdatedAt" |
||
68 | lowerBound: "2021-06-02T14:40:23+09:00" |
||
69 | upperBound: "2021-06-03T00:36:12.148Z" |
||
70 | did: "G5rw9qAMbozGxySHkMaztD" |
||
71 | 7 | 이름없음 | }) { |
72 | proposals { |
||
73 | condition |
||
74 | proposalId |
||
75 | purpose |
||
76 | consumePolicy { |
||
77 | count |
||
78 | maxDataCount |
||
79 | type |
||
80 | } |
||
81 | rewardPolicy { |
||
82 | amount |
||
83 | type |
||
84 | } |
||
85 | } |
||
86 | } |
||
87 | } |
||
88 | </code></pre> |
||
89 | |||
90 | *Response Example* |
||
91 | |||
92 | <pre><code class="java"> |
||
93 | { |
||
94 | "data": { |
||
95 | "getProposals": { |
||
96 | "proposals": [ |
||
97 | { |
||
98 | "condition": "*", |
||
99 | "proposalId": "orPxmv15e2oSPufT3Tm5ky1rnh4Bh1spR2NVefDnkGCAX6AnBap9UQ3k5QiSU6h5rgjv6ZSwZ5kKrTayqBZ9AYSeRX2pRSaSjLsbgtJ6aaEawfz8b", |
||
100 | "purpose": 1000, |
||
101 | "consumePolicy": { |
||
102 | "count": 1, |
||
103 | "maxDataCount": 0, |
||
104 | "type": 2 |
||
105 | }, |
||
106 | "rewardPolicy": { |
||
107 | "amount": 1000, |
||
108 | "type": 1 |
||
109 | } |
||
110 | } |
||
111 | ] |
||
112 | } |
||
113 | } |
||
114 | } |
||
115 | </code></pre> |