controller

package
v0.0.0-...-33c5ed1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(conf *config.Conf, app *iris.Application, manager *cloud_disk.Manager)

func NewSimpleRes

func NewSimpleRes(ctx iris.Context) *simpleRes

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func (*Handler) FilesDirCreate

func (a *Handler) FilesDirCreate(ctx iris.Context)

FilesDirCreate 添加目录

func (*Handler) Test

func (a *Handler) Test(ctx iris.Context)

func (*Handler) Test2

func (a *Handler) Test2(ctx iris.Context)

func (*Handler) Test3

func (a *Handler) Test3(ctx iris.Context)

每一步都需要返回

func (*Handler) UploadFile

func (a *Handler) UploadFile(ctx iris.Context)

UploadFile

type HttpCode

type HttpCode int
const (
	HttpCodeOK              HttpCode = 0
	HttpCodeUnauthorized    HttpCode = 401 // 没有访问权限
	HttpCodePaymentRequired HttpCode = 402
	HttpCodeNotImplemented  HttpCode = 501
	HttpCodeGatewayTimeout  HttpCode = 504

	HttpCodeSystemError    HttpCode = 500
	HttpCodeResultNotFound HttpCode = 1001
	HttpCodeDuplicateKey   HttpCode = 1002
	HttpCodeParamInvalid   HttpCode = 1003
)

type HttpRes

type HttpRes struct {
	Code    HttpCode    `json:"code"`
	Message string      `json:"message"`
	Result  interface{} `json:"result"`
	Type    string      `json:"type"`
}

Jump to

Keyboard shortcuts

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