2
0

feat: 操作日志统一英语

This commit is contained in:
caiyuchao
2025-04-25 14:49:47 +08:00
parent b99d2600f7
commit 3a69f83746
5 changed files with 23 additions and 11 deletions

View File

@@ -53,19 +53,19 @@ public class UBillRuleController extends BaseController {
return success(uBillRuleService.getById(id));
}
@Log(title = "Billing Rule", businessType = BusinessType.INSERT)
@Log(title = "menu.billing.rule.management", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody UBillRule uBillRule) {
return toAjax(uBillRuleService.save(uBillRule));
}
@Log(title = "Billing Rule", businessType = BusinessType.UPDATE)
@Log(title = "menu.billing.rule.management", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody UBillRule uBillRule) {
return toAjax(uBillRuleService.updateById(uBillRule));
}
@Log(title = "Billing Rule", businessType = BusinessType.DELETE)
@Log(title = "menu.billing.rule.management", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(uBillRuleService.removeByIds(CollUtil.newArrayList(ids)));

View File

@@ -59,19 +59,19 @@ public class UPackageController extends BaseController {
return success(uPackageService.getById(id));
}
@Log(title = "Package Managementt", businessType = BusinessType.INSERT)
@Log(title = "menu.billing.package.management", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody UPackage uPackage) {
return toAjax(uPackageService.save(uPackage));
}
@Log(title = "Package Managementt", businessType = BusinessType.UPDATE)
@Log(title = "menu.billing.package.management", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody UPackage uPackage) {
return toAjax(uPackageService.updateById(uPackage));
}
@Log(title = "Package Managementt", businessType = BusinessType.DELETE)
@Log(title = "menu.billing.package.management", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(uPackageService.removeByIds(CollUtil.newArrayList(ids)));

View File

@@ -53,19 +53,19 @@ public class URateLimitController extends BaseController {
return success(uRateLimitService.getById(id));
}
@Log(title = "Rate Limit", businessType = BusinessType.INSERT)
@Log(title = "menu.billing.ratelimit.management", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody URateLimit uRateLimit) {
return toAjax(uRateLimitService.save(uRateLimit));
}
@Log(title = "Rate Limit", businessType = BusinessType.UPDATE)
@Log(title = "menu.billing.ratelimit.management", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody URateLimit uRateLimit) {
return toAjax(uRateLimitService.updateById(uRateLimit));
}
@Log(title = "Rate Limit", businessType = BusinessType.DELETE)
@Log(title = "menu.billing.ratelimit.management", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids) {
return toAjax(uRateLimitService.removeByIds(CollUtil.newArrayList(ids)));