프로젝트

일반

사용자정보

IssueTicket » 이력 » 버전 1

이름없음, 2024/01/17 12:18

1 1 이름없음
h1. IssueTicket
2
3
* 제안서에 대한 티켓을 발급합니다.
4
5
---
6
7
<pre><code class="java">
8
issueTicket(
9
param: TicketIssueRequest
10
): TicketResponse
11
</code></pre>
12
13
*TicketIssueRequest (param)*
14
15
| *field* | *type* | *description* | *note* |
16
| did | String |   |   |
17
| command | String |   | 값 : issueTicket |
18
| proposalId | String |   |   |
19
20
*TicketResponse*
21
22
| *field* | *type* | *description* | *note* |
23
| command | String |   | 값 : issueTicket |
24
| status | String |   |   |
25
| ticketId | String |   |   |
26
| expiredAt | String |   |   |
27
| createdAt | String |   |   |
28
| updatedAt | String |   |   |
29
| 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
| tokenDuration | String | 리워드 유효기간 |
72
73
---
74
75
*Request Example*
76
77
<pre><code class="java">
78
mutation {
79
  issueTicket(param: {
80
    did: "G5rw9qAMbozGxySHkMaztD" 
81
    proposalId: "orPxmv15e2oSPufT3Tm4cNj77RbPJwFiuUhuYM4iSPRNQbgmvyAd84CNLvhzK1ur26STnQELEiLHjbPwagRv1Cgx6mSrannhbUwSdoAie7TH14AuS" 
82
  }) {
83
    createdAt
84
    expiredAt
85
    status
86
    ticketId
87
    updatedAt
88
    validAt
89
    owner
90
  }
91
}
92
</code></pre>
93
94
*Response Example*
95
96
<pre><code class="java">
97
{
98
  "data": {
99
    "issueTicket": {
100
      "createdAt": "2021-12-22T18:31:30+09:00",
101
      "expiredAt": "2021-12-22T19:31:30+09:00",
102
      "status": 0,
103
      "ticketId": "orPxmv15e2oSPuvTht43ZH62CYcsQYdof7GQusW1wZiEWKmGpUtz7HAv9NStGYpTGdRVEkMg5FksZP9bcyTa9g44JtZgCnRp9CNXsWKvpSDohbBiS",
104
      "updatedAt": "2021-12-22T18:31:30+09:00",
105
      "validAt": "2021-12-22T18:31:30+09:00",
106
      "owner": "G5rw9qAMbozGxySHkMaztD" 
107
    }
108
  }
109
}
110
</code></pre>
111
112
---
113
114
*필드 관련하여 자세한 내용은 아래 URL 참고*
115
116
* "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode
클립보드 이미지 추가 (최대 크기: 97.7 MB)