utils

package module
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Curr

func Curr() *times

CurrTime 当前时间处理

func Err added in v0.0.2

func Err() *err

func Req

func Req() *req

请求

func Sms

func Sms() *alisms

Sms 当前时间处理

func Str

func Str() *strext

CurrTime 当前时间处理

func Url

func Url() *urls

CurrTime 当前时间处理

Types

type MyTime

type MyTime time.Time

MyTime 自定义time的json格式

func (MyTime) AddDay added in v0.0.2

func (t MyTime) AddDay(day int) MyTime

AddDay

@Description: 增加几天后的日期
@return MyTime

func (MyTime) AddMonth added in v0.0.2

func (t MyTime) AddMonth(month uint) MyTime

AddMonth 加上几个月

func (MyTime) GetTime added in v0.0.2

func (t MyTime) GetTime() time.Time

func (MyTime) Gt added in v0.0.2

func (t MyTime) Gt(t1 MyTime) bool

Gt 大于判断

func (MyTime) GtCurrTime added in v0.0.2

func (t MyTime) GtCurrTime() bool

GtCurrTime 是否大于当前时间

func (MyTime) Lt added in v0.0.2

func (t MyTime) Lt(t1 MyTime) bool

Lt 小于判断

func (MyTime) MarshalJSON

func (t MyTime) MarshalJSON() ([]byte, error)

MarshalJSON 自定义time的json格式

func (*MyTime) Scan

func (t *MyTime) Scan(v interface{}) error

func (*MyTime) String

func (t *MyTime) String() string

String 获取时间字符串

func (*MyTime) Time

func (t *MyTime) Time() MyTime

Time 获取当前时间

func (MyTime) Unix

func (t MyTime) Unix() int64

Unix获取时间戳

func (*MyTime) UnmarshalJSON

func (t *MyTime) UnmarshalJSON(data []byte) (err error)

UnmarshalJSON 自定义time的json格式

func (MyTime) Value

func (t MyTime) Value() (driver.Value, error)

type SendSmsReply

type SendSmsReply struct {
	Code    string `json:"Code,omitempty"`
	Message string `json:"Message,omitempty"`
}

SendSmsReply 发送短信返回

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL