实体层,dao层基本创建

This commit is contained in:
2023-12-19 14:04:28 +08:00
parent e8a518bd6b
commit 0721107407
54 changed files with 2970 additions and 8 deletions

View File

@@ -0,0 +1,48 @@
package com.lovenav.entity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* ln_admin
*/
@Data
public class Admin implements Serializable {
/**
* id
*/
private Integer id;
/**
* 管理员登录账号
*/
private String adminAccount;
/**
* 管理员登录密码
*/
private String adminPassword;
/**
* 管理员邮箱
*/
private String adminEmail;
/**
* 角色组id
*/
private Integer roleId;
/**
* 创建时间
*/
private Date createtime;
/**
* 状态0有效/1禁用
*/
private Integer adminStatus;
private static final long serialVersionUID = 1L;
}

View File

@@ -1,4 +0,0 @@
package com.lovenav.entity;
public class AdminEntity {
}

View File

@@ -0,0 +1,24 @@
package com.lovenav.entity;
import java.io.Serializable;
import lombok.Data;
/**
* 管理员资料表
* ln_admin_meta
*/
@Data
public class AdminMeta implements Serializable {
private Long id;
/**
* 管理员id
*/
private Long adminId;
private String metaKey;
private String metaValue;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,63 @@
package com.lovenav.entity;
import java.io.Serializable;
import lombok.Data;
/**
* 附件表
* ln_attachment
*/
@Data
public class Attachment implements Serializable {
/**
* id
*/
private Long id;
/**
* 路径
*/
private String path;
/**
* 后缀
*/
private String suffix;
/**
* 文件名
*/
private String fileName;
/**
* 大小
*/
private Double size;
/**
* md5
*/
private String md5;
/**
* 宽
*/
private Double width;
/**
* 高
*/
private Double height;
/**
* 保存地址 local=本地
*/
private Object storage;
/**
* 创建时间
*/
private Integer createtime;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,45 @@
package com.lovenav.entity;
import java.io.Serializable;
import lombok.Data;
/**
* 后台菜单
* ln_auth
*/
@Data
public class Auth implements Serializable {
private Integer id;
/**
* 图标
*/
private String icon;
/**
* 菜单名称
*/
private String name;
/**
* 菜单路由
*/
private String routeUrl;
/**
* 上级id
*/
private Integer pid;
/**
* 是否作为菜单展示 1是0不是
*/
private Byte isMenu;
/**
* 权重
*/
private Integer weigh;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,43 @@
package com.lovenav.entity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* ln_banners
*/
@Data
public class Banners implements Serializable {
/**
* id
*/
private Integer id;
/**
* 图片url
*/
private String imgUrl;
/**
* 权重
*/
private Integer weigh;
/**
* 跳转链接
*/
private String url;
/**
* 状态0有效/1无效
*/
private Byte bannerStatus;
/**
* 创建时间
*/
private Date createtime;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,25 @@
package com.lovenav.entity;
import java.io.Serializable;
import lombok.Data;
/**
* 图标表
* ln_collect_icon_list
*/
@Data
public class CollectIconList implements Serializable {
private Long id;
/**
* 网址
*/
private String urlMd5;
/**
* 图片地址
*/
private String iconUrl;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,63 @@
package com.lovenav.entity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* ln_comment
*/
@Data
public class Comment implements Serializable {
/**
* id
*/
private Integer id;
/**
* 所属url id
*/
private Integer urlId;
/**
* 用户id
*/
private Integer userId;
/**
* 评论内容
*/
private String content;
/**
* 父评论id
*/
private Integer rootCommentId;
/**
* 点赞数
*/
private Long likeCount;
/**
* 评论时间
*/
private Date commentTime;
/**
* 状态
*/
private Byte commentStatus;
/**
* 更新时间
*/
private Date updateTime;
/**
* 用户评级
*/
private Integer rating;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,38 @@
package com.lovenav.entity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* ln_config
*/
@Data
public class Config implements Serializable {
/**
* id
*/
private Integer id;
/**
* 类型
*/
private Object type;
/**
* 名称
*/
private String name;
/**
* 值
*/
private String value;
/**
* 更新时间
*/
private Date updatetime;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,38 @@
package com.lovenav.entity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* ln_login_logs
*/
@Data
public class LoginLogs implements Serializable {
/**
* id
*/
private Integer id;
/**
* ip
*/
private String loginIp;
/**
* 用户id
*/
private Byte userId;
/**
* 登录时间
*/
private Date loginTime;
/**
* 地址
*/
private String location;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,43 @@
package com.lovenav.entity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* ln_notice
*/
@Data
public class Notice implements Serializable {
/**
* id
*/
private Integer id;
/**
* 标题
*/
private String title;
/**
* 内容
*/
private String content;
/**
* 跳转链接
*/
private String url;
/**
* 状态0显示/1隐藏
*/
private Byte noticeStatus;
/**
* 创建时间
*/
private Date createtime;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,42 @@
package com.lovenav.entity;
import java.io.Serializable;
import lombok.Data;
/**
* ln_role
*/
@Data
public class Role implements Serializable {
/**
* id
*/
private Integer id;
/**
* 角色名称
*/
private String roleName;
/**
* 角色等级
*/
private String roleLevel;
/**
* 上级角色
*/
private Integer pid;
/**
* 菜单权限
*/
private Integer menuId;
/**
* 状态0有效/1禁用
*/
private Byte roleStatus;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,33 @@
package com.lovenav.entity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* ln_url_access
*/
@Data
public class UrlAccess implements Serializable {
/**
* id
*/
private Integer id;
/**
* url id
*/
private Integer urlId;
/**
* 日期
*/
private Date time;
/**
* 访问量
*/
private Long views;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,62 @@
package com.lovenav.entity;
import java.io.Serializable;
import lombok.Data;
/**
* ln_url_cate_list
*/
@Data
public class UrlCateList implements Serializable {
/**
* id
*/
private Integer id;
/**
* 名称
*/
private String name;
/**
* 创建时间
*/
private Integer createtime;
/**
* url 数量
*/
private Long urlNumber;
/**
* 权重
*/
private Long weigh;
/**
* 状态
*/
private Byte status;
/**
* 需要登录才能查看
*/
private Byte needLogin;
/**
* 用户id
*/
private Integer userId;
/**
* 根标签
*/
private Integer rootCateId;
/**
* 图标
*/
private String ico;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,97 @@
package com.lovenav.entity;
import java.io.Serializable;
import lombok.Data;
/**
* ln_url_list
*/
@Data
public class UrlList implements Serializable {
/**
* id
*/
private Long id;
/**
* 网站名称
*/
private String name;
/**
* 网站图标
*/
private String icon;
/**
* 标签id
*/
private Integer cateId;
/**
* url
*/
private String url;
/**
* 创建时间
*/
private Integer createtime;
/**
* 访问数量
*/
private Long views;
/**
* 标签
*/
private String tags;
/**
* 权重
*/
private Long weigh;
/**
* 状态
*/
private Byte status;
/**
* 描述
*/
private String desc;
/**
* 需要登录才能查看
*/
private Byte needLogin;
/**
* 代理提示语
*/
private String agentHint;
/**
* 是否需要代理 1需要0不需要
*/
private Byte isNeedAgent;
/**
* 是否广告1是0不是
*/
private Byte isAd;
/**
* 是否全局置顶1是0不是
*/
private Byte isTop;
/**
* 是否加密1加密/0不加密
*/
private Byte isEncrypt;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,63 @@
package com.lovenav.entity;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* ln_user
*/
@Data
public class User implements Serializable {
/**
* id
*/
private Integer id;
/**
* 用户登录名
*/
private String userLogin;
/**
* 用户密码
*/
private String userPassword;
/**
* 用户手机号
*/
private Long phone;
/**
* 用户头像
*/
private String avatar;
/**
* 用户昵称
*/
private String nickname;
/**
* 用户邮箱
*/
private String userEmail;
/**
* 用户状态0正常/1禁用
*/
private Byte userStatus;
/**
* 用户注册时间
*/
private Date userRegistered;
/**
* 角色组
*/
private Byte roleId;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,21 @@
package com.lovenav.entity;
import java.io.Serializable;
import lombok.Data;
/**
* 用户信息表
* ln_user_meta
*/
@Data
public class UserMeta implements Serializable {
private Long id;
private Long userId;
private String metaKey;
private String metaValue;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.Admin;
import org.springframework.stereotype.Repository;
@Repository
public interface AdminDao {
int deleteByPrimaryKey(Integer id);
int insert(Admin record);
int insertSelective(Admin record);
Admin selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Admin record);
int updateByPrimaryKey(Admin record);
}

View File

@@ -1,4 +0,0 @@
package com.lovenav.mapper;
public interface AdminMapper {
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.AdminMeta;
import org.springframework.stereotype.Repository;
@Repository
public interface AdminMetaDao {
int deleteByPrimaryKey(Long id);
int insert(AdminMeta record);
int insertSelective(AdminMeta record);
AdminMeta selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(AdminMeta record);
int updateByPrimaryKey(AdminMeta record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.Attachment;
import org.springframework.stereotype.Repository;
@Repository
public interface AttachmentDao {
int deleteByPrimaryKey(Long id);
int insert(Attachment record);
int insertSelective(Attachment record);
Attachment selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(Attachment record);
int updateByPrimaryKey(Attachment record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.Auth;
import org.springframework.stereotype.Repository;
@Repository
public interface AuthDao {
int deleteByPrimaryKey(Integer id);
int insert(Auth record);
int insertSelective(Auth record);
Auth selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Auth record);
int updateByPrimaryKey(Auth record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.Banners;
import org.springframework.stereotype.Repository;
@Repository
public interface BannersDao {
int deleteByPrimaryKey(Integer id);
int insert(Banners record);
int insertSelective(Banners record);
Banners selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Banners record);
int updateByPrimaryKey(Banners record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.CollectIconList;
import org.springframework.stereotype.Repository;
@Repository
public interface CollectIconListDao {
int deleteByPrimaryKey(Long id);
int insert(CollectIconList record);
int insertSelective(CollectIconList record);
CollectIconList selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(CollectIconList record);
int updateByPrimaryKey(CollectIconList record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.Comment;
import org.springframework.stereotype.Repository;
@Repository
public interface CommentDao {
int deleteByPrimaryKey(Integer id);
int insert(Comment record);
int insertSelective(Comment record);
Comment selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Comment record);
int updateByPrimaryKey(Comment record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.Config;
import org.springframework.stereotype.Repository;
@Repository
public interface ConfigDao {
int deleteByPrimaryKey(Integer id);
int insert(Config record);
int insertSelective(Config record);
Config selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Config record);
int updateByPrimaryKey(Config record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.LoginLogs;
import org.springframework.stereotype.Repository;
@Repository
public interface LoginLogsDao {
int deleteByPrimaryKey(Integer id);
int insert(LoginLogs record);
int insertSelective(LoginLogs record);
LoginLogs selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(LoginLogs record);
int updateByPrimaryKey(LoginLogs record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.Notice;
import org.springframework.stereotype.Repository;
@Repository
public interface NoticeDao {
int deleteByPrimaryKey(Integer id);
int insert(Notice record);
int insertSelective(Notice record);
Notice selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Notice record);
int updateByPrimaryKey(Notice record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.Role;
import org.springframework.stereotype.Repository;
@Repository
public interface RoleDao {
int deleteByPrimaryKey(Integer id);
int insert(Role record);
int insertSelective(Role record);
Role selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(Role record);
int updateByPrimaryKey(Role record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.UrlAccess;
import org.springframework.stereotype.Repository;
@Repository
public interface UrlAccessDao {
int deleteByPrimaryKey(Integer id);
int insert(UrlAccess record);
int insertSelective(UrlAccess record);
UrlAccess selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(UrlAccess record);
int updateByPrimaryKey(UrlAccess record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.UrlCateList;
import org.springframework.stereotype.Repository;
@Repository
public interface UrlCateListDao {
int deleteByPrimaryKey(Integer id);
int insert(UrlCateList record);
int insertSelective(UrlCateList record);
UrlCateList selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(UrlCateList record);
int updateByPrimaryKey(UrlCateList record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.UrlList;
import org.springframework.stereotype.Repository;
@Repository
public interface UrlListDao {
int deleteByPrimaryKey(Long id);
int insert(UrlList record);
int insertSelective(UrlList record);
UrlList selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(UrlList record);
int updateByPrimaryKey(UrlList record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.User;
import org.springframework.stereotype.Repository;
@Repository
public interface UserDao {
int deleteByPrimaryKey(Integer id);
int insert(User record);
int insertSelective(User record);
User selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(User record);
int updateByPrimaryKey(User record);
}

View File

@@ -0,0 +1,19 @@
package com.lovenav.mapper;
import com.lovenav.entity.UserMeta;
import org.springframework.stereotype.Repository;
@Repository
public interface UserMetaDao {
int deleteByPrimaryKey(Long id);
int insert(UserMeta record);
int insertSelective(UserMeta record);
UserMeta selectByPrimaryKey(Long id);
int updateByPrimaryKeySelective(UserMeta record);
int updateByPrimaryKey(UserMeta record);
}

View File

@@ -0,0 +1,45 @@
package generate;
import java.io.Serializable;
import lombok.Data;
/**
* 后台菜单
* ln_auth
*/
@Data
public class LnAuth implements Serializable {
private Integer id;
/**
* 图标
*/
private String icon;
/**
* 菜单名称
*/
private String name;
/**
* 菜单路由
*/
private String routeUrl;
/**
* 上级id
*/
private Integer pid;
/**
* 是否作为菜单展示 1是0不是
*/
private Byte isMenu;
/**
* 权重
*/
private Integer weigh;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,19 @@
package generate;
import generate.LnAuth;
import org.springframework.stereotype.Repository;
@Repository
public interface LnAuthDao {
int deleteByPrimaryKey(Integer id);
int insert(LnAuth record);
int insertSelective(LnAuth record);
LnAuth selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(LnAuth record);
int updateByPrimaryKey(LnAuth record);
}

View File

@@ -0,0 +1,43 @@
package generate;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* ln_banners
*/
@Data
public class LnBanners implements Serializable {
/**
* id
*/
private Integer id;
/**
* 图片url
*/
private String imgUrl;
/**
* 权重
*/
private Integer weigh;
/**
* 跳转链接
*/
private String url;
/**
* 状态0有效/1无效
*/
private Byte bannerStatus;
/**
* 创建时间
*/
private Date createtime;
private static final long serialVersionUID = 1L;
}

View File

@@ -0,0 +1,19 @@
package generate;
import generate.LnBanners;
import org.springframework.stereotype.Repository;
@Repository
public interface LnBannersDao {
int deleteByPrimaryKey(Integer id);
int insert(LnBanners record);
int insertSelective(LnBanners record);
LnBanners selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(LnBanners record);
int updateByPrimaryKey(LnBanners record);
}