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 | 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