Documentation ¶
Index ¶
- Constants
- Variables
- func Crc32(str string) uint32
- func CurrentDate() string
- func Fail(ctx *gin.Context, msg string)
- func GenerateUniqId(params string) string
- func GetType(data interface{}) string
- func InitLog(c config.Conf) error
- func Int64ToString(i64 int64) string
- func SetLogLevel(log *logrus.Logger, levelString string) error
- func SetLogOut(log *logrus.Logger, outString string) error
- func StringToInt64(s string) int64
- func Success(ctx *gin.Context, msg string, data interface{})
- func TimestampToDate(timestamp int64) string
Constants ¶
View Source
const ( SUCCESS int = 0 // 操作成功 FAILED int = 1 // 操作失败 )
Variables ¶
View Source
var ( LogAccess *logrus.Logger LogError *logrus.Logger )
Functions ¶
func CurrentDate ¶
func CurrentDate() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.