Skip to content

Commit 15ae9fe

Browse files
publish jdcloud-sdk-go version 1.0.0
1 parent f712afa commit 15ae9fe

55 files changed

Lines changed: 2241 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

services/eid/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# 更新历史 #
2+
API版本:1.0.0
3+
4+
|发布时间|版本号|更新|说明|
5+
|---|---|---|---|
6+
|2020-10-26|1.0.0|初始版本|* API及分组定义基础接口|

services/eid/apis/Device.go

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
// Copyright 2018 JDCLOUD.COM
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+
package apis
18+
19+
import (
20+
"github.com/jdcloud-api/jdcloud-sdk-go/core"
21+
eid "github.com/jdcloud-api/jdcloud-sdk-go/services/eid/models"
22+
)
23+
24+
type DeviceRequest struct {
25+
26+
core.JDCloudRequest
27+
28+
/* (Optional) */
29+
Data *string `json:"data"`
30+
}
31+
32+
/*
33+
*
34+
* @Deprecated, not compatible when mandatory parameters changed
35+
*/
36+
func NewDeviceRequest(
37+
) *DeviceRequest {
38+
39+
return &DeviceRequest{
40+
JDCloudRequest: core.JDCloudRequest{
41+
URL: "/sdk:device",
42+
Method: "POST",
43+
Header: nil,
44+
Version: "v1",
45+
},
46+
}
47+
}
48+
49+
/*
50+
* param data: (Optional)
51+
*/
52+
func NewDeviceRequestWithAllParams(
53+
data *string,
54+
) *DeviceRequest {
55+
56+
return &DeviceRequest{
57+
JDCloudRequest: core.JDCloudRequest{
58+
URL: "/sdk:device",
59+
Method: "POST",
60+
Header: nil,
61+
Version: "v1",
62+
},
63+
Data: data,
64+
}
65+
}
66+
67+
/* This constructor has better compatible ability when API parameters changed */
68+
func NewDeviceRequestWithoutParam() *DeviceRequest {
69+
70+
return &DeviceRequest{
71+
JDCloudRequest: core.JDCloudRequest{
72+
URL: "/sdk:device",
73+
Method: "POST",
74+
Header: nil,
75+
Version: "v1",
76+
},
77+
}
78+
}
79+
80+
/* param data: (Optional) */
81+
func (r *DeviceRequest) SetData(data string) {
82+
r.Data = &data
83+
}
84+
85+
86+
// GetRegionId returns path parameter 'regionId' if exist,
87+
// otherwise return empty string
88+
func (r DeviceRequest) GetRegionId() string {
89+
return ""
90+
}
91+
92+
type DeviceResponse struct {
93+
RequestID string `json:"requestId"`
94+
Error core.ErrorResponse `json:"error"`
95+
Result DeviceResult `json:"result"`
96+
}
97+
98+
type DeviceResult struct {
99+
}

