diff --git a/src/main/java/com/guo/learningprogresstracker/LearningProgressTrackerApplication.java b/src/main/java/com/guo/learningprogresstracker/LearningProgressTrackerApplication.java
index b98d49b..cfba5d2 100644
--- a/src/main/java/com/guo/learningprogresstracker/LearningProgressTrackerApplication.java
+++ b/src/main/java/com/guo/learningprogresstracker/LearningProgressTrackerApplication.java
@@ -1,6 +1,7 @@
package com.guo.learningprogresstracker;
import cn.dev33.satoken.SaManager;
+import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@@ -8,12 +9,12 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
* @author guo
* 应用程序启动类
*/
+@Slf4j
@SpringBootApplication
public class LearningProgressTrackerApplication {
public static void main(String[] args) {
SpringApplication.run(LearningProgressTrackerApplication.class, args);
- System.out.println("启动成功,Sa-Token 配置如下:" + SaManager.getConfig());
+ log.info("启动成功,Sa-Token 配置如下:{}", SaManager.getConfig());
}
-
}
diff --git a/src/main/java/com/guo/learningprogresstracker/common/GlobalExceptionHandler.java b/src/main/java/com/guo/learningprogresstracker/common/GlobalExceptionHandler.java
index 2914a63..4d78d73 100644
--- a/src/main/java/com/guo/learningprogresstracker/common/GlobalExceptionHandler.java
+++ b/src/main/java/com/guo/learningprogresstracker/common/GlobalExceptionHandler.java
@@ -15,51 +15,55 @@ import org.springframework.web.bind.MethodArgumentNotValidException;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
-
@RestControllerAdvice
@Slf4j
public class GlobalExceptionHandler {
+ @ExceptionHandler(com.guo.learningprogresstracker.exception.RecallBusinessException.class)
+ public CommonResult recallBusinessException(
+ com.guo.learningprogresstracker.exception.RecallBusinessException ex) {
+ return new CommonResult<>(400, ex.getMessage(), ex.getData());
+ }
+
@ExceptionHandler({ErrorParameterException.class})
- public CommonResult errorParameterException(ErrorParameterException ex) {
+ public CommonResult errorParameterException(ErrorParameterException ex) {
log.warn("参数异常: {}", ex.getMessage(), ex);
return CommonResult.error(ex.getMessage());
}
@ExceptionHandler({NotFindEntitiesException.class})
- public CommonResult notFindEntitiesException(NotFindEntitiesException ex) {
+ public CommonResult notFindEntitiesException(NotFindEntitiesException ex) {
log.warn("数据不存在: {}", ex.getMessage(), ex);
return CommonResult.error(ex.getMessage());
}
@ExceptionHandler({OperationFailedException.class})
- public CommonResult operationFailedException(OperationFailedException ex) {
+ public CommonResult operationFailedException(OperationFailedException ex) {
log.warn("操作失败: {}", ex.getMessage(), ex);
return CommonResult.error(ex.getMessage());
}
@ExceptionHandler({AppException.class})
- public CommonResult AppException(AppException ex) {
+ public CommonResult handleAppException(AppException ex) {
log.error("业务异常: {}", ex.getMessage(), ex);
return CommonResult.serverError(ex.getMessage());
}
@ExceptionHandler(MethodArgumentNotValidException.class)
- public CommonResult MyMethodArgumentNotValidException(MethodArgumentNotValidException ex) {
+ public CommonResult handleArgumentNotValid(MethodArgumentNotValidException ex) {
BindingResult bindingResult = ex.getBindingResult();
return CommonResult.error(bindingResult.getFieldError().getDefaultMessage());
}
@ExceptionHandler(NotLoginException.class)
- public CommonResult handleNotLogin(NotLoginException e, HttpServletRequest req, HttpServletResponse res) {
+ public CommonResult handleNotLogin(NotLoginException e, HttpServletRequest req, HttpServletResponse res) {
res.setStatus(HttpStatus.UNAUTHORIZED.value());
return new CommonResult<>(HttpStatus.UNAUTHORIZED.value(), "未登录,请重新登录", null);
}
@ExceptionHandler(Exception.class)
- public CommonResult Exception(Exception ex) {
+ public CommonResult handleUnexpected(Exception ex) {
log.error("系统异常", ex);
- return CommonResult.error("操作没有成功,请稍后再试");
+ return CommonResult.serverError("操作没有成功,请稍后再试");
}
-
}
diff --git a/src/main/java/com/guo/learningprogresstracker/common/Ops.java b/src/main/java/com/guo/learningprogresstracker/common/Ops.java
index 4a288d1..f91bf31 100644
--- a/src/main/java/com/guo/learningprogresstracker/common/Ops.java
+++ b/src/main/java/com/guo/learningprogresstracker/common/Ops.java
@@ -7,10 +7,8 @@ import jakarta.validation.groups.Default;
*/
public interface Ops {
// 创建组
- interface CreateG extends Default {
- }
+ interface CreateG extends Default {}
// 更新组
- interface UpdateG {
- }
+ interface UpdateG {}
}
diff --git a/src/main/java/com/guo/learningprogresstracker/common/StudyTimePolicy.java b/src/main/java/com/guo/learningprogresstracker/common/StudyTimePolicy.java
index fd5db91..daacecb 100644
--- a/src/main/java/com/guo/learningprogresstracker/common/StudyTimePolicy.java
+++ b/src/main/java/com/guo/learningprogresstracker/common/StudyTimePolicy.java
@@ -35,8 +35,8 @@ public class StudyTimePolicy {
*/
private final long minEffectiveTimeSeconds;
- public StudyTimePolicy(int workDurationMinutes, int forgetThresholdMinutes,
- int forcePauseMinutes, long minEffectiveTimeSeconds) {
+ public StudyTimePolicy(
+ int workDurationMinutes, int forgetThresholdMinutes, int forcePauseMinutes, long minEffectiveTimeSeconds) {
if (workDurationMinutes <= 0) {
throw new IllegalArgumentException("番茄钟长度必须大于 0 分钟");
}
diff --git a/src/main/java/com/guo/learningprogresstracker/common/TenantContext.java b/src/main/java/com/guo/learningprogresstracker/common/TenantContext.java
index 32ba690..3ecf7e7 100644
--- a/src/main/java/com/guo/learningprogresstracker/common/TenantContext.java
+++ b/src/main/java/com/guo/learningprogresstracker/common/TenantContext.java
@@ -18,13 +18,11 @@ public final class TenantContext {
* @param loginId 登录用户
* @param device 设备类型,可为 null(后台任务通常没有设备信息)
*/
- public record Identity(String loginId, String device) {
- }
+ public record Identity(String loginId, String device) {}
private static final ThreadLocal CURRENT = new ThreadLocal<>();
- private TenantContext() {
- }
+ private TenantContext() {}
/** 取当前执行身份;未设置时返回 null(表示应回落到 StpUtil) */
public static Identity get() {
diff --git a/src/main/java/com/guo/learningprogresstracker/config/AiUsageProperties.java b/src/main/java/com/guo/learningprogresstracker/config/AiUsageProperties.java
index dca0533..76db1bf 100644
--- a/src/main/java/com/guo/learningprogresstracker/config/AiUsageProperties.java
+++ b/src/main/java/com/guo/learningprogresstracker/config/AiUsageProperties.java
@@ -1,11 +1,10 @@
package com.guo.learningprogresstracker.config;
-import lombok.Data;
-import org.springframework.boot.context.properties.ConfigurationProperties;
-import org.springframework.context.annotation.Configuration;
-
import java.math.BigDecimal;
import java.util.List;
+import lombok.Data;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.context.annotation.Configuration;
/**
* AI 用量统计配置。
diff --git a/src/main/java/com/guo/learningprogresstracker/config/AutoTableField.java b/src/main/java/com/guo/learningprogresstracker/config/AutoTableField.java
index 9d78cef..355a12b 100644
--- a/src/main/java/com/guo/learningprogresstracker/config/AutoTableField.java
+++ b/src/main/java/com/guo/learningprogresstracker/config/AutoTableField.java
@@ -3,12 +3,11 @@ package com.guo.learningprogresstracker.config;
import cn.dev33.satoken.stp.StpUtil;
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import com.guo.learningprogresstracker.common.TenantContext;
+import java.time.LocalDateTime;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.reflection.MetaObject;
import org.springframework.context.annotation.Configuration;
-import java.time.LocalDateTime;
-
/**
* 用于公共字段的自动填充
*
@@ -18,7 +17,6 @@ import java.time.LocalDateTime;
@Slf4j
public class AutoTableField implements MetaObjectHandler {
-
@Override
public void insertFill(MetaObject metaObject) {
this.strictInsertFill(metaObject, "createdBy", AutoTableField::currentLoginId, String.class);
@@ -28,7 +26,6 @@ public class AutoTableField implements MetaObjectHandler {
this.strictInsertFill(metaObject, "deviceInfo", AutoTableField::currentDevice, String.class);
}
-
@Override
public void updateFill(MetaObject metaObject) {
this.strictInsertFill(metaObject, "lastModifiedBy", AutoTableField::currentLoginId, String.class);
@@ -51,5 +48,4 @@ public class AutoTableField implements MetaObjectHandler {
TenantContext.Identity identity = TenantContext.get();
return identity != null ? identity.device() : StpUtil.getLoginDevice();
}
-
}
diff --git a/src/main/java/com/guo/learningprogresstracker/config/CorsProperties.java b/src/main/java/com/guo/learningprogresstracker/config/CorsProperties.java
index 91dacad..cde37c0 100644
--- a/src/main/java/com/guo/learningprogresstracker/config/CorsProperties.java
+++ b/src/main/java/com/guo/learningprogresstracker/config/CorsProperties.java
@@ -10,5 +10,4 @@ import org.springframework.context.annotation.Configuration;
public class CorsProperties {
private String[] allowedOrigins;
private Boolean allowCredentials;
-
}
diff --git a/src/main/java/com/guo/learningprogresstracker/config/JacksonConfig.java b/src/main/java/com/guo/learningprogresstracker/config/JacksonConfig.java
index db416ac..001dfe1 100644
--- a/src/main/java/com/guo/learningprogresstracker/config/JacksonConfig.java
+++ b/src/main/java/com/guo/learningprogresstracker/config/JacksonConfig.java
@@ -4,12 +4,11 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.module.SimpleModule;
import com.guo.learningprogresstracker.config.serializer.LocalDateTimeSerializer;
+import java.time.LocalDateTime;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder;
-import java.time.LocalDateTime;
-
@Configuration
public class JacksonConfig {
@Bean
diff --git a/src/main/java/com/guo/learningprogresstracker/config/MybatisPlusConfig.java b/src/main/java/com/guo/learningprogresstracker/config/MybatisPlusConfig.java
index 342c8bb..958d60a 100644
--- a/src/main/java/com/guo/learningprogresstracker/config/MybatisPlusConfig.java
+++ b/src/main/java/com/guo/learningprogresstracker/config/MybatisPlusConfig.java
@@ -1,18 +1,17 @@
package com.guo.learningprogresstracker.config;
import cn.dev33.satoken.stp.StpUtil;
-import com.guo.learningprogresstracker.common.TenantContext;
-import net.sf.jsqlparser.expression.StringValue;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
+import com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.TenantLineInnerInterceptor;
-import com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler;
-import net.sf.jsqlparser.expression.Expression;
-import org.springframework.context.annotation.Bean;
-import org.springframework.context.annotation.Configuration;
-
+import com.guo.learningprogresstracker.common.TenantContext;
import java.util.Arrays;
import java.util.List;
+import net.sf.jsqlparser.expression.Expression;
+import net.sf.jsqlparser.expression.StringValue;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
/**
* MyBatis-Plus 多租户配置
@@ -30,12 +29,7 @@ public class MybatisPlusConfig {
* 若按 created_by 过滤,每个人只能看到自己触发的那几次调用,面板等于永远空的。
*/
private static final List EXCLUDE_TABLES = Arrays.asList(
- "user",
- "flyway_schema_history",
- "databasechangelog",
- "databasechangeloglock",
- "ai_usage_records"
- );
+ "user", "flyway_schema_history", "databasechangelog", "databasechangeloglock", "ai_usage_records");
@Bean
public MybatisPlusInterceptor mybatisPlusInterceptor() {
diff --git a/src/main/java/com/guo/learningprogresstracker/config/WebMvcConfig.java b/src/main/java/com/guo/learningprogresstracker/config/WebMvcConfig.java
index f90cff8..e69978b 100644
--- a/src/main/java/com/guo/learningprogresstracker/config/WebMvcConfig.java
+++ b/src/main/java/com/guo/learningprogresstracker/config/WebMvcConfig.java
@@ -3,6 +3,7 @@ package com.guo.learningprogresstracker.config;
import cn.dev33.satoken.context.SaHolder;
import cn.dev33.satoken.interceptor.SaInterceptor;
import cn.dev33.satoken.stp.StpUtil;
+import java.util.Arrays;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
@@ -10,8 +11,6 @@ import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
-import java.util.Arrays;
-
@Configuration
@RequiredArgsConstructor
@Slf4j
@@ -49,7 +48,8 @@ public class WebMvcConfig implements WebMvcConfigurer {
.allowedOrigins(origins)
.allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS")
.allowedHeaders("*")
- .allowCredentials(corsProperties.getAllowCredentials() == null || corsProperties.getAllowCredentials());
+ .allowCredentials(
+ corsProperties.getAllowCredentials() == null || corsProperties.getAllowCredentials());
}
}
}
diff --git a/src/main/java/com/guo/learningprogresstracker/config/serializer/LocalDateTimeSerializer.java b/src/main/java/com/guo/learningprogresstracker/config/serializer/LocalDateTimeSerializer.java
index 15932f3..c6ee0c8 100644
--- a/src/main/java/com/guo/learningprogresstracker/config/serializer/LocalDateTimeSerializer.java
+++ b/src/main/java/com/guo/learningprogresstracker/config/serializer/LocalDateTimeSerializer.java
@@ -3,13 +3,12 @@ package com.guo.learningprogresstracker.config.serializer;
import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
-
import java.io.IOException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
public class LocalDateTimeSerializer extends StdSerializer {
- private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss");
+ private static final DateTimeFormatter FORMATTER = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss");
public LocalDateTimeSerializer() {
super(LocalDateTime.class);
@@ -20,7 +19,7 @@ public class LocalDateTimeSerializer extends StdSerializer {
if (value == null) {
gen.writeNull();
} else {
- String formattedDate = value.format(formatter);
+ String formattedDate = value.format(FORMATTER);
gen.writeString(formattedDate);
}
}
diff --git a/src/main/java/com/guo/learningprogresstracker/controller/AiTaskController.java b/src/main/java/com/guo/learningprogresstracker/controller/AiTaskController.java
index a44c630..2102255 100644
--- a/src/main/java/com/guo/learningprogresstracker/controller/AiTaskController.java
+++ b/src/main/java/com/guo/learningprogresstracker/controller/AiTaskController.java
@@ -9,7 +9,13 @@ import com.guo.learningprogresstracker.service.AiTaskService;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
/**
* AI 异步任务控制层(AI-02)。
@@ -49,8 +55,7 @@ public class AiTaskController {
* @return 无任务时 data 为 null
*/
@GetMapping("/latest")
- public CommonResult getLatestTask(@RequestParam String type,
- @RequestParam String targetNum) {
+ public CommonResult getLatestTask(@RequestParam String type, @RequestParam String targetNum) {
return CommonResult.success(aiTaskService.findLatest(type, targetNum));
}
}
diff --git a/src/main/java/com/guo/learningprogresstracker/controller/AiUsageController.java b/src/main/java/com/guo/learningprogresstracker/controller/AiUsageController.java
index 322b5bb..63e9711 100644
--- a/src/main/java/com/guo/learningprogresstracker/controller/AiUsageController.java
+++ b/src/main/java/com/guo/learningprogresstracker/controller/AiUsageController.java
@@ -9,13 +9,12 @@ import com.guo.learningprogresstracker.dto.request.AiUsageQuery;
import com.guo.learningprogresstracker.entity.CommonResult;
import com.guo.learningprogresstracker.exception.ErrorParameterException;
import com.guo.learningprogresstracker.service.AiUsageService;
+import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
-import java.util.List;
-
/**
* 「AI 用量统计」面板查询接口(契约 2)。
*
diff --git a/src/main/java/com/guo/learningprogresstracker/controller/AiUsageInternalController.java b/src/main/java/com/guo/learningprogresstracker/controller/AiUsageInternalController.java
index 5840268..e188198 100644
--- a/src/main/java/com/guo/learningprogresstracker/controller/AiUsageInternalController.java
+++ b/src/main/java/com/guo/learningprogresstracker/controller/AiUsageInternalController.java
@@ -8,6 +8,7 @@ import com.guo.learningprogresstracker.entity.CommonResult;
import com.guo.learningprogresstracker.exception.ErrorParameterException;
import com.guo.learningprogresstracker.service.AiUsageService;
import jakarta.validation.Valid;
+import java.util.List;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
@@ -15,8 +16,6 @@ import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
-import java.util.List;
-
/**
* lpt-ai 用量上报(契约 1)。
*
@@ -43,7 +42,8 @@ public class AiUsageInternalController {
@PostMapping("/records")
public CommonResult report(
@RequestHeader(name = "x-api-token", required = false) String apiToken,
- @Valid @RequestBody AiUsageReportRequest request) throws ErrorParameterException {
+ @Valid @RequestBody AiUsageReportRequest request)
+ throws ErrorParameterException {
if (!isTokenAccepted(apiToken)) {
return CommonResult.error("上报令牌不正确");
}
diff --git a/src/main/java/com/guo/learningprogresstracker/controller/ExportController.java b/src/main/java/com/guo/learningprogresstracker/controller/ExportController.java
index 3025ee6..a3a0d29 100644
--- a/src/main/java/com/guo/learningprogresstracker/controller/ExportController.java
+++ b/src/main/java/com/guo/learningprogresstracker/controller/ExportController.java
@@ -5,12 +5,15 @@ import com.guo.learningprogresstracker.entity.CommonResult;
import com.guo.learningprogresstracker.exception.NotFindEntitiesException;
import com.guo.learningprogresstracker.exception.OperationFailedException;
import com.guo.learningprogresstracker.service.ExportService;
+import java.time.LocalDate;
import lombok.RequiredArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.*;
-
-import java.time.LocalDate;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
/**
* 数据导出控制层(导出-01):把学习报告、知识碎片与任务统计导出为 Markdown / JSON。
@@ -29,8 +32,7 @@ public class ExportController {
*/
@GetMapping("/task/{taskNum}")
public CommonResult exportTask(
- @PathVariable String taskNum,
- @RequestParam(defaultValue = "markdown") String format)
+ @PathVariable String taskNum, @RequestParam(defaultValue = "markdown") String format)
throws NotFindEntitiesException, OperationFailedException {
return CommonResult.success(exportService.exportTask(taskNum, format));
}
diff --git a/src/main/java/com/guo/learningprogresstracker/controller/GuidanceController.java b/src/main/java/com/guo/learningprogresstracker/controller/GuidanceController.java
index 13af6d0..ecfb6da 100644
--- a/src/main/java/com/guo/learningprogresstracker/controller/GuidanceController.java
+++ b/src/main/java/com/guo/learningprogresstracker/controller/GuidanceController.java
@@ -1,24 +1,34 @@
package com.guo.learningprogresstracker.controller;
+import com.guo.learningprogresstracker.dto.AiTaskResponse;
import com.guo.learningprogresstracker.dto.ReviewTiming;
import com.guo.learningprogresstracker.dto.request.AiTaskSubmitRequest;
+import com.guo.learningprogresstracker.dto.request.ConfirmGuidanceFragmentRequest;
+import com.guo.learningprogresstracker.dto.request.GuidanceStartRequest;
+import com.guo.learningprogresstracker.dto.request.GuidanceTurnRequest;
+import com.guo.learningprogresstracker.dto.response.GuidanceConversationResponse;
+import com.guo.learningprogresstracker.dto.response.ReportFragmentResponse;
import com.guo.learningprogresstracker.entity.CommonResult;
import com.guo.learningprogresstracker.entity.ReviewGuidanceConversationEntity;
-import com.guo.learningprogresstracker.entity.StudyReportFragmentsEntity;
import com.guo.learningprogresstracker.exception.ErrorParameterException;
import com.guo.learningprogresstracker.exception.NotFindEntitiesException;
import com.guo.learningprogresstracker.service.AiTaskService;
import com.guo.learningprogresstracker.service.GuidanceService;
-import com.guo.learningprogresstracker.dto.AiTaskResponse;
import io.swagger.v3.oas.annotations.Operation;
-import lombok.RequiredArgsConstructor;
-import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.*;
-
+import jakarta.validation.Valid;
import java.time.LocalDateTime;
import java.time.format.DateTimeParseException;
import java.util.LinkedHashMap;
import java.util.Map;
+import lombok.RequiredArgsConstructor;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.DeleteMapping;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
/**
* 学习引导控制层(复习-06)。
@@ -42,11 +52,10 @@ public class GuidanceController {
*/
@PostMapping
@Operation(summary = "开启学习引导:返回引导编号与首个 AI 任务编号")
- public CommonResult