Versions in this module Expand all Collapse all v0 v0.0.10 Sep 23, 2025 v0.0.9 Aug 26, 2025 Changes in this version + func BoundPageSize(pageSize int) int + func BoundPageSizeWithRange[T cmp.Ordered](pageSize T, minN, maxN T) T + func BuildCanonicalHref(c *gin.Context) string + func GetBaseUri(c *gin.Context) string + func GetHost(c *gin.Context) string + func GetLoginUser(c *gin.Context) *vo.UserInfoShow + func GetUserShowByUserId(userId uint64) *vo.UserInfoShow + func LoginUserId(c *gin.Context) uint64 + func SendAEmail4User(userEntity *users.EntityComplete) error + func ValidatePassword(password string) error + func ValidateUsername(username string) bool v0.0.8 Jul 28, 2025 Changes in this version type BetterRequest + GinContext *gin.Context v0.0.7 Jul 12, 2025 v0.0.6 Jul 9, 2025 v0.0.5 Jul 5, 2025 v0.0.4 Jul 4, 2025 v0.0.3 Jun 22, 2025 v0.0.2 Apr 18, 2025 v0.0.1 Apr 15, 2025 Changes in this version + func HandleFileUpload(c *gin.Context, fieldName string) ([]byte, string, error) + type BetterRequest struct + Params T + UserId uint64 + func (r *BetterRequest[T]) GetParams() T + func (r *BetterRequest[T]) GetUser() (users.Entity, error) + type DataMap map[string]interface + type Null struct + type NullRequest BetterRequest[Null] + type Page struct + List []T + Page int + Size int + Total int64 + type Response struct + Code int + Data ResultStruct + func BuildResponse(code int, data ResultStruct) Response + func FailResponse(msg any) Response + func SuccessPage[T any](list []T, page, size int, total int64) Response + func SuccessResponse(data any) Response + type ResultStruct struct + Code Status + Msg any + Result any + func FailData(msg any) ResultStruct + func SuccessData(data any) ResultStruct + type Status int + const FAIL + const SUCCESS