Browse Source

add Reverse:for v1.0.7

tags/v1.0.7
huangjuajun 2 years ago
parent
commit
64627f1348
47 changed files with 47 additions and 48 deletions
  1. +1
    -1
      e/code.go
  2. +1
    -1
      e/error.go
  3. +1
    -1
      e/msg.go
  4. +1
    -1
      e/set_cache.go
  5. +1
    -2
      utils/base64.go
  6. +1
    -1
      utils/boolean.go
  7. +1
    -1
      utils/cache/base.go
  8. +1
    -1
      utils/cache/cache/cache.go
  9. +1
    -1
      utils/cache/cache/conv.go
  10. +1
    -1
      utils/cache/cache/file.go
  11. +1
    -1
      utils/cache/cache/memory.go
  12. +1
    -1
      utils/cache/redis.go
  13. +1
    -1
      utils/cache/redis_cluster.go
  14. +1
    -1
      utils/cache/redis_pool.go
  15. +1
    -1
      utils/cache/redis_pool_cluster.go
  16. +1
    -1
      utils/convert.go
  17. +1
    -1
      utils/crypto.go
  18. +1
    -1
      utils/curl.go
  19. +1
    -1
      utils/debug.go
  20. +1
    -1
      utils/distance.go
  21. +1
    -1
      utils/duplicate.go
  22. +1
    -1
      utils/file.go
  23. +1
    -1
      utils/file_and_dir.go
  24. +1
    -1
      utils/format.go
  25. +1
    -1
      utils/json.go
  26. +1
    -1
      utils/logx/log.go
  27. +1
    -1
      utils/logx/output.go
  28. +1
    -1
      utils/logx/sugar.go
  29. +1
    -1
      utils/map_and_struct.go
  30. +1
    -1
      utils/md5.go
  31. +1
    -1
      utils/qrcode/decodeFile.go
  32. +1
    -1
      utils/qrcode/getBase64.go
  33. +1
    -1
      utils/qrcode/saveFile.go
  34. +1
    -1
      utils/qrcode/writeWeb.go
  35. +1
    -1
      utils/rand.go
  36. +1
    -1
      utils/rsa.go
  37. +1
    -1
      utils/serialize.go
  38. +1
    -1
      utils/shuffle.go
  39. +1
    -1
      utils/sign_check.go
  40. +1
    -1
      utils/slice.go
  41. +1
    -1
      utils/slice_and_string.go
  42. +1
    -1
      utils/string.go
  43. +1
    -1
      utils/struct2UrlParams.go
  44. +1
    -1
      utils/time.go
  45. +1
    -1
      utils/translate.go
  46. +1
    -1
      utils/trim_html.go
  47. +1
    -1
      utils/uuid.go

+ 1
- 1
e/code.go View File

@@ -1,4 +1,4 @@
package e
package zhios_tool_e


