master
parent
49e5e336f0
commit
925c3bff74
@ -0,0 +1,9 @@
|
||||
package com.bsd.cases.mapper;
|
||||
|
||||
import com.bsd.cases.model.CaseCategory;
|
||||
import com.bsd.cases.util.CommonMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface CaseCategoryMapper extends CommonMapper<CaseCategory> {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.bsd.cases.mapper;
|
||||
|
||||
import com.bsd.cases.model.CaseContentAttachment;
|
||||
import com.bsd.cases.util.CommonMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface CaseContentAttachmentMapper extends CommonMapper<CaseContentAttachment> {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.bsd.cases.mapper;
|
||||
|
||||
import com.bsd.cases.model.CaseContentComments;
|
||||
import com.bsd.cases.util.CommonMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface CaseContentCommentsMapper extends CommonMapper<CaseContentComments> {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.bsd.cases.mapper;
|
||||
|
||||
import com.bsd.cases.model.CaseContentLike;
|
||||
import com.bsd.cases.util.CommonMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface CaseContentLikeMapper extends CommonMapper<CaseContentLike> {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.bsd.cases.mapper;
|
||||
|
||||
import com.bsd.cases.model.CaseContent;
|
||||
import com.bsd.cases.util.CommonMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface CaseContentMapper extends CommonMapper<CaseContent> {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.bsd.cases.mapper;
|
||||
|
||||
import com.bsd.cases.model.CaseContentMaterial;
|
||||
import com.bsd.cases.util.CommonMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface CaseContentMaterialMapper extends CommonMapper<CaseContentMaterial> {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.bsd.cases.mapper;
|
||||
|
||||
import com.bsd.cases.model.CaseContentStatical;
|
||||
import com.bsd.cases.util.CommonMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface CaseContentStaticalMapper extends CommonMapper<CaseContentStatical> {
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.bsd.cases.mapper;
|
||||
|
||||
import com.bsd.cases.model.CaseContentView;
|
||||
import com.bsd.cases.util.CommonMapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Repository
|
||||
public interface CaseContentViewMapper extends CommonMapper<CaseContentView> {
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.bsd.cases.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("case_category")
|
||||
public class CaseCategory extends BaseEntity{
|
||||
|
||||
private String name;
|
||||
|
||||
private Integer level;
|
||||
|
||||
private Long parentId;
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
package com.bsd.cases.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("case_content")
|
||||
public class CaseContent extends BaseEntity {
|
||||
|
||||
private String contentTitle;
|
||||
|
||||
private String url;
|
||||
|
||||
private String content;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.bsd.cases.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("case_content_attachment")
|
||||
public class CaseContentAttachment extends BaseEntity{
|
||||
|
||||
private Long contentId;
|
||||
|
||||
private String attachmentUrl;
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.bsd.cases.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("case_content_comments")
|
||||
public class CaseContentComments extends BaseEntity {
|
||||
|
||||
private Long contentId;
|
||||
|
||||
private String comments;
|
||||
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.bsd.cases.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("case_content_like")
|
||||
public class CaseContentLike extends BaseEntity{
|
||||
|
||||
private Long contentId;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.bsd.cases.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("case_content_material")
|
||||
public class CaseContentMaterial extends BaseEntity{
|
||||
|
||||
private Long contentId;
|
||||
|
||||
private String url;
|
||||
|
||||
private Integer type;
|
||||
|
||||
private Integer orderBy;
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.bsd.cases.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("case_content_statical")
|
||||
public class CaseContentStatical extends BaseEntity {
|
||||
|
||||
private Long contentId;
|
||||
|
||||
private Double score;
|
||||
|
||||
private Integer likeNum;
|
||||
|
||||
private Integer viewNum;
|
||||
|
||||
private Integer commentsNum;
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.bsd.cases.model;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@TableName("case_content_view")
|
||||
public class CaseContentView extends BaseEntity {
|
||||
|
||||
private Long contentId;
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.bsd.cases.service;
|
||||
|
||||
public interface CaseCategoryService<CaseCategory> extends BaseService<CaseCategory> {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.bsd.cases.service;
|
||||
|
||||
public interface CaseContentAttachmentService<CaseContentAttachment> extends BaseService<CaseContentAttachment> {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.bsd.cases.service;
|
||||
|
||||
public interface CaseContentCommentsService<CaseContentComments> extends BaseService<CaseContentComments> {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.bsd.cases.service;
|
||||
|
||||
public interface CaseContentLikeService<CaseContentLike> extends BaseService<CaseContentLike> {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.bsd.cases.service;
|
||||
|
||||
public interface CaseContentMaterialService<CaseContentMaterial> extends BaseService<CaseContentMaterial> {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.bsd.cases.service;
|
||||
|
||||
public interface CaseContentService<CaseContent> extends BaseService<CaseContent> {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.bsd.cases.service;
|
||||
|
||||
public interface CaseContentStaticalService<CaseContentStatical> extends BaseService<CaseContentStatical> {
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
package com.bsd.cases.service;
|
||||
|
||||
public interface CaseContentViewService<CaseContentView> extends BaseService<CaseContentView> {
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.bsd.cases.service.impl;
|
||||
|
||||
import com.bsd.cases.mapper.CaseCategoryMapper;
|
||||
import com.bsd.cases.model.CaseCategory;
|
||||
import com.bsd.cases.service.CaseCategoryService;
|
||||
import com.bsd.cases.util.AjaxResult;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Service("caseCategoryService")
|
||||
@Transactional
|
||||
public class CaseCategoryServiceImpl extends BaseServiceImpl<CaseCategoryMapper, CaseCategory> implements CaseCategoryService<CaseCategory> {
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.bsd.cases.service.impl;
|
||||
|
||||
import com.bsd.cases.mapper.CaseContentAttachmentMapper;
|
||||
import com.bsd.cases.model.CaseContentAttachment;
|
||||
import com.bsd.cases.service.CaseContentAttachmentService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service("caseContentAttachmentService")
|
||||
@Transactional
|
||||
public class CaseContentAttachmentServiceImpl extends BaseServiceImpl<CaseContentAttachmentMapper, CaseContentAttachment>
|
||||
implements CaseContentAttachmentService<CaseContentAttachment> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.bsd.cases.service.impl;
|
||||
|
||||
import com.bsd.cases.mapper.CaseContentCommentsMapper;
|
||||
import com.bsd.cases.model.CaseContentComments;
|
||||
import com.bsd.cases.service.CaseContentCommentsService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service("caseContentCommentsService")
|
||||
@Transactional
|
||||
public class CaseContentCommentsServiceImpl extends BaseServiceImpl<CaseContentCommentsMapper, CaseContentComments>
|
||||
implements CaseContentCommentsService<CaseContentComments> {
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.bsd.cases.service.impl;
|
||||
|
||||
import com.bsd.cases.mapper.CaseContentLikeMapper;
|
||||
import com.bsd.cases.model.CaseContentLike;
|
||||
import com.bsd.cases.service.CaseContentLikeService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service("caseContentLikeService")
|
||||
@Transactional
|
||||
public class CaseContentLikeServiceImpl extends BaseServiceImpl<CaseContentLikeMapper, CaseContentLike> implements CaseContentLikeService<CaseContentLike> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.bsd.cases.service.impl;
|
||||
|
||||
import com.bsd.cases.mapper.CaseContentMaterialMapper;
|
||||
import com.bsd.cases.model.CaseContentMaterial;
|
||||
import com.bsd.cases.service.CaseContentMaterialService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service("caseContentMaterialService")
|
||||
@Transactional
|
||||
public class CaseContentMaterialServiceImpl extends BaseServiceImpl<CaseContentMaterialMapper, CaseContentMaterial>
|
||||
implements CaseContentMaterialService<CaseContentMaterial> {
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package com.bsd.cases.service.impl;
|
||||
|
||||
import com.bsd.cases.mapper.CaseContentMapper;
|
||||
import com.bsd.cases.model.CaseContent;
|
||||
import com.bsd.cases.service.CaseContentService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service("caseContentService")
|
||||
@Transactional
|
||||
public class CaseContentServiceImpl extends BaseServiceImpl<CaseContentMapper, CaseContent> implements CaseContentService<CaseContent> {
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.bsd.cases.service.impl;
|
||||
|
||||
import com.bsd.cases.mapper.CaseContentStaticalMapper;
|
||||
import com.bsd.cases.model.CaseContentStatical;
|
||||
import com.bsd.cases.service.CaseContentStaticalService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service("caseContentStaticalService")
|
||||
@Transactional
|
||||
public class CaseContentStaticalServiceImpl extends BaseServiceImpl<CaseContentStaticalMapper, CaseContentStatical>
|
||||
implements CaseContentStaticalService<CaseContentStatical> {
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.bsd.cases.service.impl;
|
||||
|
||||
import com.bsd.cases.mapper.CaseContentMapper;
|
||||
import com.bsd.cases.mapper.CaseContentViewMapper;
|
||||
import com.bsd.cases.model.CaseContent;
|
||||
import com.bsd.cases.model.CaseContentView;
|
||||
import com.bsd.cases.service.CaseContentService;
|
||||
import com.bsd.cases.service.CaseContentViewService;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@Service("caseContentViewService")
|
||||
@Transactional
|
||||
public class CaseContentViewServiceImpl extends BaseServiceImpl<CaseContentViewMapper, CaseContentView>
|
||||
implements CaseContentViewService<CaseContentView> {
|
||||
}
|
Loading…
Reference in New Issue