Documentation ¶
Index ¶
- func Contains(array interface{}, val interface{}) (index int)
- func CopyProperties(dst, src interface{}) (err error)
- func GeneratePageSql(createTime []string, blurry string, sort []string, blurryProperties []string, ...) (string, string)
- func GetRsaKey() error
- func GetShortUuid() string
- func GetUuid() string
- func GetVerifyCode() string
- func MapToJson(data map[string]interface{}) string
- func ParseJsonToMap(data string) map[string]interface{}
- func ParseToIntList(data string) []int
- func RsaDecrypt(cryptText []byte) (plainText string, err error)
- func RsaEncrypt(plainText string) (cryptText []byte, err error)
- func Test()
- func ToJsonString(data interface{}) (string, error)
- func TransToHtml(md string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
func Contains(array interface{}, val interface{}) (index int)
Contains: 检查数组是否包含指定元素 是返回元素下标 否返回-1
func CopyProperties ¶
func CopyProperties(dst, src interface{}) (err error)
CopyProperties: 模仿Beanutils.copyProperties
func GeneratePageSql ¶
func GeneratePageSql(createTime []string, blurry string, sort []string, blurryProperties []string, beforeOrder string) (string, string)
GeneratePageSql: 构建分页模糊搜索 sql 语句
func RsaDecrypt ¶
RsaDecrypt: 解密,传入密文,返回解密后的明文
func RsaEncrypt ¶
RsaEncrypt: RSA加密,传入明文返回密文
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.