forked from free-lancers/electricity_bill_calc_service
refactor(controller):精简控制器中路由的注册。
This commit is contained in:
@@ -30,7 +30,7 @@ func PinyinAbbr(source string) string {
|
||||
return finalAbbr
|
||||
}
|
||||
|
||||
func Keys[T comparable](m map[T]any) []T {
|
||||
func Keys[T comparable, V any](m map[T]V) []T {
|
||||
keys := make([]T, 0, len(m))
|
||||
for key := range m {
|
||||
keys = append(keys, key)
|
||||
|
Reference in New Issue
Block a user