Commit 19b9ca4b by naan1993

增加model的注释

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