项目结构优化
This commit is contained in:
parent
0e80995a7e
commit
5bce04032e
@ -7,37 +7,27 @@ import java.io.Serializable;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@Data
|
@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 nickname;
|
||||||
|
|
||||||
private String no;
|
|
||||||
|
|
||||||
private String name;
|
|
||||||
|
|
||||||
private String email;
|
private String email;
|
||||||
|
|
||||||
private String phone;
|
private String phone;
|
||||||
|
|
||||||
private String mobile;
|
|
||||||
|
|
||||||
private String status;
|
private String status;
|
||||||
|
|
||||||
private String remarks;
|
|
||||||
|
|
||||||
private String roleIds;
|
private String roleIds;
|
||||||
|
|
||||||
private String sex = "男";
|
private String sex;
|
||||||
|
|
||||||
private String inputCode;
|
|
||||||
|
|
||||||
@JSONField(format = "yyyy-MM-dd HH:mm")
|
@JSONField(format = "yyyy-MM-dd HH:mm")
|
||||||
private Date lastLoginTime;
|
private Date lastLoginTime;
|
42
src/main/java/com/rymcu/vertical/entity/Article.java
Normal file
42
src/main/java/com/rymcu/vertical/entity/Article.java
Normal 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 ;
|
||||||
|
}
|
@ -7,11 +7,12 @@ import tk.mybatis.mapper.annotation.ColumnType;
|
|||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@Table(name = "SYS_MENU")
|
@Table(name = "SYS_MENU")
|
||||||
public class Menu {
|
public class Menu implements Serializable,Cloneable {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "id")
|
@Column(name = "id")
|
||||||
|
@ -5,11 +5,12 @@ import lombok.Data;
|
|||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
@Table(name = "sys_role")
|
@Table(name = "sys_role")
|
||||||
public class Role {
|
public class Role implements Serializable,Cloneable {
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "id")
|
@Column(name = "id")
|
||||||
private Integer idRole;
|
private Integer idRole;
|
||||||
|
@ -7,11 +7,12 @@ import tk.mybatis.mapper.annotation.ColumnType;
|
|||||||
import javax.persistence.Column;
|
import javax.persistence.Column;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@Table(name = "sys_user")
|
@Table(name = "sys_user")
|
||||||
@Data
|
@Data
|
||||||
public class User {
|
public class User implements Serializable,Cloneable {
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "id")
|
@Column(name = "id")
|
||||||
private Integer idUser;
|
private Integer idUser;
|
||||||
|
@ -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> {
|
||||||
|
}
|
7
src/main/java/com/rymcu/vertical/service/TagService.java
Normal file
7
src/main/java/com/rymcu/vertical/service/TagService.java
Normal 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> {
|
||||||
|
}
|
@ -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 {
|
||||||
|
}
|
@ -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 {
|
||||||
|
}
|
@ -1 +0,0 @@
|
|||||||
|
|
Loading…
Reference in New Issue
Block a user