typectl

package
v0.0.1-beta5 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SqliteTypeCtl

func SqliteTypeCtl(dbFile string) *sqliteTypeCtl

Types

type TypeCtl

type TypeCtl interface {
	Create(name string) (err error)                // 创建
	Update(info TypeInfo) (err error)              // 修改
	Delete(ID uint) (err error)                    // 删除
	List(name string) (list []TypeInfo, err error) // 列表
}

type TypeInfo

type TypeInfo struct {
	ID   uint   `db:"id" json:"id"`     // 分类ID
	Name string `db:"name" json:"name"` // 分类名称
}

Jump to

Keyboard shortcuts

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