UserService.java 430 B

123456789101112131415161718192021222324
  1. package com.em.service;
  2. import com.em.domain.User;
  3. /**
  4. * Created by Admiral on 2018/1/19.
  5. */
  6. public interface UserService {
  7. /**
  8. * 根据Id查找用户
  9. * @param id
  10. * @return
  11. * @throws Exception
  12. */
  13. public User findUserById(String id) throws Exception;
  14. /**
  15. * 添加新用户
  16. * @param user
  17. * @throws Exception
  18. */
  19. public void addNewUser(User user) throws Exception;
  20. }