프로젝트

일반

사용자정보

GetRewards » 이력 » 버전 8

이름없음, 2021/06/10 05:29

1 5 이름없음
h2(#wiki-id-LdpServerStatisticsResolver-getStatisticsList). *GetRewards*
2 1 이름없음
3 4 이름없음
* user, admin, b2b의 모든 리워드 목록을 조회합니다.
4 1 이름없음
5 7 이름없음
<pre><code class="java">
6
getRewards(
7
param: RewardListRequest
8
): RewardListResponse
9
</code></pre>
10
11 1 이름없음
*RewardListRequest(param)*
12
13 2 이름없음
|_. field |_. type |_. description |_. note |
14 1 이름없음
| did | String | 사용자 did |   |
15 6 이름없음
| command | String | 요청에대한 Command 종류 | 값: list |
16 1 이름없음
| index | String |   |   |
17
| value | String |   |   |
18
| subValue | String |   |   |
19
20 2 이름없음
p(wiki-class-auto-cursor-target). *RewardListResponse*
21 1 이름없음
22 2 이름없음
|_. field |_. type |_. description |_. note |
23 6 이름없음
| command | String |   | 값: list |
24 1 이름없음
| rewards | [Reward] | Resward 리스트 |   |
25
26
*Reward*
27
28 2 이름없음
|_. field |_. type |_. description |_. note |
29 1 이름없음
| amount | Int! |   |   |
30
| nounce | Int! |   |   |
31
| owner | String |   |   |
32
| spent | Boolean! |   |   |
33
| tokenId | String |   |   |
34
35
---
36
37
*RequestExample*
38
39 2 이름없음
<pre><code class="c">
40
Query {
41
getRewards(param :{
42
        command :"list" 
43
        did : "WbnSxRD2Ys1N7aY2CVDAGN" 
44
        index : "OwnerAndStatus" 
45
        value :"WbnSxRD2Ys1N7aY2CVDAGN" 
46
        subValue : "false" 
47
    }) {
48
        rewards {
49
            amount
50
            nonce
51
            owner
52
            spent
53
            tokenId
54
        }
55
    }
56
}
57 1 이름없음
}
58
</code></pre>
59
60
*ResponseExample*
61
62
<pre><code class="java">
63
 {
64
     "data": {
65
         "getRewards": {
66
             "rewards": [{
67
                 "owner": "WbnSxRD2Ys1N7aY2CVDAGN",
68
                 "amount": 100,
69
                 "tokenId": "Gjk8x4CWuN9XcZeW3ivXNERL9qJb48YCQGY8uucJLeot1HW9tUjWStHXrPb8iwttEpsEaDbXZt5gXCK71kwcPK2dvasLKH7LqgRLzZ4pMC7nEj9XsLej",
70
                 "spent": false,
71
                 "nonce": 0
72
             }]
73
         }
74
     }
75
 }
76
</code></pre>
77 3 이름없음
78
---
79
80
*필드 관련하여 자세한 내용은 아래 URL 참고*
81
82
* "UNO.Cranberry Benefit ChainCode":https://snplab.synology.me/confluence/display/CBU/Benefit+Chaincode
클립보드 이미지 추가 (최대 크기: 97.7 MB)