category

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {

	// Create 新增网站分类
	// @Tags API.category
	// @Router /api/category [post]
	Create() core.HandlerFunc

	// List  分类列表
	// @Tags API.category
	// @Router /api/category [get]
	List() core.HandlerFunc

	// Delete 删除分类
	// @Tags API.category
	// @Router /api/category/{id} [delete]
	Delete() core.HandlerFunc

	// UpdateUsed 更新分了启用/禁用
	// @Tags API.category
	// @Router /api/category/used [patch]
	UpdateUsed() core.HandlerFunc

	// Detail 获取分类详情数据
	// @Tags API.category
	// @Router /api/category/used [patch]
	Detail() core.HandlerFunc

	// UpdateSort 更新分类排序
	// @Tags API.category
	// @Router /api/category/used [patch]
	UpdateSort() core.HandlerFunc
	// contains filtered or unexported methods
}

func New

func New(logger *zap.Logger, db mysql.Repo, cache redis.Repo) Handler

Jump to

Keyboard shortcuts

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