This commit is contained in:
Andrey Savchuk committed 2019-01-29 16:42:21 +03:00
commit e7ad092001
27 files changed
+3010

No files matched your search

+49
View File
@@ -0,0 +1,49 @@
package controller
import (
"isp-system-service/entity"
)
type DeleteResponse struct {
Deleted int
}
type Identity struct {
Id int32 `json:"id" valid:"required~Required"`
}
type AppWithToken struct {
App entity.Application
Tokens []entity.Token
}
type SimpleApp struct {
Id int32
Name string
Description string
Type string
Tokens []entity.Token
}
type ServiceWithApps struct {
Id int32
Name string
Description string
Apps []*SimpleApp
}
type DomainWithServices struct {
Id int32
Name string
Description string
Services []*ServiceWithApps
}
type RevokeTokensRequest struct {
AppId int32 `valid:"required~Required"`
Tokens []string
}
type CreateTokenRequest struct {
AppId int32 `valid:"required~Required"`
ExpireTimeMs int64
}