|
|
@ -0,0 +1,42 @@ |
|
|
|
package org.jeecg.modules.app.controller; |
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
import org.jeecg.modules.system.model.SysLoginModel; |
|
|
|
import org.springframework.web.bind.annotation.RequestBody; |
|
|
|
import org.springframework.web.bind.annotation.RequestMapping; |
|
|
|
import org.springframework.web.bind.annotation.RequestMethod; |
|
|
|
import org.springframework.web.bind.annotation.RestController; |
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest; |
|
|
|
|
|
|
|
@RestController |
|
|
|
@RequestMapping("/app/A") |
|
|
|
@Tag(name="测试模块A") |
|
|
|
@Slf4j |
|
|
|
public class AppController { |
|
|
|
|
|
|
|
@Operation(summary = "测试接口一") |
|
|
|
@RequestMapping(value = "/testOne", method = RequestMethod.POST) |
|
|
|
public Result<JSONObject> testOne(String testA){ |
|
|
|
Result<JSONObject> result = new Result<JSONObject>(); |
|
|
|
log.info("输出内容:{}", testA); |
|
|
|
result.error500("测试失败!"); |
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@Operation(summary = "测试接口二") |
|
|
|
@RequestMapping(value = "/testTwo", method = RequestMethod.POST) |
|
|
|
public Result<JSONObject> testTwo(String testB){ |
|
|
|
Result<JSONObject> result = new Result<JSONObject>(); |
|
|
|
log.info("输出内容:{}", testB); |
|
|
|
result.success("测试成功"); |
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |