重构增加模型枚举值定义
This commit is contained in:
@@ -6,6 +6,8 @@ import (
|
||||
"platform/pkg/env"
|
||||
"platform/pkg/logs"
|
||||
"platform/pkg/orm"
|
||||
client2 "platform/web/domains/client"
|
||||
proxy2 "platform/web/domains/proxy"
|
||||
m "platform/web/models"
|
||||
q "platform/web/queries"
|
||||
)
|
||||
@@ -24,13 +26,13 @@ func main() {
|
||||
Version: 1,
|
||||
Name: "7a17e8b4-cdc3-4500-bf16-4a665991a7f6",
|
||||
Host: "110.40.82.248",
|
||||
Type: 2,
|
||||
Type: int32(proxy2.TypeSelfHosted),
|
||||
Secret: "api:123456",
|
||||
}, &m.Proxy{
|
||||
Version: 1,
|
||||
Name: "58e03f38-4cef-429c-8bb8-530142d0a745",
|
||||
Host: "123.6.147.241",
|
||||
Type: 1,
|
||||
Type: int32(proxy2.TypeThirdParty),
|
||||
Secret: "api:123456",
|
||||
})
|
||||
if err != nil {
|
||||
@@ -65,13 +67,13 @@ func main() {
|
||||
GrantClient: true,
|
||||
GrantRefresh: true,
|
||||
GrantPassword: true,
|
||||
Spec: 3,
|
||||
Spec: int32(client2.SpecTrusted),
|
||||
Name: "默认客户端",
|
||||
}, &m.Client{
|
||||
ClientID: "tasks",
|
||||
ClientSecret: string(tasksSecret),
|
||||
GrantClient: true,
|
||||
Spec: 3,
|
||||
Spec: int32(client2.SpecTrusted),
|
||||
Name: "异步任务处理服务",
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user