|
|
@@ -10,7 +10,7 @@
|
|
|
- 后端: Java 1.8 + Spring Boot 2.7.18 + MyBatis-Plus
|
|
|
- 前端小程序: uni-app (Vue 2 Options API)
|
|
|
- Web管理端: Vue 2 + Element UI
|
|
|
-- 数据库: MySQL 8.0 (zxyj主库 + sfms只读源库)
|
|
|
+- 数据库: MySQL 8.0 (cfc主库 + sfms只读源库)
|
|
|
- 认证: JWT Bearer Token
|
|
|
- 电商: Lilishop (独立微服务, REST API集成)
|
|
|
|
|
|
@@ -75,7 +75,7 @@
|
|
|
### 后端新增文件
|
|
|
|
|
|
```
|
|
|
-zxyj-backend/src/main/java/com/zxyj/
|
|
|
+cfc-backend/src/main/java/com/etotem/cfc/
|
|
|
├── controller/
|
|
|
│ ├── body/ # NEW
|
|
|
│ │ ├── BodyHealthController.java
|
|
|
@@ -150,7 +150,7 @@ zxyj-backend/src/main/java/com/zxyj/
|
|
|
### 前端新增/修改文件
|
|
|
|
|
|
```
|
|
|
-zxyj-frontend/
|
|
|
+cfc-frontend/
|
|
|
├── pages/
|
|
|
│ ├── index/
|
|
|
│ │ ├── index.vue # MODIFY - 四象限首页
|
|
|
@@ -200,15 +200,15 @@ zxyj-frontend/
|
|
|
### Task 1: 创建 Body 域 Entity
|
|
|
|
|
|
**Files:**
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/BodyHealthMetric.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/BodyNutritionLog.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/BodyAntiAgingAssessment.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/BodyExerciseLog.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/BodyHealthMetric.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/BodyNutritionLog.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/BodyAntiAgingAssessment.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/BodyExerciseLog.java`
|
|
|
|
|
|
- [ ] **Step 1: 创建 BodyHealthMetric entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -241,7 +241,7 @@ public class BodyHealthMetric {
|
|
|
- [ ] **Step 2: 创建 BodyNutritionLog entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -274,7 +274,7 @@ public class BodyNutritionLog {
|
|
|
- [ ] **Step 3: 创建 BodyAntiAgingAssessment entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -307,7 +307,7 @@ public class BodyAntiAgingAssessment {
|
|
|
- [ ] **Step 4: 创建 BodyExerciseLog entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -337,7 +337,7 @@ public class BodyExerciseLog {
|
|
|
|
|
|
- [ ] **Step 5: 编译验证**
|
|
|
|
|
|
-Run: `cd zxyj-backend && mvn compile -q`
|
|
|
+Run: `cd cfc-backend && mvn compile -q`
|
|
|
|
|
|
Expected: BUILD SUCCESS
|
|
|
|
|
|
@@ -346,15 +346,15 @@ Expected: BUILD SUCCESS
|
|
|
### Task 2: 创建 Mind 域 Entity
|
|
|
|
|
|
**Files:**
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/MindMoodLog.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/MindPsychologicalAssessment.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/MindFamilyAtmosphereIndex.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/MindMeditationSession.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/MindMoodLog.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/MindPsychologicalAssessment.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/MindFamilyAtmosphereIndex.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/MindMeditationSession.java`
|
|
|
|
|
|
- [ ] **Step 1: 创建 MindMoodLog entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -384,7 +384,7 @@ public class MindMoodLog {
|
|
|
- [ ] **Step 2: 创建 MindPsychologicalAssessment entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -417,7 +417,7 @@ public class MindPsychologicalAssessment {
|
|
|
- [ ] **Step 3: 创建 MindFamilyAtmosphereIndex entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -447,7 +447,7 @@ public class MindFamilyAtmosphereIndex {
|
|
|
- [ ] **Step 4: 创建 MindMeditationSession entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -476,7 +476,7 @@ public class MindMeditationSession {
|
|
|
|
|
|
- [ ] **Step 5: 编译验证**
|
|
|
|
|
|
-Run: `cd zxyj-backend && mvn compile -q`
|
|
|
+Run: `cd cfc-backend && mvn compile -q`
|
|
|
|
|
|
Expected: BUILD SUCCESS
|
|
|
|
|
|
@@ -485,20 +485,20 @@ Expected: BUILD SUCCESS
|
|
|
### Task 3: 创建 Action 域 Entity
|
|
|
|
|
|
**Files:**
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/ActionActivity.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/ActionActivityRegistration.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/ActionArticle.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/ActionArticleCategory.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/ActionElderCarePlan.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/ActionElderCareLog.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/ActionPracticeTask.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/ActionCommunityPost.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/entity/ActionCommunityComment.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/ActionActivity.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/ActionActivityRegistration.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/ActionArticle.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/ActionArticleCategory.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/ActionElderCarePlan.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/ActionElderCareLog.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/ActionPracticeTask.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/ActionCommunityPost.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/entity/ActionCommunityComment.java`
|
|
|
|
|
|
- [ ] **Step 1: 创建 ActionActivity entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -536,7 +536,7 @@ public class ActionActivity {
|
|
|
- [ ] **Step 2: 创建 ActionActivityRegistration entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -564,7 +564,7 @@ public class ActionActivityRegistration {
|
|
|
- [ ] **Step 3: 创建 ActionArticle entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -597,7 +597,7 @@ public class ActionArticle {
|
|
|
- [ ] **Step 4: 创建 ActionArticleCategory entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -623,7 +623,7 @@ public class ActionArticleCategory {
|
|
|
- [ ] **Step 5: 创建 ActionElderCarePlan entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -655,7 +655,7 @@ public class ActionElderCarePlan {
|
|
|
- [ ] **Step 6: 创建 ActionElderCareLog entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -684,7 +684,7 @@ public class ActionElderCareLog {
|
|
|
- [ ] **Step 7: 创建 ActionPracticeTask entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -716,7 +716,7 @@ public class ActionPracticeTask {
|
|
|
- [ ] **Step 8: 创建 ActionCommunityPost entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -748,7 +748,7 @@ public class ActionCommunityPost {
|
|
|
- [ ] **Step 9: 创建 ActionCommunityComment entity**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.entity;
|
|
|
+package com.etotem.cfc.entity;
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
|
@@ -774,7 +774,7 @@ public class ActionCommunityComment {
|
|
|
|
|
|
- [ ] **Step 10: 编译验证**
|
|
|
|
|
|
-Run: `cd zxyj-backend && mvn compile -q`
|
|
|
+Run: `cd cfc-backend && mvn compile -q`
|
|
|
|
|
|
Expected: BUILD SUCCESS
|
|
|
|
|
|
@@ -788,11 +788,11 @@ Expected: BUILD SUCCESS
|
|
|
- [ ] **Step 1: 创建 Body 域 Mapper**
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/BodyHealthMetricMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/BodyHealthMetricMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.BodyHealthMetric;
|
|
|
+import com.etotem.cfc.entity.BodyHealthMetric;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -800,11 +800,11 @@ public interface BodyHealthMetricMapper extends BaseMapper<BodyHealthMetric> {}
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/BodyNutritionLogMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/BodyNutritionLogMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.BodyNutritionLog;
|
|
|
+import com.etotem.cfc.entity.BodyNutritionLog;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -812,11 +812,11 @@ public interface BodyNutritionLogMapper extends BaseMapper<BodyNutritionLog> {}
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/BodyAntiAgingAssessmentMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/BodyAntiAgingAssessmentMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.BodyAntiAgingAssessment;
|
|
|
+import com.etotem.cfc.entity.BodyAntiAgingAssessment;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -824,11 +824,11 @@ public interface BodyAntiAgingAssessmentMapper extends BaseMapper<BodyAntiAgingA
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/BodyExerciseLogMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/BodyExerciseLogMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.BodyExerciseLog;
|
|
|
+import com.etotem.cfc.entity.BodyExerciseLog;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -838,11 +838,11 @@ public interface BodyExerciseLogMapper extends BaseMapper<BodyExerciseLog> {}
|
|
|
- [ ] **Step 2: 创建 Mind 域 Mapper**
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/MindMoodLogMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/MindMoodLogMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.MindMoodLog;
|
|
|
+import com.etotem.cfc.entity.MindMoodLog;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -850,11 +850,11 @@ public interface MindMoodLogMapper extends BaseMapper<MindMoodLog> {}
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/MindPsychologicalAssessmentMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/MindPsychologicalAssessmentMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.MindPsychologicalAssessment;
|
|
|
+import com.etotem.cfc.entity.MindPsychologicalAssessment;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -862,11 +862,11 @@ public interface MindPsychologicalAssessmentMapper extends BaseMapper<MindPsycho
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/MindFamilyAtmosphereIndexMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/MindFamilyAtmosphereIndexMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.MindFamilyAtmosphereIndex;
|
|
|
+import com.etotem.cfc.entity.MindFamilyAtmosphereIndex;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -874,11 +874,11 @@ public interface MindFamilyAtmosphereIndexMapper extends BaseMapper<MindFamilyAt
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/MindMeditationSessionMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/MindMeditationSessionMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.MindMeditationSession;
|
|
|
+import com.etotem.cfc.entity.MindMeditationSession;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -888,11 +888,11 @@ public interface MindMeditationSessionMapper extends BaseMapper<MindMeditationSe
|
|
|
- [ ] **Step 3: 创建 Action 域 Mapper**
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/ActionActivityMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/ActionActivityMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.ActionActivity;
|
|
|
+import com.etotem.cfc.entity.ActionActivity;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -900,11 +900,11 @@ public interface ActionActivityMapper extends BaseMapper<ActionActivity> {}
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/ActionActivityRegistrationMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/ActionActivityRegistrationMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.ActionActivityRegistration;
|
|
|
+import com.etotem.cfc.entity.ActionActivityRegistration;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -912,11 +912,11 @@ public interface ActionActivityRegistrationMapper extends BaseMapper<ActionActiv
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/ActionArticleMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/ActionArticleMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.ActionArticle;
|
|
|
+import com.etotem.cfc.entity.ActionArticle;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -924,11 +924,11 @@ public interface ActionArticleMapper extends BaseMapper<ActionArticle> {}
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/ActionArticleCategoryMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/ActionArticleCategoryMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.ActionArticleCategory;
|
|
|
+import com.etotem.cfc.entity.ActionArticleCategory;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -936,11 +936,11 @@ public interface ActionArticleCategoryMapper extends BaseMapper<ActionArticleCat
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/ActionElderCarePlanMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/ActionElderCarePlanMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.ActionElderCarePlan;
|
|
|
+import com.etotem.cfc.entity.ActionElderCarePlan;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -948,11 +948,11 @@ public interface ActionElderCarePlanMapper extends BaseMapper<ActionElderCarePla
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/ActionElderCareLogMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/ActionElderCareLogMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.ActionElderCareLog;
|
|
|
+import com.etotem.cfc.entity.ActionElderCareLog;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -960,11 +960,11 @@ public interface ActionElderCareLogMapper extends BaseMapper<ActionElderCareLog>
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/ActionPracticeTaskMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/ActionPracticeTaskMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.ActionPracticeTask;
|
|
|
+import com.etotem.cfc.entity.ActionPracticeTask;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -972,11 +972,11 @@ public interface ActionPracticeTaskMapper extends BaseMapper<ActionPracticeTask>
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/ActionCommunityPostMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/ActionCommunityPostMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.ActionCommunityPost;
|
|
|
+import com.etotem.cfc.entity.ActionCommunityPost;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -984,11 +984,11 @@ public interface ActionCommunityPostMapper extends BaseMapper<ActionCommunityPos
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/mapper/ActionCommunityCommentMapper.java
|
|
|
-package com.zxyj.mapper;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/mapper/ActionCommunityCommentMapper.java
|
|
|
+package com.etotem.cfc.mapper;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
|
-import com.zxyj.entity.ActionCommunityComment;
|
|
|
+import com.etotem.cfc.entity.ActionCommunityComment;
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
|
|
@Mapper
|
|
|
@@ -997,7 +997,7 @@ public interface ActionCommunityCommentMapper extends BaseMapper<ActionCommunity
|
|
|
|
|
|
- [ ] **Step 4: 编译验证**
|
|
|
|
|
|
-Run: `cd zxyj-backend && mvn compile -q`
|
|
|
+Run: `cd cfc-backend && mvn compile -q`
|
|
|
|
|
|
Expected: BUILD SUCCESS
|
|
|
|
|
|
@@ -1006,7 +1006,7 @@ Expected: BUILD SUCCESS
|
|
|
### Task 5: DatabaseInitializer 增加新表
|
|
|
|
|
|
**Files:**
|
|
|
-- Modify: `zxyj-backend/src/main/java/com/zxyj/config/DatabaseInitializer.java`
|
|
|
+- Modify: `cfc-backend/src/main/java/com/etotem/cfc/config/DatabaseInitializer.java`
|
|
|
|
|
|
- [ ] **Step 1: 在 DatabaseInitializer 中添加 17 张新表的 CREATE TABLE 语句**
|
|
|
|
|
|
@@ -1288,7 +1288,7 @@ try {
|
|
|
|
|
|
- [ ] **Step 3: 启动验证**
|
|
|
|
|
|
-Run: `cd zxyj-backend && mvn spring-boot:run` (确认启动不报错,新表自动创建)
|
|
|
+Run: `cd cfc-backend && mvn spring-boot:run` (确认启动不报错,新表自动创建)
|
|
|
|
|
|
Expected: Application starts successfully, logs show new tables created
|
|
|
|
|
|
@@ -1302,12 +1302,12 @@ Expected: Application starts successfully, logs show new tables created
|
|
|
- [ ] **Step 1: 创建 Body 域 Service**
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/BodyHealthService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/BodyHealthService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.BodyHealthMetric;
|
|
|
-import com.zxyj.mapper.BodyHealthMetricMapper;
|
|
|
+import com.etotem.cfc.entity.BodyHealthMetric;
|
|
|
+import com.etotem.cfc.mapper.BodyHealthMetricMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1345,12 +1345,12 @@ public class BodyHealthService {
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/BodyNutritionService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/BodyNutritionService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.BodyNutritionLog;
|
|
|
-import com.zxyj.mapper.BodyNutritionLogMapper;
|
|
|
+import com.etotem.cfc.entity.BodyNutritionLog;
|
|
|
+import com.etotem.cfc.mapper.BodyNutritionLogMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1379,12 +1379,12 @@ public class BodyNutritionService {
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/BodyAntiAgingService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/BodyAntiAgingService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.BodyAntiAgingAssessment;
|
|
|
-import com.zxyj.mapper.BodyAntiAgingAssessmentMapper;
|
|
|
+import com.etotem.cfc.entity.BodyAntiAgingAssessment;
|
|
|
+import com.etotem.cfc.mapper.BodyAntiAgingAssessmentMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1412,12 +1412,12 @@ public class BodyAntiAgingService {
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/BodyExerciseService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/BodyExerciseService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.BodyExerciseLog;
|
|
|
-import com.zxyj.mapper.BodyExerciseLogMapper;
|
|
|
+import com.etotem.cfc.entity.BodyExerciseLog;
|
|
|
+import com.etotem.cfc.mapper.BodyExerciseLogMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1448,12 +1448,12 @@ public class BodyExerciseService {
|
|
|
- [ ] **Step 2: 创建 Mind 域 Service**
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/MindMoodService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/MindMoodService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.MindMoodLog;
|
|
|
-import com.zxyj.mapper.MindMoodLogMapper;
|
|
|
+import com.etotem.cfc.entity.MindMoodLog;
|
|
|
+import com.etotem.cfc.mapper.MindMoodLogMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1482,12 +1482,12 @@ public class MindMoodService {
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/MindAssessmentService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/MindAssessmentService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.MindPsychologicalAssessment;
|
|
|
-import com.zxyj.mapper.MindPsychologicalAssessmentMapper;
|
|
|
+import com.etotem.cfc.entity.MindPsychologicalAssessment;
|
|
|
+import com.etotem.cfc.mapper.MindPsychologicalAssessmentMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1515,12 +1515,12 @@ public class MindAssessmentService {
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/MindFamilyAtmosphereService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/MindFamilyAtmosphereService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.MindFamilyAtmosphereIndex;
|
|
|
-import com.zxyj.mapper.MindFamilyAtmosphereIndexMapper;
|
|
|
+import com.etotem.cfc.entity.MindFamilyAtmosphereIndex;
|
|
|
+import com.etotem.cfc.mapper.MindFamilyAtmosphereIndexMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1548,12 +1548,12 @@ public class MindFamilyAtmosphereService {
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/MindMeditationService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/MindMeditationService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.MindMeditationSession;
|
|
|
-import com.zxyj.mapper.MindMeditationSessionMapper;
|
|
|
+import com.etotem.cfc.entity.MindMeditationSession;
|
|
|
+import com.etotem.cfc.mapper.MindMeditationSessionMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1584,14 +1584,14 @@ public class MindMeditationService {
|
|
|
- [ ] **Step 3: 创建 Action 域 Service**
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/ActionActivityService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/ActionActivityService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.ActionActivity;
|
|
|
-import com.zxyj.entity.ActionActivityRegistration;
|
|
|
-import com.zxyj.mapper.ActionActivityMapper;
|
|
|
-import com.zxyj.mapper.ActionActivityRegistrationMapper;
|
|
|
+import com.etotem.cfc.entity.ActionActivity;
|
|
|
+import com.etotem.cfc.entity.ActionActivityRegistration;
|
|
|
+import com.etotem.cfc.mapper.ActionActivityMapper;
|
|
|
+import com.etotem.cfc.mapper.ActionActivityRegistrationMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
@@ -1645,12 +1645,12 @@ public class ActionActivityService {
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/ActionArticleService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/ActionArticleService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.ActionArticle;
|
|
|
-import com.zxyj.mapper.ActionArticleMapper;
|
|
|
+import com.etotem.cfc.entity.ActionArticle;
|
|
|
+import com.etotem.cfc.mapper.ActionArticleMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1685,14 +1685,14 @@ public class ActionArticleService {
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/ActionElderCareService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/ActionElderCareService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.ActionElderCarePlan;
|
|
|
-import com.zxyj.entity.ActionElderCareLog;
|
|
|
-import com.zxyj.mapper.ActionElderCarePlanMapper;
|
|
|
-import com.zxyj.mapper.ActionElderCareLogMapper;
|
|
|
+import com.etotem.cfc.entity.ActionElderCarePlan;
|
|
|
+import com.etotem.cfc.entity.ActionElderCareLog;
|
|
|
+import com.etotem.cfc.mapper.ActionElderCarePlanMapper;
|
|
|
+import com.etotem.cfc.mapper.ActionElderCareLogMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1736,12 +1736,12 @@ public class ActionElderCareService {
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/ActionPracticeService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/ActionPracticeService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.ActionPracticeTask;
|
|
|
-import com.zxyj.mapper.ActionPracticeTaskMapper;
|
|
|
+import com.etotem.cfc.entity.ActionPracticeTask;
|
|
|
+import com.etotem.cfc.mapper.ActionPracticeTaskMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1769,14 +1769,14 @@ public class ActionPracticeService {
|
|
|
```
|
|
|
|
|
|
```java
|
|
|
-// zxyj-backend/src/main/java/com/zxyj/service/ActionCommunityService.java
|
|
|
-package com.zxyj.service;
|
|
|
+// cfc-backend/src/main/java/com/etotem/cfc/service/ActionCommunityService.java
|
|
|
+package com.etotem.cfc.service;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
-import com.zxyj.entity.ActionCommunityPost;
|
|
|
-import com.zxyj.entity.ActionCommunityComment;
|
|
|
-import com.zxyj.mapper.ActionCommunityPostMapper;
|
|
|
-import com.zxyj.mapper.ActionCommunityCommentMapper;
|
|
|
+import com.etotem.cfc.entity.ActionCommunityPost;
|
|
|
+import com.etotem.cfc.entity.ActionCommunityComment;
|
|
|
+import com.etotem.cfc.mapper.ActionCommunityPostMapper;
|
|
|
+import com.etotem.cfc.mapper.ActionCommunityCommentMapper;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
@@ -1829,7 +1829,7 @@ public class ActionCommunityService {
|
|
|
|
|
|
- [ ] **Step 4: 编译验证**
|
|
|
|
|
|
-Run: `cd zxyj-backend && mvn compile -q`
|
|
|
+Run: `cd cfc-backend && mvn compile -q`
|
|
|
|
|
|
Expected: BUILD SUCCESS
|
|
|
|
|
|
@@ -1838,19 +1838,19 @@ Expected: BUILD SUCCESS
|
|
|
### Task 7: 创建后端 Controller 骨架
|
|
|
|
|
|
**Files:**
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/controller/body/BodyHealthController.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/controller/mind/MindMoodController.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/controller/action/ActionController.java`
|
|
|
-- Create: `zxyj-backend/src/main/java/com/zxyj/controller/action/ActionArticleController.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/controller/body/BodyHealthController.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/controller/mind/MindMoodController.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/controller/action/ActionController.java`
|
|
|
+- Create: `cfc-backend/src/main/java/com/etotem/cfc/controller/action/ActionArticleController.java`
|
|
|
|
|
|
- [ ] **Step 1: 创建 BodyHealthController**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.controller.body;
|
|
|
+package com.etotem.cfc.controller.body;
|
|
|
|
|
|
-import com.zxyj.common.Result;
|
|
|
-import com.zxyj.entity.BodyHealthMetric;
|
|
|
-import com.zxyj.service.BodyHealthService;
|
|
|
+import com.etotem.cfc.common.Result;
|
|
|
+import com.etotem.cfc.entity.BodyHealthMetric;
|
|
|
+import com.etotem.cfc.service.BodyHealthService;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1887,11 +1887,11 @@ public class BodyHealthController {
|
|
|
- [ ] **Step 2: 创建 MindMoodController**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.controller.mind;
|
|
|
+package com.etotem.cfc.controller.mind;
|
|
|
|
|
|
-import com.zxyj.common.Result;
|
|
|
-import com.zxyj.entity.MindMoodLog;
|
|
|
-import com.zxyj.service.MindMoodService;
|
|
|
+import com.etotem.cfc.common.Result;
|
|
|
+import com.etotem.cfc.entity.MindMoodLog;
|
|
|
+import com.etotem.cfc.service.MindMoodService;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1922,12 +1922,12 @@ public class MindMoodController {
|
|
|
- [ ] **Step 3: 创建 ActionController (活动+社区)**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.controller.action;
|
|
|
+package com.etotem.cfc.controller.action;
|
|
|
|
|
|
-import com.zxyj.common.Result;
|
|
|
-import com.zxyj.entity.ActionActivity;
|
|
|
-import com.zxyj.entity.ActionActivityRegistration;
|
|
|
-import com.zxyj.service.ActionActivityService;
|
|
|
+import com.etotem.cfc.common.Result;
|
|
|
+import com.etotem.cfc.entity.ActionActivity;
|
|
|
+import com.etotem.cfc.entity.ActionActivityRegistration;
|
|
|
+import com.etotem.cfc.service.ActionActivityService;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -1971,11 +1971,11 @@ public class ActionController {
|
|
|
- [ ] **Step 4: 创建 ActionArticleController**
|
|
|
|
|
|
```java
|
|
|
-package com.zxyj.controller.action;
|
|
|
+package com.etotem.cfc.controller.action;
|
|
|
|
|
|
-import com.zxyj.common.Result;
|
|
|
-import com.zxyj.entity.ActionArticle;
|
|
|
-import com.zxyj.service.ActionArticleService;
|
|
|
+import com.etotem.cfc.common.Result;
|
|
|
+import com.etotem.cfc.entity.ActionArticle;
|
|
|
+import com.etotem.cfc.service.ActionArticleService;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
@@ -2011,7 +2011,7 @@ public class ActionArticleController {
|
|
|
|
|
|
- [ ] **Step 5: 编译验证**
|
|
|
|
|
|
-Run: `cd zxyj-backend && mvn compile -q`
|
|
|
+Run: `cd cfc-backend && mvn compile -q`
|
|
|
|
|
|
Expected: BUILD SUCCESS
|
|
|
|
|
|
@@ -2020,7 +2020,7 @@ Expected: BUILD SUCCESS
|
|
|
### Task 8: PointsLog Entity 增加 domain 字段
|
|
|
|
|
|
**Files:**
|
|
|
-- Modify: `zxyj-backend/src/main/java/com/zxyj/entity/PointsLog.java`
|
|
|
+- Modify: `cfc-backend/src/main/java/com/etotem/cfc/entity/PointsLog.java`
|
|
|
|
|
|
- [ ] **Step 1: 在 PointsLog.java 中增加 domain 字段**
|
|
|
|
|
|
@@ -2032,7 +2032,7 @@ private String domain; // 积分来源域: body/mind/wisdom/action,默认 "wis
|
|
|
|
|
|
- [ ] **Step 2: 编译验证**
|
|
|
|
|
|
-Run: `cd zxyj-backend && mvn compile -q`
|
|
|
+Run: `cd cfc-backend && mvn compile -q`
|
|
|
|
|
|
Expected: BUILD SUCCESS
|
|
|
|
|
|
@@ -2041,12 +2041,12 @@ Expected: BUILD SUCCESS
|
|
|
### Task 9: 前端首页四象限重构
|
|
|
|
|
|
**Files:**
|
|
|
-- Modify: `zxyj-frontend/pages/index/index.vue`
|
|
|
-- Modify: `zxyj-frontend/pages/index/parent-index.vue`
|
|
|
-- Modify: `zxyj-frontend/pages/index/child-index.vue`
|
|
|
-- Modify: `zxyj-frontend/pages.json`
|
|
|
-- Modify: `zxyj-frontend/utils/api.js`
|
|
|
-- Modify: `zxyj-frontend/store/index.js`
|
|
|
+- Modify: `cfc-frontend/pages/index/index.vue`
|
|
|
+- Modify: `cfc-frontend/pages/index/parent-index.vue`
|
|
|
+- Modify: `cfc-frontend/pages/index/child-index.vue`
|
|
|
+- Modify: `cfc-frontend/pages.json`
|
|
|
+- Modify: `cfc-frontend/utils/api.js`
|
|
|
+- Modify: `cfc-frontend/store/index.js`
|
|
|
|
|
|
- [ ] **Step 1: 修改 pages.json — 注册新页面路径 + 调整tabBar**
|
|
|
|
|
|
@@ -2370,7 +2370,7 @@ export default {}
|
|
|
|
|
|
- [ ] **Step 5: 修改 api.js — 增加域 API 封装**
|
|
|
|
|
|
-在 `zxyj-frontend/utils/api.js` 末尾添加:
|
|
|
+在 `cfc-frontend/utils/api.js` 末尾添加:
|
|
|
|
|
|
```javascript
|
|
|
// === Body 域 API ===
|
|
|
@@ -2445,7 +2445,7 @@ git commit -m "feat: 溪福俱乐部四域框架搭建 - 17个新entity/mapper/s
|
|
|
> 1. 完善后端 Controller + Service 业务逻辑(CRUD + 业务规则)
|
|
|
> 2. 实现前端功能页面(替换占位页面)
|
|
|
> 3. 接入积分系统(域内行为可获积分)
|
|
|
-> 4. 管理端页面(zxyj-web 内容管理)
|
|
|
+> 4. 管理端页面(cfc-web 内容管理)
|
|
|
|
|
|
### 行域功能清单
|
|
|
|
|
|
@@ -2502,7 +2502,7 @@ git commit -m "feat: 溪福俱乐部四域框架搭建 - 17个新entity/mapper/s
|
|
|
| 购物车 | CommerceController → Lilishop buyer-api | cart | P0 |
|
|
|
| 下单/支付 | CommerceController → Lilishop buyer-api | checkout | P1 |
|
|
|
| 订单管理 | CommerceController → Lilishop buyer-api | order-list | P1 |
|
|
|
-| 商品管理(管理端) | CommerceAdminController → Lilishop seller-api | zxyj-web 商品管理页 | P2 |
|
|
|
+| 商品管理(管理端) | CommerceAdminController → Lilishop seller-api | cfc-web 商品管理页 | P2 |
|
|
|
|
|
|
### Lilishop 配置
|
|
|
|
|
|
@@ -2514,14 +2514,14 @@ lilishop:
|
|
|
seller-api: http://localhost:8889
|
|
|
manager-api: http://localhost:8887
|
|
|
service-account:
|
|
|
- username: zxyj_service
|
|
|
+ username: cfc_service
|
|
|
password: ${LILISHOP_SERVICE_PASSWORD}
|
|
|
token-cache-minutes: 50
|
|
|
```
|
|
|
|
|
|
---
|
|
|
|
|
|
-## Phase 6: 管理端 (zxyj-web) 扩展
|
|
|
+## Phase 6: 管理端 (cfc-web) 扩展
|
|
|
|
|
|
**目标:** 在 Web 管理端新增四域内容管理页面。
|
|
|
|