package cn.qinys.platform.upms.api.service;

import cn.qinys.platform.upms.api.req.GaoDeGetAddressReq;
import com.alibaba.fastjson2.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import cn.qinys.platform.upms.api.req.GaoDeKeyPageReq;
import cn.qinys.platform.upms.api.resp.GaoDeKeyPageResp;

import java.math.BigDecimal;

/**
 * 网关日志
 *
 * @author tanlie
 * Date: 2024/4/26 17:31
 */
public interface IGaoDeKeyService {

    /**
     * 网关日志分页
     *
     * @param req
     * @return
     */
    Page<GaoDeKeyPageResp> getPage(GaoDeKeyPageReq req);

    /**
     * get address
     * @param req
     * @return
     */
    String getAddress(GaoDeGetAddressReq req);


    JSONObject getGaoDeResult(String key, BigDecimal lon, BigDecimal lat, Integer index);
}
