u
This commit is contained in:
1 parent
898d209594
commit
0189bf89c9
31 files changed
+745
-3
No files matched your search
@@ -34,7 +34,7 @@ public class FilePO {
|
||||
private String createTime;
|
||||
|
||||
@TableField(
|
||||
value = "b_create_by",
|
||||
value = "b_create_user_id",
|
||||
fill = FieldFill.INSERT
|
||||
)
|
||||
private String createBy;
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package cn.link56.forum.mapper;
|
||||
|
||||
import cn.link56.forum.model.po.PostCommentPO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface PostCommentMapper extends BaseMapper<PostCommentPO> {
|
||||
}
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
package cn.link56.forum.mapper;
|
||||
|
||||
import cn.link56.forum.model.po.PostFavoritePO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface PostFavoriteMapper extends BaseMapper<PostFavoritePO> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package cn.link56.forum.mapper;
|
||||
|
||||
import cn.link56.forum.model.po.PostLikePO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface PostLikeMapper extends BaseMapper<PostLikePO> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package cn.link56.forum.mapper;
|
||||
|
||||
import cn.link56.forum.model.po.PostPO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface PostMapper extends BaseMapper<PostPO> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package cn.link56.forum.mapper;
|
||||
|
||||
import cn.link56.forum.model.po.PostTagPO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface PostTagMapper extends BaseMapper<PostTagPO> {
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package cn.link56.forum.mapper;
|
||||
|
||||
import cn.link56.forum.model.po.PostViewPO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface PostViewMapper extends BaseMapper<PostViewPO> {
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package cn.link56.forum.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName("b_post_comment")
|
||||
public class PostCommentPO {
|
||||
@TableId(value = "b_id")
|
||||
private Long id;
|
||||
|
||||
@TableField("b_father_id")
|
||||
private Long fatherId;
|
||||
|
||||
@TableField("b_post_id")
|
||||
private Long postId;
|
||||
|
||||
@TableField("b_content")
|
||||
private String content;
|
||||
|
||||
@TableField(
|
||||
value = "b_create_user_id",
|
||||
fill = FieldFill.INSERT
|
||||
)
|
||||
private Long createUserId;
|
||||
|
||||
@TableField(
|
||||
value = "b_create_time",
|
||||
fill = FieldFill.INSERT
|
||||
)
|
||||
private Long createTime;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package cn.link56.forum.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName("b_post_favorite")
|
||||
public class PostFavoritePO {
|
||||
@TableId(value = "b_id")
|
||||
private Long id;
|
||||
|
||||
@TableField("b_post_id")
|
||||
private Long postId;
|
||||
|
||||
@TableField("b_user_id")
|
||||
private Long userId;
|
||||
|
||||
@TableField(
|
||||
value = "b_create_time",
|
||||
fill = FieldFill.INSERT
|
||||
)
|
||||
private Long createTime;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package cn.link56.forum.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName("b_post_like")
|
||||
public class PostLikePO {
|
||||
@TableId(value = "b_id")
|
||||
private Long id;
|
||||
|
||||
@TableField("b_post_id")
|
||||
private Long postId;
|
||||
|
||||
@TableField("b_user_id")
|
||||
private Long userId;
|
||||
|
||||
@TableField(
|
||||
value = "b_create_time",
|
||||
fill = FieldFill.INSERT
|
||||
)
|
||||
private Long createTime;
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package cn.link56.forum.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName("b_post")
|
||||
public class PostPO {
|
||||
@TableId(value = "b_id")
|
||||
private Long id;
|
||||
|
||||
@TableField("b_company_id")
|
||||
private Long companyId;
|
||||
|
||||
@TableField("b_title")
|
||||
private String title;
|
||||
|
||||
@TableField("b_content")
|
||||
private String content;
|
||||
|
||||
@TableField("b_summary")
|
||||
private String summary;
|
||||
|
||||
@TableField("b_tags")
|
||||
private String tags;
|
||||
|
||||
@TableField("b_cover")
|
||||
private String cover;
|
||||
|
||||
@TableField(
|
||||
value = "b_create_user_id",
|
||||
fill = FieldFill.INSERT
|
||||
)
|
||||
private Long createUserId;
|
||||
|
||||
@TableField(
|
||||
value = "b_create_time",
|
||||
fill = FieldFill.INSERT
|
||||
)
|
||||
private Long createTime;
|
||||
|
||||
@TableField(
|
||||
value = "b_update_user_id",
|
||||
fill = FieldFill.INSERT_UPDATE
|
||||
)
|
||||
private Long updateUserId;
|
||||
|
||||
@TableField(
|
||||
value = "b_update_time",
|
||||
fill = FieldFill.INSERT_UPDATE
|
||||
)
|
||||
private Long updateTime;
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package cn.link56.forum.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName("b_post_tag")
|
||||
public class PostTagPO {
|
||||
@TableId(value = "b_id")
|
||||
private Long id;
|
||||
|
||||
@TableField("b_name")
|
||||
private String name;
|
||||
|
||||
@TableField("b_canuse")
|
||||
private String canuse;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package cn.link56.forum.model.po;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName("b_post_view")
|
||||
public class PostViewPO {
|
||||
@TableId(value = "b_id")
|
||||
private Long id;
|
||||
|
||||
@TableField("b_post_id")
|
||||
private Long postId;
|
||||
|
||||
@TableField("b_user_id")
|
||||
private Long userId;
|
||||
|
||||
@TableField(
|
||||
value = "b_create_time",
|
||||
fill = FieldFill.INSERT
|
||||
)
|
||||
private Long createTime;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package cn.link56.forum.service;
|
||||
|
||||
import cn.link56.forum.mapper.PostCommentMapper;
|
||||
import cn.link56.forum.model.po.PostCommentPO;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Service
|
||||
public class PostCommentService extends ServiceImpl<PostCommentMapper, PostCommentPO> {
|
||||
@Resource
|
||||
private PostCommentMapper postCommentMapper;
|
||||
}
|
||||
+14
@@ -0,0 +1,14 @@
|
||||
package cn.link56.forum.service;
|
||||
|
||||
import cn.link56.forum.mapper.PostFavoriteMapper;
|
||||
import cn.link56.forum.model.po.PostFavoritePO;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Service
|
||||
public class PostFavoriteService extends ServiceImpl<PostFavoriteMapper, PostFavoritePO> {
|
||||
@Resource
|
||||
private PostFavoriteMapper postFavoriteMapper;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package cn.link56.forum.service;
|
||||
|
||||
import cn.link56.forum.mapper.PostLikeMapper;
|
||||
import cn.link56.forum.model.po.PostLikePO;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Service
|
||||
public class PostLikeService extends ServiceImpl<PostLikeMapper, PostLikePO> {
|
||||
@Resource
|
||||
private PostLikeMapper postLikeMapper;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package cn.link56.forum.service;
|
||||
|
||||
import cn.link56.forum.mapper.PostMapper;
|
||||
import cn.link56.forum.model.po.PostPO;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Service
|
||||
public class PostService extends ServiceImpl<PostMapper, PostPO> {
|
||||
@Resource
|
||||
private PostMapper postMapper;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package cn.link56.forum.service;
|
||||
|
||||
import cn.link56.forum.mapper.PostTagMapper;
|
||||
import cn.link56.forum.model.po.PostTagPO;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Service
|
||||
public class PostTagService extends ServiceImpl<PostTagMapper, PostTagPO> {
|
||||
@Resource
|
||||
private PostTagMapper postTagMapper;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package cn.link56.forum.service;
|
||||
|
||||
import cn.link56.forum.mapper.PostViewMapper;
|
||||
import cn.link56.forum.model.po.PostViewPO;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
@Service
|
||||
public class PostViewService extends ServiceImpl<PostViewMapper, PostViewPO> {
|
||||
@Resource
|
||||
private PostViewMapper postViewMapper;
|
||||
}
|
||||
Reference in new issue
Block a user