sysconfig

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableName = `sys_config`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SysConfig

type SysConfig struct {
	gorm.Model
	Name      string
	Value     string
	ValueType string
	Comment   string
}

func (*SysConfig) TableName

func (*SysConfig) TableName() string

type SysConfigModel

type SysConfigModel interface {
	CreateSysConfigTable() error
	DropSysConfigTable() error
	GetSysConfigByName(name string) (info *SysConfig, err error)
	CreateSysConfigs(configs []*SysConfig) (rowsAffected int64, err error)
	CreateSysConfigsInTransact(tx *gorm.DB, configs []*SysConfig) error
	UpdateSysConfigsInTransact(tx *gorm.DB, configs []*SysConfig) error
}

func NewSysConfigModel

func NewSysConfigModel(db *gorm.DB) SysConfigModel

Jump to

Keyboard shortcuts

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