IssueTicket » 이력 » 버전 5
이름없음, 2021/06/07 04:33
1 | 1 | 이름없음 | h1. IssueTicket |
---|---|---|---|
2 | 2 | 이름없음 | |
3 | 4 | 이름없음 | * 제안서에 대한 티켓을 발급합니다. |
4 | 2 | 이름없음 | |
5 | 4 | 이름없음 | *TicketIssueRequest (param)* |
6 | 2 | 이름없음 | |
7 | | *field* | *type* | *description* | *note* | |
||
8 | | did | String | | | |
||
9 | | command | String | | | |
||
10 | | proposalId | String | | | |
||
11 | |||
12 | *TicketResponse* |
||
13 | |||
14 | | *field* | *type* | *description* | *note* | |
||
15 | | command | String | | | |
||
16 | | status | String | | | |
||
17 | | ticketId | String | | | |
||
18 | | expiredAt | String | | | |
||
19 | | createdAt | String | | | |
||
20 | | updatedAt | String | | | |
||
21 | 5 | 이름없음 | | proposal | Proposal | | | |
22 | |||
23 | *Proposal* |
||
24 | |||
25 | | *field* | *type* | *description* | *note* | |
||
26 | | command | String | | | |
||
27 | | status | int | | | |
||
28 | | purpose | int | | | |
||
29 | | maxIssuable | int | | | |
||
30 | | category | int[] | | | |
||
31 | | disAllowMultiIssue | boolean | | | |
||
32 | | condition | String | | | |
||
33 | | content | String | | | |
||
34 | | createdAt | String | | | |
||
35 | | revokedAt | String | | | |
||
36 | | updatedAt | String | | | |
||
37 | | deposit | String | | | |
||
38 | | duration | String | | | |
||
39 | | filter | String | | | |
||
40 | | notAfter | String | | | |
||
41 | | notBefore | String | | | |
||
42 | | owner | String | | | |
||
43 | | proposalId | String | | | |
||
44 | | ticketValidFrom | String | | | |
||
45 | | description | String[] | | | |
||
46 | | imageurl | String[] | | | |
||
47 | | consumePolicy | ProposalConsumePolicy | | | |
||
48 | | rewardPolicy | ProposalRewardPolicy | | | |
||
49 | |||
50 | *ProposalConsumePolicy* |
||
51 | |||
52 | | *field* | *type* | *description* | *note* | |
||
53 | | type | int | 소모 유형 | | |
||
54 | | count | int | 소모 허용 횟수 | | |
||
55 | | maxDataCount | int | consume시 최대 데이터 소모 수 | optional | |
||
56 | | period | String | 소모 주기 | optional | |
||
57 | |||
58 | *ProposalRewardPolicy* |
||
59 | |||
60 | | *field* | *type* | *description* | |
||
61 | | type | int | 지급 유형 | |
||
62 | | amount | int | 티켓의 지급 가능 총량 | |
||
63 | 2 | 이름없음 | |
64 | --- |
||
65 | |||
66 | *Request Example* |
||
67 | |||
68 | <pre><code class="java"> |
||
69 | mutation { |
||
70 | issueTicket (param: { |
||
71 | 3 | 이름없음 | did: "G5rw9qAMbozGxySHkMaztD" |
72 | command: "issueTicket" |
||
73 | proposalId: "orPxmv15e2oSPufT3TkfVmj9XSSnAqPzQirrU6A9yJCJovwkK6k89A1wCFwqWvHzNAvbDDypRgn4YeSVbeZDSS7MTRKEY1VCfypDu1wsFm41k22SK" |
||
74 | 2 | 이름없음 | }) { |
75 | ticketId |
||
76 | proposal { |
||
77 | proposalId |
||
78 | } |
||
79 | } |
||
80 | } |
||
81 | </code></pre> |
||
82 | |||
83 | *Response Example* |
||
84 | |||
85 | <pre><code class="java"> |
||
86 | { |
||
87 | "data": { |
||
88 | "issueTicket": { |
||
89 | "ticketId": "orPxmv15e2oSPuvTht3fZ2qiSoJ2wqfaJpRd6hRkc59UPjtjmR78C46Xne28pRphq5ssh7kWaa1JvN7yvFkLbVYw2f3gfQFR2awCYQYHAHA5JYLcM", |
||
90 | "proposal": { |
||
91 | 3 | 이름없음 | "proposalId": "orPxmv15e2oSPufT3TkfVmj9XSSnAqPzQirrU6A9yJCJovwkK6k89A1wCFwqWvHzNAvbDDypRgn4YeSVbeZDSS7MTRKEY1VCfypDu1wsFm41k22SK" |
92 | 2 | 이름없음 | } |
93 | 1 | 이름없음 | } |
94 | } |
||
95 | } |
||
96 | </code></pre> |
||
97 | 3 | 이름없음 | |
98 | --- |
||
99 | |||
100 | *필드 관련하여 자세한 내용은 아래 URL 참고* |
||
101 | |||
102 | * "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode |