프로젝트

일반

사용자정보

GetRewards » 이력 » 버전 7

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

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