package com.red.circle.external.inner.endpoint.binance.api;

import com.red.circle.framework.dto.ResultResponse;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.UnsupportedEncodingException;
import java.security.InvalidKeyException;
import java.security.NoSuchAlgorithmException;

/**
 * 图片安全鉴定.
 *
 * @author pengliang on 2023/10/17
 */
public interface BinanceClientApi {

    String API_PREFIX = "/binance/client";

    /**
     * 鉴定.
     *
     * @param txId 被鉴定的图片url
     */
    @GetMapping("/deposit/history")
    ResultResponse<String> depositHistory(@RequestParam("txId") String txId);

    @GetMapping("/transactions")
    ResultResponse<String> transactions(@RequestParam("orderId") String orderId)
            throws UnsupportedEncodingException, NoSuchAlgorithmException, InvalidKeyException;
}
