Documentation ¶
Index ¶
- Constants
- Variables
- func AESCbcDecrypt(secretKey, src string) string
- func AESCbcEncrypt(secretKey, src string) string
- func GetAbsPath() string
- func GetCurrentAbPath() string
- func GetCurrentAbPathByExecutable() string
- func GetCurrentDirectory() string
- func GetCurrentPath() (string, error)
- func GetFileContent(filePath string) (string, error)
- func GetFirstMacAddress() (string, error)
- func IsTempDirRun() bool
- func JsonFileToObject(filePath string, interfacePtr interface{}) error
- func Lcfirst(str string) string
- func Mkdir(dir string)
- func Padding(plainText []byte, blockSize int) []byte
- func PathExists(path string) bool
- func RegisterConsulServer()
- func ToDateTime(context *gin.Context, paraName string) *time.Time
- func ToInt(context *gin.Context, paraName string) int
- func ToInt64(context *gin.Context, paraName string) int64
- func ToObject(sourceObj interface{}, destPtr interface{}) error
- func ToString(context *gin.Context, paraName string) string
- func UnPadding(plainText []byte) []byte
- type C_Datetime
- func (t C_Datetime) After(u time.Time) bool
- func (t C_Datetime) Before(u time.Time) bool
- func (t C_Datetime) Equal(u time.Time) bool
- func (t C_Datetime) EqualMinTime() bool
- func (t C_Datetime) Format(format string) string
- func (t C_Datetime) MarshalJSON() ([]byte, error)
- func (t C_Datetime) Now() C_Datetime
- func (t C_Datetime) Unix() int64
- func (t *C_Datetime) UnmarshalJSON(data []byte) (err error)
- type C_float32
- type C_int
- type C_int32
- type HttpResponseInfo
- type JsonSnakeCase
- type QueryFilter
- type QueryResult
- type ScheduleHelper
Constants ¶
View Source
const ( TimeFormart = "2006-01-02 15:04:05" TimeFormart2 = "2006-01-02 15:04:05.999" )
View Source
const AuthKey string = "lxg1111111111111111111111111111111111"
Variables ¶
View Source
var LOC, _ = time.LoadLocation("Asia/Shanghai")
Functions ¶
func AESCbcDecrypt ¶
func AESCbcEncrypt ¶
func GetAbsPath ¶
func GetAbsPath() string
func GetCurrentDirectory ¶
func GetCurrentDirectory() string
func GetCurrentPath ¶
func GetFileContent ¶
func GetFirstMacAddress ¶
func IsTempDirRun ¶
func IsTempDirRun() bool
func JsonFileToObject ¶
func PathExists ¶
func RegisterConsulServer ¶
func RegisterConsulServer()
Types ¶
type C_Datetime ¶
func Now ¶
func Now() C_Datetime
func (C_Datetime) EqualMinTime ¶
func (t C_Datetime) EqualMinTime() bool
func (C_Datetime) Format ¶
func (t C_Datetime) Format(format string) string
func (C_Datetime) MarshalJSON ¶
func (t C_Datetime) MarshalJSON() ([]byte, error)
func (C_Datetime) Now ¶
func (t C_Datetime) Now() C_Datetime
func (C_Datetime) Unix ¶
func (t C_Datetime) Unix() int64
func (*C_Datetime) UnmarshalJSON ¶
func (t *C_Datetime) UnmarshalJSON(data []byte) (err error)
type HttpResponseInfo ¶
type HttpResponseInfo struct { Content interface{} `json:"content"` Message string `json:"message"` StatusCode int `json:"statusCode"` }
func GetHttpResponseInstance ¶
func GetHttpResponseInstance() *HttpResponseInfo
func (HttpResponseInfo) Error ¶
func (receiver HttpResponseInfo) Error(msg interface{}, c *gin.Context)
func (HttpResponseInfo) InvalidParameter ¶
func (receiver HttpResponseInfo) InvalidParameter(c *gin.Context)
func (HttpResponseInfo) SessionInValid ¶
func (receiver HttpResponseInfo) SessionInValid(c *gin.Context)
func (HttpResponseInfo) Success ¶
func (receiver HttpResponseInfo) Success(content interface{}, c *gin.Context)
type JsonSnakeCase ¶
type JsonSnakeCase struct {
Value interface{}
}
func (JsonSnakeCase) MarshalJSON ¶
func (c JsonSnakeCase) MarshalJSON() ([]byte, error)
type QueryFilter ¶
type QueryResult ¶
type ScheduleHelper ¶
type ScheduleHelper struct { }
func NewScheduleHelper ¶
func NewScheduleHelper() *ScheduleHelper
Click to show internal directories.
Click to hide internal directories.