1
0

GroupService.java 819 B

1234567891011121314151617181920212223242526272829
  1. package seecoder.devcloud.web.service.user;
  2. import org.springframework.stereotype.Service;
  3. import seecoder.devcloud.common.exceptions.EntityNotFoundException;
  4. import seecoder.devcloud.common.exceptions.ServiceException;
  5. import seecoder.devcloud.web.vo.user.GroupVO;
  6. import seecoder.devcloud.web.vo.user.InnerGroupVO;
  7. import java.util.List;
  8. /**
  9. * @InterfaceName GroupService
  10. * @PackageName com.moekr.moocoder.logic.service.impl
  11. * @Author sheen
  12. * @Date 2019/1/9
  13. * @Version 1.0
  14. * @Description
  15. **/
  16. @Service
  17. public interface GroupService {
  18. GroupVO createGroup(String name, Integer userId) throws ServiceException;
  19. GroupVO addMember(Integer userId, Integer invitedUserId, Integer groupId) throws EntityNotFoundException;
  20. void quitGroup(Integer groupId, Integer userId) throws ServiceException;
  21. }