Documentation ¶
Index ¶
- func GetUser(c *gin.Context) (user uic.User, err error)
- func JSONR(c *gin.Context, arg ...interface{}) (werror error)
- func PageParser(page string, limit string) (p int, l int, err error)
- func SessionChecking(c *gin.Context) (auth bool, isServiceToken bool, err error)
- type DataWaper
- type FilterBy
- type Params
- type RespJson
- type SortByHelpr
- type WebSession
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataWaper ¶
type DataWaper struct { Data interface{} `json:"data,omitempty"` Page interface{} `json:"page,omitempty"` Msg string `json:"message,omitempty"` }
type SortByHelpr ¶
type SortByHelpr struct {
OrderBy string `json:"order_by" form:"order_by"`
}
func (SortByHelpr) OrderBySql ¶
func (self SortByHelpr) OrderBySql(q *gorm.DB) (qt *gorm.DB)
type WebSession ¶
func GetSession ¶
func GetSession(c *gin.Context) (session WebSession, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.