Documentation
¶
Index ¶
- Constants
- Variables
- func CreateDir(path string)
- func Cronexpr(exprstr string) (string, error)
- func DateTran(date string) string
- func DefaultGetValidParams(c *gin.Context, params interface{}) error
- func GenSaltPassword(salt, password string) string
- func GetBeforeDates(day int) []string
- func GetFileSize(fileanme string) int
- func GetTranslation(c *gin.Context) (ut.Translator, error)
- func GetValidator(c *gin.Context) (*validator.Validate, error)
- func HasDir(path string) (bool, error)
- func IntToBool(a int) bool
- func PrintLogo()
- func RsaDecode(strPlainText string) (string, error)
- func RsaEncode(plain string) (string, error)
- func StatusConversion(a int) string
- func StringToTime(receiveTime string) time.Time
- type CustomClaims
Constants ¶
View Source
const ( ValidatorKey = "ValidatorKey" TranslatorKey = "TranslatorKey" HistoryStatusAll = "all" HistoryStatusSuccess = "success" HistoryStatusFail = "fail" LargePageSize = 99999 )
View Source
const ( PublicKey = `` /* 450-byte string literal not displayed */ PrivateKey = `` /* 1703-byte string literal not displayed */ )
加解密相关
Variables ¶
View Source
var ( TaskSyncJob = 1 DateNumInfoJob = 2 )
View Source
var JWTToken jwtToken
Functions ¶
func DefaultGetValidParams ¶
func GenSaltPassword ¶
func GetFileSize ¶
func GetTranslation ¶
func GetValidator ¶
func StatusConversion ¶
func StringToTime ¶
Types ¶
type CustomClaims ¶
type CustomClaims struct { Uid int jwt.StandardClaims }
CustomClaims 自定义token中携带的信息
Click to show internal directories.
Click to hide internal directories.