|
@@ -8,6 +8,7 @@ import ( |
|
@@ -8,6 +8,7 @@ import ( |
|
8
|
"time"
|
8
|
"time"
|
|
9
|
|
9
|
|
|
10
|
"github.com/dgrijalva/jwt-go"
|
10
|
"github.com/dgrijalva/jwt-go"
|
|
|
|
11
|
+ "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/constant"
|
|
11
|
)
|
12
|
)
|
|
12
|
|
13
|
|
|
13
|
type FieldName struct {
|
14
|
type FieldName struct {
|
|
@@ -31,9 +32,9 @@ type Client struct { |
|
@@ -31,9 +32,9 @@ type Client struct { |
|
31
|
|
32
|
|
|
32
|
func NewClient() *Client {
|
33
|
func NewClient() *Client {
|
|
33
|
return &Client{
|
34
|
return &Client{
|
|
34
|
- Host: "http://character-library-metadata-bastion-test.fjmaimaimai.com",
|
|
|
|
35
|
- AppSecret: "3Oo4dG64X0",
|
|
|
|
36
|
- AppKey: "GnAmG4jybB",
|
35
|
+ Host: constant.PUSH_DATA_HOST,
|
|
|
|
36
|
+ AppSecret: constant.PUSH_DATA_APPSECRET,
|
|
|
|
37
|
+ AppKey: constant.PUSH_DATA_APPKEY,
|
|
37
|
}
|
38
|
}
|
|
38
|
}
|
39
|
}
|
|
39
|
|
40
|
|
|
@@ -94,6 +95,7 @@ type ReqSearchTable struct { |
|
@@ -94,6 +95,7 @@ type ReqSearchTable struct { |
|
94
|
// SearchTable 查询应用数据表
|
95
|
// SearchTable 查询应用数据表
|
|
95
|
func (c *Client) SearchTable(name string) {
|
96
|
func (c *Client) SearchTable(name string) {
|
|
96
|
apiUrl := `/api/app-table-file/list`
|
97
|
apiUrl := `/api/app-table-file/list`
|
|
|
|
98
|
+ //TODO
|
|
97
|
_ = apiUrl
|
99
|
_ = apiUrl
|
|
98
|
}
|
100
|
}
|
|
99
|
|
101
|
|
|
@@ -106,5 +108,6 @@ type ReqCreateTable struct { |
|
@@ -106,5 +108,6 @@ type ReqCreateTable struct { |
|
106
|
// CreateTable 创建应用表
|
108
|
// CreateTable 创建应用表
|
|
107
|
func (c *Client) CreateTable() {
|
109
|
func (c *Client) CreateTable() {
|
|
108
|
apiUrl := `/api/app-table-file/create`
|
110
|
apiUrl := `/api/app-table-file/create`
|
|
|
|
111
|
+ //TODO
|
|
109
|
_ = apiUrl
|
112
|
_ = apiUrl
|
|
110
|
} |
113
|
} |