|
|
|
@ -3,6 +3,7 @@ package com.teaching.backend.controller.cms; |
|
|
|
|
|
|
|
|
|
import com.teaching.backend.common.BaseResponse; |
|
|
|
|
import com.teaching.backend.model.entity.cms.CmsCategory; |
|
|
|
|
import com.teaching.backend.model.entity.cms.CmsEssay; |
|
|
|
|
import com.teaching.backend.service.impl.cms.CmsCategoryServiceImpl; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
@ -62,4 +63,14 @@ public class CmsCategoryController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 修改显示状态 |
|
|
|
|
* @param cmsCategory |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@PutMapping("/edit/status") |
|
|
|
|
public BaseResponse<String> editStatus(CmsCategory cmsCategory){ |
|
|
|
|
return cmsCategoryService.editStatus(cmsCategory); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|