13 lines
261 B
Go
13 lines
261 B
Go
package server
|
|
|
|
import (
|
|
"joylink.club/iot/dto"
|
|
"joylink.club/iot/log"
|
|
)
|
|
|
|
// 获取IOT日志请求响应
|
|
func GetIotLog(req *dto.IotServiceLogReq) *dto.IotServiceLogResp {
|
|
tails := log.GetTailsOf(int(req.Count))
|
|
return &dto.IotServiceLogResp{Logs: tails}
|
|
}
|