feat:CID消息通知
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package com.sdm.common.entity.req.system;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SendMsgReq {
|
||||
@Schema(description = "消息标题")
|
||||
private String title;
|
||||
|
||||
@Schema(description = "消息内容")
|
||||
private String content;
|
||||
|
||||
@Schema(description = "用户id")
|
||||
private String userId;
|
||||
|
||||
@Schema(description = "租户id")
|
||||
private String tenantId;
|
||||
|
||||
@Schema(description = "业务参数")
|
||||
private String params;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.sdm.common.feign.inter.system;
|
||||
|
||||
import com.sdm.common.common.SdmResponse;
|
||||
import com.sdm.common.entity.req.system.SendMsgReq;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
|
||||
@FeignClient(name = "system",contextId = "systemMessageClient")
|
||||
public interface IMessageFeignClient {
|
||||
|
||||
@PostMapping("/systemMsg//sendMessage")
|
||||
SdmResponse sendMessage(@RequestBody SendMsgReq req);
|
||||
}
|
||||
Reference in New Issue
Block a user