|
|
@ -9,6 +9,7 @@ import com.teaching.backend.model.entity.cms.CmsEssay; |
|
|
|
import com.teaching.backend.service.cms.ICmsEssayService; |
|
|
|
import com.teaching.backend.service.cms.ICmsEssayService; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.time.LocalDate; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
@ -24,6 +25,7 @@ public class CmsEssayServiceImpl extends ServiceImpl<CmsEssayMapper, CmsEssay> i |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public BaseResponse<String> addEssay(CmsEssay cmsEssay) { |
|
|
|
public BaseResponse<String> addEssay(CmsEssay cmsEssay) { |
|
|
|
|
|
|
|
cmsEssay.setPublishTime(LocalDate.now()); |
|
|
|
save(cmsEssay); |
|
|
|
save(cmsEssay); |
|
|
|
return ResultUtils.success("添加成功"); |
|
|
|
return ResultUtils.success("添加成功"); |
|
|
|
} |
|
|
|
} |
|
|
|