프로젝트

일반

사용자정보

GetRewards » 이력 » 버전 2

이름없음, 2021/06/03 07:23

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