setting

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Setting

type Setting interface {
	Get(key string) (string, error)
	GetObj(key string, v interface{}) error
	Set(key, value string) error
	SetObj(key string, v interface{}) error
}

func New

func New(db *gorm.DB) Setting

type SettingModel

type SettingModel struct {
	ID        string    `gorm:"type:varchar(20);not null;primaryKey"`
	Value     string    `gorm:"type:varchar(1000);not null"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

func (SettingModel) TableName

func (SettingModel) TableName() string

Jump to

Keyboard shortcuts

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