프로젝트

일반

사용자정보

GetProposals » 이력 » 버전 8

이름없음, 2021/06/03 05:14

1 1 이름없음
h1. GetProposals
2 2 이름없음
3
신규 등록 포함 변경된(활성화, 폐기) 제안서를 조회합니다.
4
5 3 이름없음
*ProposalListRequest*
6
7 4 이름없음
| *field* | *field* | *description* |
8
| did | String |   |
9
| command | String |   |
10
| lowerBound | String | 조회 범위(시작) |
11
| upperBound | String | 조회 범위(끝) |
12
| index | String | 목록 조회 기준(UpdatedAt 만 가능) |
13
14
*ProposalListResponse*
15
16
| *field* | *type* | *description* |
17
| command | String |   |
18 5 이름없음
| proposals | List<ProposalBase> |   |
19
20
*ProposalBase*
21
22
| *field* | *type* | *description* |
23
| status | int |   |
24
| purpose | int |   |
25
| maxIssuable | int |   |
26
| category | int[] |   |
27
| disAllowMultiIssue | boolean |   |
28
| condition | String |   |
29
| content | String |   |
30
| createdAt | String |   |
31
| revokedAt | String |   |
32
| updatedAt | String |   |
33
| deposit | String |   |
34
| duration | String |   |
35
| filter | String |   |
36
| notAfter | String |   |
37
| notBefore | String |   |
38
| owner | String |   |
39
| proposalId | String |   |
40
| ticketValidFrom | String |   |
41
| description | String[] |   |
42
| imageurl | String[] |   |
43
| consumePolicy | ProposalConsumePolicy |   |
44
| rewardPolicy | ProposalRewardPolicy |   |
45
46
*ProposalConsumePolicy*
47
48
| *field* | *type* | *description* |
49
| type | int |   |
50
| count | int |   |
51
| maxDataCount | int |   |
52
53
*ProposalRewardPolicy*
54
55
| *field* | *type* | *description* |
56
| type | int |   |
57
| amount | int |   |
58 6 이름없음
59 7 이름없음
*Request Example*
60
61
<pre><code class="java">
62
query {
63
  getProposals(param: {
64
    command: "listProposal"
65
    index:"UpdatedAt"
66
    lowerBound: "2021-06-02T14:40:23+09:00"
67
    upperBound: "2021-06-03T00:36:12.148Z"
68
    did: "G5rw9qAMbozGxySHkMaztD"
69
  }) {
70
    proposals {
71
      condition
72
      proposalId
73
      purpose
74
      consumePolicy {
75
        count
76
        maxDataCount
77
        type
78
      }
79
      rewardPolicy {
80
        amount
81
        type
82
      }
83
    }
84
  }
85
}
86
</code></pre>
87
88
*Response Example*
89
90
<pre><code class="java">
91
{
92
  "data": {
93
    "getProposals": {
94
      "proposals": [
95
        {
96
          "condition": "*",
97
          "proposalId": "orPxmv15e2oSPufT3Tm5ky1rnh4Bh1spR2NVefDnkGCAX6AnBap9UQ3k5QiSU6h5rgjv6ZSwZ5kKrTayqBZ9AYSeRX2pRSaSjLsbgtJ6aaEawfz8b",
98
          "purpose": 1000,
99
          "consumePolicy": {
100
            "count": 1,
101
            "maxDataCount": 0,
102
            "type": 2
103
          },
104
          "rewardPolicy": {
105
            "amount": 1000,
106
            "type": 1
107
          }
108
        }
109
      ]
110
    }
111
  }
112
}
113
</code></pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)