package com.chinaweal.aiccs.outside.api;

import com.chinaweal.aiccs.outside.vo.ChangRuanResult;
import com.chinaweal.aiccs.outside.vo.Personnel;
import com.dtflys.forest.annotation.*;
import com.dtflys.forest.http.ForestResponse;

import java.util.List;
import java.util.Map;

/**
 * 与泰富对接批量吊销接口
 * lwd
 * 2021-09-03
 */
@BaseRequest(
        baseURL = "${tfBaseUrl}",
        headers = {"Content-Type:application/json"})
public interface TfServiceApi {

    /**
     * 获取接口token
     * lwd
     * 2021-09-03
     */
    @Post(url = "${tfTokensURI}")
    ForestResponse<Map<String,Object>> getToken(@JSONBody("appid") String appid, @JSONBody("appsecret") String appsecret);

    /**
     * 推送吊销数据
     * lwd
     * 2021-09-03
     */
    @Post(url = "${tfRevocationURI}")
    ForestResponse<Map<String,Object>> revocationAiccode(@Header("token") String token, @JSONBody Map<String,Object> param);

}
