Files
2026-11-27 18:36:41 +07:00

28 lines
599 B
Go

// nolint:tagliatelle
package entity
import (
"isp-config-service/entity/xtypes"
)
type VariableType = string
const (
SecretType VariableType = "SECRET"
TextType VariableType = "TEXT"
)
type Variable struct {
Name string `json:"name"`
Description string `json:"description"`
Type VariableType `json:"type"`
Value string `json:"value"`
CreatedAt xtypes.Time `json:"created_at"`
UpdatedAt xtypes.Time `json:"updated_at"`
}
type ConfigHasVariable struct {
ConfigId string `json:"config_id"`
VariableName string `json:"variable_name"`
}