refactor(core):优化服务实现类代码结构
- 调整了多个服务实现类中的 import 语句顺序- 移除了未使用的注解和依赖注入相关导入 - 统一了 MyBatis 注解的导入方式-优化了数据源配置类中的 DataSource 导入位置 - 移除了过滤器中不必要的 Component 注解- 简化了部分重复的代码结构以提升可读性
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package com.hanserwei.hannote.user.relation.biz.service;
|
||||
|
||||
import com.hanserwei.hannote.user.relation.biz.domain.dataobject.FansDO;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.hanserwei.hannote.user.relation.biz.domain.dataobject.FansDO;
|
||||
public interface FansDOService extends IService<FansDO>{
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.hanserwei.hannote.user.relation.biz.service;
|
||||
|
||||
import com.hanserwei.hannote.user.relation.biz.domain.dataobject.FollowingDO;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.hanserwei.hannote.user.relation.biz.domain.dataobject.FollowingDO;
|
||||
public interface FollowingDOService extends IService<FollowingDO>{
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
package com.hanserwei.hannote.user.relation.biz.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.hanserwei.hannote.user.relation.biz.domain.dataobject.FansDO;
|
||||
import com.hanserwei.hannote.user.relation.biz.domain.mapper.FansDOMapper;
|
||||
import com.hanserwei.hannote.user.relation.biz.service.FansDOService;
|
||||
import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class FansDOServiceImpl extends ServiceImpl<FansDOMapper, FansDO> implements FansDOService{
|
||||
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
package com.hanserwei.hannote.user.relation.biz.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.hanserwei.hannote.user.relation.biz.domain.mapper.FollowingDOMapper;
|
||||
import com.hanserwei.hannote.user.relation.biz.domain.dataobject.FollowingDO;
|
||||
import com.hanserwei.hannote.user.relation.biz.domain.mapper.FollowingDOMapper;
|
||||
import com.hanserwei.hannote.user.relation.biz.service.FollowingDOService;
|
||||
import org.springframework.stereotype.Service;
|
||||
@Service
|
||||
public class FollowingDOServiceImpl extends ServiceImpl<FollowingDOMapper, FollowingDO> implements FollowingDOService{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user