Documentation ¶
Index ¶
- Constants
- func DecimalAdd(d1 decimal.Decimal, d2 decimal.Decimal) decimal.Decimal
- func DecimalAddMore(ds ...decimal.Decimal) decimal.Decimal
- func DecimalDiv(d1 decimal.Decimal, d2 decimal.Decimal) decimal.Decimal
- func DecimalDivMore(ds ...decimal.Decimal) decimal.Decimal
- func DecimalGreaterThan(d1 decimal.Decimal, d2 decimal.Decimal) bool
- func DecimalGreaterThanOrEqual(d1 decimal.Decimal, d2 decimal.Decimal) bool
- func DecimalLessThan(d1 decimal.Decimal, d2 decimal.Decimal) bool
- func DecimalLessThanOrEqual(d1 decimal.Decimal, d2 decimal.Decimal) bool
- func DecimalMul(d1 decimal.Decimal, d2 decimal.Decimal) decimal.Decimal
- func DecimalMulMore(ds ...decimal.Decimal) decimal.Decimal
- func DecimalSub(d1 decimal.Decimal, d2 decimal.Decimal) decimal.Decimal
- func DecimalSubMore(ds ...decimal.Decimal) decimal.Decimal
- func DecimalToFloat64(d decimal.Decimal) float64
- func DecimalToInt64(d decimal.Decimal) int64
- func DecimalToString(d decimal.Decimal) string
- func GenerateSecret() string
- func GenerateSha1Sign(params, appSecret string) string
- func GenerateSignCode(count uint8) string
- 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 CustomTime
- type StartAndStopTime
Constants ¶
View Source
const InternalCode = "86"
Variables ¶
This section is empty.
Functions ¶
func DecimalGreaterThanOrEqual ¶
大于等于
func DecimalLessThanOrEqual ¶
小于等于
func DecimalToString ¶
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 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.