site

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 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 Handler

type Handler interface {

	// Create 创建/编辑网站列表
	// @Tags API.site
	// @Router /api/site [post]
	Create() core.HandlerFunc

	// Delete 删除网站列表
	// @Tags API.site
	// @Router /api/site/{id} [delete]
	Delete() core.HandlerFunc

	// UpdateUsed 更新网站为启用/禁用
	// @Tags API.site
	// @Router /api/site/used [patch]
	UpdateUsed() core.HandlerFunc

	// List 网站列表
	// @Tags API.site
	// @Router /api/site [get]
	List() core.HandlerFunc

	// CategoryList 新增网站-分类目录列表
	// @Tags API.site
	// @Router /api/site/category_list [get]
	CategoryList() core.HandlerFunc

	// UpdateSite 编辑网站
	// @Tags API.site
	// @Router /api/site [put]
	UpdateSite() 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