package com.chinaweal.aiccs.outside.api;

import com.chinaweal.aiccs.outside.vo.TfPunishLock;
import com.dtflys.forest.annotation.BaseRequest;
import com.dtflys.forest.annotation.Header;
import com.dtflys.forest.annotation.JSONBody;
import com.dtflys.forest.annotation.Post;
import com.dtflys.forest.http.ForestResponse;

import java.util.Map;

@BaseRequest(
        baseURL = "${tfPunishmentBaseUrl}",
        headers = {"Content-Type:application/json"})
public interface TfPunishmentApi {

    /**
     * 获取token
     * @param param
     * @return
     */
    @Post(url = "${tfPunishmentTokenUrl}")
    ForestResponse<TfPunishLock> getToken(@JSONBody Map<String,Object> param);

    /**
     * 推送接口
     * @param token
     * @param param
     * @return
     */
    @Post(url = "${tfPunishmentUrl}")
    ForestResponse<TfPunishLock> pushEntlockData(@Header("token") String token, @JSONBody Map<String,Object> param);

}
