diff --git a/src/main/java/com/peanut/modules/book/dao/PointCategoryDao.java b/src/main/java/com/peanut/modules/book/dao/PointCategoryDao.java new file mode 100644 index 00000000..9c82b863 --- /dev/null +++ b/src/main/java/com/peanut/modules/book/dao/PointCategoryDao.java @@ -0,0 +1,9 @@ +package com.peanut.modules.book.dao; + +import com.github.yulichang.base.MPJBaseMapper; +import com.peanut.modules.book.entity.PointCategoryEntity; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface PointCategoryDao extends MPJBaseMapper { +} diff --git a/src/main/java/com/peanut/modules/book/dao/PointDao.java b/src/main/java/com/peanut/modules/book/dao/PointDao.java new file mode 100644 index 00000000..4a7040ed --- /dev/null +++ b/src/main/java/com/peanut/modules/book/dao/PointDao.java @@ -0,0 +1,10 @@ +package com.peanut.modules.book.dao; + +import com.github.yulichang.base.MPJBaseMapper; +import com.peanut.modules.book.entity.PointEntity; +import org.apache.ibatis.annotations.Mapper; + + +@Mapper +public interface PointDao extends MPJBaseMapper { +} diff --git a/src/main/java/com/peanut/modules/book/entity/PointCategoryEntity.java b/src/main/java/com/peanut/modules/book/entity/PointCategoryEntity.java new file mode 100644 index 00000000..16761cb2 --- /dev/null +++ b/src/main/java/com/peanut/modules/book/entity/PointCategoryEntity.java @@ -0,0 +1,27 @@ +package com.peanut.modules.book.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +@Data +@TableName("point_category") +public class PointCategoryEntity implements Serializable { + + @TableId(type = IdType.AUTO) + private Integer id; + + private String title; + + private Integer pid; + + private Integer sort; + + private Date createTime; + + private Integer delFlag; +} diff --git a/src/main/java/com/peanut/modules/book/entity/PointEntity.java b/src/main/java/com/peanut/modules/book/entity/PointEntity.java new file mode 100644 index 00000000..7156a8b0 --- /dev/null +++ b/src/main/java/com/peanut/modules/book/entity/PointEntity.java @@ -0,0 +1,39 @@ +package com.peanut.modules.book.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import lombok.Data; + +import java.io.Serializable; +import java.util.Date; + +@Data +@TableName("point") +public class PointEntity implements Serializable { + + @TableId(type = IdType.AUTO) + private Integer id; + + private Integer pointCategoryId; + + private String alias; + + private String merdians; + + private String position; + + private String anatomy; + + private String indication; + + private String compatibility; + + private String literature; + + private Integer sort; + + private Date createTime; + + private Integer delFlag; +} diff --git a/src/main/java/com/peanut/modules/book/service/PointCategoryService.java b/src/main/java/com/peanut/modules/book/service/PointCategoryService.java new file mode 100644 index 00000000..b867c72c --- /dev/null +++ b/src/main/java/com/peanut/modules/book/service/PointCategoryService.java @@ -0,0 +1,7 @@ +package com.peanut.modules.book.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.peanut.modules.book.entity.PointCategoryEntity; + +public interface PointCategoryService extends IService { +} diff --git a/src/main/java/com/peanut/modules/book/service/PointService.java b/src/main/java/com/peanut/modules/book/service/PointService.java new file mode 100644 index 00000000..4f723940 --- /dev/null +++ b/src/main/java/com/peanut/modules/book/service/PointService.java @@ -0,0 +1,7 @@ +package com.peanut.modules.book.service; + +import com.baomidou.mybatisplus.extension.service.IService; +import com.peanut.modules.book.entity.PointEntity; + +public interface PointService extends IService { +} diff --git a/src/main/java/com/peanut/modules/book/service/impl/PointCategoryServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/PointCategoryServiceImpl.java new file mode 100644 index 00000000..964e8436 --- /dev/null +++ b/src/main/java/com/peanut/modules/book/service/impl/PointCategoryServiceImpl.java @@ -0,0 +1,11 @@ +package com.peanut.modules.book.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.peanut.modules.book.dao.PointCategoryDao; +import com.peanut.modules.book.entity.PointCategoryEntity; +import com.peanut.modules.book.service.PointCategoryService; +import org.springframework.stereotype.Service; + +@Service("pointCategoryService") +public class PointCategoryServiceImpl extends ServiceImpl implements PointCategoryService { +} diff --git a/src/main/java/com/peanut/modules/book/service/impl/PointServiceImpl.java b/src/main/java/com/peanut/modules/book/service/impl/PointServiceImpl.java new file mode 100644 index 00000000..8bc4941c --- /dev/null +++ b/src/main/java/com/peanut/modules/book/service/impl/PointServiceImpl.java @@ -0,0 +1,11 @@ +package com.peanut.modules.book.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.peanut.modules.book.dao.PointDao; +import com.peanut.modules.book.entity.PointEntity; +import com.peanut.modules.book.service.PointService; +import org.springframework.stereotype.Service; + +@Service("pointService") +public class PointServiceImpl extends ServiceImpl implements PointService { +}