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