Documentation ¶
Index ¶
- func DownloadImage(ctx context.Context, url string, scale string, path string) (string, error)
- func Mail(to []string, title string, content string) error
- func OptimizeImage(ctx context.Context, path string, scale string) (string, error)
- func SaveImage(ctx context.Context, file File, scale string, path string) (string, error)
- func SaveVideo(ctx context.Context, file File, scale string, time int, path string) (string, string, error)
- func WxDecrypt(data []byte, platformKey string) ([]byte, error)
- func WxDecryptUserInfo(data string, key string, iv string) (string, error)
- func WxEncrypt(data []byte, platformKey, platformAppid string) ([]byte, error)
- func WxSign(timestamp, nonce, encrypt, token string) string
- type File
- type Graphql
- type WxAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadImage ¶
DownloadImage download image with a specific scale, depend on ffmpeg
func OptimizeImage ¶
OptimizeImage make image limited in a specific scaling
func SaveVideo ¶ added in v1.0.5
func SaveVideo(ctx context.Context, file File, scale string, time int, path string) (string, string, error)
SaveVideo save video with a specific scale, depend on ffmpeg
func WxDecryptUserInfo ¶ added in v1.0.11
WxDecryptUserInfo 小程序UserInfo解密
Types ¶
Click to show internal directories.
Click to hide internal directories.