MSP-3428 CRUD application_group, service -> application_group
This commit is contained in:
1 parent
7108122102
commit
bef400d0d9
26 files changed
+559
-395
No files matched your search
+12
-12
@@ -5,21 +5,21 @@ import (
|
||||
)
|
||||
|
||||
type Application struct {
|
||||
Id int
|
||||
Name string
|
||||
Description string
|
||||
ServiceId int
|
||||
Type string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
Id int
|
||||
Name string
|
||||
Description string
|
||||
ApplicationGroupId int
|
||||
Type string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type ApplicationCreateUpdateRequest struct {
|
||||
Id int
|
||||
Name string `valid:"required~Required"`
|
||||
Description string
|
||||
ServiceId int `valid:"required~Required"`
|
||||
Type string `valid:"required~Required,in(SYSTEM|MOBILE)"`
|
||||
Id int
|
||||
Name string `valid:"required~Required"`
|
||||
Description string
|
||||
ApplicationGroupId int `valid:"required~Required"`
|
||||
Type string `valid:"required~Required,in(SYSTEM|MOBILE)"`
|
||||
}
|
||||
|
||||
type ApplicationWithTokens struct {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
type ApplicationGroup struct {
|
||||
Id int
|
||||
Name string
|
||||
Description string
|
||||
@@ -13,14 +13,14 @@ type Service struct {
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type ServiceCreateUpdateRequest struct {
|
||||
type ApplicationGroupCreateUpdateRequest struct {
|
||||
Id int
|
||||
Name string `valid:"required~Required"`
|
||||
Description string
|
||||
DomainId int `valid:"required~Required"`
|
||||
}
|
||||
|
||||
type ServiceWithApps struct {
|
||||
type ApplicationGroupWithApps struct {
|
||||
Id int
|
||||
Name string
|
||||
Description string
|
||||
+5
-5
@@ -19,9 +19,9 @@ type Domain struct {
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type DomainWithService struct {
|
||||
Id int
|
||||
Name string
|
||||
Description string
|
||||
Services []*ServiceWithApps
|
||||
type DomainWithApplicationGroup struct {
|
||||
Id int
|
||||
Name string
|
||||
Description string
|
||||
ApplicationGroup []*ApplicationGroupWithApps
|
||||
}
|
||||
+2
-2
@@ -8,8 +8,8 @@ var (
|
||||
ErrDomainNotFound = errors.New("domain not found")
|
||||
ErrDomainDuplicateName = errors.New("domain name already exist")
|
||||
|
||||
ErrServiceNotFound = errors.New("service not found")
|
||||
ErrServiceDuplicateName = errors.New("service name already exist")
|
||||
ErrApplicationGroupNotFound = errors.New("application group not found")
|
||||
ErrApplicationGroupDuplicateName = errors.New("application group name already exist")
|
||||
|
||||
ErrSystemNotFound = errors.New("system not found")
|
||||
|
||||
|
||||
+4
-4
@@ -11,10 +11,10 @@ type AuthenticateResponse struct {
|
||||
}
|
||||
|
||||
type AuthData struct {
|
||||
SystemId int
|
||||
DomainId int
|
||||
ServiceId int
|
||||
ApplicationId int
|
||||
SystemId int
|
||||
DomainId int
|
||||
ApplicationGroupId int
|
||||
ApplicationId int
|
||||
}
|
||||
|
||||
type AuthorizeRequest struct {
|
||||
|
||||
Reference in new issue
Block a user