2024-11-01 00:09:11 +08:00
|
|
|
package cn.bunny.services.controller;
|
|
|
|
|
2024-11-01 16:40:45 +08:00
|
|
|
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;
|
2024-11-01 16:40:45 +08:00
|
|
|
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;
|
2024-11-01 16:40:45 +08:00
|
|
|
import reactor.core.publisher.Mono;
|
|
|
|
|
|
|
|
import java.util.List;
|
2024-11-01 00:09:11 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* <p>
|
2024-11-01 16:40:45 +08:00
|
|
|
* 前端控制器
|
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
|
2024-11-01 16:40:45 +08:00
|
|
|
@RequestMapping("/admin/messageReceived")
|
2024-11-01 00:09:11 +08:00
|
|
|
public class MessageReceivedController {
|
|
|
|
|
2024-11-01 16:40:45 +08:00
|
|
|
@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
|
|
|
}
|