util

package
v0.0.0-...-a30bb73 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExist

func CheckFileExist(path string) (bool, string)

func GetConfigDir

func GetConfigDir() string

func MoveImgToPath

func MoveImgToPath(imgPath string, targetPath string) (bool, string)

将临时图片文件存储到指定的文件夹下

func UploadByAliOss

func UploadByAliOss(path string, client *oss.Client, log *logrus.Logger, config map[string]string) (bool, string)

Types

type Resp

type Resp struct {
	Code int16       `json:"code"`
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

func Error

func Error(msg string) *Resp

func Ok

func Ok() *Resp

func Success

func Success(data interface{}) *Resp

Jump to

Keyboard shortcuts

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