chart_edb_config.go 457 B

123456789101112131415161718
  1. package data
  2. import (
  3. "eta_gn/eta_api/models/data_manage"
  4. "fmt"
  5. )
  6. func BatchAddNoPermissionAdmin(edbInfoIdList []int, adminIdList []int) (err error) {
  7. errMsgList := make([]string, 0)
  8. for _, edbInfoId := range edbInfoIdList {
  9. obj := data_manage.EdbInfoNoPermissionAdmin{}
  10. err = obj.AddByEdbInfoId(edbInfoId, adminIdList)
  11. if err != nil {
  12. errMsgList = append(errMsgList, fmt.Sprint(edbInfoId, "指标添加失败,err:", err))
  13. }
  14. }
  15. return
  16. }