|
@@ -55,6 +55,7 @@ func UUID() string {
|
|
|
|
|
|
// CheckString 字符串比较
|
|
|
func CheckString(target string, value string, operator int) bool {
|
|
|
+ fmt.Printf("字符串比较:target:%s,value:%s,operator:%d\n", target, value, operator)
|
|
|
switch operator {
|
|
|
case 1:
|
|
|
return target == value
|
|
@@ -70,6 +71,7 @@ func CheckString(target string, value string, operator int) bool {
|
|
|
|
|
|
// CheckInt 数值比较
|
|
|
func CheckInt(target, value, operator int) bool {
|
|
|
+ fmt.Printf("数值比较:target:%d,value:%d,operator:%d\n", target, value, operator)
|
|
|
switch operator {
|
|
|
case 1:
|
|
|
return value > target
|