|
|
@ -5,6 +5,7 @@ import com.dongjian.dashboard.back.common.response.PageInfo; |
|
|
import com.dongjian.dashboard.back.common.response.PageResponse; |
|
|
import com.dongjian.dashboard.back.common.response.PageResponse; |
|
|
import com.dongjian.dashboard.back.common.response.ResponseCode; |
|
|
import com.dongjian.dashboard.back.common.response.ResponseCode; |
|
|
import com.dongjian.dashboard.back.common.response.SimpleDataResponse; |
|
|
import com.dongjian.dashboard.back.common.response.SimpleDataResponse; |
|
|
|
|
|
import com.dongjian.dashboard.back.configurator.aspect.OperationLog; |
|
|
import com.dongjian.dashboard.back.configurator.interceptor.AccessRequired; |
|
|
import com.dongjian.dashboard.back.configurator.interceptor.AccessRequired; |
|
|
import com.dongjian.dashboard.back.dto.dashboardnotification.DashboardNotificationCategorySearchParams; |
|
|
import com.dongjian.dashboard.back.dto.dashboardnotification.DashboardNotificationCategorySearchParams; |
|
|
import com.dongjian.dashboard.back.dto.dashboardnotification.DeleteDashboardNotificationCategoryParams; |
|
|
import com.dongjian.dashboard.back.dto.dashboardnotification.DeleteDashboardNotificationCategoryParams; |
|
|
@ -30,6 +31,7 @@ public class DashboardNotificationCategoryController { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private DashboardNotificationCategoryService dashboardNotificationCategoryService; |
|
|
private DashboardNotificationCategoryService dashboardNotificationCategoryService; |
|
|
|
|
|
|
|
|
|
|
|
@OperationLog(operation = "addNotificationCategory", remark = "") |
|
|
@Operation(summary = "Add category") |
|
|
@Operation(summary = "Add category") |
|
|
@RequestMapping(value = "/add", method = RequestMethod.POST) |
|
|
@RequestMapping(value = "/add", method = RequestMethod.POST) |
|
|
public SimpleDataResponse add( |
|
|
public SimpleDataResponse add( |
|
|
@ -42,6 +44,7 @@ public class DashboardNotificationCategoryController { |
|
|
return dashboardNotificationCategoryService.add(optDashboardNotificationCategoryParams, UserId, CompanyId, LanguageType); |
|
|
return dashboardNotificationCategoryService.add(optDashboardNotificationCategoryParams, UserId, CompanyId, LanguageType); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@OperationLog(operation = "editNotificationCategory", remark = "") |
|
|
@Operation(summary = "Edit category") |
|
|
@Operation(summary = "Edit category") |
|
|
@RequestMapping(value = "/edit", method = RequestMethod.POST) |
|
|
@RequestMapping(value = "/edit", method = RequestMethod.POST) |
|
|
public SimpleDataResponse edit( |
|
|
public SimpleDataResponse edit( |
|
|
@ -54,6 +57,7 @@ public class DashboardNotificationCategoryController { |
|
|
return dashboardNotificationCategoryService.edit(optDashboardNotificationCategoryParams, UserId, CompanyId, LanguageType); |
|
|
return dashboardNotificationCategoryService.edit(optDashboardNotificationCategoryParams, UserId, CompanyId, LanguageType); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@OperationLog(operation = "delNotificationCategory", remark = "") |
|
|
@Operation(summary = "Delete category") |
|
|
@Operation(summary = "Delete category") |
|
|
@RequestMapping(value = "/batchDelete", method = RequestMethod.POST) |
|
|
@RequestMapping(value = "/batchDelete", method = RequestMethod.POST) |
|
|
public SimpleDataResponse batchDelete( |
|
|
public SimpleDataResponse batchDelete( |
|
|
|