项目结构优化

This commit is contained in:
x ronger 2019-11-17 01:24:42 +08:00
parent 0e80995a7e
commit 5bce04032e
10 changed files with 89 additions and 21 deletions

View File

@ -7,37 +7,27 @@ import java.io.Serializable;
import java.util.Date;
@Data
public class UserDTO implements Serializable {
public class UserInfoDTO implements Serializable {
private String id;
private String idUser;
private String office;
private String account;
private String officeId;
private String avatarType;
private String loginName;
private String avatarUrl;
private String password;
private String no;
private String name;
private String nickname;
private String email;
private String phone;
private String mobile;
private String status;
private String remarks;
private String roleIds;
private String sex = "";
private String inputCode;
private String sex;
@JSONField(format = "yyyy-MM-dd HH:mm")
private Date lastLoginTime;

View File

@ -0,0 +1,42 @@
package com.rymcu.vertical.entity;
import lombok.Data;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;
@Data
public class Article implements Serializable,Cloneable {
/** 主键 */
@Id
@GeneratedValue
private Integer id ;
/** 文章标题 */
private String articleTitle ;
/** 文章缩略图 */
private String articleThumbnailUrl ;
/** 文章作者id */
private Integer articleAuthorId ;
/** 文章类型 */
private String articleType ;
/** 文章标签 */
private String articleTags ;
/** 浏览总数 */
private Integer articleViewCount ;
/** 预览内容 */
private Integer articlePreviewContent ;
/** 评论总数 */
private Integer commentCount ;
/** 过去时长 */
private String timeAgo ;
/** 文章永久链接 */
private String articlePermalink ;
/** 站内链接 */
private String articleLink ;
/** 创建时间 */
private Date createdTime ;
/** 更新时间 */
private Date updatedTime ;
}

View File

@ -7,11 +7,12 @@ import tk.mybatis.mapper.annotation.ColumnType;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Data
@Table(name = "SYS_MENU")
public class Menu {
public class Menu implements Serializable,Cloneable {
@Id
@Column(name = "id")

View File

@ -5,11 +5,12 @@ import lombok.Data;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Data
@Table(name = "sys_role")
public class Role {
public class Role implements Serializable,Cloneable {
@Id
@Column(name = "id")
private Integer idRole;

View File

@ -7,11 +7,12 @@ import tk.mybatis.mapper.annotation.ColumnType;
import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
@Table(name = "sys_user")
@Data
public class User {
public class User implements Serializable,Cloneable {
@Id
@Column(name = "id")
private Integer idUser;

View File

@ -0,0 +1,7 @@
package com.rymcu.vertical.service;
import com.rymcu.vertical.core.service.Service;
import com.rymcu.vertical.entity.Article;
public interface ArticleService extends Service<Article> {
}

View File

@ -0,0 +1,7 @@
package com.rymcu.vertical.service;
import com.rymcu.vertical.core.service.Service;
import com.rymcu.vertical.entity.Article;
public interface TagService extends Service<Article> {
}

View File

@ -0,0 +1,10 @@
package com.rymcu.vertical.service.impl;
import com.rymcu.vertical.core.service.AbstractService;
import com.rymcu.vertical.entity.Article;
import com.rymcu.vertical.service.ArticleService;
import org.springframework.stereotype.Service;
@Service
public class ArticleServiceImpl extends AbstractService<Article> implements ArticleService {
}

View File

@ -0,0 +1,10 @@
package com.rymcu.vertical.service.impl;
import com.rymcu.vertical.core.service.AbstractService;
import com.rymcu.vertical.entity.Article;
import com.rymcu.vertical.service.TagService;
import org.springframework.stereotype.Service;
@Service
public class TagServiceImpl extends AbstractService<Article> implements TagService {
}

View File

@ -1 +0,0 @@