Actions
IssueTicket¶
- 제안서에 대한 티켓을 발급합니다.
issueTicket(
param: TicketIssueRequest
): TicketResponse
TicketIssueRequest (param)
| field | type | description | note |
| did | String | ||
| command | String | 값 : issueTicket | |
| proposalId | String |
TicketResponse
| field | type | description | note |
| command | String | 값 : issueTicket | |
| status | String | ||
| ticketId | String | ||
| expiredAt | String | ||
| createdAt | String | ||
| updatedAt | String | ||
| proposal | Proposal |
Proposal
| field | type | description | note |
| command | String | ||
| status | int | ||
| purpose | int | ||
| maxIssuable | int | ||
| category | int[] | ||
| disAllowMultiIssue | boolean | ||
| condition | String | ||
| content | String | ||
| createdAt | String | ||
| revokedAt | String | ||
| updatedAt | String | ||
| deposit | String | ||
| duration | String | ||
| filter | String | ||
| notAfter | String | ||
| notBefore | String | ||
| owner | String | ||
| proposalId | String | ||
| ticketValidFrom | String | ||
| description | String[] | ||
| imageurl | String[] | ||
| consumePolicy | ProposalConsumePolicy | ||
| rewardPolicy | ProposalRewardPolicy |
ProposalConsumePolicy
| field | type | description | note |
| type | int | 소모 유형 | |
| count | int | 소모 허용 횟수 | |
| maxDataCount | int | consume시 최대 데이터 소모 수 | optional |
| period | String | 소모 주기 | optional |
ProposalRewardPolicy
| field | type | description |
| type | int | 지급 유형 |
| amount | int | 티켓의 지급 가능 총량 |
| tokenDuration | String | 리워드 유효기간 |
Request Example
mutation {
issueTicket(param: {
did: "G5rw9qAMbozGxySHkMaztD"
proposalId: "orPxmv15e2oSPufT3Tm4cNj77RbPJwFiuUhuYM4iSPRNQbgmvyAd84CNLvhzK1ur26STnQELEiLHjbPwagRv1Cgx6mSrannhbUwSdoAie7TH14AuS"
}) {
createdAt
expiredAt
status
ticketId
updatedAt
validAt
owner
}
}
Response Example
{
"data": {
"issueTicket": {
"createdAt": "2021-12-22T18:31:30+09:00",
"expiredAt": "2021-12-22T19:31:30+09:00",
"status": 0,
"ticketId": "orPxmv15e2oSPuvTht43ZH62CYcsQYdof7GQusW1wZiEWKmGpUtz7HAv9NStGYpTGdRVEkMg5FksZP9bcyTa9g44JtZgCnRp9CNXsWKvpSDohbBiS",
"updatedAt": "2021-12-22T18:31:30+09:00",
"validAt": "2021-12-22T18:31:30+09:00",
"owner": "G5rw9qAMbozGxySHkMaztD"
}
}
}
필드 관련하여 자세한 내용은 아래 URL 참고
이름없음이(가) 3년 이상 전에 변경 · 9 revisions