IMsg.java 546 Bytes
package com.dituhui.pea.msg;

import com.dituhui.pea.common.Result;
import com.dituhui.pea.pojo.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * 角色相关接口
 */
@FeignClient(value = "project-order", contextId = "msg")
public interface IMsg {

    /**
     * 新增消息
     *
     * @param dto 消息
     * @return
     */
    @PostMapping(value = "/pea-order/msg/add")
    public Result<Boolean> add(@RequestBody @Valid MsgDTO dto);
}