Versions in this module Expand all Collapse all v1 v1.1.7 Sep 5, 2023 v1.1.6 Sep 4, 2023 v1.1.5 Sep 4, 2023 v1.1.3 Sep 3, 2023 v1.1.2 Sep 3, 2023 v1.0.20 Sep 5, 2023 Changes in this version + const Str1Base + const Str2Base + const TimeFormat + var Fail = &CodeAndMsg + var NotAuthed = &CodeAndMsg + var NotFoundEnterpriseID = &CodeAndMsg + var ParamError = &CodeAndMsg + var Success = &CodeAndMsg + func CheckError(c *gin.Context, err error) + func CloseAction(c io.Closer) + func CreateDirIfNotExist(path string) error + func DeleteFile(filePath string) error + func GenerateBySourceStr(source string, length int) string + func GeneratePassword(length int) string + func GetBytesForInt64(t uint64) []byte + func GetInt64FromBytes(cn []byte) int64 + func GetPostData(r *http.Request) ([]byte, error) + func HasDuplicate(arr []*string) bool + func IsContainInt64(resource int64, target ...int64) bool + type CodeAndMsg struct + Code int + Message string + func (c *CodeAndMsg) AddFormat(p ...any) *CodeAndMsg + func (c *CodeAndMsg) Error() string + type InfoResult struct + Code int + Data any + Message string + func NewInfoResult(c *CodeAndMsg) *InfoResult + func (i *InfoResult) R(c *gin.Context, data any) + type PageUtils struct + Args []any + DB *sql.DB + List any + PageNumber int + PageSize int + Sql *string + Total int64 + func (p *PageUtils) PageExec(result func(rows *sql.Rows) (any, error)) error