[TOC]
Controller
点赞
1 | public String like(int entityType, int entityId, int entityUserId, int postId) { |
关注
1 | @RequestMapping(path = "/follow", method = RequestMethod.POST) |
1 | @RequestMapping(path = "/unfollow", method = RequestMethod.POST) |
1 | @RequestMapping(path = "/followees/{userId}", method = RequestMethod.GET) |
1 | @RequestMapping(path = "/followers/{userId}", method = RequestMethod.GET) |
关注列表
粉丝列表
Service
点赞
1 | public void like(int userId, int entityType, int entityId, int entityUserId) { |
关注
1 | public void follow(int userId, int entityType, int entityId) { |