12345678910111213141516171819 |
- package service
- import (
- "iot_manager_service/app/device/dao"
- )
- var IntelligentLightingService = new(intelligentLightingService)
- type intelligentLightingService struct{}
- func (s *intelligentLightingService) BatchGet(ids []int) []dao.IntelligentLighting {
- // 创建查询实例
- intelligent := &dao.IntelligentLighting{}
- conditions, err := intelligent.BatchGet(ids)
- if err != nil {
- return nil
- }
- return conditions
- }
|