fix(系统设置): 修改api文档
--bug=1037319 --user=王孝刚 【api文档】api文档-“登录”写错了 https://www.tapd.cn/55049933/s/1477481
This commit is contained in:
parent
35c3da4534
commit
4333fdc8c9
|
@ -121,11 +121,13 @@ public class ApiReportService {
|
|||
}
|
||||
|
||||
private ApiReport checkResource(String id) {
|
||||
ApiReport apiReport = apiReportMapper.selectByPrimaryKey(id);
|
||||
if (apiReport == null) {
|
||||
ApiReportExample example = new ApiReportExample();
|
||||
example.createCriteria().andIdEqualTo(id).andDeletedEqualTo(false);
|
||||
List<ApiReport> apiReport = apiReportMapper.selectByExample(example);
|
||||
if (CollectionUtils.isEmpty(apiReport)) {
|
||||
throw new MSException(Translator.get("api_case_report_not_exist"));
|
||||
}
|
||||
return apiReport;
|
||||
return apiReport.getFirst();
|
||||
}
|
||||
|
||||
public void batchDelete(ApiReportBatchRequest request, String userId) {
|
||||
|
|
|
@ -127,11 +127,13 @@ public class ApiScenarioReportService {
|
|||
}
|
||||
|
||||
private ApiScenarioReport checkResource(String id) {
|
||||
ApiScenarioReport scenarioReport = apiScenarioReportMapper.selectByPrimaryKey(id);
|
||||
if (scenarioReport == null) {
|
||||
ApiScenarioReportExample example = new ApiScenarioReportExample();
|
||||
example.createCriteria().andIdEqualTo(id).andDeletedEqualTo(false);
|
||||
List<ApiScenarioReport> scenarioReport = apiScenarioReportMapper.selectByExample(example);
|
||||
if (CollectionUtils.isEmpty(scenarioReport)) {
|
||||
throw new RuntimeException(Translator.get("api_scenario_report_not_exist"));
|
||||
}
|
||||
return scenarioReport;
|
||||
return scenarioReport.getFirst();
|
||||
}
|
||||
|
||||
public void batchDelete(ApiReportBatchRequest request, String userId) {
|
||||
|
|
|
@ -29,7 +29,7 @@ import org.springframework.web.bind.annotation.*;
|
|||
|
||||
@RestController
|
||||
@RequestMapping
|
||||
@Tag(name="登陆")
|
||||
@Tag(name="登录")
|
||||
public class LoginController {
|
||||
|
||||
@Resource
|
||||
|
|
Loading…
Reference in New Issue