Roc hai 1 mes
pai
achega
bc40bca679
Modificáronse 1 ficheiros con 0 adicións e 30 borrados
  1. 0 30
      utils/common.go

+ 0 - 30
utils/common.go

@@ -2868,36 +2868,6 @@ func FindMinMax(numbers []float64) (min float64, max float64) {
 	return min, max
 }
 
-// IsAdminRole
-// @Description: 判断是否管理员角色
-// @author: Roc
-// @datetime 2024-11-12 09:40:48
-// @param roleTypeCode string
-// @return bool
-func IsAdminRole(roleTypeCode string) bool {
-	return roleTypeCode == ROLE_TYPE_CODE_ADMIN
-}
-
-// FindMinMax 取出数组中的最小值和最大值
-func FindMinMax(numbers []float64) (min float64, max float64) {
-	if len(numbers) == 0 {
-		return 0, 0 // 如果切片为空,返回0, 0
-	}
-
-	min, max = numbers[0], numbers[0] // 初始化 min 和 max 为切片的第一个元素
-
-	for _, num := range numbers {
-		if num < min {
-			min = num
-		}
-		if num > max {
-			max = num
-		}
-	}
-
-	return min, max
-}
-
 // GetExcelDate
 // @Description: 获取excel的日期
 // @author: Roc