controller

package
v0.0.0-...-19e0465 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(name string, f interface{})

func FilePreviw

func FilePreviw(r *ghttp.Request)

func Liql

func Liql(r *ghttp.Request)

func Use

func Use(name string, f ac.AC)

func UseWithSchemaPath

func UseWithSchemaPath(name string, path ...string)

Types

type FilePreviewReq

type FilePreviewReq struct {
	BucketName string `json:"bucket_name" p:"bucket_name" v:"required"`
	FileName   string `json:"file_name" p:"file_name" v:"required"`
}

type FileUploadRes

type FileUploadRes struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

func FileUpload

func FileUpload(ctx context.Context) (res *FileUploadRes, err error)

FileUpload 单文件上传

type LiqlReq

type LiqlReq struct {
	Operation string `json:"operation" p:"operation" v:"required"`
	Variables string `json:"variables" p:"variables"`
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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