Documentation
¶
Index ¶
- Variables
- func BatchAdd(DB *gorm.DB, insertDataArray *[]interface{}, dontReplaceField []string) (int64, error)
- func BatchAddOnlyInsertField(DB *gorm.DB, insertDataArray *[]interface{}, dontReplaceField []string) (int64, error)
- func BootstrapHttp(needCrypto bool, projectName string, ...) *http.Server
- func BytesCombine(pBytes ...[]byte) []byte
- func CORSMiddleware() gin.HandlerFunc
- func CompareString(v1 interface{}, v2 interface{}) bool
- func DaysOfMonth(year int, month int) (days int)
- func DefaultView(ctx *gin.Context)
- func DeleteNumberAtArr(number int, list ...interface{}) []interface{}
- func DeleteNumberAtArray(listParameter interface{}, number int) interface{}
- func Difference(slice1, slice2 []string) []string
- func ErrorCatch(err error, errorMessage string, c *gin.Context) bool
- func ErrorCatchEncryption(err error, errorMessage string, c *gin.Context) bool
- func Get(inputBytes []byte, inputType interface{}) (i interface{}, err error)
- func GetCode(chinese string) string
- func GetConfigStringList(c *config.Config, key string) []string
- func GetCurrentDirectory() string
- func GetCurrentPath() (string, error)
- func GetCurrentPathWithoutError() string
- func GetDetailDayByMonth(monthNo int) []string
- func GetFileFromMultipart(OssSavedObject *io.Reader, fileInformation *UploadFileInformation) (io.Reader, error)
- func GetFileWriter(fileInformation *UploadFileInformation) io.Writer
- func GetItfFromYml(path string) interface{}
- func GetMemoryWriter() io.Writer
- func GetMemoryWriter2() io.Writer
- func GetOrderMatch(primaryKeyName string, orderString string) string
- func GetOrderSpecify(inputString string) bool
- func GetOrderString(primaryKeyName string) string
- func GetQueryOptionFromContext(context *gin.Context)
- func GetRawString(context *gin.Context) []byte
- func GetRouter(needCrypto bool, ConfigCustomRouter func(*gin.Engine) *gin.Engine, ...) *gin.Engine
- func GetString(str interface{}) string
- func GetWithoutError(inputBytes []byte, inputType interface{}) (i interface{})
- func GinToLogrus() gin.HandlerFunc
- func HealthCheckDatabase(ctx *gin.Context)
- func InitHookServerHost(queryPath string) (string, string)
- func InitValidationServerHost() string
- func Intersect(slice1, slice2 []string) []string
- func JsonParse(input interface{}) []byte
- func JsonQuickParse(input interface{}) []byte
- func Logger() gin.HandlerFunc
- func MD5(inputBytes []byte) string
- func MatchAggregate(aggregate string) string
- func Md5Sum(str string) string
- func MergeMapToKey(jobMap map[string]interface{}, amalgamate []map[string]int) map[string]interface{}
- func MergeProperties(originInterface interface{}, propertiesInterface ...interface{}) interface{}
- func MergeToMap(mergeMap []map[string]int, keyStr string, keyList []int) []map[string]int
- func MustJSONDecode(b []byte, i interface{}) (err error)
- func NoMethodHandle() gin.HandlerFunc
- func NoMethodHandler(context *gin.Context)
- func NoRouterHandle() gin.HandlerFunc
- func NoRouterHandler(context *gin.Context)
- func PostRequestHook(hookPath string, requestBody []byte, token string, hookUrl string, ...) error
- func PreRequestCheck(checkUrl string, requestBody []byte) error
- func RandNumber(min int, max int) int
- func RandString(input string) int
- func RandomDay(allMonthDay []string, randomNumber int) []string
- func ReParkFile(OssSavedObject *io.Reader, fileInformation *UploadFileInformation) (io.Writer, error)
- func RecursionListFile(fileName string, resultFileList *[]string, pattern *string) ([]string, error)
- func RemoveReplicationString(slc []string) []string
- func RemoveReplicationStringByLoop(slc []string) []string
- func RemoveReplicationStringByMap(slc []string) []string
- func ReplaceTarGz(OssSavedObject *io.Reader, fileInformation *UploadFileInformation) (io.Writer, error)
- func RequestLogger() gin.HandlerFunc
- func StringToCode(text string, maxLength int) string
- func StringToDateCode(text string, maxLength int) string
- func StringToUnixCode(text string, maxLength int) string
- func UniformityRand(total int, min int, max int, median int) []int
- func UniformityRandString(total int, input string) []int
- func UniformityRandomNumber(total int, min int, max int, median int, average int) []int
- func Union(slice1, slice2 []string) []string
- func UploadToOss(ossConnection *oss.Client, ossBucket *oss.Bucket, writer io.Writer, ...) (*oss.Response, error)
- func ValidSQLSting(input string) string
- func VersionHandler() gin.HandlerFunc
- func WorkDayOfMonth(currentTime string) ([]interface{}, int)
- type BatchInsertDB
- type BatchInsertDBOnlyInsertField
- type FileInfo
- type I64
- type KeyValueSort
- type NUM
- type RequestOption
- type STR
- type UploadFileInformation
- type UploadFileInformationRes
- type ValSorter
Constants ¶
This section is empty.
Variables ¶
View Source
var CompletionName = "notfound.1"
View Source
var HostName = "notfound.0"
View Source
var QueryPathMapper = map[string]string{}
Functions ¶
func BatchAddOnlyInsertField ¶
func BootstrapHttp ¶
func BytesCombine ¶
func CORSMiddleware ¶
func CORSMiddleware() gin.HandlerFunc
func CompareString ¶
func CompareString(v1 interface{}, v2 interface{}) bool
func DaysOfMonth ¶
func DefaultView ¶
func DeleteNumberAtArr ¶
func DeleteNumberAtArr(number int, list ...interface{}) []interface{}
func DeleteNumberAtArray ¶
func DeleteNumberAtArray(listParameter interface{}, number int) interface{}
func Difference ¶
func ErrorCatchEncryption ¶
func GetCurrentDirectory ¶
func GetCurrentDirectory() string
func GetCurrentPath ¶
func GetCurrentPathWithoutError ¶
func GetCurrentPathWithoutError() string
func GetDetailDayByMonth ¶
func GetFileFromMultipart ¶
func GetFileWriter ¶
func GetFileWriter(fileInformation *UploadFileInformation) io.Writer
func GetItfFromYml ¶
func GetItfFromYml(path string) interface{}
func GetMemoryWriter ¶
func GetMemoryWriter2 ¶
func GetOrderMatch ¶
func GetOrderSpecify ¶
func GetOrderString ¶
func GetRawString ¶
func GetWithoutError ¶
func GetWithoutError(inputBytes []byte, inputType interface{}) (i interface{})
func GinToLogrus ¶
func GinToLogrus() gin.HandlerFunc
func HealthCheckDatabase ¶
HealthCheckDatabase @Summary HealthCheckDatabase @Description HealthCheckDatabase @Produce application/json @Router /health [GET]
func InitHookServerHost ¶
func InitValidationServerHost ¶
func InitValidationServerHost() string
func JsonQuickParse ¶
func JsonQuickParse(input interface{}) []byte
func Logger ¶
func Logger() gin.HandlerFunc
func MatchAggregate ¶
func MergeMapToKey ¶
func MergeMapToKey(jobMap map[string]interface{}, amalgamate []map[string]int) map[string]interface{}
INPUT [{a:*},{b:*}] [{ATTR1:1},{ATTR1:2}] OUTPUT [{a:{ATTR1:1}},{b:{ATTR1:2}}]
func MergeProperties ¶
func MergeProperties(originInterface interface{}, propertiesInterface ...interface{}) interface{}
func MergeToMap ¶
** INPUT [{},{}] ATTR1 [1,2] OUT [{ATTR1:1},{ATTR1:2}]
func MustJSONDecode ¶
func NoMethodHandle ¶
func NoMethodHandle() gin.HandlerFunc
func NoMethodHandler ¶
func NoRouterHandle ¶
func NoRouterHandle() gin.HandlerFunc
func NoRouterHandler ¶
func PostRequestHook ¶
func PreRequestCheck ¶
func RandNumber ¶
func RandString ¶
func ReParkFile ¶
func RecursionListFile ¶
func RemoveReplicationString ¶
func ReplaceTarGz ¶
func RequestLogger ¶
func RequestLogger() gin.HandlerFunc
func StringToCode ¶
func StringToDateCode ¶
func StringToUnixCode ¶
func UniformityRandString ¶
func UniformityRandomNumber ¶
func UploadToOss ¶
func ValidSQLSting ¶
func VersionHandler ¶
func VersionHandler() gin.HandlerFunc
func WorkDayOfMonth ¶
Types ¶
type BatchInsertDB ¶
func (*BatchInsertDB) BatchInsertWrapper ¶
func (db *BatchInsertDB) BatchInsertWrapper(objArr *[]interface{}, dontReplaceField []string) (int64, error)
type BatchInsertDBOnlyInsertField ¶
func (*BatchInsertDBOnlyInsertField) BatchInsertWrapperOnlyInsertField ¶
func (db *BatchInsertDBOnlyInsertField) BatchInsertWrapperOnlyInsertField(objArr *[]interface{}, dontReplaceField []string) (int64, error)
type FileInfo ¶
type KeyValueSort ¶
func SortMap ¶
func SortMap(m map[string]int) []KeyValueSort
type RequestOption ¶
type RequestOption struct { Page int `json:"page" description:"页码"` PageSize int `json:"pageSize" description:"分页大小"` Relation bool `json:"relation" description:"决定是否查询关联类"` State string `json:"state" description:"查询:强制查询state的值、修改和插入:"` Specify bool `json:"specify" description:"精确查询"` AutoRank bool `json:"autoRank" description:"自动排序"` Order string `json:"order" description:"排序方式"` Count string `json:"count" description:"按条件计算个数"` Strict bool `` /* 185-byte string literal not displayed */ Aggregate string `json:"aggregate" description:"聚合方式,left/right/full"` ReturnField []string `json:"field" description:"返回的字段"` Timeout int `json:"timeout" description:"查询超时"` }
type UploadFileInformation ¶
type ValSorter ¶
func NewValSorter ¶
Source Files
¶
- base-util.go
- bytes-util.go
- code-util.go
- day.go
- err-handle-util.go
- file-util.go
- gz-service.go
- hook-util.go
- http-log.go
- http-util.go
- json-util.go
- map-util.go
- md5_util.go
- number.go
- order-util.go
- orm-util-field.go
- orm-util.go
- os-util.go
- random-day.go
- relfect-util.go
- request-log-util.go
- request-option-util.go
- slice-util.go
- sort-util.go
- sql-util.go
- yml-util.go
Click to show internal directories.
Click to hide internal directories.