feat:update search

This commit is contained in:
zhangwenjian committed 2020-08-28 00:52:16 +08:00
1 parent 1dffcb7199
commit 87edf1099c
6 files changed
+28 -48

No files matched your search

+2 -2
View File
@@ -8,10 +8,10 @@ import (
//获取URL中批量id并解析
func IdsStrToIdsIntGroup(key string, c *gin.Context) []int {
return idsStrToIdsIntGroup(c.Param(key))
return IdsStrToIdsIntGroupStr(c.Param(key))
}
func idsStrToIdsIntGroup(keys string) []int {
func IdsStrToIdsIntGroupStr(keys string) []int {
IDS := make([]int, 0)
ids := strings.Split(keys, ",")
for i := 0; i < len(ids); i++ {