/**
 * All rights Reserved, Designed By www.freemud.cn
 *
 * @Title: MessageNoticeClient  消息中心
 * @Package cn.freemud.service.thirdparty
 * @Description:
 * @author: liming.guo
 * @date: 2018/5/31 9:43
 * @version V1.0
 * @Copyright: 2018 www.freemud.cn Inc. All rights reserved.
 * 注意：本内容仅限于上海非码科技内部传阅，禁止外泄以及用于其他的商业目
 */
package cn.freemud.service.thirdparty;

import cn.freemud.entities.dto.PushMessageNoticeDto;
import cn.freemud.entities.dto.PushMessageTokenDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "ALLOC", url = "${saas.messagenoticeclient.feign.url}")
@RequestMapping(produces = {"application/json;charset=UTF-8"})
public interface MessageNoticeClient {

    /**
     * 推送凭证给消息中心
     */
    @PostMapping("/registerToken")
    String registerToken(@RequestBody PushMessageTokenDto pushMessageTokenDto);

    /**
     * 推送给pos前端，小程序前端消息
     */
    @PostMapping("/createMessage")
    String createMessage(@RequestBody PushMessageNoticeDto pushMessageNoticeDto);

}
