package com.sptg.iot.biz.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.sptg.common.core.beans.ResultBean;
import com.sptg.iot.api.beans.ApiResultBean;
import com.sptg.iot.api.dto.IotApiLogDto;
import com.sptg.iot.api.entity.IotApiLog;
import com.sptg.iot.api.entity.IotApiLog;

/**
 * @author zwx
 * @create 2020/10/21 0:45
 */
public interface IotApiLogServiceInterface extends IService<IotApiLog> {

    public void recordIotApiLog(String apiMethod, String prefix, String appId, String reqData, ApiResultBean apiResultBean);

    /**
     * 分页获取接口日志列表
     * @param iotApiLogDto
     * @return
     */
    ResultBean<Page<IotApiLog>> pagingQuery(IotApiLogDto iotApiLogDto);

    public IotApiLog getIotApiLogById(Long id);
}
