Documentation
¶
Index ¶
- type Api
- func (a *Api) Bind(d interface{}, bindings ...binding.Binding) error
- func (a *Api) DelUserFromSession(user model.SysUser) error
- func (a *Api) ErrorResp() *Api
- func (a *Api) ForbiddenResp() *Api
- func (a *Api) GetUidFromSession() int
- func (a *Api) GetUserFromSession() *model.SysUser
- func (a *Api) MountCtx(c *gin.Context) *Api
- func (a *Api) SetCode(code int) *Api
- func (a *Api) SetCount(count int) *Api
- func (a *Api) SetData(data interface{}) *Api
- func (a *Api) SetLogTag(buType int, opTitle string) *Api
- func (a *Api) SetMsg(msg string) *Api
- func (a *Api) SetUserToSession(user model.SysUser) (string, error)
- func (a *Api) SuccessResp() *Api
- func (a *Api) TransErr(err error) string
- func (a *Api) UnauthorizedResp() *Api
- func (a *Api) WriteCustomJsonExit(data any)
- func (a *Api) WriteHtmlExit(page string, data gin.H)
- func (a *Api) WriteJsonExit()
- func (a *Api) WriteRedirect(path string)
- func (a *Api) WriteStringExit(format string, value ...any)
- type CaptchaResponse
- type CommonResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Api ¶
func (*Api) DelUserFromSession ¶
DelUserFromSession
func (*Api) GetUserFromSession ¶
GetProfile 获得用户信息详情
func (*Api) SetUserToSession ¶
SetUserToSession
func (*Api) WriteCustomJsonExit ¶
WriteCustomJsonExit 兼容个性化json写法
func (*Api) WriteHtmlExit ¶
WriteHtmlExit 输出Html页面
func (*Api) WriteStringExit ¶
WriteStringExit 输出String
type CaptchaResponse ¶
type CommonResp ¶
Click to show internal directories.
Click to hide internal directories.