프로젝트

일반

사용자정보

RegisterProposal » 이력 » 버전 4

이름없음, 2021/06/03 06:05

1 1 이름없음
h1. RegisterProposal
2 2 이름없음
3
제안서를 등록합니다.
4
5
*ProposalRegisterRequest*
6
7 4 이름없음
| *field* | *type* | *description* | *note* |
8
| status | int |   |   |
9
| purpose | int |   |   |
10
| maxIssuable | int |   |   |
11
| category | int[] |   |   |
12
| disAllowMultiIssue | boolean |   |   |
13
| condition | String |   | 필수 |
14
| content | String |   |   |
15
| createdAt | String |   |   |
16
| revokedAt | String |   |   |
17
| updatedAt | String |   |   |
18
| deposit | String |   |   |
19
| duration | String |   |   |
20
| filter | String |   |   |
21
| notAfter | String |   |   |
22
| notBefore | String |   |   |
23
| owner | String |   |   |
24
| proposalId | String |   |   |
25
| ticketValidFrom | String |   |   |
26
| description | String[] |   |   |
27
| imageurl | String[] |   |   |
28
| consumePolicy | ProposalConsumePolicy |   |   |
29
| rewardPolicy | ProposalRewardPolicy |   |   |
30 1 이름없음
31
*ProposalResponse*
32
33 4 이름없음
| *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 2 이름없음
58 3 이름없음
---
59
60
*Request Example*
61 2 이름없음
62
<pre><code class="java">
63
mutation {
64
  registerProposal (param: {
65
    did: "NfoPEFaG1adkCpijR85L66" 
66 3 이름없음
    command: "registerProposal" 
67 2 이름없음
        status: 0
68
    purpose:0
69
    maxIssuable:10
70
    imageurl: [
71
      "Icon=https://cdn.myd.world/images/snplab.png",
72
      "Banner=https://cdn.myd.world/images/commonwallpaper.png",
73
      "Landing=https://cdn.myd.world/images/commonwallpaper.png" 
74
    ]
75
    consumePolicy: {
76
      type:2
77
      count:1
78
      maxDataCount:1
79
    }
80
    category: [
81
      3,
82 3 이름없음
      10,
83 2 이름없음
      8
84
    ]
85
    description: [
86
      "CompanyName=NH농협은행",
87
      "Title=NH농협은행 컨소시엄",
88 3 이름없음
      "Disclaimer=한글지원 테스트입니다",
89
      "PrivacyPolicy=개인정보 처리방침" 
90
    ]
91
    rewardPolicy: {
92
      amount: 10
93
      type:1
94
    }
95
    ticketValidFrom: "" 
96
    condition: "*" 
97
    owner: "" 
98 2 이름없음
    createdAt: "" 
99 3 이름없음
    duration: "3w" 
100 2 이름없음
    notAfter: "2021-06-30T03:22:17.448Z" 
101
    updatedAt: "" 
102
    revokedAt: "" 
103
    notBefore: "2021-05-15T03:22:17.448Z" 
104
    filter: "*" 
105
    disAllowMultiIssue: false
106
    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}" 
107
  }) {
108
    command
109
    owner
110
    status
111
    filter
112 3 이름없음
    purpose
113 2 이름없음
    maxIssuable
114
    proposalId
115
  }
116
}
117
</code></pre>
118
119
*Response Example*
120
121
<pre><code class="java">
122
{
123
  "data": {
124 3 이름없음
    "registerProposal": {
125 2 이름없음
      "command": "registerProposal",
126
      "owner": "NfoPEFaG1adkCpijR85L66",
127
      "status": 1,
128
      "filter": "*",
129 1 이름없음
      "purpose": 0,
130
      "maxIssuable": 10,
131
      "proposalId": "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X" 
132
    }
133
  }
134
}
135
</code></pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)