프로젝트

일반

사용자정보

RegisterProposal » 이력 » 개정판 3

개정판 2 (이름없음, 2021/06/03 06:03) → 개정판 3/12 (이름없음, 2021/06/03 06:03)

h1. RegisterProposal 

 제안서를 등록합니다. 

 *ProposalRegisterRequest* 

 | field | type | description | note | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 

 *ProposalResponse* 

 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 
 |   |   |   |   | 

 --- 

 *Request Example* Request Example 

 <pre><code class="java"> 
 mutation { 
   registerProposal (param: { 
     did: "NfoPEFaG1adkCpijR85L66"  
     
     command: "registerProposal"  
         
		 status: 0 
     purpose:0 
     maxIssuable:10 
     imageurl: [ 
       "Icon=https://cdn.myd.world/images/snplab.png", 
       "Banner=https://cdn.myd.world/images/commonwallpaper.png", 
       "Landing=https://cdn.myd.world/images/commonwallpaper.png"  
     
     ] 
     consumePolicy: { 
       type:2 
       count:1 
       maxDataCount:1 
     } 
     category: [ 
       3, 
       10, 
       8 
     ] 
     description: [ 
       "CompanyName=NH농협은행", 
       "Title=NH농협은행 컨소시엄", 
       "Disclaimer=한글지원 테스트입니다", 
       "PrivacyPolicy=개인정보 처리방침"  
     
     ] 
     rewardPolicy: { 
       amount: 10 
       type:1 
     } 
     ticketValidFrom: ""  
     
     condition: "*"  
     
     owner: ""  
     
     createdAt: ""  
     
     duration: "3w"  
     
     notAfter: "2021-06-30T03:22:17.448Z"  
     
     updatedAt: ""  
     
     revokedAt: ""  
     
     notBefore: "2021-05-15T03:22:17.448Z"  
     
     filter: "*"  
     
     disAllowMultiIssue: false 
     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}"  
   
   }) { 
     command 
     owner 
     status 
     filter 
     purpose 
     maxIssuable 
     proposalId 
   } 
 } 
 </code></pre> 

 *Response Example* Response Example 

 <pre><code class="java"> 
 { 
   "data": { 
     "registerProposal": { 
       "command": "registerProposal", 
       "owner": "NfoPEFaG1adkCpijR85L66", 
       "status": 1, 
       "filter": "*", 
       "purpose": 0, 
       "maxIssuable": 10, 
       "proposalId": "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X"  
     
     } 
   } 
 } 
 </code></pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)