From a75d638d307a3c95e1167040f21b9f9bbe1f0303 Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Wed, 22 Jan 2025 17:45:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A1=A5=E5=85=85=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/wfc/system/controller/UBillRuleController.java | 5 +++++ .../java/org/wfc/system/controller/UPackageController.java | 5 +++++ .../java/org/wfc/system/controller/URateLimitController.java | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/wfc-modules/wfc-system/src/main/java/org/wfc/system/controller/UBillRuleController.java b/wfc-modules/wfc-system/src/main/java/org/wfc/system/controller/UBillRuleController.java index b22b1eb..d07a966 100644 --- a/wfc-modules/wfc-system/src/main/java/org/wfc/system/controller/UBillRuleController.java +++ b/wfc-modules/wfc-system/src/main/java/org/wfc/system/controller/UBillRuleController.java @@ -13,6 +13,8 @@ import org.springframework.web.bind.annotation.RestController; import org.wfc.common.core.web.controller.BaseController; import org.wfc.common.core.web.domain.AjaxResult; import org.wfc.common.core.web.page.TableDataInfo; +import org.wfc.common.log.annotation.Log; +import org.wfc.common.log.enums.BusinessType; import org.wfc.system.domain.UBillRule; import org.wfc.system.service.IUBillRuleService; @@ -51,16 +53,19 @@ public class UBillRuleController extends BaseController { return success(uBillRuleService.getById(id)); } + @Log(title = "计费规则", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody UBillRule uBillRule) { return toAjax(uBillRuleService.save(uBillRule)); } + @Log(title = "计费规则", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody UBillRule uBillRule) { return toAjax(uBillRuleService.updateById(uBillRule)); } + @Log(title = "计费规则", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(uBillRuleService.removeByIds(CollUtil.newArrayList(ids))); diff --git a/wfc-modules/wfc-system/src/main/java/org/wfc/system/controller/UPackageController.java b/wfc-modules/wfc-system/src/main/java/org/wfc/system/controller/UPackageController.java index 42b8dde..0ed1fdf 100644 --- a/wfc-modules/wfc-system/src/main/java/org/wfc/system/controller/UPackageController.java +++ b/wfc-modules/wfc-system/src/main/java/org/wfc/system/controller/UPackageController.java @@ -14,6 +14,8 @@ import org.springframework.web.bind.annotation.RestController; import org.wfc.common.core.web.controller.BaseController; import org.wfc.common.core.web.domain.AjaxResult; import org.wfc.common.core.web.page.TableDataInfo; +import org.wfc.common.log.annotation.Log; +import org.wfc.common.log.enums.BusinessType; import org.wfc.system.domain.UPackage; import org.wfc.system.domain.URateLimit; import org.wfc.system.service.IUPackageService; @@ -57,16 +59,19 @@ public class UPackageController extends BaseController { return success(uPackageService.getById(id)); } + @Log(title = "套餐设置", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody UPackage uPackage) { return toAjax(uPackageService.save(uPackage)); } + @Log(title = "套餐设置", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody UPackage uPackage) { return toAjax(uPackageService.updateById(uPackage)); } + @Log(title = "套餐设置", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(uPackageService.removeByIds(CollUtil.newArrayList(ids))); diff --git a/wfc-modules/wfc-system/src/main/java/org/wfc/system/controller/URateLimitController.java b/wfc-modules/wfc-system/src/main/java/org/wfc/system/controller/URateLimitController.java index 2746572..78acdb6 100644 --- a/wfc-modules/wfc-system/src/main/java/org/wfc/system/controller/URateLimitController.java +++ b/wfc-modules/wfc-system/src/main/java/org/wfc/system/controller/URateLimitController.java @@ -13,6 +13,8 @@ import org.springframework.web.bind.annotation.RestController; import org.wfc.common.core.web.controller.BaseController; import org.wfc.common.core.web.domain.AjaxResult; import org.wfc.common.core.web.page.TableDataInfo; +import org.wfc.common.log.annotation.Log; +import org.wfc.common.log.enums.BusinessType; import org.wfc.system.domain.URateLimit; import org.wfc.system.service.IURateLimitService; @@ -51,16 +53,19 @@ public class URateLimitController extends BaseController { return success(uRateLimitService.getById(id)); } + @Log(title = "限速设置", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody URateLimit uRateLimit) { return toAjax(uRateLimitService.save(uRateLimit)); } + @Log(title = "限速设置", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody URateLimit uRateLimit) { return toAjax(uRateLimitService.updateById(uRateLimit)); } + @Log(title = "限速设置", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { return toAjax(uRateLimitService.removeByIds(CollUtil.newArrayList(ids)));