package com.xxfc.platform.im.feign;


import com.github.wxiaoqi.security.common.msg.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

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


/**
 * ${DESCRIPTION}
 *
 * @author wanghaobin
 * @create 2017-06-21 8:11
 */
@FeignClient(value = "xx-im")
public interface ImFeign {

    /**
     * 注册
     * @param map
     * @return
     */
    @RequestMapping(value = "/user/app/unauth/register", method = RequestMethod.POST)
    public BaseResponse register(@RequestBody Map<String,Object> map);

    /**
     * 登录
     * @param map
     * @return
     */
    @RequestMapping(value = "/user/app/unauth/login", method = RequestMethod.POST)
    public BaseResponse login(@RequestBody Map<String,Object> map);

}
