프로젝트

일반

사용자정보

RegisterProposal » 이력 » 버전 3

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

1 1 이름없음
h1. RegisterProposal
2 2 이름없음
3
제안서를 등록합니다.
4
5
*ProposalRegisterRequest*
6
7
| field | type | description | note |
8
|   |   |   |   |
9
|   |   |   |   |
10
|   |   |   |   |
11
|   |   |   |   |
12
|   |   |   |   |
13
|   |   |   |   |
14
|   |   |   |   |
15
|   |   |   |   |
16
17
*ProposalResponse*
18
19
|   |   |   |   |
20
|   |   |   |   |
21
|   |   |   |   |
22
|   |   |   |   |
23
|   |   |   |   |
24
|   |   |   |   |
25
|   |   |   |   |
26
|   |   |   |   |
27
|   |   |   |   |
28
|   |   |   |   |
29
30
---
31
32 3 이름없음
*Request Example*
33 2 이름없음
34
<pre><code class="java">
35
mutation {
36
  registerProposal (param: {
37 3 이름없음
    did: "NfoPEFaG1adkCpijR85L66" 
38
    command: "registerProposal" 
39
        status: 0
40 2 이름없음
    purpose:0
41
    maxIssuable:10
42
    imageurl: [
43
      "Icon=https://cdn.myd.world/images/snplab.png",
44
      "Banner=https://cdn.myd.world/images/commonwallpaper.png",
45 3 이름없음
      "Landing=https://cdn.myd.world/images/commonwallpaper.png" 
46 2 이름없음
    ]
47
    consumePolicy: {
48
      type:2
49
      count:1
50
      maxDataCount:1
51
    }
52
    category: [
53
      3,
54
      10,
55
      8
56
    ]
57
    description: [
58
      "CompanyName=NH농협은행",
59
      "Title=NH농협은행 컨소시엄",
60
      "Disclaimer=한글지원 테스트입니다",
61 3 이름없음
      "PrivacyPolicy=개인정보 처리방침" 
62 2 이름없음
    ]
63
    rewardPolicy: {
64
      amount: 10
65
      type:1
66
    }
67 3 이름없음
    ticketValidFrom: "" 
68
    condition: "*" 
69
    owner: "" 
70
    createdAt: "" 
71
    duration: "3w" 
72
    notAfter: "2021-06-30T03:22:17.448Z" 
73
    updatedAt: "" 
74
    revokedAt: "" 
75
    notBefore: "2021-05-15T03:22:17.448Z" 
76
    filter: "*" 
77 2 이름없음
    disAllowMultiIssue: false
78 3 이름없음
    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}" 
79 2 이름없음
  }) {
80
    command
81
    owner
82
    status
83
    filter
84
    purpose
85
    maxIssuable
86
    proposalId
87
  }
88
}
89
</code></pre>
90
91 3 이름없음
*Response Example*
92 2 이름없음
93
<pre><code class="java">
94
{
95
  "data": {
96
    "registerProposal": {
97
      "command": "registerProposal",
98
      "owner": "NfoPEFaG1adkCpijR85L66",
99
      "status": 1,
100
      "filter": "*",
101
      "purpose": 0,
102
      "maxIssuable": 10,
103 3 이름없음
      "proposalId": "orPxmv15e2oSPufT3Tm5kBTWEuErMeLvdYrXdEnzsHtQMWbVwiq6TGBgczmdbh9UrSXB9YRKTG15w5EzM8Na5XRFaPxaW8LzmckzP8bSLq67pRM7X" 
104 2 이름없음
    }
105
  }
106
}
107
</code></pre>
클립보드 이미지 추가 (최대 크기: 97.7 MB)