auth-server-java/service/src/main/java/cn/bunny/services/controller/MessageReceivedController.java

39 lines
1.4 KiB
Java
Raw Normal View History

2024-11-01 00:09:11 +08:00
package cn.bunny.services.controller;
import cn.bunny.dao.pojo.result.Result;
import cn.bunny.dao.vo.system.message.MessageReceivedWithUserVo;
import cn.bunny.services.service.MessageReceivedService;
import io.swagger.v3.oas.annotations.Operation;
2024-11-02 17:03:38 +08:00
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
2024-11-01 00:09:11 +08:00
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;
import java.util.List;
2024-11-01 00:09:11 +08:00
/**
* <p>
* 前端控制器
2024-11-01 00:09:11 +08:00
* </p>
*
* @author Bunny
* @since 2024-10-31
*/
2024-11-02 17:03:38 +08:00
@Tag(name = "消息接受关系", description = "消息接受关系相关接口")
2024-11-01 00:09:11 +08:00
@RestController
@RequestMapping("/admin/messageReceived")
2024-11-01 00:09:11 +08:00
public class MessageReceivedController {
@Autowired
private MessageReceivedService messageReceivedService;
@Operation(summary = "根据消息id获取接收人信息", description = "根据消息id获取接收人信息")
@GetMapping("noManage/getReceivedUserinfoByMessageId")
public Mono<Result<List<MessageReceivedWithUserVo>>> getReceivedUserinfoByMessageId(Long messageId) {
List<MessageReceivedWithUserVo> voList = messageReceivedService.getReceivedUserinfoByMessageId(messageId);
return Mono.just(Result.success(voList));
}
2024-11-01 00:09:11 +08:00
}