Documentation ¶
Index ¶
- func EncodeMD5(value string) string
- func GenerateToken(username, password string) (string, error)
- func GetPage(request *restful.Request) int
- func GetPageSize(request *restful.Request) int
- func IntSliceToString(int_arr []int) string
- func StringSliceToString(int_arr []string) string
- func StringToIntSlice(str string) []int
- func StringToStringSlice(str string) []string
- func ValidatorMap() map[string]interface{}
- type Claims
- type JSONTime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
GenerateToken generate tokens used for auth
func StringSliceToString ¶
StringSliceToString string切片转字符串
func StringToStringSlice ¶
StringToStringSlice 字符串转String切片
func ValidatorMap ¶
func ValidatorMap() map[string]interface{}
Types ¶
type Claims ¶
type JSONTime ¶
JSONTime format json time field by myself
func (JSONTime) MarshalJSON ¶
MarshalJSON on JSONTime format Time field with %Y-%m-%d %H:%M:%S
Click to show internal directories.
Click to hide internal directories.