From a932bf52ca585bbbd5f2b8cda318aa54e42e0c39 Mon Sep 17 00:00:00 2001 From: cat_shark <1716967236@qq.com> Date: Wed, 27 May 2026 21:23:31 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=20StudyExpectati?= =?UTF-8?q?ons=20=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../entity/StudyExpectationsEntity.java | 39 ------------------- .../mapper/StudyExpectationsMapper.java | 20 ---------- .../service/StudyExpectationsService.java | 13 ------- .../impl/StudyExpectationsServiceImpl.java | 22 ----------- .../mapper/StudyExpectationsMapper.xml | 22 ----------- 5 files changed, 116 deletions(-) delete mode 100644 src/main/java/com/guo/learningprogresstracker/entity/StudyExpectationsEntity.java delete mode 100644 src/main/java/com/guo/learningprogresstracker/mapper/StudyExpectationsMapper.java delete mode 100644 src/main/java/com/guo/learningprogresstracker/service/StudyExpectationsService.java delete mode 100644 src/main/java/com/guo/learningprogresstracker/service/impl/StudyExpectationsServiceImpl.java delete mode 100644 src/main/resources/mapper/StudyExpectationsMapper.xml diff --git a/src/main/java/com/guo/learningprogresstracker/entity/StudyExpectationsEntity.java b/src/main/java/com/guo/learningprogresstracker/entity/StudyExpectationsEntity.java deleted file mode 100644 index 76fd27a..0000000 --- a/src/main/java/com/guo/learningprogresstracker/entity/StudyExpectationsEntity.java +++ /dev/null @@ -1,39 +0,0 @@ -package com.guo.learningprogresstracker.entity; - -import com.baomidou.mybatisplus.annotation.IdType; -import com.baomidou.mybatisplus.annotation.TableField; -import com.baomidou.mybatisplus.annotation.TableId; -import com.baomidou.mybatisplus.annotation.TableName; -import java.io.Serializable; -import java.time.LocalDateTime; -import lombok.Data; - -/** - * 存储每次学习开始前的预期 - * @TableName study_expectations - */ -@TableName(value ="study_expectations") -@Data -public class StudyExpectationsEntity extends BaseEntity implements Serializable { - /** - * - */ - @TableId(value = "expectation_id", type = IdType.AUTO) - private Integer expectationId; - - /** - * - */ - @TableField(value = "session_id") - private Integer sessionId; - - /** - * 学习预期的详细描述 - */ - @TableField(value = "description") - private String description; - - - @TableField(exist = false) - private static final long serialVersionUID = 1L; -} \ No newline at end of file diff --git a/src/main/java/com/guo/learningprogresstracker/mapper/StudyExpectationsMapper.java b/src/main/java/com/guo/learningprogresstracker/mapper/StudyExpectationsMapper.java deleted file mode 100644 index 57b159a..0000000 --- a/src/main/java/com/guo/learningprogresstracker/mapper/StudyExpectationsMapper.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.guo.learningprogresstracker.mapper; - -import com.guo.learningprogresstracker.entity.StudyExpectationsEntity; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; -import org.apache.ibatis.annotations.Mapper; - -/** -* @author guo -* @description 针对表【study_expectations(存储每次学习开始前的预期)】的数据库操作Mapper -* @createDate 2024-06-09 15:28:48 -* @Entity com.guo.learningprogresstracker.entity.StudyExpectationsEntity -*/ -@Mapper -public interface StudyExpectationsMapper extends BaseMapper { - -} - - - - diff --git a/src/main/java/com/guo/learningprogresstracker/service/StudyExpectationsService.java b/src/main/java/com/guo/learningprogresstracker/service/StudyExpectationsService.java deleted file mode 100644 index ccde3e4..0000000 --- a/src/main/java/com/guo/learningprogresstracker/service/StudyExpectationsService.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.guo.learningprogresstracker.service; - -import com.guo.learningprogresstracker.entity.StudyExpectationsEntity; -import com.baomidou.mybatisplus.extension.service.IService; - -/** -* @author guo -* @description 针对表【study_expectations(存储每次学习开始前的预期)】的数据库操作Service -* @createDate 2024-06-09 15:28:48 -*/ -public interface StudyExpectationsService extends IService { - -} diff --git a/src/main/java/com/guo/learningprogresstracker/service/impl/StudyExpectationsServiceImpl.java b/src/main/java/com/guo/learningprogresstracker/service/impl/StudyExpectationsServiceImpl.java deleted file mode 100644 index 1123707..0000000 --- a/src/main/java/com/guo/learningprogresstracker/service/impl/StudyExpectationsServiceImpl.java +++ /dev/null @@ -1,22 +0,0 @@ -package com.guo.learningprogresstracker.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.guo.learningprogresstracker.entity.StudyExpectationsEntity; -import com.guo.learningprogresstracker.service.StudyExpectationsService; -import com.guo.learningprogresstracker.mapper.StudyExpectationsMapper; -import org.springframework.stereotype.Service; - -/** -* @author guo -* @description 针对表【study_expectations(存储每次学习开始前的预期)】的数据库操作Service实现 -* @createDate 2024-06-09 15:28:48 -*/ -@Service -public class StudyExpectationsServiceImpl extends ServiceImpl - implements StudyExpectationsService{ - -} - - - - diff --git a/src/main/resources/mapper/StudyExpectationsMapper.xml b/src/main/resources/mapper/StudyExpectationsMapper.xml deleted file mode 100644 index e80f7b7..0000000 --- a/src/main/resources/mapper/StudyExpectationsMapper.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - - - - - - - - - expectation_id,session_id,description, - created_time,created_by,last_modified_time, - last_modified_by - -