SettingModel

package
v0.0.0-...-111e6d5 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Table = "setting"

Functions

func GetValue

func GetValue(setting_id int) (string, error)

func Update

func Update(ctx context.Context, setting_name string, value string) error

Types

type Setting

type Setting struct {
	ID        int    `json:"id" query:"id" form:"id" validate:"required"`
	Name      string `json:"name" query:"name" form:"name" validate:"required"`
	Value     string `json:"value" query:"value" form:"value" validate:"value" validate:"required"`
	FieldType string `json:"field_type" query:"field_type" form:"field_type" validate:"required"`
	Tab       string `json:"tab" query:"tab" form:"tab" validate:"required"`
}

func GetAll

func GetAll(ctx context.Context) ([]Setting, error)

func GetOption

func GetOption(setting_id int) (Setting, error)

Jump to

Keyboard shortcuts

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