Documentation ¶
Index ¶
- Constants
- func GetFields(ctx *gin.Context) []string
- func GetInt64Param(ctx *gin.Context, param string) (int64, error)
- func GetIntParam(ctx *gin.Context, param string) (int, error)
- func GetLimit(ctx *gin.Context) int
- func GetOffset(ctx *gin.Context) int
- func GetOrder(ctx *gin.Context) []string
- func GetPKName(i interface{}) (pkName, pkJson string, err error)
- func GetQuery(ctx *gin.Context) (map[string]string, error)
- func GetStringParam(ctx *gin.Context, param string) string
- type ModelInfo
- type QueryConditions
Constants ¶
View Source
const (
ErrDuplicateKey = "Error 1062"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ModelInfo ¶
func NewModelInfo ¶ added in v1.0.1
type QueryConditions ¶
type QueryConditions struct { Query map[string]string Fields []string Order []string Limit int Offset int }
func ParseQueryCond ¶
func ParseQueryCond(ctx *gin.Context) (QueryConditions, error)
Click to show internal directories.
Click to hide internal directories.