MSP-5013 Add variables swagger
This commit is contained in:
1 parent
148327c74e
commit
be0dea3702
7 files changed
+397
-20
No files matched your search
@@ -0,0 +1,42 @@
|
||||
package domain
|
||||
|
||||
import "time"
|
||||
|
||||
type Variable struct {
|
||||
Id string
|
||||
Name string
|
||||
Description string
|
||||
Type string
|
||||
Value string
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
ContainsInConfigs []LinkedConfig
|
||||
}
|
||||
|
||||
type LinkedConfig struct {
|
||||
Id string
|
||||
Name string
|
||||
}
|
||||
|
||||
type CreateVariableRequest struct {
|
||||
Name string `validate:"required"`
|
||||
Description string
|
||||
Type string `validate:"required"`
|
||||
Value string `validate:"required"`
|
||||
}
|
||||
|
||||
type UpdateVariableRequest struct {
|
||||
Name string `validate:"required"`
|
||||
Description string
|
||||
Value string `validate:"required"`
|
||||
}
|
||||
|
||||
type UpsertVariableRequest struct {
|
||||
Name string `validate:"required"`
|
||||
Description string `validate:"required"`
|
||||
Value string `validate:"required"`
|
||||
}
|
||||
|
||||
type VariableByNameRequest struct {
|
||||
Name string `validate:"required"`
|
||||
}
|
||||
Reference in new issue
Block a user