GetProposals » 이력 » 버전 7
이름없음, 2021/06/03 05:11
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 | 7 | 이름없음 | *Request Example* |
60 | |||
61 | <pre><code class="java"> |
||
62 | query { |
||
63 | getProposals(param: { |
||
64 | command: "listProposal" |
||
65 | index:"UpdatedAt" |
||
66 | lowerBound: "2021-06-02T14:40:23+09:00" |
||
67 | upperBound: "2021-06-03T00:36:12.148Z" |
||
68 | did: "G5rw9qAMbozGxySHkMaztD" |
||
69 | }) { |
||
70 | proposals { |
||
71 | category |
||
72 | condition |
||
73 | content |
||
74 | createdAt |
||
75 | deposit |
||
76 | description |
||
77 | disAllowMultiIssue |
||
78 | duration |
||
79 | filter |
||
80 | imageurl |
||
81 | maxIssuable |
||
82 | notAfter |
||
83 | notBefore |
||
84 | owner |
||
85 | proposalId |
||
86 | purpose |
||
87 | revokedAt |
||
88 | status |
||
89 | ticketValidFrom |
||
90 | updatedAt |
||
91 | consumePolicy { |
||
92 | count |
||
93 | maxDataCount |
||
94 | type |
||
95 | } |
||
96 | rewardPolicy { |
||
97 | amount |
||
98 | type |
||
99 | } |
||
100 | } |
||
101 | } |
||
102 | } |
||
103 | </code></pre> |
||
104 | |||
105 | *Response Example* |
||
106 | |||
107 | <pre><code class="java"> |
||
108 | { |
||
109 | "data": { |
||
110 | "getProposals": { |
||
111 | "proposals": [ |
||
112 | { |
||
113 | "category": [ |
||
114 | 3, |
||
115 | 10, |
||
116 | 8 |
||
117 | ], |
||
118 | "condition": "*", |
||
119 | "content": "{\"Target\":\"\\\"Name\\\": \\\"order-month\\\", \\\"Property\\\": \\\"Order.orderDate\\\", \\\"BinType\\\": \\\"RANGE\\\", \\\"Bins\\\": [ [\\\"2020-01-01T00:00:00+09:00\\\", \\\"2020-04-01T00:00:00+09:00\\\"], [\\\"2020-04-01T00:00:00+09:00\\\", \\\"2020-07-01T00:00:00+09:00\\\"], [\\\"2020-07-01T00:00:00+09:00\\\", \\\"2020-10-01T00:00:00+09:00\\\"], [\\\"2020-09-01T00:00:00+09:00\\\", \\\"2020-12-01T00:00:00+09:00\\\"] ]\",\"Advertisement\":{\"Banner\":\"https://test.snplab.io/ad_sample/test004.png\",\"Title\":\"간편결제 이용 고객님을 위한 입출식 특화상품\",\"Landing\":\"https://test.snplab.io/ad_sample/test004.html\",\"MoreInfo\":\"https://www.nhcapital.co.kr/home/homemain.nh\",\"Disclaimer\":\"https://test.snplab.io/ad_sample/Disclaimer_004.txt\"},\"LdpConfig\":{\"Formula\":1,\"PrivacyBudget\":4}}", |
||
120 | "createdAt": "2021-06-02T23:47:27Z", |
||
121 | "deposit": null, |
||
122 | "description": [ |
||
123 | "CompanyName=NH농협은행", |
||
124 | "Title=NH농협은행 컨소시엄", |
||
125 | "Disclaimer=한글지원 테스트입니다", |
||
126 | "PrivacyPolicy=개인정보 처리방침" |
||
127 | ], |
||
128 | "disAllowMultiIssue": false, |
||
129 | "duration": "3w", |
||
130 | "filter": "*", |
||
131 | "imageurl": [ |
||
132 | "Icon=https://cdn.myd.world/images/snplab.png", |
||
133 | "Banner=https://cdn.myd.world/images/commonwallpaper.png", |
||
134 | "Landing=https://cdn.myd.world/images/commonwallpaper.png" |
||
135 | ], |
||
136 | "maxIssuable": 40000, |
||
137 | "notAfter": "2021-06-10T23:45:57.440Z", |
||
138 | "notBefore": "2021-06-02T23:45:57.440Z", |
||
139 | "owner": "NfoPEFaG1adkCpijR85L66", |
||
140 | "proposalId": "orPxmv15e2oSPufT3Tm5ky1rnh4Bh1spR2NVefDnkGCAX6AnBap9UQ3k5QiSU6h5rgjv6ZSwZ5kKrTayqBZ9AYSeRX2pRSaSjLsbgtJ6aaEawfz8b", |
||
141 | "purpose": 1000, |
||
142 | "revokedAt": null, |
||
143 | "status": 1, |
||
144 | "ticketValidFrom": null, |
||
145 | "updatedAt": "2021-06-02T23:47:27Z", |
||
146 | "consumePolicy": { |
||
147 | "count": 1, |
||
148 | "maxDataCount": 0, |
||
149 | "type": 2 |
||
150 | }, |
||
151 | "rewardPolicy": { |
||
152 | "amount": 1000, |
||
153 | "type": 1 |
||
154 | } |
||
155 | }, |
||
156 | { |
||
157 | "category": [ |
||
158 | 3, |
||
159 | 10, |
||
160 | 8 |
||
161 | ], |
||
162 | "condition": "*", |
||
163 | "content": "{\"Target\":\"\\\"Name\\\": \\\"order-month\\\", \\\"Property\\\": \\\"Order.orderDate\\\", \\\"BinType\\\": \\\"RANGE\\\", \\\"Bins\\\": [ [\\\"2020-01-01T00:00:00+09:00\\\", \\\"2020-04-01T00:00:00+09:00\\\"], [\\\"2020-04-01T00:00:00+09:00\\\", \\\"2020-07-01T00:00:00+09:00\\\"], [\\\"2020-07-01T00:00:00+09:00\\\", \\\"2020-10-01T00:00:00+09:00\\\"], [\\\"2020-09-01T00:00:00+09:00\\\", \\\"2020-12-01T00:00:00+09:00\\\"] ]\",\"Advertisement\":{\"Banner\":\"https://test.snplab.io/ad_sample/test004.png\",\"Title\":\"간편결제 이용 고객님을 위한 입출식 특화상품\",\"Landing\":\"https://test.snplab.io/ad_sample/test004.html\",\"MoreInfo\":\"https://www.nhcapital.co.kr/home/homemain.nh\",\"Disclaimer\":\"https://test.snplab.io/ad_sample/Disclaimer_004.txt\"},\"LdpConfig\":{\"Formula\":1,\"PrivacyBudget\":4}}", |
||
164 | "createdAt": "2021-06-02T23:49:33Z", |
||
165 | "deposit": null, |
||
166 | "description": [ |
||
167 | "CompanyName=NH농협은행", |
||
168 | "Title=NH농협은행 컨소시엄", |
||
169 | "Disclaimer=한글지원 테스트입니다", |
||
170 | "PrivacyPolicy=개인정보 처리방침" |
||
171 | ], |
||
172 | "disAllowMultiIssue": false, |
||
173 | "duration": "3w", |
||
174 | "filter": "*", |
||
175 | "imageurl": [ |
||
176 | "Icon=https://cdn.myd.world/images/snplab.png", |
||
177 | "Banner=https://cdn.myd.world/images/commonwallpaper.png", |
||
178 | "Landing=https://cdn.myd.world/images/commonwallpaper.png" |
||
179 | ], |
||
180 | "maxIssuable": 40000, |
||
181 | "notAfter": "2021-06-10T23:45:57.440Z", |
||
182 | "notBefore": "2021-06-02T23:45:57.440Z", |
||
183 | "owner": "NfoPEFaG1adkCpijR85L66", |
||
184 | "proposalId": "orPxmv15e2oSPufT3TkbZmEzXQg7Xt7q4YyABBFJce5w39SMj2QV4d9inG44xkryd36uAgaXFXDNGn9cXYFXYwPdy4C5135JrRQaZFsgvRAPUt6CG", |
||
185 | "purpose": 1000, |
||
186 | "revokedAt": null, |
||
187 | "status": 1, |
||
188 | "ticketValidFrom": null, |
||
189 | "updatedAt": "2021-06-02T23:49:33Z", |
||
190 | "consumePolicy": { |
||
191 | "count": 1, |
||
192 | "maxDataCount": 0, |
||
193 | "type": 2 |
||
194 | }, |
||
195 | "rewardPolicy": { |
||
196 | "amount": 1000, |
||
197 | "type": 1 |
||
198 | } |
||
199 | } |
||
200 | ] |
||
201 | } |
||
202 | } |
||
203 | } |
||
204 | </code></pre> |