mirror of
https://github.com/Estom/notes.git
synced 2026-02-04 19:13:24 +08:00
20 lines
429 B
Java
20 lines
429 B
Java
package cn.aofeng.demo.java.rmi;
|
|
|
|
import java.rmi.Remote;
|
|
import java.rmi.RemoteException;
|
|
|
|
/**
|
|
* 用户信息服务。
|
|
*
|
|
* @author <a href="mailto:aofengblog@163.com">聂勇</a>
|
|
*/
|
|
public interface UserService extends Remote {
|
|
|
|
public User findByName(String name) throws RemoteException;
|
|
|
|
public User findById(String id) throws RemoteException;
|
|
|
|
public boolean add(User user) throws RemoteException;
|
|
|
|
}
|