Documentation ¶
Index ¶
- type BaseContext
- func (c *BaseContext) Back() *BaseContext
- func (c *BaseContext) Json(data interface{})
- func (c *BaseContext) MDFileJson(ok int, msg, url string)
- func (c *BaseContext) Redirect()
- func (c *BaseContext) To(to string) *BaseContext
- func (c *BaseContext) View(tpl string, data interface{})
- func (c *BaseContext) WithData(data interface{}) *BaseContext
- func (c *BaseContext) WithError(err interface{}) *BaseContext
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseContext ¶
func Context ¶
func Context(ctx *gin.Context) *BaseContext
func (*BaseContext) MDFileJson ¶
func (c *BaseContext) MDFileJson(ok int, msg, url string)
MDFileJson markdown 上传图片响应
func (*BaseContext) WithData ¶
func (c *BaseContext) WithData(data interface{}) *BaseContext
WithData 闪存消息
func (*BaseContext) WithError ¶
func (c *BaseContext) WithError(err interface{}) *BaseContext
WithError 错误信息跳转
Click to show internal directories.
Click to hide internal directories.