settings

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SettingController

type SettingController struct {
	markup.RestController `class:"rest-controller"`

	SettingService service.SettingService `inject:"#SettingService"`
	Responder      glass.MainResponder    `inject:"#glass-main-responder"`
}

SettingController Settings 控制器

func (*SettingController) Init

Init 初始化

type SettingDaoImpl

type SettingDaoImpl struct {
	markup.Component `id:"SettingDAO"`

	Agent          dbagent.GormDBAgent    `inject:"#GormDBAgent"`
	UUIDGenService service.UUIDGenService `inject:"#UUIDGenService"`
}

SettingDaoImpl ...

func (*SettingDaoImpl) Find

func (inst *SettingDaoImpl) Find(id dxo.SettingID) (*entity.Setting, error)

Find ...

func (*SettingDaoImpl) FindByName

func (inst *SettingDaoImpl) FindByName(name string) (*entity.Setting, error)

FindByName ...

func (*SettingDaoImpl) Get

func (inst *SettingDaoImpl) Get(name string, def *entity.Setting) *entity.Setting

Get ...

func (*SettingDaoImpl) Insert

func (inst *SettingDaoImpl) Insert(o *entity.Setting) (*entity.Setting, error)

Insert ...

func (*SettingDaoImpl) ListAll

func (inst *SettingDaoImpl) ListAll() ([]*entity.Setting, error)

ListAll ...

func (*SettingDaoImpl) Put

func (inst *SettingDaoImpl) Put(name string, o1 *entity.Setting)

Put ...

func (*SettingDaoImpl) Remove

func (inst *SettingDaoImpl) Remove(id dxo.SettingID) error

Remove ...

func (*SettingDaoImpl) Update

func (inst *SettingDaoImpl) Update(id dxo.SettingID, o1 *entity.Setting) (*entity.Setting, error)

Update ...

type SettingServiceImpl

type SettingServiceImpl struct {
	markup.Component `id:"SettingService" class:"life" `

	SettingDAO dao.SettingDAO `inject:"#SettingDAO"`
}

SettingServiceImpl ...

func (*SettingServiceImpl) GetLifeRegistration

func (inst *SettingServiceImpl) GetLifeRegistration() *application.LifeRegistration

GetLifeRegistration ...

func (*SettingServiceImpl) GetSettings

func (inst *SettingServiceImpl) GetSettings() (*dto.Settings, error)

GetSettings ...

func (*SettingServiceImpl) GetString

func (inst *SettingServiceImpl) GetString(name, defaultValue string) string

GetString ...

func (*SettingServiceImpl) ListAll

func (inst *SettingServiceImpl) ListAll() map[string]string

ListAll ...

func (*SettingServiceImpl) PutSettings

func (inst *SettingServiceImpl) PutSettings(o *dto.Settings) error

PutSettings ...

func (*SettingServiceImpl) PutString

func (inst *SettingServiceImpl) PutString(name, value string)

PutString ...

Jump to

Keyboard shortcuts

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