新增系统设置接口
This commit is contained in:
commit
389d2970c0
150 files changed
+21555
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package tools
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
"strings"
|
||||
)
|
||||
|
||||
//获取URL中批量id并解析
|
||||
func IdsStrToIdsIntGroup(key string, c *gin.Context) []int {
|
||||
return idsStrToIdsIntGroup(c.Param(key))
|
||||
}
|
||||
|
||||
func idsStrToIdsIntGroup(keys string) []int {
|
||||
IDS := make([]int, 0)
|
||||
ids := strings.Split(keys, ",")
|
||||
for i := 0; i < len(ids); i++ {
|
||||
ID, _ := StringToInt(ids[i])
|
||||
IDS = append(IDS, ID)
|
||||
}
|
||||
return IDS
|
||||
}
|
||||
Reference in new issue
Block a user