2024-03-26 12:21:52: merge [master:81c5af7538f121910d74b369acc5d0d02259250b];
This commit is contained in:
1 parent
e7ad092001
commit
22a34dbb86
73 files changed
+7649
-1965
No files matched your search
@@ -0,0 +1,7 @@
|
||||
package entity
|
||||
|
||||
type AccessList struct {
|
||||
AppId int
|
||||
Method string
|
||||
Value bool
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Application struct {
|
||||
Id int
|
||||
Name string
|
||||
Description *string
|
||||
ServiceId int
|
||||
Type string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Domain struct {
|
||||
Id int
|
||||
Name string
|
||||
Description *string
|
||||
SystemId int
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
@@ -1,60 +0,0 @@
|
||||
package entity
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
RootAdminApplicationId = 1
|
||||
)
|
||||
|
||||
const (
|
||||
AppTypeSystem = "SYSTEM"
|
||||
AppTypeMobile = "MOBILE"
|
||||
)
|
||||
|
||||
type System struct {
|
||||
TableName string `sql:"system_service.system" json:"-"`
|
||||
Id int32
|
||||
Name string `valid:"required~Required"`
|
||||
Description string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type Domain struct {
|
||||
TableName string `sql:"system_service.domain" json:"-"`
|
||||
Id int32
|
||||
Name string `valid:"required~Required"`
|
||||
Description string
|
||||
SystemId int32
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
TableName string `sql:"system_service.service" json:"-"`
|
||||
Id int32
|
||||
Name string `valid:"required~Required"`
|
||||
Description string
|
||||
DomainId int32 `valid:"required~Required"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type Application struct {
|
||||
TableName string `sql:"system_service.application" json:"-"`
|
||||
Id int32
|
||||
Name string `valid:"required~Required"`
|
||||
Description string
|
||||
Type string `valid:"required~Required,in(SYSTEM|MOBILE)"`
|
||||
ServiceId int32 `valid:"required~Required"`
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type Token struct {
|
||||
TableName string `sql:"system_service.token" json:"-"`
|
||||
Token string `valid:"required~Required" sql:"pk:token"`
|
||||
AppId int32 `valid:"required~Required"`
|
||||
ExpireTime int64
|
||||
CreatedAt time.Time
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
Id int
|
||||
Name string
|
||||
Description *string
|
||||
DomainId int
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package entity
|
||||
|
||||
import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Token struct {
|
||||
Token string
|
||||
AppId int
|
||||
ExpireTime int
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type AuthData struct {
|
||||
SystemId int
|
||||
DomainId int
|
||||
ServiceId int
|
||||
AppId int
|
||||
ExpireTime int
|
||||
CreatedAt time.Time
|
||||
}
|
||||
Reference in new issue
Block a user