This commit is contained in:
tangzh 2025-03-14 18:10:25 +08:00
parent 7b4ff8fd39
commit fc1953cad9
2 changed files with 102 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
import org.springframework.context.annotation.ComponentScan;
@SpringBootApplication
@ComponentScan(basePackages = {"io.service","common"}) // 扫描多个包
@ComponentScan(basePackages = {"io.service","io.controller","common"}) // 扫描多个包
@MapperScan(basePackages = {"io.dao","common.dao"})
public class AdminApplication extends SpringBootServletInitializer {

View File

@ -1,6 +1,106 @@
package io.service.impl;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import common.page.PageData;
import common.service.CrudService;
import common.service.impl.CrudServiceImpl;
import io.dao.UserDao;
import io.domain.UserEntity;
public interface UserServiceImpl extends CrudService<UserEntity, UserEntity> {
import io.service.UserService;
import org.springframework.stereotype.Service;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;
@Service
public class UserServiceImpl implements UserService {
@Override
public PageData<UserEntity> page(Map<String, Object> params) {
return null;
}
@Override
public List<UserEntity> list(Map<String, Object> params) {
return List.of();
}
@Override
public UserEntity get(Long id) {
return null;
}
@Override
public void save(UserEntity dto) {
}
@Override
public void update(UserEntity dto) {
}
@Override
public void delete(Long[] ids) {
}
@Override
public Class<UserEntity> currentModelClass() {
return null;
}
@Override
public boolean insert(UserEntity entity) {
return false;
}
@Override
public boolean insertBatch(Collection<UserEntity> entityList) {
return false;
}
@Override
public boolean insertBatch(Collection<UserEntity> entityList, int batchSize) {
return false;
}
@Override
public boolean updateById(UserEntity entity) {
return false;
}
@Override
public boolean update(UserEntity entity, Wrapper<UserEntity> updateWrapper) {
return false;
}
@Override
public boolean updateBatchById(Collection<UserEntity> entityList) {
return false;
}
@Override
public boolean updateBatchById(Collection<UserEntity> entityList, int batchSize) {
return false;
}
@Override
public UserEntity selectById(Serializable id) {
return null;
}
@Override
public boolean deleteById(Serializable id) {
return false;
}
@Override
public boolean deleteBatchIds(Collection<? extends Serializable> idList) {
return false;
}
}