日志切面功能整合
This commit is contained in:
@@ -19,6 +19,11 @@
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.czg</groupId>
|
||||
<artifactId>cash-common-log</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.czg</groupId>
|
||||
<artifactId>account-service</artifactId>
|
||||
|
||||
@@ -8,10 +8,10 @@ spring:
|
||||
|
||||
data:
|
||||
redis:
|
||||
host: 101.37.12.135
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
password: 111111
|
||||
timeout: 1000
|
||||
password:
|
||||
timeout: 5000
|
||||
database: 1
|
||||
|
||||
cloud:
|
||||
|
||||
@@ -19,6 +19,11 @@
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.czg</groupId>
|
||||
<artifactId>cash-common-log</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.czg</groupId>
|
||||
<artifactId>order-service</artifactId>
|
||||
|
||||
@@ -19,6 +19,11 @@
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.czg</groupId>
|
||||
<artifactId>cash-common-log</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.czg</groupId>
|
||||
<artifactId>product-service</artifactId>
|
||||
|
||||
@@ -2,8 +2,8 @@ package com.czg.controller;
|
||||
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.lang.Validator;
|
||||
import com.czg.annotation.LogOperation;
|
||||
import com.czg.annotation.SaAdminCheckPermission;
|
||||
import com.czg.log.annotation.LogOperation;
|
||||
import com.czg.product.dto.ProductDTO;
|
||||
import com.czg.product.service.ProductService;
|
||||
import com.czg.resp.CzgResult;
|
||||
|
||||
@@ -2,8 +2,8 @@ package com.czg.controller;
|
||||
|
||||
import cn.hutool.core.lang.Assert;
|
||||
import cn.hutool.core.lang.Validator;
|
||||
import com.czg.annotation.LogOperation;
|
||||
import com.czg.annotation.SaAdminCheckPermission;
|
||||
import com.czg.log.annotation.LogOperation;
|
||||
import com.czg.product.dto.ShopProdCategoryDTO;
|
||||
import com.czg.product.service.ShopProdCategoryService;
|
||||
import com.czg.resp.CzgResult;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.czg.controller;
|
||||
|
||||
import com.czg.annotation.LogOperation;
|
||||
import com.czg.annotation.SaAdminCheckPermission;
|
||||
import com.czg.log.annotation.LogOperation;
|
||||
import com.czg.product.dto.ShopProdUnitDTO;
|
||||
import com.czg.product.service.ShopProdUnitService;
|
||||
import com.czg.resp.CzgResult;
|
||||
@@ -27,10 +27,13 @@ import java.util.List;
|
||||
@RestController
|
||||
@RequestMapping("/admin/prod/unit")
|
||||
public class ShopProdUnitController {
|
||||
|
||||
public static final String LOG_PREFIX = "商品单位管理-";
|
||||
|
||||
private final ShopProdUnitService shopProdUnitService;
|
||||
|
||||
@GetMapping("page")
|
||||
@LogOperation("分页")
|
||||
@LogOperation(LOG_PREFIX+"分页")
|
||||
//@SaAdminCheckPermission("prod:unit:all")
|
||||
public CzgResult<Page<ShopProdUnitDTO>> page(ShopProdUnitDTO param) {
|
||||
Page<ShopProdUnitDTO> data = shopProdUnitService.page(param);
|
||||
@@ -40,7 +43,7 @@ public class ShopProdUnitController {
|
||||
@GetMapping("list")
|
||||
@LogOperation("列表")
|
||||
@SaAdminCheckPermission("prod:unit:all")
|
||||
public CzgResult<List<ShopProdUnitDTO>> list(@RequestParam ShopProdUnitDTO param) {
|
||||
public CzgResult<List<ShopProdUnitDTO>> list(ShopProdUnitDTO param) {
|
||||
List<ShopProdUnitDTO> data = shopProdUnitService.list(param);
|
||||
return CzgResult.success(data);
|
||||
}
|
||||
|
||||
@@ -8,10 +8,10 @@ spring:
|
||||
|
||||
data:
|
||||
redis:
|
||||
host: 101.37.12.135
|
||||
host: 127.0.0.1
|
||||
port: 6379
|
||||
password: 111111
|
||||
timeout: 1000
|
||||
password:
|
||||
timeout: 5000
|
||||
database: 1
|
||||
lettuce:
|
||||
pool:
|
||||
|
||||
@@ -19,6 +19,11 @@
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.czg</groupId>
|
||||
<artifactId>cash-common-log</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.czg</groupId>
|
||||
<artifactId>system-service</artifactId>
|
||||
|
||||
Reference in New Issue
Block a user