MSP-5013 add full variable support

This commit is contained in:
komissarovyv committed 2025-03-05 18:10:07 +03:00
1 parent d6a8f77610
commit ecf2d06cfa
20 files changed
+786 -156

No files matched your search

+8
View File
@@ -16,6 +16,14 @@ type Config struct {
UpdatedAt xtypes.Time `json:"updated_at"`
}
type ConfigMetaWithVariable struct {
Id string `json:"id"`
Name string `json:"name"`
ModuleId string `json:"module_id"`
VariableName string `json:"variable_name"`
Active xtypes.Bool `json:"active"`
}
type ConfigHistory struct {
Id string `json:"id"`
ConfigId string `json:"config_id"`
+8 -8
View File
@@ -5,15 +5,15 @@ import (
)
type Variable struct {
Name string
Description string
Type string
Value string
CreatedAt xtypes.Time
UpdatedAt xtypes.Time
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"`
Value string `json:"value"`
CreatedAt xtypes.Time `json:"created_at"`
UpdatedAt xtypes.Time `json:"updated_at"`
}
type ConfigHasVariable struct {
ConfigId string
VariableName string
ConfigId string `json:"config_id"`
VariableName string `json:"variable_name"`
}