setting

package
v0.0.0-...-e4f2ae3 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 5 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 struct {
	ID          string `db:"id" json:"id"`
	SettingText string `db:"setting_text" json:"settingText"`
}

type Store

type Store struct {
	// contains filtered or unexported fields
}

Store stores the dependencies

func NewSettingRepo

func NewSettingRepo(db *sqlx.DB) *Store

NewSettingRepo stores our dependency

func (*Store) AddSetting

func (s *Store) AddSetting(ctx context.Context, settingParam Setting) (Setting, error)

func (*Store) DeleteSetting

func (s *Store) DeleteSetting(ctx context.Context, settingID string) error

func (*Store) EditSetting

func (s *Store) EditSetting(ctx context.Context, settingParam Setting) (Setting, error)

func (*Store) GetSetting

func (s *Store) GetSetting(ctx context.Context, settingID string) (Setting, error)

func (*Store) GetSettings

func (s *Store) GetSettings(ctx context.Context) ([]Setting, error)

Jump to

Keyboard shortcuts

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