Documentation ¶
Index ¶
- Constants
- 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
- type CustomTime
- type StartAndStopTime
Constants ¶
View Source
const InternalCode = "86"
Variables ¶
This section is empty.
Functions ¶
func GenInviterCode ¶
func GenInviterCode() string
func GenerateSha1Sign ¶
func GenerateSignCode ¶
func GetActivityBeginTime ¶
func GetCompletePhone ¶
func GetCurrentDayStr ¶
func GetCurrentTime ¶
func GetDayPoint2 ¶
func GetExpireTimeDay ¶
func GetGrpcClient ¶
func GetGrpcClient(serverName string) (*grpc.ClientConn, error)
func GetMSTimeStamp ¶
func GetMSTimeStamp() int64
func GetMonthPoint2 ¶
func GetNDayPoint ¶
func GetNDayPoint(n int, eTime int64) (startT, endT int64, m map[string]StartAndStopTime)
获取7天日期
func GetNMonthPoint ¶
func GetNMonthPoint(n int, eTime int64) (startT, endT int64, m map[string]StartAndStopTime)
获取7月日期
func GetNWeekPoint ¶
func GetNWeekPoint(n int, eTime int64) (startT, endT int64, m map[string]StartAndStopTime)
获取7周日期
func GetSecTimeStamp ¶
func GetSecTimeStamp() int64
func GetTimeStamp ¶
func GetTimeStamp() int64
func GetWeekPoint2 ¶
func ParseTimeOfCustom ¶
func ParseTimeOfStr ¶
func RemoveDuplicateElement ¶
func Time2MSTimeStamp ¶
Types ¶
type Claims ¶
func ParseToken ¶
type CustomTime ¶
func (*CustomTime) IsSet ¶
func (ct *CustomTime) IsSet() bool
func (*CustomTime) MarshalJSON ¶
func (ct *CustomTime) MarshalJSON() ([]byte, error)
func (*CustomTime) UnmarshalJSON ¶
func (ct *CustomTime) UnmarshalJSON(b []byte) (err error)
type StartAndStopTime ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.