feat(region):加入服务启动时同步行政区划。

This commit is contained in:
徐涛
2022-08-12 16:39:49 +08:00
parent dd38fd6d6f
commit b213b32325
5 changed files with 3869 additions and 2 deletions

10
utils/utils.go Normal file
View File

@@ -0,0 +1,10 @@
package utils
func Contains[T string | int | uint](element T, slice []T) bool {
for _, v := range slice {
if v == element {
return true
}
}
return false
}