tag_service

package
v0.0.0-...-4caec29 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tag

type Tag struct {
	ID         int
	Name       string
	CreatedBy  string
	ModifiedBy string
	State      int

	PageNum  int
	PageSize int
}

func (*Tag) Add

func (t *Tag) Add() error

func (*Tag) Delete

func (t *Tag) Delete() error

func (*Tag) Edit

func (t *Tag) Edit() error

func (*Tag) ExistByID

func (t *Tag) ExistByID() (bool, error)

func (*Tag) ExistByName

func (t *Tag) ExistByName() (bool, error)

func (*Tag) Export

func (t *Tag) Export() (string, error)

将所有标签信息导出到文件

func (*Tag) GetAll

func (t *Tag) GetAll() ([]models.Tag, error)

func (*Tag) GetCount

func (t *Tag) GetCount() (int, error)

func (*Tag) Import

func (t *Tag) Import(reader io.Reader) error

导入标签

Jump to

Keyboard shortcuts

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