Commit a22a4f9e authored by Quxl's avatar Quxl

x

parent 5610fa1e
......@@ -4,9 +4,21 @@ import java.util.List;
import java.util.Map;
import com.egolm.common.jdbc.Page;
import com.egolm.film.bean.Fc_user;
import com.egolm.film.bean.Fc_user_group;
public interface AdminUserService {
List<Map<String, Object>> queryGroupList(String keyword, Page page);
void mergeGroup(Fc_user_group group);
List<Map<String, Object>> queryUserList(String keyword, Integer group_id, Page page);
void saveUser(Fc_user user);
void updateUserInfo(Fc_user user);
void changePassword(Integer uid, String password);
}
package com.egolm.film.api.service.impl;
import java.util.Date;
import java.util.List;
import java.util.Map;
......@@ -10,6 +11,9 @@ import com.egolm.common.StringUtil;
import com.egolm.common.jdbc.JdbcTemplate;
import com.egolm.common.jdbc.Page;
import com.egolm.film.api.service.AdminUserService;
import com.egolm.film.bean.Fc_user;
import com.egolm.film.bean.Fc_user_group;
import com.egolm.film.util.Common;
import com.egolm.film.util.SqlWhere;
@Service
......@@ -20,9 +24,39 @@ public class AdminUserServiceImpl implements AdminUserService {
@Override
public List<Map<String, Object>> queryGroupList(String keyword, Page page) {
SqlWhere argEdit = new SqlWhere().lk("group_name", keyword);
String sql = "select * from fc_user_group" + StringUtil.join(" and ", " where ", "", "", argEdit.getStringList());
SqlWhere argEdit = new SqlWhere().lk(new String[]{"ug.group_id", "ug.group_name"}, keyword);
String sql = "select ug.group_id, ug.group_name, count(u.uid) count, group_concat(ugf.fun_id) funs from fc_user_group ug, fc_user_group_fun ugf, fc_user u where ugf.group_id = ug.group_id and u.group_id = ug.group_id" + StringUtil.join(" and ", " and ", " ", " ", argEdit.getStringList()) + "group by ug.group_id, group_name";
return jdbcTemplate.limit(sql, page, argEdit.getObjectList());
}
@Override
public void mergeGroup(Fc_user_group group) {
jdbcTemplate.merge(group);
}
@Override
public List<Map<String, Object>> queryUserList(String keyword, Integer group_id, Page page) {
SqlWhere w = new SqlWhere().lk(new String[]{"u.uid", "u.username", "u.realname"}, keyword).eq("u.group_d", group_id);
String sql = "select u.*, ug.group_name from fc_user u left join fc_user_group ug on ug.group_id = u.group_id" + StringUtil.join(" and ", " where ", "", "", w.getStringList());
return jdbcTemplate.limit(sql, page, w.getObjectList());
}
@Override
public void saveUser(Fc_user user) {
jdbcTemplate.save(user);
}
@Override
public void updateUserInfo(Fc_user user) {
String sql = "update fc_user set realname = ?, group_id = ?, expire_date = ?, email = ?, tel = ?, lastuptime = ? where uid = ?";
jdbcTemplate.executeUpdate(sql, user.getRealname(), user.getGroup_id(), user.getExpire_date(), user.getEmail(), user.getTel(), new Date(), user.getUid());
}
@Override
public void changePassword(Integer uid, String password) {
String salt = Common.getGenerateString(6);
String encodePassword = Common.encodePassword(password, salt);
jdbcTemplate.executeUpdate("update fc_user set password = ?, salt = ? where uid = ?", encodePassword, salt, uid);
}
}
......@@ -44,7 +44,7 @@ public class UserTokenServiceImpl implements UserTokenService {
String dbPwd = user.getPassword();
String encodePassword = Common.encodePassword(password, salt);
if(encodePassword.equals(dbPwd)) {
Long uid = user.getUid();
Integer uid = user.getUid();
LoginToken token = new LoginToken(uid);
session.setAttribute(TOKEN_NAME, token);
Cookie cookie = WebMvcConfig.getCookie(LOGINID_COOKIE_NAME);
......
package com.egolm.film.api.web.admin;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
......@@ -13,6 +15,10 @@ import com.egolm.common.bean.Rjx;
import com.egolm.common.jdbc.Page;
import com.egolm.film.api.service.AdminTokenService;
import com.egolm.film.api.service.AdminUserService;
import com.egolm.film.bean.Fc_user;
import com.egolm.film.bean.Fc_user_group;
import com.egolm.film.config.WebMvcConfig;
import com.egolm.film.util.Common;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
......@@ -31,7 +37,7 @@ public class AdminUserController {
AdminUserService service;
@ResponseBody
@PostMapping("groupList")
@PostMapping("group_list")
@ApiOperation("评委组分页查询")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="keyword", value="关键字"),
......@@ -46,6 +52,82 @@ public class AdminUserController {
return Rjx.jsonOk().setData(list);
}
@ResponseBody
@PostMapping("group_save")
@ApiOperation("保存分组及分组权限")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="int", required=false, name="group_id", value="分组ID"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="group_name", value="分组名称"),
@ApiImplicitParam(paramType="query", dataType="string", required=true, name="job_desc", value="工作介绍"),
@ApiImplicitParam(paramType="query", dataType="int", required=true, name="fun_id", value="权限[功能]ID [1-6]选权限,7快进后退权限"),
})
public Rjx saveGroup(Integer group_id, String group_name, String job_desc, Integer[] fun_id) {
Fc_user_group group = new Fc_user_group();
group.setGroup_id(group_id);
group.setGroup_name(group_name);
group.setJob_desc(job_desc);
if(group_id == null) {
group.setAdminid((Integer)tokenService.getToken().getId());
group.setCreate_ip(WebMvcConfig.getRemoteIp());
group.setCreate_time(new Date());
group.setState(1);
}
service.mergeGroup(group);
return Rjx.jsonOk().setData(group);
}
@ResponseBody
@PostMapping("user_list")
@ApiOperation("评委列表查询")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="keyword", value="关键字"),
@ApiImplicitParam(paramType="query", dataType="Integer", required=false, name="group_id", value="所属组ID"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"),
})
public Rjx queryUserList(String keyword, Integer group_id, Long index, Long limit) {
index = index == null ? 1 : index;
limit = limit == null ? 20 : limit;
Page page = new Page(index, limit);
List<Map<String, Object>> list = service.queryUserList(keyword, group_id, page);
return Rjx.jsonOk().setData(list);
}
@ResponseBody
@Transactional
@PostMapping("user_save")
@ApiOperation("评委列表查询")
@ApiImplicitParams({
@ApiImplicitParam(paramType="query", dataType="string", required=false, name="keyword", value="关键字"),
@ApiImplicitParam(paramType="query", dataType="Integer", required=false, name="group_id", value="所属组ID"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="index", value="分页编号"),
@ApiImplicitParam(paramType="query", dataType="long", required=true, name="limit", value="分页大小"),
})
public Rjx saveOrUpdateUser(Integer uid, String realname, String username, String password, Integer group_id, Date expire_date, String email, String tel) {
Fc_user user = new Fc_user();
user.setUid(uid);
user.setRealname(realname);
user.setUsername(username);
user.setGroup_id(group_id);
user.setExpire_date(expire_date);
user.setEmail(email);
user.setTel(tel);
if(user.getUid() == null) {
Date now = new Date();
user.setAdminid((Integer)tokenService.getToken().getId());
user.setCreate_ip(WebMvcConfig.getRemoteIp());
user.setLastuptime(now);
user.setCreate_time(now);
user.setState(1);
String salt = Common.getGenerateString(6);
String encodePassword = Common.encodePassword(password, salt);
user.setSalt(salt);
user.setPassword(encodePassword);
service.saveUser(user);
} else {
service.updateUserInfo(user);
service.changePassword(user.getUid(), user.getPassword());
}
return Rjx.jsonOk().setData(user);
}
}
......@@ -4,6 +4,8 @@ import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;
/**
* @author 曲欣亮
*/
......@@ -13,7 +15,7 @@ public class Fc_user implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
private Long uid;
private Integer uid;
/**
* 用户名
......@@ -35,36 +37,6 @@ public class Fc_user implements java.io.Serializable {
*/
private String salt;
/**
* 创建时间
*/
private Long create_time;
/**
* 创建者ip
*/
private String create_ip;
/**
* 最后一次登录时间
*/
private Long last_login_time;
/**
* 最近登录时间
*/
private Long login_time;
/**
* 上一次登陆时间
*/
private String last_login_ip;
/**
* 最近登录时间
*/
private String login_ip;
/**
* 见状态码
*/
......@@ -75,16 +47,6 @@ public class Fc_user implements java.io.Serializable {
*/
private Integer group_id;
/**
* 管理员id
*/
private Long adminid;
/**
* 国籍
*/
private String area;
/**
* 单位名称
*/
......@@ -105,11 +67,6 @@ public class Fc_user implements java.io.Serializable {
*/
private String address;
/**
* 设置到期时间
*/
private Long expire_date;
/**
* 电子邮件
*/
......@@ -126,16 +83,39 @@ public class Fc_user implements java.io.Serializable {
private String token;
/**
* 是否显示,工作说明 0不显示 1显示
* 设置到期时间
*/
private Integer is_show_job_desc;
private Date expire_date;
/**
* 最后修改时间
* 最后一次登陆时间
*/
private String last_login_ip;
/**
* 最后一次登录时间
*/
private Integer lastuptime;
private Date last_login_time;
private Integer film_num;
/**
* 管理员id
*/
private Integer adminid;
/**
* 创建者ip
*/
private String create_ip;
/**
* 创建时间
*/
private Date create_time;
/**
* 最后修改时间
*/
private Date lastuptime;
/**
......@@ -152,62 +132,52 @@ public class Fc_user implements java.io.Serializable {
* @param password 用户密码
* @param realname 真实名称
* @param salt 随机数
* @param create_time 创建时间
* @param create_ip 创建者ip
* @param last_login_time 最后一次登录时间
* @param login_time 最近登录时间
* @param last_login_ip 上一次登陆时间
* @param login_ip 最近登录时间
* @param state 见状态码
* @param group_id 用户组id
* @param adminid 管理员id
* @param area 国籍
* @param company 单位名称
* @param job 职业
* @param sex 性别 1男 2女
* @param address 居住地址
* @param expire_date 设置到期时间
* @param email 电子邮件
* @param tel 联系电话
* @param token 用户登陆 session_id
* @param is_show_job_desc 是否显示,工作说明 0不显示 1显示
* @param expire_date 设置到期时间
* @param last_login_ip 最后一次登陆时间
* @param last_login_time 最后一次登录时间
* @param adminid 管理员id
* @param create_ip 创建者ip
* @param create_time 创建时间
* @param lastuptime 最后修改时间
* @param film_num
*/
public Fc_user(Long uid, String username, String password, String realname, String salt, Long create_time, String create_ip, Long last_login_time, Long login_time, String last_login_ip, String login_ip, Integer state, Integer group_id, Long adminid, String area, String company, String job, Integer sex, String address, Long expire_date, String email, String tel, String token, Integer is_show_job_desc, Integer lastuptime, Integer film_num) {
public Fc_user(Integer uid, String username, String password, String realname, String salt, Integer state, Integer group_id, String company, String job, Integer sex, String address, String email, String tel, String token, Date expire_date, String last_login_ip, Date last_login_time, Integer adminid, String create_ip, Date create_time, Date lastuptime) {
this.uid = uid;
this.username = username;
this.password = password;
this.realname = realname;
this.salt = salt;
this.create_time = create_time;
this.create_ip = create_ip;
this.last_login_time = last_login_time;
this.login_time = login_time;
this.last_login_ip = last_login_ip;
this.login_ip = login_ip;
this.state = state;
this.group_id = group_id;
this.adminid = adminid;
this.area = area;
this.company = company;
this.job = job;
this.sex = sex;
this.address = address;
this.expire_date = expire_date;
this.email = email;
this.tel = tel;
this.token = token;
this.is_show_job_desc = is_show_job_desc;
this.expire_date = expire_date;
this.last_login_ip = last_login_ip;
this.last_login_time = last_login_time;
this.adminid = adminid;
this.create_ip = create_ip;
this.create_time = create_time;
this.lastuptime = lastuptime;
this.film_num = film_num;
}
public void setUid(Long uid) {
public void setUid(Integer uid) {
this.uid = uid;
}
public Long getUid() {
public Integer getUid() {
return uid;
}
......@@ -243,54 +213,6 @@ public class Fc_user implements java.io.Serializable {
return salt;
}
public void setCreate_time(Long create_time) {
this.create_time = create_time;
}
public Long getCreate_time() {
return create_time;
}
public void setCreate_ip(String create_ip) {
this.create_ip = create_ip;
}
public String getCreate_ip() {
return create_ip;
}
public void setLast_login_time(Long last_login_time) {
this.last_login_time = last_login_time;
}
public Long getLast_login_time() {
return last_login_time;
}
public void setLogin_time(Long login_time) {
this.login_time = login_time;
}
public Long getLogin_time() {
return login_time;
}
public void setLast_login_ip(String last_login_ip) {
this.last_login_ip = last_login_ip;
}
public String getLast_login_ip() {
return last_login_ip;
}
public void setLogin_ip(String login_ip) {
this.login_ip = login_ip;
}
public String getLogin_ip() {
return login_ip;
}
public void setState(Integer state) {
this.state = state;
}
......@@ -307,22 +229,6 @@ public class Fc_user implements java.io.Serializable {
return group_id;
}
public void setAdminid(Long adminid) {
this.adminid = adminid;
}
public Long getAdminid() {
return adminid;
}
public void setArea(String area) {
this.area = area;
}
public String getArea() {
return area;
}
public void setCompany(String company) {
this.company = company;
}
......@@ -355,14 +261,6 @@ public class Fc_user implements java.io.Serializable {
return address;
}
public void setExpire_date(Long expire_date) {
this.expire_date = expire_date;
}
public Long getExpire_date() {
return expire_date;
}
public void setEmail(String email) {
this.email = email;
}
......@@ -387,28 +285,60 @@ public class Fc_user implements java.io.Serializable {
return token;
}
public void setIs_show_job_desc(Integer is_show_job_desc) {
this.is_show_job_desc = is_show_job_desc;
public void setExpire_date(Date expire_date) {
this.expire_date = expire_date;
}
public Integer getIs_show_job_desc() {
return is_show_job_desc;
public Date getExpire_date() {
return expire_date;
}
public void setLastuptime(Integer lastuptime) {
this.lastuptime = lastuptime;
public void setLast_login_ip(String last_login_ip) {
this.last_login_ip = last_login_ip;
}
public Integer getLastuptime() {
return lastuptime;
public String getLast_login_ip() {
return last_login_ip;
}
public void setLast_login_time(Date last_login_time) {
this.last_login_time = last_login_time;
}
public Date getLast_login_time() {
return last_login_time;
}
public void setAdminid(Integer adminid) {
this.adminid = adminid;
}
public Integer getAdminid() {
return adminid;
}
public void setFilm_num(Integer film_num) {
this.film_num = film_num;
public void setCreate_ip(String create_ip) {
this.create_ip = create_ip;
}
public String getCreate_ip() {
return create_ip;
}
public Integer getFilm_num() {
return film_num;
public void setCreate_time(Date create_time) {
this.create_time = create_time;
}
public Date getCreate_time() {
return create_time;
}
public void setLastuptime(Date lastuptime) {
this.lastuptime = lastuptime;
}
public Date getLastuptime() {
return lastuptime;
}
}
......
......@@ -4,6 +4,8 @@ import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;
/**
* @author 曲欣亮
*/
......@@ -24,19 +26,9 @@ public class Fc_user_group implements java.io.Serializable {
private String group_name;
/**
* 创建时间
*/
private Long create_time;
/**
* 创建者ip
*/
private String create_ip;
/**
* 管理员id
* 工作介绍
*/
private Long adminid;
private String job_desc;
/**
* 小组状态
......@@ -44,19 +36,19 @@ public class Fc_user_group implements java.io.Serializable {
private Integer state;
/**
* 权限
* 管理员id
*/
private String power;
private Integer adminid;
/**
* 成员数量
* 创建者ip
*/
private Long user_num;
private String create_ip;
/**
* 工作介绍
* 创建时间
*/
private String job_desc;
private Date create_time;
/**
......@@ -70,24 +62,20 @@ public class Fc_user_group implements java.io.Serializable {
* 全参数构造方法
* @param group_id 用户组id
* @param group_name 小组名称
* @param create_time 创建时间
* @param create_ip 创建者ip
* @param adminid 管理员id
* @param state 小组状态
* @param power 权限
* @param user_num 成员数量
* @param job_desc 工作介绍
* @param state 小组状态
* @param adminid 管理员id
* @param create_ip 创建者ip
* @param create_time 创建时间
*/
public Fc_user_group(Integer group_id, String group_name, Long create_time, String create_ip, Long adminid, Integer state, String power, Long user_num, String job_desc) {
public Fc_user_group(Integer group_id, String group_name, String job_desc, Integer state, Integer adminid, String create_ip, Date create_time) {
this.group_id = group_id;
this.group_name = group_name;
this.create_time = create_time;
this.create_ip = create_ip;
this.adminid = adminid;
this.state = state;
this.power = power;
this.user_num = user_num;
this.job_desc = job_desc;
this.state = state;
this.adminid = adminid;
this.create_ip = create_ip;
this.create_time = create_time;
}
public void setGroup_id(Integer group_id) {
......@@ -106,28 +94,12 @@ public class Fc_user_group implements java.io.Serializable {
return group_name;
}
public void setCreate_time(Long create_time) {
this.create_time = create_time;
}
public Long getCreate_time() {
return create_time;
}
public void setCreate_ip(String create_ip) {
this.create_ip = create_ip;
}
public String getCreate_ip() {
return create_ip;
}
public void setAdminid(Long adminid) {
this.adminid = adminid;
public void setJob_desc(String job_desc) {
this.job_desc = job_desc;
}
public Long getAdminid() {
return adminid;
public String getJob_desc() {
return job_desc;
}
public void setState(Integer state) {
......@@ -138,28 +110,28 @@ public class Fc_user_group implements java.io.Serializable {
return state;
}
public void setPower(String power) {
this.power = power;
public void setAdminid(Integer adminid) {
this.adminid = adminid;
}
public String getPower() {
return power;
public Integer getAdminid() {
return adminid;
}
public void setUser_num(Long user_num) {
this.user_num = user_num;
public void setCreate_ip(String create_ip) {
this.create_ip = create_ip;
}
public Long getUser_num() {
return user_num;
public String getCreate_ip() {
return create_ip;
}
public void setJob_desc(String job_desc) {
this.job_desc = job_desc;
public void setCreate_time(Date create_time) {
this.create_time = create_time;
}
public String getJob_desc() {
return job_desc;
public Date getCreate_time() {
return create_time;
}
}
......
package com.egolm.film.bean;
import javax.persistence.Entity;
import javax.persistence.Id;
/**
* @author 曲欣亮
*/
@Entity(name="fc_user_group_fun")
public class Fc_user_group_fun implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
private Integer group_id;
@Id
private Integer fun_id;
/**
* 无参数构造方法
*/
public Fc_user_group_fun () {
super();
}
/**
* 全参数构造方法
* @param group_id
* @param fun_id
*/
public Fc_user_group_fun(Integer group_id, Integer fun_id) {
this.group_id = group_id;
this.fun_id = fun_id;
}
public void setGroup_id(Integer group_id) {
this.group_id = group_id;
}
public Integer getGroup_id() {
return group_id;
}
public void setFun_id(Integer fun_id) {
this.fun_id = fun_id;
}
public Integer getFun_id() {
return fun_id;
}
}
package com.egolm.film.bean.model;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;
/**
* @author 曲欣亮
*/
@Entity(name="fc_user")
public class Fc_user_model implements java.io.Serializable {
private static final long serialVersionUID = 1L;
@Id
private Long uid;
/**
* 用户名
*/
private String username;
/**
* 用户密码
*/
private String password;
/**
* 真实名称
*/
private String realname;
/**
* 随机数
*/
private String salt;
/**
* 见状态码
*/
private Integer state;
/**
* 用户组id
*/
private Integer group_id;
/**
* 单位名称
*/
private String company;
/**
* 职业
*/
private String job;
/**
* 性别 1男 2女
*/
private Integer sex;
/**
* 居住地址
*/
private String address;
/**
* 电子邮件
*/
private String email;
/**
* 联系电话
*/
private String tel;
/**
* 用户登陆 session_id
*/
private String token;
/**
* 设置到期时间
*/
private Date expire_date;
/**
* 最后一次登陆时间
*/
private String last_login_ip;
/**
* 最后一次登录时间
*/
private Date last_login_time;
/**
* 管理员id
*/
private Integer adminid;
/**
* 创建者ip
*/
private String create_ip;
/**
* 创建时间
*/
private Date create_time;
/**
* 最后修改时间
*/
private Date lastuptime;
/**
* 无参数构造方法
*/
public Fc_user_model () {
super();
}
/**
* 全参数构造方法
* @param uid
* @param username 用户名
* @param password 用户密码
* @param realname 真实名称
* @param salt 随机数
* @param state 见状态码
* @param group_id 用户组id
* @param company 单位名称
* @param job 职业
* @param sex 性别 1男 2女
* @param address 居住地址
* @param email 电子邮件
* @param tel 联系电话
* @param token 用户登陆 session_id
* @param expire_date 设置到期时间
* @param last_login_ip 最后一次登陆时间
* @param last_login_time 最后一次登录时间
* @param adminid 管理员id
* @param create_ip 创建者ip
* @param create_time 创建时间
* @param lastuptime 最后修改时间
*/
public Fc_user_model(Long uid, String username, String password, String realname, String salt, Integer state, Integer group_id, String company, String job, Integer sex, String address, String email, String tel, String token, Date expire_date, String last_login_ip, Date last_login_time, Integer adminid, String create_ip, Date create_time, Date lastuptime) {
this.uid = uid;
this.username = username;
this.password = password;
this.realname = realname;
this.salt = salt;
this.state = state;
this.group_id = group_id;
this.company = company;
this.job = job;
this.sex = sex;
this.address = address;
this.email = email;
this.tel = tel;
this.token = token;
this.expire_date = expire_date;
this.last_login_ip = last_login_ip;
this.last_login_time = last_login_time;
this.adminid = adminid;
this.create_ip = create_ip;
this.create_time = create_time;
this.lastuptime = lastuptime;
}
public void setUid(Long uid) {
this.uid = uid;
}
public Long getUid() {
return uid;
}
public void setUsername(String username) {
this.username = username;
}
public String getUsername() {
return username;
}
public void setPassword(String password) {
this.password = password;
}
public String getPassword() {
return password;
}
public void setRealname(String realname) {
this.realname = realname;
}
public String getRealname() {
return realname;
}
public void setSalt(String salt) {
this.salt = salt;
}
public String getSalt() {
return salt;
}
public void setState(Integer state) {
this.state = state;
}
public Integer getState() {
return state;
}
public void setGroup_id(Integer group_id) {
this.group_id = group_id;
}
public Integer getGroup_id() {
return group_id;
}
public void setCompany(String company) {
this.company = company;
}
public String getCompany() {
return company;
}
public void setJob(String job) {
this.job = job;
}
public String getJob() {
return job;
}
public void setSex(Integer sex) {
this.sex = sex;
}
public Integer getSex() {
return sex;
}
public void setAddress(String address) {
this.address = address;
}
public String getAddress() {
return address;
}
public void setEmail(String email) {
this.email = email;
}
public String getEmail() {
return email;
}
public void setTel(String tel) {
this.tel = tel;
}
public String getTel() {
return tel;
}
public void setToken(String token) {
this.token = token;
}
public String getToken() {
return token;
}
public void setExpire_date(Date expire_date) {
this.expire_date = expire_date;
}
public Date getExpire_date() {
return expire_date;
}
public void setLast_login_ip(String last_login_ip) {
this.last_login_ip = last_login_ip;
}
public String getLast_login_ip() {
return last_login_ip;
}
public void setLast_login_time(Date last_login_time) {
this.last_login_time = last_login_time;
}
public Date getLast_login_time() {
return last_login_time;
}
public void setAdminid(Integer adminid) {
this.adminid = adminid;
}
public Integer getAdminid() {
return adminid;
}
public void setCreate_ip(String create_ip) {
this.create_ip = create_ip;
}
public String getCreate_ip() {
return create_ip;
}
public void setCreate_time(Date create_time) {
this.create_time = create_time;
}
public Date getCreate_time() {
return create_time;
}
public void setLastuptime(Date lastuptime) {
this.lastuptime = lastuptime;
}
public Date getLastuptime() {
return lastuptime;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment