Documentation ¶
Index ¶
- func Crypt(password string) (string, error)
- func MillTimeStampToTime(timestamp int64) time.Time
- func NewFileName(user_id, time int64) string
- func SecondTimeStampToTime(timestamp int64) time.Time
- func URLconvert(ctx context.Context, c *app.RequestContext, path string) (fullURL string)
- func VerifyPassword(password, hashedPassword string) bool
- type BaseResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MillTimeStampToTime ¶
MillTimeStampToTime convert ms timestamp to time.Time
func NewFileName ¶
NewFileName Splicing user_id and time to make unique filename
func SecondTimeStampToTime ¶
SecondTimeStampToTime convert s timestamp to time.Time
func URLconvert ¶
URLconvert Convert the path in the database into a complete url accessible by the front end
func VerifyPassword ¶
VerifyPassword Verify the password is consistent with the hashed password in the database
Types ¶
Click to show internal directories.
Click to hide internal directories.