血脉初建

This commit is contained in:
wangjinlei
2023-11-02 11:08:06 +08:00
parent eff309f8cb
commit 82f8201468
8 changed files with 121 additions and 0 deletions

View File

@@ -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<PointCategoryEntity> {
}

View File

@@ -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<PointEntity> {
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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<PointCategoryEntity> {
}

View File

@@ -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<PointEntity> {
}

View File

@@ -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<PointCategoryDao, PointCategoryEntity> implements PointCategoryService {
}

View File

@@ -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<PointDao, PointEntity> implements PointService {
}