tag_service

package
v0.0.0-...-b8d1666 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(ids []int) error

func ExistByIds

func ExistByIds(ids []int) (bool, error)

func GetList

func GetList(ids []int) ([]*models.Tag, error)

Types

type Tag

type Tag struct {
	ID    int
	Name  string
	State int

	PageNum  int
	PageSize int
}

func (*Tag) Add

func (t *Tag) Add() error

func (*Tag) Count

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

func (*Tag) Get

func (t *Tag) Get() (*models.Tag, error)

func (*Tag) GetAll

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

func (*Tag) Paging

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

func (*Tag) Upd

func (t *Tag) Upd() error

Jump to

Keyboard shortcuts

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