refactor(core):优化服务实现类代码结构

- 调整了多个服务实现类中的 import 语句顺序- 移除了未使用的注解和依赖注入相关导入
- 统一了 MyBatis 注解的导入方式-优化了数据源配置类中的 DataSource 导入位置
- 移除了过滤器中不必要的 Component 注解- 简化了部分重复的代码结构以提升可读性
This commit is contained in:
2025-10-15 19:31:02 +08:00
parent 3904e8510e
commit ee99654e7c
12 changed files with 16 additions and 30 deletions

View File

@@ -1,7 +1,7 @@
package com.hanserwei.hannote.count.biz.service;
import com.hanserwei.hannote.count.biz.domain.dataobject.NoteCountDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hanserwei.hannote.count.biz.domain.dataobject.NoteCountDO;
public interface NoteCountDOService extends IService<NoteCountDO>{

View File

@@ -1,7 +1,7 @@
package com.hanserwei.hannote.count.biz.service;
import com.hanserwei.hannote.count.biz.domain.dataobject.UserCountDO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hanserwei.hannote.count.biz.domain.dataobject.UserCountDO;
public interface UserCountDOService extends IService<UserCountDO>{

View File

@@ -1,12 +1,10 @@
package com.hanserwei.hannote.count.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.count.biz.domain.dataobject.NoteCountDO;
import com.hanserwei.hannote.count.biz.domain.mapper.NoteCountDOMapper;
import com.hanserwei.hannote.count.biz.service.NoteCountDOService;
import org.springframework.stereotype.Service;
@Service
public class NoteCountDOServiceImpl extends ServiceImpl<NoteCountDOMapper, NoteCountDO> implements NoteCountDOService{

View File

@@ -1,12 +1,10 @@
package com.hanserwei.hannote.count.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.count.biz.domain.mapper.UserCountDOMapper;
import com.hanserwei.hannote.count.biz.domain.dataobject.UserCountDO;
import com.hanserwei.hannote.count.biz.domain.mapper.UserCountDOMapper;
import com.hanserwei.hannote.count.biz.service.UserCountDOService;
import org.springframework.stereotype.Service;
@Service
public class UserCountDOServiceImpl extends ServiceImpl<UserCountDOMapper, UserCountDO> implements UserCountDOService{