프로젝트

일반

사용자정보

RegisterProposal » 이력 » 버전 7

이름없음, 2021/06/04 01:57

1 1 이름없음
h1. RegisterProposal
2 2 이름없음
3
제안서를 등록합니다.
4
5
*ProposalRegisterRequest*
6
7 4 이름없음
| *field* | *type* | *description* | *note* |
8 5 이름없음
| did | String |   |   |
9
| command | String |   |   |
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
*ProposalResponse*
34
35 4 이름없음
| *field* | *type* | *description* | *note* |
36
| command | String |   |   |
37
| status | int |   |   |
38
| purpose | int |   |   |
39
| maxIssuable | int |   |   |
40
| category | int[] |   |   |
41
| disAllowMultiIssue | boolean |   |   |
42
| condition | String |   |   |
43
| content | String |   |   |
44
| createdAt | String |   |   |
45
| revokedAt | String |   |   |
46
| updatedAt | String |   |   |
47
| deposit | String |   |   |
48
| duration | String |   |   |
49
| filter | String |   |   |
50
| notAfter | String |   |   |
51
| notBefore | String |   |   |
52
| owner | String |   |   |
53
| proposalId | String |   |   |
54
| ticketValidFrom | String |   |   |
55
| description | String[] |   |   |
56
| imageurl | String[] |   |   |
57
| consumePolicy | ProposalConsumePolicy |   |   |
58
| rewardPolicy | ProposalRewardPolicy |   |   |
59 2 이름없음
60 3 이름없음
---
61
62
*Request Example*
63 2 이름없음
64
<pre><code class="java">
65
mutation {
66
  registerProposal (param: {
67
    did: "NfoPEFaG1adkCpijR85L66" 
68 3 이름없음
    command: "registerProposal" 
69 2 이름없음
        status: 0
70
    purpose:0
71
    maxIssuable:10
72
    imageurl: [
73
      "Icon=https://cdn.myd.world/images/snplab.png",
74
      "Banner=https://cdn.myd.world/images/commonwallpaper.png",
75
      "Landing=https://cdn.myd.world/images/commonwallpaper.png" 
76
    ]
77
    consumePolicy: {
78
      type:2
79
      count:1
80
      maxDataCount:1
81
    }
82
    category: [
83
      3,
84 3 이름없음
      10,
85 2 이름없음
      8
86
    ]
87
    description: [
88
      "CompanyName=NH농협은행",
89
      "Title=NH농협은행 컨소시엄",
90 3 이름없음
      "Disclaimer=한글지원 테스트입니다",
91
      "PrivacyPolicy=개인정보 처리방침" 
92
    ]
93
    rewardPolicy: {
94
      amount: 10
95
      type:1
96
    }
97
    ticketValidFrom: "" 
98
    condition: "*" 
99
    owner: "" 
100 2 이름없음
    createdAt: "" 
101 3 이름없음
    duration: "3w" 
102 2 이름없음
    notAfter: "2021-06-30T03:22:17.448Z" 
103
    updatedAt: "" 
104
    revokedAt: "" 
105
    notBefore: "2021-05-15T03:22:17.448Z" 
106
    filter: "*" 
107
    disAllowMultiIssue: false
108
    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}" 
109
  }) {
110
    command
111
    owner
112
    status
113
    filter
114 3 이름없음
    purpose
115 2 이름없음
    maxIssuable
116
    proposalId
117
  }
118
}
119
</code></pre>
120
121
*Response Example*
122
123
<pre><code class="java">
124
{
125
  "data": {
126 3 이름없음
    "registerProposal": {
127 2 이름없음
      "command": "registerProposal",
128
      "owner": "NfoPEFaG1adkCpijR85L66",
129
      "status": 1,
130
      "filter": "*",
131 1 이름없음
      "purpose": 0,
132
      "maxIssuable": 10,
133
      "proposalId": "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X" 
134
    }
135
  }
136
}
137
</code></pre>
138 7 이름없음
139
---
140
141
*필드 관련하여 자세한 내용은 아래 URL 참고*
142
143
* "UNO.Cranberry ChainCode":https://snplab.synology.me/confluence/display/CBU/Cranberry+Chaincode
클립보드 이미지 추가 (최대 크기: 97.7 MB)