Commit 19b9ca4b by naan1993

增加model的注释

parent 82555d06
...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/** /**
* <p> * <p>
* Mapper 接口 * 部门表 Mapper 接口
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public interface DeptMapper extends BaseMapper<Dept> { public interface DeptMapper extends BaseMapper<Dept> {
......
...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/** /**
* <p> * <p>
* Mapper 接口 * 字典表 Mapper 接口
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public interface DictMapper extends BaseMapper<Dict> { public interface DictMapper extends BaseMapper<Dict> {
......
...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/** /**
* <p> * <p>
* Mapper 接口 * 登录记录 Mapper 接口
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public interface LoginLogMapper extends BaseMapper<LoginLog> { public interface LoginLogMapper extends BaseMapper<LoginLog> {
......
...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/** /**
* <p> * <p>
* Mapper 接口 * 菜单表 Mapper 接口
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public interface MenuMapper extends BaseMapper<Menu> { public interface MenuMapper extends BaseMapper<Menu> {
......
...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/** /**
* <p> * <p>
* Mapper 接口 * 通知表 Mapper 接口
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public interface NoticeMapper extends BaseMapper<Notice> { public interface NoticeMapper extends BaseMapper<Notice> {
......
...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/** /**
* <p> * <p>
* Mapper 接口 * 操作日志 Mapper 接口
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public interface OperationLogMapper extends BaseMapper<OperationLog> { public interface OperationLogMapper extends BaseMapper<OperationLog> {
......
...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/** /**
* <p> * <p>
* Mapper 接口 * 角色和菜单关联表 Mapper 接口
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public interface RelationMapper extends BaseMapper<Relation> { public interface RelationMapper extends BaseMapper<Relation> {
......
...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/** /**
* <p> * <p>
* Mapper 接口 * 角色表 Mapper 接口
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public interface RoleMapper extends BaseMapper<Role> { public interface RoleMapper extends BaseMapper<Role> {
......
...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper; ...@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/** /**
* <p> * <p>
* Mapper 接口 * 管理员表 Mapper 接口
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public interface UserMapper extends BaseMapper<User> { public interface UserMapper extends BaseMapper<User> {
......
...@@ -7,23 +7,44 @@ import java.io.Serializable; ...@@ -7,23 +7,44 @@ import java.io.Serializable;
/** /**
* <p> * <p>
* * 部门表
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public class Dept extends Model<Dept> { public class Dept extends Model<Dept> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value="id", type= IdType.AUTO) @TableId(value="id", type= IdType.AUTO)
private Integer id; private Integer id;
/**
* 排序
*/
private Integer num; private Integer num;
/**
* 父部门id
*/
private Integer pid; private Integer pid;
/**
* 简称
*/
private String simplename; private String simplename;
/**
* 全称
*/
private String fullname; private String fullname;
/**
* 提示
*/
private String tips; private String tips;
/**
* 版本(乐观锁保留字段)
*/
private Integer version; private Integer version;
......
...@@ -7,21 +7,36 @@ import java.io.Serializable; ...@@ -7,21 +7,36 @@ import java.io.Serializable;
/** /**
* <p> * <p>
* * 字典表
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public class Dict extends Model<Dict> { public class Dict extends Model<Dict> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value="id", type= IdType.AUTO) @TableId(value="id", type= IdType.AUTO)
private Integer id; private Integer id;
/**
* 排序
*/
private Integer num; private Integer num;
/**
* 父级字典
*/
private Integer pid; private Integer pid;
/**
* 名称
*/
private String name; private String name;
/**
* 提示
*/
private String tips; private String tips;
......
package com.stylefeng.guns.common.persistence.model; package com.stylefeng.guns.common.persistence.model;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model; import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
/** /**
* <p> * <p>
* * 登录记录
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
@TableName("login_log") @TableName("login_log")
public class LoginLog extends Model<LoginLog> { public class LoginLog extends Model<LoginLog> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value="id", type= IdType.AUTO) @TableId(value="id", type= IdType.AUTO)
private Integer id; private Integer id;
/**
* 日志名称
*/
private String logname; private String logname;
/**
* 管理员id
*/
private Integer userid; private Integer userid;
/**
* 创建时间
*/
private Date createtime; private Date createtime;
/**
* 是否执行成功
*/
private String succeed; private String succeed;
/**
* 具体消息
*/
private String message; private String message;
/**
* 登录ip
*/
private String ip; private String ip;
......
...@@ -7,16 +7,19 @@ import java.io.Serializable; ...@@ -7,16 +7,19 @@ import java.io.Serializable;
/** /**
* <p> * <p>
* * 菜单表
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public class Menu extends Model<Menu> { public class Menu extends Model<Menu> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value="id", type= IdType.AUTO) @TableId(value="id", type= IdType.AUTO)
private Integer id; private Integer id;
/** /**
...@@ -27,6 +30,9 @@ public class Menu extends Model<Menu> { ...@@ -27,6 +30,9 @@ public class Menu extends Model<Menu> {
* 菜单父编号 * 菜单父编号
*/ */
private String pcode; private String pcode;
/**
* 当前菜单的所有父菜单编号
*/
private String pcodes; private String pcodes;
/** /**
* 菜单名称 * 菜单名称
...@@ -48,6 +54,9 @@ public class Menu extends Model<Menu> { ...@@ -48,6 +54,9 @@ public class Menu extends Model<Menu> {
* 菜单层级 * 菜单层级
*/ */
private Integer levels; private Integer levels;
/**
* 是否是菜单(1:是 0:不是)
*/
private Integer ismenu; private Integer ismenu;
/** /**
* 备注 * 备注
......
...@@ -9,18 +9,18 @@ import java.util.Date; ...@@ -9,18 +9,18 @@ import java.util.Date;
/** /**
* <p> * <p>
* * 通知表
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public class Notice extends Model<Notice> { public class Notice extends Model<Notice> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/** /**
* 序列 * 主键
*/ */
@TableId(value="id", type= IdType.AUTO) @TableId(value="id", type= IdType.AUTO)
private Integer id; private Integer id;
......
package com.stylefeng.guns.common.persistence.model; package com.stylefeng.guns.common.persistence.model;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model; import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName; import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
/** /**
* <p> * <p>
* * 操作日志
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
@TableName("operation_log") @TableName("operation_log")
public class OperationLog extends Model<OperationLog> { public class OperationLog extends Model<OperationLog> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value="id", type= IdType.AUTO) @TableId(value="id", type= IdType.AUTO)
private Integer id; private Integer id;
/**
* 日志类型
*/
private String logtype; private String logtype;
/**
* 日志名称
*/
private String logname; private String logname;
/**
* 用户id
*/
private Integer userid; private Integer userid;
/**
* 类名称
*/
private String classname; private String classname;
/**
* 方法名称
*/
private String method; private String method;
/**
* 创建时间
*/
private Date createtime; private Date createtime;
/**
* 是否成功
*/
private String succeed; private String succeed;
/**
* 备注
*/
private String message; private String message;
......
...@@ -7,19 +7,28 @@ import java.io.Serializable; ...@@ -7,19 +7,28 @@ import java.io.Serializable;
/** /**
* <p> * <p>
* * 角色和菜单关联表
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public class Relation extends Model<Relation> { public class Relation extends Model<Relation> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 主键
*/
@TableId(value="id", type= IdType.AUTO) @TableId(value="id", type= IdType.AUTO)
private Integer id; private Integer id;
/**
* 菜单id
*/
private Integer menuid; private Integer menuid;
/**
* 角色id
*/
private Integer roleid; private Integer roleid;
......
...@@ -7,23 +7,44 @@ import java.io.Serializable; ...@@ -7,23 +7,44 @@ import java.io.Serializable;
/** /**
* <p> * <p>
* * 角色表
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public class Role extends Model<Role> { public class Role extends Model<Role> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value="id", type= IdType.AUTO) @TableId(value="id", type= IdType.AUTO)
private Integer id; private Integer id;
/**
* 序号
*/
private Integer num; private Integer num;
/**
* 父角色id
*/
private Integer pid; private Integer pid;
/**
* 角色名称
*/
private String name; private String name;
/**
* 部门名称
*/
private Integer deptid; private Integer deptid;
/**
* 提示
*/
private String tips; private String tips;
/**
* 保留字段(暂时没用)
*/
private Integer version; private Integer version;
......
package com.stylefeng.guns.common.persistence.model; package com.stylefeng.guns.common.persistence.model;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model; import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
/** /**
* <p> * <p>
* * 管理员表
* </p> * </p>
* *
* @author stylefeng * @author stylefeng
* @since 2017-06-13 * @since 2017-06-20
*/ */
public class User extends Model<User> { public class User extends Model<User> {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
/**
* 主键id
*/
@TableId(value="id", type= IdType.AUTO) @TableId(value="id", type= IdType.AUTO)
private Integer id; private Integer id;
/**
* 头像
*/
private String avatar; private String avatar;
/**
* 账号
*/
private String account; private String account;
/**
* 密码
*/
private String password; private String password;
/**
* md5密码盐
*/
private String salt; private String salt;
/**
* 名字
*/
private String name; private String name;
/**
* 生日
*/
private Date birthday; private Date birthday;
/**
* 性别(1:男 2:女)
*/
private Integer sex; private Integer sex;
/**
* 电子邮件
*/
private String email; private String email;
/**
* 电话
*/
private String phone; private String phone;
/**
* 角色id
*/
private String roleid; private String roleid;
/**
* 部门id
*/
private Integer deptid; private Integer deptid;
/**
* 状态(1:启用 2:冻结 3:删除)
*/
private Integer status; private Integer status;
/**
* 创建时间
*/
private Date createtime; private Date createtime;
/**
* 保留字段
*/
private Integer version; private Integer version;
......
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