|
@@ -3,6 +3,8 @@ package com.usky.fire.controller.web;
|
|
|
|
|
|
import com.usky.common.core.bean.ApiResult;
|
|
|
import com.usky.common.core.bean.CommonPage;
|
|
|
+import com.usky.common.log.annotation.Log;
|
|
|
+import com.usky.common.log.enums.BusinessType;
|
|
|
import com.usky.fire.domain.PatrolInspectionType;
|
|
|
import com.usky.fire.service.PatrolInspectionTypeService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -39,6 +41,7 @@ public class PatrolInspectionTypeController {
|
|
|
* @param patrolInspectionType
|
|
|
* @return
|
|
|
*/
|
|
|
+ @Log(title = "操作类型", businessType = BusinessType.INSERT)
|
|
|
@PostMapping("/add")
|
|
|
public ApiResult<Void> add(@RequestBody PatrolInspectionType patrolInspectionType){
|
|
|
patrolInspectionTypeService.add(patrolInspectionType);
|
|
@@ -50,6 +53,7 @@ public class PatrolInspectionTypeController {
|
|
|
* @param deleteType
|
|
|
* @return
|
|
|
*/
|
|
|
+ @Log(title = "操作类型", businessType = BusinessType.DELETE)
|
|
|
@GetMapping("/delete")
|
|
|
public ApiResult<Void> delete(@RequestBody PatrolInspectionType deleteType){
|
|
|
patrolInspectionTypeService.softDelete(deleteType);
|