Documentation ¶
Index ¶
- Constants
- func Base64Decode(str string) (string, error)
- func Base64Encode(str string) string
- func CopyDir(srcPath, desPath string) error
- func CopyFile(src, des string) (written int64, err error)
- func CopyFile2(src, des string) (written int64, err error)
- func CopyFile3(src, des string, bufSize int) (written int64, err error)
- func FileExists(path string) bool
- func GenToken(uid int, uname string) (string, error)
- func GenerateRefreshJwtWithToken(token string) (string, error)
- func GetCurrentPath() string
- func GetGuid() string
- func GetId() int
- func GetMd5String(s string) string
- func GetSHA1String(s string) string
- func IsDir(name string) bool
- func ListDir(dir, suffix string) (files []string, err error)
- func MakeDir(dir string) error
- func PathExists(path string) (bool, error)
- func WalkDir(dir, suffix string) (files []string, err error)
- type WhaleClaims
Constants ¶
View Source
const ( DEL_NORMAL = iota DEL_DELETE )
删除标记
View Source
const ( USER_NORMAL = iota USER_LOCKED )
用户状态
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func GetCurrentPath ¶
func GetCurrentPath() string
func PathExists ¶
Types ¶
type WhaleClaims ¶
func ParaseToken ¶
func ParaseToken(authorization string) (*WhaleClaims, bool, error)
Click to show internal directories.
Click to hide internal directories.