workspace

package
v0.0.0-...-db5681a Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Workspace

type Workspace struct {
	ID          int
	Name        string
	CustomerID  int
	Collections []*collection.Collection
	Created     time.Time
	Updated     time.Time
}

工作区

func New

func New(id int, name string, customerID int) *Workspace

返回第一次创建的工作区

func (*Workspace) AddCollections

func (w *Workspace) AddCollections(collections ...*collection.Collection)

添加一个集合

func (*Workspace) RemoveCollection

func (w *Workspace) RemoveCollection(id int) bool

如果集合存在,则删除它

func (*Workspace) Rename

func (w *Workspace) Rename(name string)

更改工作区的名称

func (*Workspace) RenameCollection

func (w *Workspace) RenameCollection(id int, name string) bool

重命名集合(如果存在)

Directories

Path Synopsis
tab

Jump to

Keyboard shortcuts

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