MSP-5014 Refactor service and repository

This commit is contained in:
Синельник Тимур Романович committed 2025-03-20 18:12:55 +03:00
1 parent 599fa22429
commit 5dbd07dc03
12 files changed
+219 -212

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
package entity
const (
SecretVariableType = "SECRET"
TextVariableType = "TEXT"
ErrCodeVariableNotFound = 2006
)
type Variable struct {
Name string
Description string
Type string
Value string
ContainsInConfigs []LinkedConfig
}
type LinkedConfig struct {
Id string
ModuleId string
Name string
}
type UpsertVariableRequest struct {
Name string `validate:"required"`
Description string
Type string `validate:"required,oneof=SECRET TEXT"`
Value string `validate:"required"`
}
type VariableByNameRequest struct {
Name string `validate:"required"`
}