Versions in this module Expand all Collapse all v0 v0.1.1 Mar 3, 2026 v0.1.0 Mar 3, 2026 Changes in this version + const ContextLoginUserKey + const ContextPublicRequestKey + const ContextRoleUserIdKey + const ContextRoleUserTypeKey + func JWTLoginUserId(ctx *gin.Context) int + func RoleUserId(ctx *gin.Context) int + func RoleUserType(ctx *gin.Context) string + type CRUDCondition struct + Column string + Type uint8 + Value string + type CRUDRequest struct + Id string + Ids []string + Page int64 + PageSize int64 + Query []CRUDCondition + Sort string + func PublicRequestCrud(ctx *gin.Context) CRUDRequest + type PageInfo struct + Page int64 + PageSize int64 + Total int64 + type PageQuery struct + PageInfo PageInfo + Query T + func PageRequest[T any](ctx *gin.Context, query T) (PageQuery[T], error) + type PublicPageRequest struct + Id string + Ids []any + Query map[string]interface{} + Sort []string + func PublicRequest(ctx *gin.Context) PublicPageRequest