프로젝트

일반

사용자정보

IssueTicket » 이력 » 개정판 7

개정판 6 (이름없음, 2021/06/10 05:13) → 개정판 7/9 (이름없음, 2021/06/10 05:34)

h1. IssueTicket 

 * 제안서에 대한 티켓을 발급합니다. 

 --- 

 <pre><code class="java"> 
 issueTicket( 
 param: TicketIssueRequest 
 ): TicketResponse 
 </code></pre> 

 *TicketIssueRequest (param)* 

 | *field* | *type* | *description* | *note* | 
 | did | String |   |   | 
 | command | String |   | 값 : issueTicket | 
 | proposalId | String |   |   | 

 *TicketResponse* 

 | *field* | *type* | *description* | *note* | 
 | command | String |   | 값 : issueTicket | 
 | status | String |   |   | 
 | ticketId | String |   |   | 
 | expiredAt | String |   |   | 
 | createdAt | String |   |   | 
 | updatedAt | String |   |   | 
 | proposal | Proposal |   |   | 

 *Proposal* 

 | *field* | *type* | *description* | *note* | 
 | command | String |   |   | 
 | status | int |   |   | 
 | purpose | int |   |   | 
 | maxIssuable | int |   |   | 
 | category | int[] |   |   | 
 | disAllowMultiIssue | boolean |   |   | 
 | condition | String |   |   | 
 | content | String |   |   | 
 | createdAt | String |   |   | 
 | revokedAt | String |   |   | 
 | updatedAt | String |   |   | 
 | deposit | String |   |   | 
 | duration | String |   |   | 
 | filter | String |   |   | 
 | notAfter | String |   |   | 
 | notBefore | String |   |   | 
 | owner | String |   |   | 
 | proposalId | String |   |   | 
 | ticketValidFrom | String |   |   | 
 | description | String[] |   |   | 
 | imageurl | String[] |   |   | 
 | consumePolicy | ProposalConsumePolicy |   |   | 
 | rewardPolicy | ProposalRewardPolicy |   |   | 

 *ProposalConsumePolicy* 

 | *field* | *type* | *description* | *note* | 
 | type | int | 소모 유형 |   | 
 | count | int | 소모 허용 횟수 |   | 
 | maxDataCount | int | consume시 최대 데이터 소모 수 | optional | 
 | period | String | 소모 주기 | optional | 

 *ProposalRewardPolicy* 

 | *field* | *type* | *description* | 
 | type | int | 지급 유형 | 
 | amount | int | 티켓의 지급 가능 총량 | 

 --- 

 *Request Example* 

 <pre><code class="java"> 
 mutation { 
   issueTicket (param: { 
     did: "G5rw9qAMbozGxySHkMaztD"  
     command: "issueTicket"  
     proposalId: "orPxmv15e2oSPufT3TkfVmj9XSSnAqPzQirrU6A9yJCJovwkK6k89A1wCFwqWvHzNAvbDDypRgn4YeSVbeZDSS7MTRKEY1VCfypDu1wsFm41k22SK"  
   }) { 
     ticketId 
     proposal { 
       proposalId 
     } 
   } 
 } 
 </code></pre> 

 *Response Example* 

 <pre><code class="java"> 
 { 
   "data": { 
     "issueTicket": { 
       "ticketId": "orPxmv15e2oSPuvTht3fZ2qiSoJ2wqfaJpRd6hRkc59UPjtjmR78C46Xne28pRphq5ssh7kWaa1JvN7yvFkLbVYw2f3gfQFR2awCYQYHAHA5JYLcM", 
       "proposal": { 
         "proposalId": "orPxmv15e2oSPufT3TkfVmj9XSSnAqPzQirrU6A9yJCJovwkK6k89A1wCFwqWvHzNAvbDDypRgn4YeSVbeZDSS7MTRKEY1VCfypDu1wsFm41k22SK"  
       } 
     } 
   } 
 } 
 </code></pre> 

 --- 

 *필드 관련하여 자세한 내용은 아래 URL 참고* 

 * "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode
클립보드 이미지 추가 (최대 크기: 97.7 MB)