优化
This commit is contained in:
@@ -155,6 +155,11 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-test</artifactId>
|
||||
</dependency>
|
||||
<!-- <dependency>
|
||||
<groupId>com.tashow.cloud</groupId>
|
||||
<artifactId>tashow-product-api</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>-->
|
||||
|
||||
</dependencies>
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.tashow.cloud.system;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
|
||||
/**
|
||||
@@ -10,6 +11,7 @@ import org.springframework.scheduling.annotation.EnableAsync;
|
||||
*/
|
||||
@SpringBootApplication
|
||||
@EnableAsync // 开启异步
|
||||
//@EnableFeignClients(basePackages = "com.tashow.cloud.productapi.api")
|
||||
public class SystemServerApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
/*
|
||||
package com.tashow.cloud.system.controller.admin.prod;
|
||||
|
||||
import com.tashow.cloud.common.pojo.CommonResult;
|
||||
|
||||
import com.tashow.cloud.productapi.api.product.CategoryApi;
|
||||
import com.tashow.cloud.productapi.api.product.dto.CategoryDto;
|
||||
import jakarta.annotation.Resource;
|
||||
import jakarta.annotation.security.PermitAll;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import static com.tashow.cloud.common.pojo.CommonResult.success;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/category")
|
||||
@Validated
|
||||
public class CategoryController {
|
||||
|
||||
@Resource
|
||||
private CategoryApi categoryService;
|
||||
|
||||
*/
|
||||
/**
|
||||
* 获取菜单页面的表
|
||||
* @return
|
||||
*//*
|
||||
|
||||
|
||||
@GetMapping("/categoryList")
|
||||
@PermitAll
|
||||
public CommonResult<List<CategoryDto>> categoryList(@RequestParam(value = "grade", required = false) Integer grade,
|
||||
@RequestParam(value = "categoryId", required = false) Long categoryId,
|
||||
@RequestParam(value = "status", required = false) Integer status) {
|
||||
return success(categoryService.categoryList(grade, categoryId, status));
|
||||
}
|
||||
|
||||
|
||||
}*/
|
||||
Reference in New Issue
Block a user