package Account import ( userlibs "gogs.baozhida.cn/zoie/ERP_libs/User" "sync" ) var User_r *userlibs.User var AdminMap *sync.Map // 泛型 func init() { AdminMap = new(sync.Map) } func Read_User_All_Map(A []userlibs.User) { for _, v := range A { AdminMap.Store(v.T_uuid, v) } } func Read_User_T_name_Get(T_uuid string) string { v, ok := AdminMap.Load(T_uuid) if ok { return v.(userlibs.User).T_name } else { return "" } }