system

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Installer

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

func Install

func Install(mod string, db *orm.DB) *Installer

func (*Installer) Linkage

func (i *Installer) Linkage() *Linkage

type Linkage

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

func (*Linkage) AddItem

func (l *Linkage) AddItem(name string) (*Linkage, error)

func (*Linkage) AddItems

func (l *Linkage) AddItems(name ...string) error

func (*Linkage) DeleteItem

func (l *Linkage) DeleteItem(id int64) error

func (*Linkage) GetHandle

func (l *Linkage) GetHandle(ctx *web.Context) web.Responser

GetHandle 展示当前链表以及一级子项内容

func (*Linkage) GetItem

func (l *Linkage) GetItem(id int64) *Linkage

func (*Linkage) ID

func (l *Linkage) ID() int64

func (*Linkage) PutHandle

func (l *Linkage) PutHandle(ctx *web.Context) web.Responser

PutHandle 修改当前项内容

func (*Linkage) SetItem

func (l *Linkage) SetItem(id int64, name string) error

type System

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

func New

func New(mod string, s *web.Server, db *orm.DB, r *web.Router, admin *admin.Admin) (*System, error)

func (*System) Linkage

func (s *System) Linkage() *Linkage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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