package com.zhentao.moment.controller; import com.zhentao.moment.dto.MonmentDto; import com.zhentao.moment.service.UserMomentsService; import com.zhentao.vo.Result; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestHeader; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @RestController @RequestMapping("monment") public class MonmentController { @Autowired private UserMomentsService userMomentsService; // 发布朋友圈 @RequestMapping("sendMonment") public Result sendMonment(@RequestHeader String token,@RequestBody MonmentDto monmentDto){ return userMomentsService.sendMonment(token,monmentDto); } //// 查看所有朋友圈 // @RequestMapping("getAllMonment") }