2023-12-20 14:05:07 +08:00
|
|
|
package server
|
|
|
|
|
|
|
|
import (
|
|
|
|
"joylink.club/iot/dto"
|
2023-12-22 15:06:08 +08:00
|
|
|
"joylink.club/iot/log"
|
2023-12-20 14:05:07 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// 获取IOT日志请求响应
|
|
|
|
func GetIotLog(req *dto.IotServiceLogReq) *dto.IotServiceLogResp {
|
2023-12-22 15:06:08 +08:00
|
|
|
tails := log.GetTailsOf(int(req.Count))
|
|
|
|
return &dto.IotServiceLogResp{Logs: tails}
|
2023-12-20 14:05:07 +08:00
|
|
|
}
|