UserFollowController.java 942 B

123456789101112131415161718192021222324252627
  1. package com.goafanti.user.controller;
  2. import com.goafanti.common.bo.Result;
  3. import com.goafanti.common.model.UserFollow;
  4. import com.goafanti.user.bo.InputUserFollowList;
  5. import com.goafanti.user.bo.InputUserServiceFollow;
  6. import com.goafanti.user.service.UserFollowService;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.RequestMapping;
  9. import org.springframework.web.bind.annotation.RequestMethod;
  10. import org.springframework.web.bind.annotation.RestController;
  11. @RestController
  12. @RequestMapping(value = "/api/admin/follow")
  13. public class UserFollowController {
  14. @Autowired
  15. private UserFollowService userFollowService;
  16. @RequestMapping(value = "/userFollowList", method = RequestMethod.GET)
  17. public Result userFollowList(InputUserFollowList in){
  18. Result res =new Result();
  19. res.data(userFollowService.userFollowList(in));
  20. return res;
  21. }
  22. }