Versions in this module Expand all Collapse all v1 v1.0.1 Nov 17, 2024 v1.0.0 Oct 29, 2024 Changes in this version + var Cache = initialize.Cache + var Config = initialize.Config + var ErrAccountId = errors.New("error accountId") + var ErrAccountType = errors.New("账本类型不允许该操作") + var ErrCategoryNameEmpty = errors.New("名称不可为空") + var ErrCategorySameName = errors.New("类型名称相同") + var ErrDeviceNotSupported = errors.New("当前设备不支持") + var ErrFrequentOperation = errors.New("操作太频繁,稍后再试") + var ErrInvalidParameter = errors.New("invalid parameter") + var ErrNoPermission = errors.New("无权限") + var ErrOperationTooFrequent = errors.New("操作过于频繁,请稍后再试!") + var ErrSameAsTheOldPassword = errors.New("新旧密码相同") + var ErrServiceClosed = errors.New("服务未开启!") + var ErrTimeFrameIsTooLong = errors.New("时间范围过长") + var ErrTooManyTourists = errors.New("游客过多稍后再试") + var ErrTouristHaveNoRight = errors.New("游客无权操作!") + var ErrUnsupportedUserAction = errors.New("暂不支持该操作") + var ErrVerifyEmailCaptchaFail = errors.New("校验邮箱验证码失败!") + var ErrorLogger *zap.Logger + var GvaDb = initialize.Db + var GvaRdb = initialize.Rdb + var PanicLogger *zap.Logger + var RequestLogger *zap.Logger + func NewErrDataIsEmpty(param string) error + func NewErrThirdpartyApi(name, msg string) error + type AmountCount struct + Amount int64 + Count int64 + type IEStatistic struct + Expense AmountCount + Income AmountCount + type IEStatisticWithTime struct + EndTime time.Time + StartTime time.Time