package org.dromara.util;

import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.annotation.Query;

import java.util.Map;

public interface YingshiHttp {

    @Post("https://open.ys7.com/api/lapp/token/get")
    Map<String,Object> getAccessToken(@Query("appKey") String accessKey, @Query("appSecret") String secretKey);

    @Post("https://open.ys7.com/api/lapp/v2/live/address/get")
    Map<String,Object> getLiveAddress(@Query("accessToken") String accessToken, @Query("deviceSerial") String deviceSerial);
}