services/eid/apis/EidScore.go

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
// Copyright 2018 JDCLOUD.COM
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+
package apis
18+
19+
import (
20+
"github.com/jdcloud-api/jdcloud-sdk-go/core"
21+
eid "github.com/jdcloud-api/jdcloud-sdk-go/services/eid/models"
22+
)
23+
24+
type EidScoreRequest struct {
25+
26+
core.JDCloudRequest
27+
28+
/* 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加100元素,即最多对100个设备数据进行评分。每个元素的具体结构描述见creditTask。 (Optional) */
29+
Tasks []eid.ScoreTask `json:"tasks"`
30+
}
31+
32+
/*
33+
*
34+
* @Deprecated, not compatible when mandatory parameters changed
35+
*/
36+
func NewEidScoreRequest(
37+
) *EidScoreRequest {
38+
39+
return &EidScoreRequest{
40+
JDCloudRequest: core.JDCloudRequest{
41+
URL: "/eidScore:check",
42+
Method: "POST",
43+
Header: nil,
44+
Version: "v1",
45+
},
46+
}
47+
}
48+
49+
/*
50+
* param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加100元素,即最多对100个设备数据进行评分。每个元素的具体结构描述见creditTask。 (Optional)
51+
*/
52+
func NewEidScoreRequestWithAllParams(
53+
tasks []eid.ScoreTask,
54+
) *EidScoreRequest {
55+
56+
return &EidScoreRequest{
57+
JDCloudRequest: core.JDCloudRequest{
58+
URL: "/eidScore:check",
59+
Method: "POST",
60+
Header: nil,
61+
Version: "v1",
62+
},
63+
Tasks: tasks,
64+
}
65+
}
66+
67+
/* This constructor has better compatible ability when API parameters changed */
68+
func NewEidScoreRequestWithoutParam() *EidScoreRequest {
69+
70+
return &EidScoreRequest{
71+
JDCloudRequest: core.JDCloudRequest{
72+
URL: "/eidScore:check",
73+
Method: "POST",
74+
Header: nil,
75+
Version: "v1",
76+
},
77+
}
78+
}
79+
80+
/* param tasks: 检测任务列表,包含一个或多个元素。每个元素是个结构体,最多可添加100元素,即最多对100个设备数据进行评分。每个元素的具体结构描述见creditTask。(Optional) */
81+
func (r *EidScoreRequest) SetTasks(tasks []eid.ScoreTask) {
82+
r.Tasks = tasks
83+
}
84+
85+
86+
// GetRegionId returns path parameter 'regionId' if exist,
87+
// otherwise return empty string
88+
func (r EidScoreRequest) GetRegionId() string {
89+
return ""
90+
}
91+
92+
type EidScoreResponse struct {
93+
RequestID string `json:"requestId"`
94+
Error core.ErrorResponse `json:"error"`
95+
Result EidScoreResult `json:"result"`
96+
}
97+
98+
type EidScoreResult struct {
99+
Data []eid.EidScoreResult `json:"data"`
100+
}

services/eid/apis/Vttok.go

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
// Copyright 2018 JDCLOUD.COM
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+
package apis
18+
19+
import (
20+
"github.com/jdcloud-api/jdcloud-sdk-go/core"
21+
eid "github.com/jdcloud-api/jdcloud-sdk-go/services/eid/models"
22+
)
23+
24+
type VttokRequest struct {
25+
26+
core.JDCloudRequest
27+
28+
/* (Optional) */
29+
Data *string `json:"data"`
30+
}
31+
32+
/*
33+
*
34+
* @Deprecated, not compatible when mandatory parameters changed
35+
*/
36+
func NewVttokRequest(
37+
) *VttokRequest {
38+
39+
return &VttokRequest{
40+
JDCloudRequest: core.JDCloudRequest{
41+
URL: "/sdk:vttok",
42+
Method: "POST",
43+
Header: nil,
44+
Version: "v1",
45+
},
46+
}
47+
}
48+
49+
/*
50+
* param data: (Optional)
51+
*/
52+
func NewVttokRequestWithAllParams(
53+
data *string,
54+
) *VttokRequest {
55+
56+
return &VttokRequest{
57+
JDCloudRequest: core.JDCloudRequest{
58+
URL: "/sdk:vttok",
59+
Method: "POST",
60+
Header: nil,
61+
Version: "v1",
62+
},
63+
Data: data,
64+
}
65+
}
66+
67+
/* This constructor has better compatible ability when API parameters changed */
68+
func NewVttokRequestWithoutParam() *VttokRequest {
69+
70+
return &VttokRequest{
71+
JDCloudRequest: core.JDCloudRequest{
72+
URL: "/sdk:vttok",
73+
Method: "POST",
74+
Header: nil,
75+
Version: "v1",
76+
},
77+
}
78+
}
79+
80+
/* param data: (Optional) */
81+
func (r *VttokRequest) SetData(data string) {
82+
r.Data = &data
83+
}
84+
85+
86+
// GetRegionId returns path parameter 'regionId' if exist,
87+
// otherwise return empty string
88+
func (r VttokRequest) GetRegionId() string {
89+
return ""
90+
}
91+
92+
type VttokResponse struct {
93+
RequestID string `json:"requestId"`
94+
Error core.ErrorResponse `json:"error"`
95+
Result VttokResult `json:"result"`
96+
}
97+
98+
type VttokResult struct {
99+
}

0 commit comments

Comments
 (0)