RegisterProposal » 이력 » 버전 12
이름없음, 2022/02/21 05:20
| 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 | 12 | 이름없음 | | tokenDuration | String | 리워드 유효기간 | |
| 55 | 9 | 이름없음 | |
| 56 | 1 | 이름없음 | *ProposalResponse* |
| 57 | |||
| 58 | 4 | 이름없음 | | *field* | *type* | *description* | *note* | |
| 59 | 10 | 이름없음 | | command | String | | 값 : registerProposal | |
| 60 | 4 | 이름없음 | | status | int | | | |
| 61 | | purpose | int | | | |
||
| 62 | | maxIssuable | int | | | |
||
| 63 | | category | int[] | | | |
||
| 64 | | disAllowMultiIssue | boolean | | | |
||
| 65 | | condition | String | | | |
||
| 66 | | content | String | | | |
||
| 67 | | createdAt | String | | | |
||
| 68 | | revokedAt | String | | | |
||
| 69 | | updatedAt | String | | | |
||
| 70 | | deposit | String | | | |
||
| 71 | | duration | String | | | |
||
| 72 | | filter | String | | | |
||
| 73 | | notAfter | String | | | |
||
| 74 | | notBefore | String | | | |
||
| 75 | | owner | String | | | |
||
| 76 | | proposalId | String | | | |
||
| 77 | | ticketValidFrom | String | | | |
||
| 78 | | description | String[] | | | |
||
| 79 | | imageurl | String[] | | | |
||
| 80 | | consumePolicy | ProposalConsumePolicy | | | |
||
| 81 | | rewardPolicy | ProposalRewardPolicy | | | |
||
| 82 | 2 | 이름없음 | |
| 83 | 3 | 이름없음 | --- |
| 84 | |||
| 85 | *Request Example* |
||
| 86 | 2 | 이름없음 | |
| 87 | <pre><code class="java"> |
||
| 88 | mutation { |
||
| 89 | registerProposal (param: { |
||
| 90 | did: "NfoPEFaG1adkCpijR85L66" |
||
| 91 | 3 | 이름없음 | command: "registerProposal" |
| 92 | 2 | 이름없음 | status: 0 |
| 93 | purpose:0 |
||
| 94 | maxIssuable:10 |
||
| 95 | imageurl: [ |
||
| 96 | "Icon=https://cdn.myd.world/images/snplab.png", |
||
| 97 | "Banner=https://cdn.myd.world/images/commonwallpaper.png", |
||
| 98 | "Landing=https://cdn.myd.world/images/commonwallpaper.png" |
||
| 99 | ] |
||
| 100 | consumePolicy: { |
||
| 101 | type:2 |
||
| 102 | count:1 |
||
| 103 | maxDataCount:1 |
||
| 104 | } |
||
| 105 | category: [ |
||
| 106 | 3, |
||
| 107 | 3 | 이름없음 | 10, |
| 108 | 2 | 이름없음 | 8 |
| 109 | ] |
||
| 110 | description: [ |
||
| 111 | "CompanyName=NH농협은행", |
||
| 112 | "Title=NH농협은행 컨소시엄", |
||
| 113 | 3 | 이름없음 | "Disclaimer=한글지원 테스트입니다", |
| 114 | "PrivacyPolicy=개인정보 처리방침" |
||
| 115 | ] |
||
| 116 | rewardPolicy: { |
||
| 117 | amount: 10 |
||
| 118 | type:1 |
||
| 119 | } |
||
| 120 | ticketValidFrom: "" |
||
| 121 | condition: "*" |
||
| 122 | owner: "" |
||
| 123 | 2 | 이름없음 | createdAt: "" |
| 124 | 3 | 이름없음 | duration: "3w" |
| 125 | 2 | 이름없음 | notAfter: "2021-06-30T03:22:17.448Z" |
| 126 | updatedAt: "" |
||
| 127 | revokedAt: "" |
||
| 128 | notBefore: "2021-05-15T03:22:17.448Z" |
||
| 129 | filter: "*" |
||
| 130 | disAllowMultiIssue: false |
||
| 131 | 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}" |
||
| 132 | }) { |
||
| 133 | command |
||
| 134 | owner |
||
| 135 | status |
||
| 136 | filter |
||
| 137 | 3 | 이름없음 | purpose |
| 138 | 2 | 이름없음 | maxIssuable |
| 139 | proposalId |
||
| 140 | } |
||
| 141 | } |
||
| 142 | </code></pre> |
||
| 143 | |||
| 144 | *Response Example* |
||
| 145 | |||
| 146 | <pre><code class="java"> |
||
| 147 | { |
||
| 148 | "data": { |
||
| 149 | 3 | 이름없음 | "registerProposal": { |
| 150 | 2 | 이름없음 | "command": "registerProposal", |
| 151 | "owner": "NfoPEFaG1adkCpijR85L66", |
||
| 152 | "status": 1, |
||
| 153 | "filter": "*", |
||
| 154 | 1 | 이름없음 | "purpose": 0, |
| 155 | "maxIssuable": 10, |
||
| 156 | "proposalId": "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X" |
||
| 157 | } |
||
| 158 | } |
||
| 159 | } |
||
| 160 | </code></pre> |
||
| 161 | 7 | 이름없음 | |
| 162 | --- |
||
| 163 | |||
| 164 | *필드 관련하여 자세한 내용은 아래 URL 참고* |
||
| 165 | |||
| 166 | * "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode |