|
|
|
@ -33,7 +33,7 @@ public class CmsEssayController { |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@PostMapping("/add") |
|
|
|
|
public BaseResponse<String> addEssay(@RequestBody CmsEssay cmsEssay){ |
|
|
|
|
public BaseResponse<String> addEssay(CmsEssay cmsEssay){ |
|
|
|
|
return cmsEssayService.addEssay(cmsEssay); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -74,7 +74,7 @@ public class CmsEssayController { |
|
|
|
|
* @return |
|
|
|
|
*/ |
|
|
|
|
@PutMapping("/edit/status") |
|
|
|
|
public BaseResponse<String> editStatus(CmsEssay cmsEssay){ |
|
|
|
|
public BaseResponse<String> editStatus(@RequestBody CmsEssay cmsEssay){ |
|
|
|
|
return cmsEssayService.editStatus(cmsEssay); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|