新增:mock三方调用测试类

This commit is contained in:
2026-02-03 17:32:55 +08:00
parent fe50c43540
commit 0bb0eaf837

View File

@@ -0,0 +1,34 @@
package com.sdm.project.controller;
import com.sdm.common.common.SdmResponse;
import com.sdm.project.service.ILyricInternalService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@RestController
@RequestMapping
@Tag(name = "测试外部模块系统交互", description = "测试外部模块系统交互,非前端调用")
public class ProjectTestController {
@Autowired
private ILyricInternalService lyricInternalService;
@GetMapping("/mockSyncLyricEx")
@Operation(summary = "mock测试同步lyric任务异常信息")
public SdmResponse<String> mockSyncLyricEx() {
SdmResponse response = lyricInternalService.syncException();
return response;
}
}