Documentation
¶
Index ¶
- Constants
- Variables
- func CheckOnlineDevice(te time.Time, str string) bool
- func ConvertToStringSlice(arr []int64) []string
- func DateTimeToString(t time.Time) string
- func EndTime(endTime string) (time.Time, error)
- func FR(c *gin.Context, err error)
- func FRA(c *gin.Context)
- func FRC(c *gin.Context, err error, data interface{}, code int)
- func FRD(c *gin.Context, err error, data interface{})
- func FRP(c *gin.Context)
- func Float64ToString(f float64) string
- func Int64ToString(i int64) string
- func IntToString(i int) string
- func MD5(str string) string
- func Now() string
- func NowYYMMDD() string
- func ParseIdCard(idCard string) (time.Time, int32)
- func PutFile(req *http.Request, paramName string) (object model.Oss, err error)
- func PutFileWithBase64(req *http.Request, paramName string) (object model.Oss, err error)
- func PutFileWithBinary(req *http.Request) (object model.Oss, err error)
- func PutFileWithFile(req *http.Request, paramName string) (object model.Oss, err error)
- func PutFileWithUrl(req *http.Request, paramName string) (object model.Oss, err error)
- func R(c *gin.Context, data interface{}, err error)
- func RandomStrByNum(n int) string
- func RandomStrByTime(n int) string
- func RemoveDuplicates(a []string) []string
- func SHA1(s string) string
- func StartTime(startTime string) (time.Time, error)
- func StrToTime(str string) (time.Time, error)
- func StringToDateTime(str string) (time.Time, error)
- func StringToFloat64(s string) float64
- func StringToInt(s string) int
- func StringToInt64(s string) int64
- func TenantAccessTokenJWTMiddleware() func(c *gin.Context)
- func TimeToString(t time.Time) string
- func TodayEndTime(time time.Time) (time.Time, error)
- func TodayStartTime(time time.Time) (time.Time, error)
- func TraceId() func(c *gin.Context)
- func UserAccessTokenJWTMiddleware() func(c *gin.Context)
- type BaseResponse
Constants ¶
View Source
const ( ServiceError = iota + 4000 ParameterError AuthError )
Variables ¶
View Source
var ErrMsg = map[int]string{ ParameterError: "参数错误", AuthError: "无权操作", }
Functions ¶
func ConvertToStringSlice ¶
ConvertToStringSlice 将int64类型的切片转换为string类型的切片
func DateTimeToString ¶
func Float64ToString ¶
func PutFileWithBase64 ¶
PutFileWithBase64 上传base64文件
func PutFileWithBinary ¶
PutFileWithBinary 上传二进制文件
func PutFileWithFile ¶
PutFileWithFile 上传表单文件
func PutFileWithUrl ¶
PutFileWithUrl 上传远程文件
func StringToFloat64 ¶
Types ¶
type BaseResponse ¶
Click to show internal directories.
Click to hide internal directories.