프로젝트

일반

사용자정보

RegisterProposal » 이력 » 버전 10

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

1 1 이름없음
h1. RegisterProposal
2 2 이름없음
3 8 이름없음
* 제안서를 등록합니다.
4 2 이름없음
5 8 이름없음
*ProposalRegisterRequest (param)*
6 2 이름없음
7 4 이름없음
| *field* | *type* | *description* | *note* |
8 5 이름없음
| did | String |   |   |
9 10 이름없음
| command | String |   | 값 : registerProposal |
10 4 이름없음
| status | int |   |   |
11
| purpose | int |   |   |
12
| maxIssuable | int |   |   |
13
| category | int[] |   |   |
14
| disAllowMultiIssue | boolean |   |   |
15
| condition | String |   | 필수 |
16 6 이름없음
| content | String |   | Escape 처리 필요 |
17 4 이름없음
| createdAt | String |   |   |
18
| revokedAt | String |   |   |
19
| updatedAt | String |   |   |
20
| deposit | String |   |   |
21
| duration | String |   |   |
22
| filter | String |   |   |
23
| notAfter | String |   |   |
24
| notBefore | String |   |   |
25
| owner | String |   |   |
26
| proposalId | String |   |   |
27
| ticketValidFrom | String |   |   |
28
| description | String[] |   |   |
29
| imageurl | String[] |   |   |
30
| consumePolicy | ProposalConsumePolicy |   |   |
31
| rewardPolicy | ProposalRewardPolicy |   |   |
32 1 이름없음
33 9 이름없음
*ProposalConsumePolicy*
34
35
| *field* | *type* | *description* | *note* |
36
| type | int | 소모 유형 |   |
37
| count | int | 소모 허용 횟수 |   |
38
| maxDataCount | int | consume시 최대 데이터 소모 수 | optional |
39
| period | String | 소모 주기 | optional |
40
41
*ProposalRewardPolicy*
42
43
| *field* | *type* | *description* |
44
| type | int | 지급 유형 |
45
| amount | int | 티켓의 지급 가능 총량 |
46
47 1 이름없음
*ProposalResponse*
48
49 4 이름없음
| *field* | *type* | *description* | *note* |
50 10 이름없음
| command | String |   | 값 : registerProposal |
51 4 이름없음
| status | int |   |   |
52
| purpose | int |   |   |
53
| maxIssuable | int |   |   |
54
| category | int[] |   |   |
55
| disAllowMultiIssue | boolean |   |   |
56
| condition | String |   |   |
57
| content | String |   |   |
58
| createdAt | String |   |   |
59
| revokedAt | String |   |   |
60
| updatedAt | String |   |   |
61
| deposit | String |   |   |
62
| duration | String |   |   |
63
| filter | String |   |   |
64
| notAfter | String |   |   |
65
| notBefore | String |   |   |
66
| owner | String |   |   |
67
| proposalId | String |   |   |
68
| ticketValidFrom | String |   |   |
69
| description | String[] |   |   |
70
| imageurl | String[] |   |   |
71
| consumePolicy | ProposalConsumePolicy |   |   |
72
| rewardPolicy | ProposalRewardPolicy |   |   |
73 2 이름없음
74 3 이름없음
---
75
76
*Request Example*
77 2 이름없음
78
<pre><code class="java">
79
mutation {
80
  registerProposal (param: {
81
    did: "NfoPEFaG1adkCpijR85L66" 
82 3 이름없음
    command: "registerProposal" 
83 2 이름없음
        status: 0
84
    purpose:0
85
    maxIssuable:10
86
    imageurl: [
87
      "Icon=https://cdn.myd.world/images/snplab.png",
88
      "Banner=https://cdn.myd.world/images/commonwallpaper.png",
89
      "Landing=https://cdn.myd.world/images/commonwallpaper.png" 
90
    ]
91
    consumePolicy: {
92
      type:2
93
      count:1
94
      maxDataCount:1
95
    }
96
    category: [
97
      3,
98 3 이름없음
      10,
99 2 이름없음
      8
100
    ]
101
    description: [
102
      "CompanyName=NH농협은행",
103
      "Title=NH농협은행 컨소시엄",
104 3 이름없음
      "Disclaimer=한글지원 테스트입니다",
105
      "PrivacyPolicy=개인정보 처리방침" 
106
    ]
107
    rewardPolicy: {
108
      amount: 10
109
      type:1
110
    }
111
    ticketValidFrom: "" 
112
    condition: "*" 
113
    owner: "" 
114 2 이름없음
    createdAt: "" 
115 3 이름없음
    duration: "3w" 
116 2 이름없음
    notAfter: "2021-06-30T03:22:17.448Z" 
117
    updatedAt: "" 
118
    revokedAt: "" 
119
    notBefore: "2021-05-15T03:22:17.448Z" 
120
    filter: "*" 
121
    disAllowMultiIssue: false
122
    content: "{\r\n\"Advertisement\":{\r\n\"Title\":\"\uAC04\uD3B8\uACB0\uC81C\uC774\uC6A9\uACE0\uAC1D\uB2D8\uC744\uC704\uD55C\uC785\uCD9C\uC2DD\uD2B9\uD654\uC0C1\uD488\",\r\n\"Banner\":\"https:\/\/test.snplab.io\/ad_sample\/test004.png\",\r\n\"Landing\":\"https:\/\/test.snplab.io\/ad_sample\/test004.html\",\r\n\"Disclaimer\":\"https:\/\/test.snplab.io\/ad_sample\/Disclaimer_004.txt\",\r\n\"MoreInfo\":\"https:\/\/www.nhcapital.co.kr\/home\/homemain.nh\"\r\n},\r\n\"Target\":\"\\\"Name\\\":\\\"order-month\\\",\\\"Property\\\":\\\"Order.orderDate\\\",\\\"BinType\\\":\\\"RANGE\\\",\\\"Bins\\\":[[\\\"2020-01-01T00:00:00+09:00\\\",\\\"2020-04-01T00:00:00+09:00\\\"],[\\\"2020-04-01T00:00:00+09:00\\\",\\\"2020-07-01T00:00:00+09:00\\\"],[\\\"2020-07-01T00:00:00+09:00\\\",\\\"2020-10-01T00:00:00+09:00\\\"],[\\\"2020-09-01T00:00:00+09:00\\\",\\\"2020-12-01T00:00:00+09:00\\\"]]\",\r\n\"LdpConfig\":{\r\n\"PrivacyBudget\":4,\r\n\"Formula\":1\r\n}\r\n}" 
123
  }) {
124
    command
125
    owner
126
    status
127
    filter
128 3 이름없음
    purpose
129 2 이름없음
    maxIssuable
130
    proposalId
131
  }
132
}
133
</code></pre>
134
135
*Response Example*
136
137
<pre><code class="java">
138
{
139
  "data": {
140 3 이름없음
    "registerProposal": {
141 2 이름없음
      "command": "registerProposal",
142
      "owner": "NfoPEFaG1adkCpijR85L66",
143
      "status": 1,
144
      "filter": "*",
145 1 이름없음
      "purpose": 0,
146
      "maxIssuable": 10,
147
      "proposalId": "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X" 
148
    }
149
  }
150
}
151
</code></pre>
152 7 이름없음
153
---
154
155
*필드 관련하여 자세한 내용은 아래 URL 참고*
156
157
* "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode
클립보드 이미지 추가 (최대 크기: 97.7 MB)