db

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(data *DataOfSlaveShell) (e error)

func FontFamily

func FontFamily(id int64, fontFamily string) (changed bool, e error)

func FontSize

func FontSize(id int64, fontSize int32) (changed bool, e error)

func Init

func Init()

func Remove

func Remove(id int64) (changed bool, e error)

func Rename

func Rename(id int64, name string) (changed bool, e error)

Types

type DataOfSlaveShell

type DataOfSlaveShell struct {
	ID         int64  `xorm:"pk 'id'"`
	UserName   string `xorm:"index 'username' default('') "`
	Name       string `xorm:"'name' default('') "`
	FontSize   int32  `xorm:"'fontSize' default('') "`
	FontFamily string `xorm:"'fontFamily' default('') "`
}

func List

func List() (items []DataOfSlaveShell, e error)

func (DataOfSlaveShell) TableName

func (DataOfSlaveShell) TableName() string

Jump to

Keyboard shortcuts

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