RegisterProposal » 이력 » 버전 11
이름없음, 2021/06/10 05:32
| 1 | 1 | 이름없음 | h1. RegisterProposal |
|---|---|---|---|
| 2 | 2 | 이름없음 | |
| 3 | 8 | 이름없음 | * 제안서를 등록합니다. |
| 4 | 2 | 이름없음 | |
| 5 | 11 | 이름없음 | --- |
| 6 | |||
| 7 | <pre><code class="java"> |
||
| 8 | registerProposal( |
||
| 9 | param: ProposalRegisterRequest |
||
| 10 | ): ProposalResponse |
||
| 11 | </code></pre> |
||
| 12 | |||
| 13 | 8 | 이름없음 | *ProposalRegisterRequest (param)* |
| 14 | 2 | 이름없음 | |
| 15 | 4 | 이름없음 | | *field* | *type* | *description* | *note* | |
| 16 | 5 | 이름없음 | | did | String | | | |
| 17 | 10 | 이름없음 | | command | String | | 값 : registerProposal | |
| 18 | 4 | 이름없음 | | status | int | | | |
| 19 | | purpose | int | | | |
||
| 20 | | maxIssuable | int | | | |
||
| 21 | | category | int[] | | | |
||
| 22 | | disAllowMultiIssue | boolean | | | |
||
| 23 | | condition | String | | 필수 | |
||
| 24 | 6 | 이름없음 | | content | String | | Escape 처리 필요 | |
| 25 | 4 | 이름없음 | | createdAt | String | | | |
| 26 | | revokedAt | String | | | |
||
| 27 | | updatedAt | String | | | |
||
| 28 | | deposit | String | | | |
||
| 29 | | duration | String | | | |
||
| 30 | | filter | String | | | |
||
| 31 | | notAfter | String | | | |
||
| 32 | | notBefore | String | | | |
||
| 33 | | owner | String | | | |
||
| 34 | | proposalId | String | | | |
||
| 35 | | ticketValidFrom | String | | | |
||
| 36 | | description | String[] | | | |
||
| 37 | | imageurl | String[] | | | |
||
| 38 | | consumePolicy | ProposalConsumePolicy | | | |
||
| 39 | | rewardPolicy | ProposalRewardPolicy | | | |
||
| 40 | 1 | 이름없음 | |
| 41 | 9 | 이름없음 | *ProposalConsumePolicy* |
| 42 | |||
| 43 | | *field* | *type* | *description* | *note* | |
||
| 44 | | type | int | 소모 유형 | | |
||
| 45 | | count | int | 소모 허용 횟수 | | |
||
| 46 | | maxDataCount | int | consume시 최대 데이터 소모 수 | optional | |
||
| 47 | | period | String | 소모 주기 | optional | |
||
| 48 | |||
| 49 | *ProposalRewardPolicy* |
||
| 50 | |||
| 51 | | *field* | *type* | *description* | |
||
| 52 | | type | int | 지급 유형 | |
||
| 53 | | amount | int | 티켓의 지급 가능 총량 | |
||
| 54 | |||
| 55 | 1 | 이름없음 | *ProposalResponse* |
| 56 | |||
| 57 | 4 | 이름없음 | | *field* | *type* | *description* | *note* | |
| 58 | 10 | 이름없음 | | command | String | | 값 : registerProposal | |
| 59 | 4 | 이름없음 | | status | int | | | |
| 60 | | purpose | int | | | |
||
| 61 | | maxIssuable | int | | | |
||
| 62 | | category | int[] | | | |
||
| 63 | | disAllowMultiIssue | boolean | | | |
||
| 64 | | condition | String | | | |
||
| 65 | | content | String | | | |
||
| 66 | | createdAt | String | | | |
||
| 67 | | revokedAt | String | | | |
||
| 68 | | updatedAt | String | | | |
||
| 69 | | deposit | String | | | |
||
| 70 | | duration | String | | | |
||
| 71 | | filter | String | | | |
||
| 72 | | notAfter | String | | | |
||
| 73 | | notBefore | String | | | |
||
| 74 | | owner | String | | | |
||
| 75 | | proposalId | String | | | |
||
| 76 | | ticketValidFrom | String | | | |
||
| 77 | | description | String[] | | | |
||
| 78 | | imageurl | String[] | | | |
||
| 79 | | consumePolicy | ProposalConsumePolicy | | | |
||
| 80 | | rewardPolicy | ProposalRewardPolicy | | | |
||
| 81 | 2 | 이름없음 | |
| 82 | 3 | 이름없음 | --- |
| 83 | |||
| 84 | *Request Example* |
||
| 85 | 2 | 이름없음 | |
| 86 | <pre><code class="java"> |
||
| 87 | mutation { |
||
| 88 | registerProposal (param: { |
||
| 89 | did: "NfoPEFaG1adkCpijR85L66" |
||
| 90 | 3 | 이름없음 | command: "registerProposal" |
| 91 | 2 | 이름없음 | status: 0 |
| 92 | purpose:0 |
||
| 93 | maxIssuable:10 |
||
| 94 | imageurl: [ |
||
| 95 | "Icon=https://cdn.myd.world/images/snplab.png", |
||
| 96 | "Banner=https://cdn.myd.world/images/commonwallpaper.png", |
||
| 97 | "Landing=https://cdn.myd.world/images/commonwallpaper.png" |
||
| 98 | ] |
||
| 99 | consumePolicy: { |
||
| 100 | type:2 |
||
| 101 | count:1 |
||
| 102 | maxDataCount:1 |
||
| 103 | } |
||
| 104 | category: [ |
||
| 105 | 3, |
||
| 106 | 3 | 이름없음 | 10, |
| 107 | 2 | 이름없음 | 8 |
| 108 | ] |
||
| 109 | description: [ |
||
| 110 | "CompanyName=NH농협은행", |
||
| 111 | "Title=NH농협은행 컨소시엄", |
||
| 112 | 3 | 이름없음 | "Disclaimer=한글지원 테스트입니다", |
| 113 | "PrivacyPolicy=개인정보 처리방침" |
||
| 114 | ] |
||
| 115 | rewardPolicy: { |
||
| 116 | amount: 10 |
||
| 117 | type:1 |
||
| 118 | } |
||
| 119 | ticketValidFrom: "" |
||
| 120 | condition: "*" |
||
| 121 | owner: "" |
||
| 122 | 2 | 이름없음 | createdAt: "" |
| 123 | 3 | 이름없음 | duration: "3w" |
| 124 | 2 | 이름없음 | notAfter: "2021-06-30T03:22:17.448Z" |
| 125 | updatedAt: "" |
||
| 126 | revokedAt: "" |
||
| 127 | notBefore: "2021-05-15T03:22:17.448Z" |
||
| 128 | filter: "*" |
||
| 129 | disAllowMultiIssue: false |
||
| 130 | content: "{\r\n\"Advertisement\":{\r\n\"Title\":\"\uAC04\uD3B8\uACB0\uC81C\uC774\uC6A9\uACE0\uAC1D\uB2D8\uC744\uC704\uD55C\uC785\uCD9C\uC2DD\uD2B9\uD654\uC0C1\uD488\",\r\n\"Banner\":\"https:\/\/test.snplab.io\/ad_sample\/test004.png\",\r\n\"Landing\":\"https:\/\/test.snplab.io\/ad_sample\/test004.html\",\r\n\"Disclaimer\":\"https:\/\/test.snplab.io\/ad_sample\/Disclaimer_004.txt\",\r\n\"MoreInfo\":\"https:\/\/www.nhcapital.co.kr\/home\/homemain.nh\"\r\n},\r\n\"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\\\"]]\",\r\n\"LdpConfig\":{\r\n\"PrivacyBudget\":4,\r\n\"Formula\":1\r\n}\r\n}" |
||
| 131 | }) { |
||
| 132 | command |
||
| 133 | owner |
||
| 134 | status |
||
| 135 | filter |
||
| 136 | 3 | 이름없음 | purpose |
| 137 | 2 | 이름없음 | maxIssuable |
| 138 | proposalId |
||
| 139 | } |
||
| 140 | } |
||
| 141 | </code></pre> |
||
| 142 | |||
| 143 | *Response Example* |
||
| 144 | |||
| 145 | <pre><code class="java"> |
||
| 146 | { |
||
| 147 | "data": { |
||
| 148 | 3 | 이름없음 | "registerProposal": { |
| 149 | 2 | 이름없음 | "command": "registerProposal", |
| 150 | "owner": "NfoPEFaG1adkCpijR85L66", |
||
| 151 | "status": 1, |
||
| 152 | "filter": "*", |
||
| 153 | 1 | 이름없음 | "purpose": 0, |
| 154 | "maxIssuable": 10, |
||
| 155 | "proposalId": "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X" |
||
| 156 | } |
||
| 157 | } |
||
| 158 | } |
||
| 159 | </code></pre> |
||
| 160 | 7 | 이름없음 | |
| 161 | --- |
||
| 162 | |||
| 163 | *필드 관련하여 자세한 내용은 아래 URL 참고* |
||
| 164 | |||
| 165 | * "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode |