Documentation ¶
Index ¶
- type HTTPContext
- func (s *HTTPContext) Bind(i interface{}) error
- func (s *HTTPContext) FormFile(name string) (*multipart.FileHeader, error)
- func (s *HTTPContext) FormValue(name string) string
- func (s *HTTPContext) FormValueInt(name string) int
- func (s *HTTPContext) HTML(page string) error
- func (s *HTTPContext) JsonErr(code int, i interface{}) error
- func (s *HTTPContext) JsonOk(i interface{}) error
- func (s *HTTPContext) Param(name string) string
- func (s *HTTPContext) ParamInt(name string) int
- func (s *HTTPContext) Put(key string, value interface{})
- func (s *HTTPContext) QueryParam(name string) string
- func (s *HTTPContext) QueryParamInt(name string) int
- func (s *HTTPContext) ResultErr(msg string) error
- func (s *HTTPContext) ResultErrStatus(status int, msg string) error
- func (s *HTTPContext) ResultOK() error
- func (s *HTTPContext) ResultOKMsg(msg string) error
- type HTTPResult
- type RESULT_STATUS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPContext ¶
type HTTPContext struct { Context echo.Context // echo上下文 Result *HTTPResult Admin *model.Admin }
func (*HTTPContext) Bind ¶
func (s *HTTPContext) Bind(i interface{}) error
func (*HTTPContext) FormFile ¶
func (s *HTTPContext) FormFile(name string) (*multipart.FileHeader, error)
func (*HTTPContext) FormValue ¶
func (s *HTTPContext) FormValue(name string) string
func (*HTTPContext) FormValueInt ¶
func (s *HTTPContext) FormValueInt(name string) int
func (*HTTPContext) HTML ¶
func (s *HTTPContext) HTML(page string) error
func (*HTTPContext) JsonErr ¶
func (s *HTTPContext) JsonErr(code int, i interface{}) error
func (*HTTPContext) JsonOk ¶
func (s *HTTPContext) JsonOk(i interface{}) error
func (*HTTPContext) Param ¶
func (s *HTTPContext) Param(name string) string
func (*HTTPContext) ParamInt ¶
func (s *HTTPContext) ParamInt(name string) int
func (*HTTPContext) Put ¶
func (s *HTTPContext) Put(key string, value interface{})
func (*HTTPContext) QueryParam ¶
func (s *HTTPContext) QueryParam(name string) string
func (*HTTPContext) QueryParamInt ¶
func (s *HTTPContext) QueryParamInt(name string) int
func (*HTTPContext) ResultErr ¶
func (s *HTTPContext) ResultErr(msg string) error
func (*HTTPContext) ResultErrStatus ¶
func (s *HTTPContext) ResultErrStatus(status int, msg string) error
func (*HTTPContext) ResultOK ¶
func (s *HTTPContext) ResultOK() error
func (*HTTPContext) ResultOKMsg ¶
func (s *HTTPContext) ResultOKMsg(msg string) error
type HTTPResult ¶
type RESULT_STATUS ¶
type RESULT_STATUS int
Click to show internal directories.
Click to hide internal directories.