|
|
@ -0,0 +1,33 @@ |
|
|
|
package a8k.app.controler.api.v1.engineer; |
|
|
|
|
|
|
|
|
|
|
|
import a8k.app.engineer.service.qatest.EngineerModeActionCtrlService; |
|
|
|
import a8k.app.engineer.service.qatest.ExperimentConsistencyTestingService; |
|
|
|
import a8k.app.type.exception.AppException; |
|
|
|
import a8k.app.type.ui.ApiRet; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.stereotype.Controller; |
|
|
|
import org.springframework.web.bind.annotation.PostMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.ResponseBody; |
|
|
|
|
|
|
|
@Tag(name = "工程师模式动作控制器", description = "") |
|
|
|
@Slf4j |
|
|
|
@Controller |
|
|
|
@RequestMapping(value = "/api/v1/engineer/experiment-consistency-testing/") |
|
|
|
@ResponseBody |
|
|
|
@RequiredArgsConstructor |
|
|
|
public class EngineerModeActionCtrlController { |
|
|
|
private final EngineerModeActionCtrlService engineerModeActionCtrlService; |
|
|
|
|
|
|
|
@Operation(summary = "停止") |
|
|
|
@PostMapping("/stop") |
|
|
|
public ApiRet<Void> startTest(Integer repeatTimes) throws AppException { |
|
|
|
engineerModeActionCtrlService.stop(); |
|
|
|
return ApiRet.success(); |
|
|
|
} |
|
|
|
|
|
|
|
} |