|
@@ -6,6 +6,7 @@ import lombok.RequiredArgsConstructor;
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
import jakarta.servlet.http.HttpServletResponse;
|
|
|
import jakarta.validation.constraints.*;
|
|
import jakarta.validation.constraints.*;
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
|
|
+import org.dromara.mall.domain.bo.DkhHeaderMenuBo;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
import org.dromara.common.idempotent.annotation.RepeatSubmit;
|
|
@@ -103,4 +104,13 @@ public class DkhRecommendCategoryConfigController extends BaseController {
|
|
|
@PathVariable("ids") Long[] ids) {
|
|
@PathVariable("ids") Long[] ids) {
|
|
|
return toAjax(dkhRecommendCategoryConfigService.deleteWithValidByIds(List.of(ids), true));
|
|
return toAjax(dkhRecommendCategoryConfigService.deleteWithValidByIds(List.of(ids), true));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 状态修改
|
|
|
|
|
+ */
|
|
|
|
|
+ @Log(title = "推荐分类配置", businessType = BusinessType.UPDATE)
|
|
|
|
|
+ @PutMapping("/changeStatus")
|
|
|
|
|
+ public R<Void> changeStatus(@RequestBody DkhRecommendCategoryConfigBo bo) {
|
|
|
|
|
+ return toAjax(dkhRecommendCategoryConfigService.updateStatus(bo));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|