public class UserServlet extends HttpServlet {
package service;
import com.rjgc.entity.User;
public interface UserService {
public boolean userLoginService(User user);
public boolean userRegisterService(User user);
}
package com.rjgc.entity;
public class User {
private int userId;
private String userName;
private String passWord;
private int pmsId;
public User() {
super();
}
public User(String userName, String passWord) {
super();
this.userName = userName;
this.passWord = passWord;
}
public int getUserId() {
return userId;
}
public void setUserId(int userId) {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getPassWord() {
return passWord;
}
public void setPassWord(String passWord) {
this.passWord = passWord;
}
public int pmsId() {
return pmsId;
}
public void setPmsId(int pmsId2) {
this.pmsId = pmsId;
}
public static int userLoginService(User user) {
return 0;
}
}