const ( const (
// 200 因为部分第三方接口不能返回错误头,因此在此定义部分错误 // 200 因为部分第三方接口不能返回错误头,因此在此定义部分错误


+ 1
- 1
e/error.go View File

@@ -1,4 +1,4 @@
package e
package zhios_tool_e


import ( import (
"fmt" "fmt"


+ 1
- 1
e/msg.go View File

@@ -1,4 +1,4 @@
package e
package zhios_tool_e


import ( import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_tools.git/utils" "code.fnuoos.com/go_rely_warehouse/zyos_go_tools.git/utils"


+ 1
- 1
e/set_cache.go View File

@@ -1,4 +1,4 @@
package e
package zhios_tool_e


func SetCache(cacheTime int64) map[string]interface{} { func SetCache(cacheTime int64) map[string]interface{} {
if cacheTime == 0 { if cacheTime == 0 {


+ 1
- 2
utils/base64.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"encoding/base64" "encoding/base64"
@@ -95,7 +95,6 @@ func base64Encode(encode int) *base64.Encoding {
} }
} }



func JudgeBase64(str string) bool { func JudgeBase64(str string) bool {
pattern := "^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$" pattern := "^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{4}|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)$"
matched, err := regexp.MatchString(pattern, str) matched, err := regexp.MatchString(pattern, str)


+ 1
- 1
utils/boolean.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import "reflect" import "reflect"




+ 1
- 1
utils/cache/base.go View File

@@ -1,4 +1,4 @@
package cache
package zhios_tool_cache


import ( import (
"errors" "errors"


+ 1
- 1
utils/cache/cache/cache.go View File

@@ -1,4 +1,4 @@
package cache
package zhios_tool_cache


import ( import (
"fmt" "fmt"


+ 1
- 1
utils/cache/cache/conv.go View File

@@ -1,4 +1,4 @@
package cache
package zhios_tool_cache


import ( import (
"fmt" "fmt"


+ 1
- 1
utils/cache/cache/file.go View File

@@ -1,4 +1,4 @@
package cache
package zhios_tool_cache


import ( import (
"bytes" "bytes"


+ 1
- 1
utils/cache/cache/memory.go View File

@@ -1,4 +1,4 @@
package cache
package zhios_tool_cache


import ( import (
"encoding/json" "encoding/json"


+ 1
- 1
utils/cache/redis.go View File

@@ -1,4 +1,4 @@
package cache
package zhios_tool_cache


import ( import (
"encoding/json" "encoding/json"


+ 1
- 1
utils/cache/redis_cluster.go View File

@@ -1,4 +1,4 @@
package cache
package zhios_tool_cache


import ( import (
"strconv" "strconv"


+ 1
- 1
utils/cache/redis_pool.go View File

@@ -1,4 +1,4 @@
package cache
package zhios_tool_cache


import ( import (
"errors" "errors"


+ 1
- 1
utils/cache/redis_pool_cluster.go View File

@@ -1,4 +1,4 @@
package cache
package zhios_tool_cache


import ( import (
"strconv" "strconv"


+ 1
- 1
utils/convert.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"encoding/binary" "encoding/binary"


+ 1
- 1
utils/crypto.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"crypto/md5" "crypto/md5"


+ 1
- 1
utils/curl.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"bytes" "bytes"


+ 1
- 1
utils/debug.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"fmt" "fmt"


+ 1
- 1
utils/distance.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import "math" import "math"




+ 1
- 1
utils/duplicate.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


func RemoveDuplicateString(elms []string) []string { func RemoveDuplicateString(elms []string) []string {
res := make([]string, 0, len(elms)) res := make([]string, 0, len(elms))


+ 1
- 1
utils/file.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"os" "os"


+ 1
- 1
utils/file_and_dir.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import "os" import "os"




+ 1
- 1
utils/format.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"math" "math"


+ 1
- 1
utils/json.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"bytes" "bytes"


+ 1
- 1
utils/logx/log.go View File

@@ -1,4 +1,4 @@
package logx
package zhios_tool_logx


import ( import (
"os" "os"


+ 1
- 1
utils/logx/output.go View File

@@ -1,4 +1,4 @@
package logx
package zhios_tool_logx


import ( import (
"bytes" "bytes"


+ 1
- 1
utils/logx/sugar.go View File

@@ -1,4 +1,4 @@
package logx
package zhios_tool_logx


import ( import (
"errors" "errors"


+ 1
- 1
utils/map_and_struct.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"encoding/json" "encoding/json"


+ 1
- 1
utils/md5.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"crypto/md5" "crypto/md5"


+ 1
- 1
utils/qrcode/decodeFile.go View File

@@ -1,4 +1,4 @@
package qrcode
package zhios_tool_qrcode


import ( import (
"image" "image"


+ 1
- 1
utils/qrcode/getBase64.go View File

@@ -1,4 +1,4 @@
package qrcode
package zhios_tool_qrcode


// 生成登录二维码图片, 方便在网页上显示 // 生成登录二维码图片, 方便在网页上显示




+ 1
- 1
utils/qrcode/saveFile.go View File

@@ -1,4 +1,4 @@
package qrcode
package zhios_tool_qrcode


// 生成登录二维码图片 // 生成登录二维码图片




+ 1
- 1
utils/qrcode/writeWeb.go View File

@@ -1,4 +1,4 @@
package qrcode
package zhios_tool_qrcode


import ( import (
"bytes" "bytes"


+ 1
- 1
utils/rand.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
crand "crypto/rand" crand "crypto/rand"


+ 1
- 1
utils/rsa.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"bytes" "bytes"


+ 1
- 1
utils/serialize.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"encoding/json" "encoding/json"


+ 1
- 1
utils/shuffle.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"math/rand" "math/rand"


+ 1
- 1
utils/sign_check.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_tools.git/utils/logx" "code.fnuoos.com/go_rely_warehouse/zyos_go_tools.git/utils/logx"


+ 1
- 1
utils/slice.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


// ContainsString is 字符串是否包含在字符串切片里 // ContainsString is 字符串是否包含在字符串切片里
func ContainsString(array []string, val string) (index int) { func ContainsString(array []string, val string) (index int) {


+ 1
- 1
utils/slice_and_string.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"fmt" "fmt"


+ 1
- 1
utils/string.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"fmt" "fmt"


+ 1
- 1
utils/struct2UrlParams.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import "sort" import "sort"




+ 1
- 1
utils/time.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"errors" "errors"


+ 1
- 1
utils/translate.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_tools.git/utils/cache" "code.fnuoos.com/go_rely_warehouse/zyos_go_tools.git/utils/cache"


+ 1
- 1
utils/trim_html.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"regexp" "regexp"


+ 1
- 1
utils/uuid.go View File

@@ -1,4 +1,4 @@
package utils
package zhios_tool_utils


import ( import (
"fmt" "fmt"


Loading…
Cancel
Save