package com.zhujizheng.IHome.everymomentmsg.controller; import com.zhujizheng.IHome.everymomentmsg.service.PYEveryMomentMsgService; import com.zhujizheng.IHome.everymomentmsg.vo.PYEveryMomentMsgVO; import com.zhujizheng.IHome.everymomentmsg.vo.PYEveryMomentUnreadMsgVO; import com.zhujizheng.IHome.util.response.ResponseResult; import com.zhujizheng.IHome.util.response.RestResultGenerator; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import java.util.List; /** * Created with IntelliJ IDEA *
* Author: yons
* Date: 2019/04/29
* Time: 00:03
* Description:
* Copyright © 2019年 com.zhujizheng. All rights reserved.
*/
@Api("系统消息相关")
@RestController
@RequestMapping("/everymomentmsg")
public class PYEveryMomentMsgController {
@Autowired
private PYEveryMomentMsgService msgService;
@ApiOperation("获取每刻消息")
@ApiImplicitParams({
@ApiImplicitParam(name = "userId", value = "用户id", paramType = "path", required = true, dataType = "int"),
@ApiImplicitParam(name = "msgType", value = "消息类型", paramType = "path", required = true, dataType = "int"),
@ApiImplicitParam(name = "msgId", value = "新消息id", paramType = "path", required = true, dataType = "int")
})
@GetMapping("/pull/{userId}/{msgType}/{msgId}")
public ResponseResult getSystemMessages(@PathVariable int userId, @PathVariable int msgType, @PathVariable int msgId) {
List