From b1516fedd7deedb61641321158fce862f77b4b4d Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期二, 22 十一月 2022 11:51:53 +0800
Subject: [PATCH] 更新访问路径白名单,部分接口修改
---
ycl-platform/src/main/java/com/ycl/service/impl/NewsChannelServiceImpl.java | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 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 b001ac9..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.dao.NewsChannelDao;
+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:12:41
+ * @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