Documentation
¶
Index ¶
- Constants
- func CheckError(err error, context *gin.Context)
- func GetTimePeriod(query string, con []interface{}, nickName string) (string, []interface{})
- func GetTimePeriodByPeriod(query string, con []interface{}, start interface{}, end interface{}, ...) (string, []interface{})
- func GetTimePeriodByoffset(query string, con []interface{}, nickName string, offset time.Duration) (string, []interface{})
- func GetTwoWeekPeriod(query string, con []interface{}, nickName string) (string, []interface{})
- func ReadJSON(context *gin.Context, obj interface{})
- func ResponseList(context *gin.Context, obj ...interface{})
- func StandardBadRequest(context *gin.Context)
- func StandardError(context *gin.Context)
- func StandardJoke(context *gin.Context)
- func StandardNotFound(context *gin.Context)
- func StandardOk(context *gin.Context, obj interface{})
- func StandardSuccess(context *gin.Context)
- func TimePeriod(query string, con []interface{}, nickName string, context *gin.Context) (string, []interface{})
- type Cols
- type Payload
Constants ¶
View Source
const ( EQ = "eq" GT = "gt" LT = "lt" )
Variables ¶
This section is empty.
Functions ¶
func CheckError ¶
func GetTimePeriod ¶
func GetTimePeriodByPeriod ¶
func GetTimePeriodByoffset ¶
func GetTwoWeekPeriod ¶
func ResponseList ¶
func StandardBadRequest ¶
func StandardError ¶
func StandardJoke ¶
func StandardNotFound ¶
func StandardOk ¶
func StandardSuccess ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.