프로젝트

일반

사용자정보

GetRewards » 이력 » 개정판 2

개정판 1 (이름없음, 2021/06/03 07:05) → 개정판 2/10 (이름없음, 2021/06/03 07:23)

h2(#wiki-id-LdpServerStatisticsResolver-getStatisticsList). h2(#LdpServerStatisticsResolver-getStatisticsList). *getRewards* 

 * user, admin, b2b의 모든 리워드 목록을 조회합니다  

 *RewardListRequest(param)* 

 |_. field 
  |_. type 
  |_. description 
  |_. note 
  | 
 | did | String | 사용자 did |   | 
 | command | String | 요청에대한 Command 종류 |   | 
 | index | String |   |   | 
 | value | String |   |   | 
 | subValue | String |   |   | 

 p(wiki-class-auto-cursor-target). p(auto-cursor-target). *RewardListResponse* 

 |_. field 
  |_. type 
  |_. description 
  |_. note 
  | 
 | command | String |   |   | 
 | rewards | [Reward] | Resward 리스트 |   | 

 *Reward* 

 |_. field 
  |_. type 
  |_. description 
  |_. note 
  | 
 | amount | Int! |   |   | 
 | nounce | Int! |   |   | 
 | owner | String |   |   | 
 | spent | Boolean! |   |   | 
 | tokenId | String |   |   | 

 --- 

 *RequestExample* 

 <pre><code class="c"> 
 Query { 
 class="java"> 
  getRewards(param :{ 
         
		 command :"list"  
         
		 did : "WbnSxRD2Ys1N7aY2CVDAGN"  
         
		 index : "OwnerAndStatus"  
         
		 value :"WbnSxRD2Ys1N7aY2CVDAGN"  
         
		 subValue : "false"  
     
	 }) { 
         
		 rewards { 
             
			 amount 
             
			 nonce 
             
			 owner 
             
			 spent 
             
			 tokenId 
         
		 } 
     } 
 
	 } 
 } 
 </code></pre> 

 *ResponseExample* 

 <pre><code class="java"> 
  { 
      "data": { 
          "getRewards": { 
              "rewards": [{ 
                  "owner": "WbnSxRD2Ys1N7aY2CVDAGN", 
                  "amount": 100, 
                  "tokenId": "Gjk8x4CWuN9XcZeW3ivXNERL9qJb48YCQGY8uucJLeot1HW9tUjWStHXrPb8iwttEpsEaDbXZt5gXCK71kwcPK2dvasLKH7LqgRLzZ4pMC7nEj9XsLej", 
                  "spent": false, 
                  "nonce": 0 
              }] 
          } 
      } 
  } 
 </code></pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)