프로젝트

일반

사용자정보

IssueTicket » 이력 » 버전 7

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

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