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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RootID = 1

Variables

This section is empty.

Functions

func Add

func Add(ctx context.Context, pid int64, name, description string) (int64, time.Time, error)

func Change

func Change(ctx context.Context, id int64, name, description string) (time.Time, error)

func Init

func Init() map[int64]*DataOfGroup

func LastModified

func LastModified() (modtime time.Time)

func Move

func Move(ctx context.Context, id, pid int64) (time.Time, error)

func Remove

func Remove(ctx context.Context, args []interface{}) (time.Time, error)

Types

type DataOfGroup

type DataOfGroup struct {
	ID          int64  `xorm:"pk autoincr 'id'"`
	Parent      int64  `xorm:"'parent' default(0)"`
	Name        string `xorm:"unique 'name' default('') "`
	Description string `xorm:"'description' default('') "`
}

func (DataOfGroup) TableName

func (DataOfGroup) TableName() string

Jump to

Keyboard shortcuts

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