packagegroupPower_mimport("git.hilo.cn/hilo-common/domain""git.hilo.cn/hilo-common/resource/mysql")typeGroupPowerInfostruct{mysql.EntityGroupUidstringNamestringNameplatestringDeclarationstringIconstringStatusint}func(GroupPowerInfo)TableName()string{return"group_power"}// 批量获取家族信息funcMGetGroupPowerInfoMap(model*domain.Model,groupPowerIds[]mysql.ID)(map[mysql.ID]GroupPowerInfo,error){varrows[]GroupPowerInfores:=make(map[mysql.ID]GroupPowerInfo)iferr:=model.DB().Model(GroupPowerInfo{}).Where("id in ?",groupPowerIds).Find(&rows).Error;err!=nil{model.Log.Errorf("MGetGroupPowerInfo fail:%v",err)returnres,err}