新增:mock三方调用测试类
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user