MSP-5186 Add /application/create_application endpoint
This commit is contained in:
1 parent
fa2f88c869
commit
e2ed71196b
7 files changed
+281
-12
No files matched your search
@@ -4,6 +4,11 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
const (
|
||||
ApplicationSystemType = "SYSTEM"
|
||||
ApplicationMobileType = "MOBILE"
|
||||
)
|
||||
|
||||
type Application struct {
|
||||
Id int
|
||||
Name string
|
||||
@@ -34,3 +39,11 @@ type ApplicationSimple struct {
|
||||
Type string
|
||||
Tokens []Token
|
||||
}
|
||||
|
||||
type CreateApplicationRequest struct {
|
||||
Id int
|
||||
Name string `validate:"required"`
|
||||
Description string
|
||||
ApplicationGroupId int `validate:"required"`
|
||||
Type string `validate:"required,oneof=SYSTEM MOBILE"`
|
||||
}
|
||||
Reference in new issue
Block a user