删除jeecg-cloud-example例子模块,测试示例重构到jeecg-cloud-system-start中---

This commit is contained in:
zhangdaiscott
2021-02-21 14:37:07 +08:00
parent 4ea3c363ae
commit 0e6fd14c2c
6 changed files with 68 additions and 289 deletions

View File

@ -1,48 +0,0 @@
package org.jeecg.cloud.demo.test.controller;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.api.ISysBaseAPI;
import org.jeecg.common.system.vo.DictModel;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
*
*/
@Slf4j
@Api(tags = "jeecg-demo")
@RestController
@RequestMapping("/test")
public class JeecgDemoController {
@Resource
private ISysBaseAPI sysBaseAPI;
/**
* 测试
*
* @return
*/
@GetMapping("/demo")
@ApiOperation(value = "测试方法", notes = "测试方法")
public Result mockChange2() {
// try{
// //睡5秒网关Hystrix3秒超时会触发熔断降级操作
// Thread.sleep(5000);
// }catch (Exception e){
// e.printStackTrace();
// }
List<DictModel> list = sysBaseAPI.queryAllDict();
return Result.OK(list);
}
}

View File

@ -1,27 +0,0 @@
package org.jeecg.cloud.demo.test.provider;
import org.jeecg.cloud.demo.test.service.JeecgDemoService;
import org.jeecg.common.api.vo.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* feign服务端接口
*/
@RestController
@RequestMapping("/test")
public class JeecgDemoProvider {
@Resource
private JeecgDemoService jeecgDemoService;
@GetMapping("/getMessage")
public Result<String> getMessage(@RequestParam String name) {
return jeecgDemoService.getMessage(name);
}
}

View File

@ -1,7 +0,0 @@
package org.jeecg.cloud.demo.test.service;
import org.jeecg.common.api.vo.Result;
public interface JeecgDemoService {
Result<String> getMessage(String name);
}