package cn.freemud.service.thirdparty;

import cn.freemud.entities.dto.wechat.GetAuthorizerRequestDto;
import cn.freemud.entities.dto.wechat.GetTokenResponseDto;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "WECHAT-APPLICATION-SERVICE",url = "${saas.wechatserviceclient.feign.url}")
@RequestMapping(produces = {"application/json;charset=UTF-8"})
public interface WechatApplicationServiceClient {

    @PostMapping(value = "/token/application/delivery/getTokenForDelivery")
    GetTokenResponseDto getToken(@RequestBody GetAuthorizerRequestDto request);
}

