services

package
v0.0.0-...-b486499 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseContext

type BaseContext struct {
	Ctx *gin.Context
	// contains filtered or unexported fields
}

func Context

func Context(ctx *gin.Context) *BaseContext

func (*BaseContext) Back

func (c *BaseContext) Back() *BaseContext

Back 返回上一页

func (*BaseContext) Json

func (c *BaseContext) Json(data interface{})

Json 通用 JSON 响应

func (*BaseContext) MDFileJson

func (c *BaseContext) MDFileJson(ok int, msg, url string)

MDFileJson markdown 上传图片响应

func (*BaseContext) Redirect

func (c *BaseContext) Redirect()

Redirect 处理跳转

func (*BaseContext) To

func (c *BaseContext) To(to string) *BaseContext

To 设置跳转路径

func (*BaseContext) View

func (c *BaseContext) View(tpl string, data interface{})

View 模版返回

func (*BaseContext) WithData

func (c *BaseContext) WithData(data interface{}) *BaseContext

WithData 闪存消息

func (*BaseContext) WithError

func (c *BaseContext) WithError(err interface{}) *BaseContext

WithError 错误信息跳转

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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