12 lines
220 B
Go
12 lines
220 B
Go
|
|
package service
|
||
|
|
|
||
|
|
import "videoplayer/dao"
|
||
|
|
|
||
|
|
func GetDeviceList(auth_id int) []dao.Device {
|
||
|
|
return dao.FindDeviceByAuthID(auth_id)
|
||
|
|
}
|
||
|
|
|
||
|
|
func GetDevice(id, auth_id int) dao.Device {
|
||
|
|
return dao.FindDeviceByID(id, auth_id)
|
||
|
|
}
|