entity

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModelNameSetting = "mrsettings.Setting" // ModelNameSetting - название сущности
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedSetting

type CachedSetting struct {
	Name            string
	Type            enum.SettingType
	ValueString     string
	ValueInt64      int64
	ValueStringList []string
	ValueInt64List  []int64
}

CachedSetting - элемент настройки для хранения её в кэше.

type CachedSettingWithID

type CachedSettingWithID struct {
	ID uint64
	CachedSetting
}

CachedSettingWithID - элемент настройки CachedSetting с полем ID.

type Setting

type Setting struct {
	ID          uint64
	Name        string
	Type        enum.SettingType
	Value       string
	Description string    // only for fetch all
	UpdatedAt   time.Time // only for fetch all
}

Setting - элемент с метаинформацией настройки и её значением.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL