intelligentLightingService.go 426 B

12345678910111213141516171819
  1. package service
  2. import (
  3. "iot_manager_service/app/device/dao"
  4. )
  5. var IntelligentLightingService = new(intelligentLightingService)
  6. type intelligentLightingService struct{}
  7. func (s *intelligentLightingService) BatchGet(ids []int) []dao.IntelligentLighting {
  8. // 创建查询实例
  9. intelligent := &dao.IntelligentLighting{}
  10. conditions, err := intelligent.BatchGet(ids)
  11. if err != nil {
  12. return nil
  13. }
  14. return conditions
  15. }