package com.red.circle.other.infra.database.mongo.service.sys;

import com.red.circle.other.infra.database.mongo.entity.sys.ApiOperationLog;
import com.red.circle.other.infra.database.mongo.entity.sys.query.ApiOperationLogQuery;
import java.util.List;

/**
 * api请求日志.
 *
 * @author pengliang on 2022/3/31
 */
public interface ApiOperationLogService {

  /**
   * 添加日志.
   */
  void add(ApiOperationLog log);

  /**
   * 获取最近业务请求数据.
   */
  List<ApiOperationLog> list(ApiOperationLogQuery query);

}
