package com.boman.wechat.api;

import com.boman.domain.constant.ServiceNameConstants;
import com.boman.domain.dto.AjaxResult;
import com.boman.domain.form.LoginBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(contextId = "remoteObjService", value = ServiceNameConstants.WECHAT_SERVICE)
public interface RemoteWechatService {

    /**
     * 功能描述: 根据微信登录后获取的code获取用户的授权信息
     *
     * @param loginBody 登录信息体
     * @return com.boman.domain.dto.AjaxResult
     */
    @PostMapping("/wechat/p/c/wechatInfo")
    AjaxResult getWechatInfo(@RequestBody LoginBody loginBody);

    /**
     * 发送消息
     *
     * @param dto
     * @return
     */
//    @PostMapping("/wechat/p/c/pushMsg")
//    public Map<String, Object> pushMsg(@RequestBody WxMsgDto dto);
}
