From c435158ed1ff587939314e84347ee6e38e8f25ec Mon Sep 17 00:00:00 2001 From: fangyuan <527392886@qq.com> Date: 星期一, 21 十一月 2022 13:49:59 +0800 Subject: [PATCH] 接口调整及文件上传接口 --- ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java | 53 ++++++++++++++++++++++++++++++++++------------------- 1 files changed, 34 insertions(+), 19 deletions(-) diff --git a/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java b/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java index 5731a0e..51931a7 100644 --- a/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java +++ b/ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java @@ -1,19 +1,34 @@ -package com.ycl.service.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ycl.mapper.NewsChannelDao; -import com.ycl.entity.NewsChannel; -import com.ycl.service.NewsChannelService; -import org.springframework.stereotype.Service; - -/** - * 棰戦亾琛�(NewsChannel)琛ㄦ湇鍔″疄鐜扮被 - * - * @author makejava - * @since 2022-11-16 16:52:30 - */ -@Service("newsChannelService") -public class NewsChannelServiceImpl extends ServiceImpl<NewsChannelDao, NewsChannel> implements NewsChannelService { - -} - +package com.ycl.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ycl.mapper.NewsChannelDao; +import com.ycl.entity.NewsChannel; +import com.ycl.service.NewsChannelService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * 棰戦亾琛�(NewsChannel)琛ㄦ湇鍔″疄鐜扮被 + * + * @author makejava + * @since 2022-11-17 11:38:27 + */ +@Service("newsChannelService") +public class NewsChannelServiceImpl extends ServiceImpl<NewsChannelDao, NewsChannel> implements NewsChannelService { + + @Autowired + NewsChannelDao newsChannelDao; + + @Override + public int insertOneChannel(NewsChannel entity) { + return newsChannelDao.insertOneChannel(entity); + } + + @Override + public List<NewsChannel> selectAllChannel() { + return newsChannelDao.selectAllChannel(); + } +} + -- Gitblit v1.8.0