MomentTimeLineController.java 892 B

1234567891011121314151617181920212223242526
  1. package com.webchat.ugc.controller;
  2. import com.webchat.common.bean.APIResponseBean;
  3. import com.webchat.common.bean.APIResponseBeanUtil;
  4. import com.webchat.ugc.service.moment.MomentTimeLineService;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.web.bind.annotation.GetMapping;
  7. import org.springframework.web.bind.annotation.PathVariable;
  8. import org.springframework.web.bind.annotation.RequestMapping;
  9. import org.springframework.web.bind.annotation.RestController;
  10. @RestController
  11. @RequestMapping("/ugc-service/moment/timeline")
  12. public class MomentTimeLineController {
  13. @Autowired
  14. private MomentTimeLineService momentTimeLineService;
  15. @GetMapping("/save/{userId}")
  16. public APIResponseBean<Boolean> save(@PathVariable String userId) {
  17. momentTimeLineService.save(userId);
  18. return APIResponseBeanUtil.success();
  19. }
  20. }