From f851fa7727e4b2384bd5c32793bd58c07e55a53d Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 12 十二月 2019 14:24:24 +0800
Subject: [PATCH] FindAllFile add page and size

---
 extend/util/util.go |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/extend/util/util.go b/extend/util/util.go
index 542dd2c..f3dc879 100644
--- a/extend/util/util.go
+++ b/extend/util/util.go
@@ -11,7 +11,6 @@
 
 	"basic.com/pubsub/protomsg.git"
 	"github.com/gin-gonic/gin"
-	"github.com/golang/glog"
 	"github.com/pierrec/lz4"
 	"gocv.io/x/gocv"
 
@@ -36,7 +35,6 @@
 // ResponseFormat 杩斿洖鏁版嵁鏍煎紡鍖�
 func ResponseFormat(c *gin.Context, respStatus *code.Code, data interface{}) {
 	if respStatus == nil {
-		glog.Error("response status param not found!")
 		respStatus = code.RequestParamError
 	}
 	c.JSON(respStatus.Status, gin.H{
@@ -173,6 +171,14 @@
 	return float32(f)
 }
 
+func ParseScore64(compareScore float64) float64 {
+	if compareScore < 1 {
+		compareScore = compareScore * 100
+	}
+	f, _ := strconv.ParseFloat(fmt.Sprintf("%2.2f", compareScore), 64)
+	return f
+}
+
 // UnCompress uncompress
 func UnCompress(in []byte) ([]byte, error) {
 	out := make([]byte, 10*len(in))

--
Gitblit v1.8.0