controller

package
v0.0.0-...-ac9090e Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

* @Author: CuiYao * @Date: 2022-01-28 10:15:24 * @Last Modified by: CuiYao * @Last Modified time: 2022-01-28 10:52:42

* @Author: CuiYao * @Date: 2021-12-22 14:23:18 * @Last Modified by: CuiYao * @Last Modified time: 2022-01-28 10:16:55

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeController

func MakeController(uc usecase.Usecase) *controller

Types

type Controller

type Controller interface {
	HoneWallpaper(c echo.Context) error
	// Resources 资源
	Resources
	// Wallpaper 壁纸
	Wallpaper
}

type HoneWallpaper

type HoneWallpaper struct {
	URL string
}

type Minio

type Minio interface {
	//路由
	Route(g *echo.Group)

	//*******Bucket操作
	//创建Bucket
	MakeBucket(c echo.Context) error
	//列出Bucket
	ListBucket(c echo.Context) error
	//Bucket是否存在
	ExistsBucket(c echo.Context) error
	//删除Bucket
	Delete(c echo.Context) error
	//列出Bucket中的对象
	ListObject(c echo.Context) error

	//******Object 对象操作
	//文件下载
	FGetObject(c echo.Context) error
	//文件上传
	FPutObject(c echo.Context) error
	//流上传
	PutObject(c echo.Context) error
	//流下载
	GetObject(c echo.Context) error
	//获取URL
	GetObjectUrl(c echo.Context) error
	//删除对象
	DeleteObject(c echo.Context) error
}

type Resources

type Resources interface {
	//上传
	UploadResourcesIcon(c echo.Context) error
	//创建新的资源
	CreateResources(c echo.Context) error
	//更新资源
	UpdateResources(c echo.Context) error
	//资源列表
	ListResources(c echo.Context) error
	//获取资源
	GetResources(c echo.Context) error
	//删除资源
	DeleteResources(c echo.Context) error
}

type Template

type Template struct {
	Templates *template.Template
}

Template 实现Renderer 接口

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error

type User

type User interface {
	CreateUser(ctx echo.Context) error
	UpdateUser(ctx echo.Context) error
	ListUser(ctx echo.Context) error
	DeleteUser(ctx echo.Context) error
}

type Wallpaper

type Wallpaper interface {
	UploadWallpaper(c echo.Context) error
	ListWallpaper(c echo.Context) error
	GetWallpaper(c echo.Context) error
	DeleteWallpaper(c echo.Context) error
}

Jump to

Keyboard shortcuts

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