Versions in this module Expand all Collapse all v1 v1.0.1 Apr 13, 2021 Changes in this version + const InternalCode + func GenInviterCode() string + func GenerateSecret() string + func GenerateSha1Sign(params, appSecret string) string + func GenerateSignCode(count uint8) string + func GenerateToken(username string, uid int) (string, error) + func GetActivityBeginTime(beginTimeEv string) (int64, error) + func GetCompletePhone(countryCode, mobile string) string + func GetCurrentDay(d time.Time, hour, min int) time.Time + func GetCurrentDayStr(d time.Time) string + func GetCurrentTime() time.Time + func GetDayPoint(bTime, eTime int64) (point []string) + func GetDayPoint2(st, et int64) (points []string) + func GetExpireTimeDay(expireUnixT, nowUnix int64) int32 + func GetFirstDateOfMonth(d time.Time) time.Time + func GetFirstDateOfWeek(d time.Time) time.Time + func GetGrpcClient(serverName string) (*grpc.ClientConn, error) + func GetLastDateOfMonth(d time.Time) time.Time + func GetLastDateOfWeek(d time.Time) time.Time + func GetMSTimeStamp() int64 + func GetMonthPoint(bTime, eTime int64) (point []string) + func GetMonthPoint2(st, et int64) (points []string) + func GetNDayPoint(n int, eTime int64) (startT, endT int64, m map[string]StartAndStopTime) + func GetNMonthPoint(n int, eTime int64) (startT, endT int64, m map[string]StartAndStopTime) + func GetNWeekPoint(n int, eTime int64) (startT, endT int64, m map[string]StartAndStopTime) + func GetSecTimeStamp() int64 + func GetTimeStamp() int64 + func GetUUID() string + func GetWeekPoint(bTime, eTime int64) (point []string) + func GetWeekPoint2(st, et int64) (points []string) + func GetZeroTimeOfDay(d time.Time) time.Time + func ParseTimeOfCustom(unixT int64, layStr string) string + func ParseTimeOfStr(unixT int64) string + func RemoveDuplicateElement(src []string) []string + func SeparateTable(id string, count int) string + func Time2MSTimeStamp(t *time.Time) int64 + type Claims struct + Uid int + UserName string + func ParseToken(token string) (*Claims, error) + type CustomTime struct + func (ct *CustomTime) IsSet() bool + func (ct *CustomTime) MarshalJSON() ([]byte, error) + func (ct *CustomTime) UnmarshalJSON(b []byte) (err error) + type StartAndStopTime struct + StartTime int64 + StopTime int64