package data import ( "eta_gn/eta_api/models/data_manage" "fmt" ) // BatchAddNoPermissionAdmin 批量添加配置 func BatchAddNoPermissionAdmin(edbInfoIdList []int, adminIdList []int) (err error) { errMsgList := make([]string, 0) for _, edbInfoId := range edbInfoIdList { obj := data_manage.EdbInfoNoPermissionAdmin{} err = obj.AddByEdbInfoId(edbInfoId, adminIdList) if err != nil { errMsgList = append(errMsgList, fmt.Sprint(edbInfoId, "指标添加失败,err:", err)) } } return }