Documentation ¶
Index ¶
- func CheckExist(src string) bool
- func CheckImageExt(fileName string, allExt ...string) bool
- func CheckImageSize(f multipart.File, maxSize int) bool
- func CheckPermission(src string) bool
- func GenerateToken(username, password string) (token string, err error)
- func GetAnnualRange() (time.Time, time.Time)
- func GetMonthRange() (time.Time, time.Time)
- func GetProjectRoot() string
- func GetRecentRange() (time.Time, time.Time)
- func GetSize(f multipart.File) (int, error)
- func GetToday() (time.Time, time.Time)
- func GetWeekRang() (time.Time, time.Time)
- func IsNotExistMkDir(src string) error
- func MkDir(src string) error
- func Open(name string, flag int, perm os.FileMode) (*os.File, error)
- func SetupJwt(jwtSecretStr string)
- type Claims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckImageExt ¶
CheckImageExt 检测图片拓展名是否合法
func GenerateToken ¶
GenerateToken 生成Token
func GetProjectRoot ¶
func GetProjectRoot() string
Types ¶
Click to show internal directories.
Click to hide internal directories.