Documentation ¶
Index ¶
- Constants
- func AESDecrypt(baseStr string) string
- func AESEncrypt(originPWD []byte) string
- func CheckPWD(password, enPassword string) bool
- func CreateDir(dirName string) bool
- func Error(ctx iris.Context, status int, code constants.Code)
- func Exists(path string) bool
- func GetServiceSql(sqlCode string) serviceSql.ServiceSqlDto
- func InternalServerError(ctx iris.Context, code constants.Code)
- func IsDir(fileAddr string) bool
- func IsEmpty(value string) bool
- func IsFile(fileAddr string) bool
- func Ok(ctx iris.Context, code constants.Code, data interface{})
- func Ok_(ctx iris.Context, code constants.Code)
- func PaginationTableData(ctx iris.Context, total int64, data interface{})
- func ParseIntValueFromInterface(param map[string]interface{}, name string) int64
- func ParseObjectValueFromInterface(param map[string]interface{}, name string) interface{}
- func ParseStringValueFromInterface(param map[string]interface{}, name string) string
- func Unauthorized(ctx context.Context, code constants.Code)
- type Pagination
Constants ¶
View Source
const ( Cache_redis = "redis" Cache_local = "local" )
Variables ¶
This section is empty.
Functions ¶
func AESDecrypt ¶
----------------------------------------------------------- ----------------------- 解密 ------------------------------ ----------------------------------------------------------- 先base64转码,再解密
func AESEncrypt ¶
----------------------------------------------------------- ----------------------- 加密 ------------------------------ ----------------------------------------------------------- 加密后再base64编码成string
func GetServiceSql ¶
func GetServiceSql(sqlCode string) serviceSql.ServiceSqlDto
func InternalServerError ¶
func PaginationTableData ¶
func PaginationTableData(ctx iris.Context, total int64, data interface{})
func ParseIntValueFromInterface ¶
* 从interface 对象中反射 出值
Types ¶
type Pagination ¶
type Pagination struct { Start int `json:"start" validate:"min=0"` Size int `json:"size" validate:"min=0"` }
pagination struct
Click to show internal directories.
Click to hide internal directories.