add linter, update swagger doc
This commit is contained in:
1 parent
c4a34c6cd2
commit
091f3ed06e
25 files changed
+1893
-115
No files matched your search
+13
-13
@@ -12,7 +12,7 @@ const (
|
||||
)
|
||||
|
||||
type System struct {
|
||||
TableName string `sql:"system_service.system" json:"-"`
|
||||
tableName string `pg:"system_service.system" json:"-"` //nolint
|
||||
Id int32
|
||||
Name string `valid:"required~Required"`
|
||||
Description string
|
||||
@@ -21,47 +21,47 @@ type System struct {
|
||||
}
|
||||
|
||||
type Domain struct {
|
||||
TableName string `sql:"system_service.domain" json:"-"`
|
||||
Id int32
|
||||
tableName string `pg:"system_service.domain" json:"-"` //nolint
|
||||
Name string `valid:"required~Required"`
|
||||
Description string
|
||||
Id int32
|
||||
SystemId int32
|
||||
Description string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type Service struct {
|
||||
TableName string `sql:"system_service.service" json:"-"`
|
||||
tableName string `pg:"system_service.service" json:"-"` //nolint
|
||||
Id int32
|
||||
DomainId int32 `valid:"required~Required"`
|
||||
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
|
||||
tableName string `pg:"system_service.application" json:"-"` //nolint
|
||||
Name string `valid:"required~Required"`
|
||||
Description string
|
||||
Type string `valid:"required~Required,in(SYSTEM|MOBILE)"`
|
||||
ServiceId int32 `valid:"required~Required"`
|
||||
Id int32
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type Token struct {
|
||||
TableName string `sql:"system_service.token" json:"-"`
|
||||
Token string `valid:"required~Required" sql:"pk:token"`
|
||||
tableName string `pg:"system_service.token" json:"-"` //nolint
|
||||
Token string `valid:"required~Required" pg:"pk:token"`
|
||||
AppId int32 `valid:"required~Required"`
|
||||
ExpireTime int64
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
type AccessList struct {
|
||||
TableName string `sql:"system_service.access_list" json:"-"`
|
||||
AppId int32 `sql:",pk"`
|
||||
Method string `sql:",pk"`
|
||||
tableName string `pg:"system_service.access_list" json:"-"` //nolint
|
||||
Method string `pg:",pk"`
|
||||
AppId int32 `pg:",pk"`
|
||||
Value bool
|
||||
}
|
||||
Reference in new issue
Block a user