package com.lf.server.service.sys;
|
|
import com.lf.server.entity.sys.AuthEntity;
|
import com.lf.server.mapper.sys.AuthMapper;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
|
import java.util.List;
|
|
/**
|
* 权限表
|
* @author sws
|
* @date 2022-09-28
|
*/
|
@Service
|
public class AuthService implements AuthMapper {
|
@Autowired
|
AuthMapper authMapper;
|
|
@Override
|
public Integer selectCount(String name) {
|
return authMapper.selectCount(name);
|
}
|
|
@Override
|
public List<AuthEntity> selectByPage(String name, Integer limit, Integer offset) {
|
return authMapper.selectByPage(name, limit, offset);
|
}
|
|
@Override
|
public Integer selectCountForMenu(Integer menuid) {
|
return authMapper.selectCountForMenu(menuid);
|
}
|
|
@Override
|
public List<AuthEntity> selectByPageForMenu(Integer menuid, Integer limit, Integer offset) {
|
return authMapper.selectByPageForMenu(menuid, limit, offset);
|
}
|
|
@Override
|
public Integer insertAuth(AuthEntity authEntity) {
|
return authMapper.insertAuth(authEntity);
|
}
|
|
@Override
|
public Integer insertAuths(List<AuthEntity> authEntity) {
|
return authMapper.insertAuths(authEntity);
|
}
|
|
@Override
|
public Integer deleteAuth(int id) {
|
return authMapper.deleteAuth(id);
|
}
|
|
@Override
|
public Integer deleteAuths(List<Integer> ids) {
|
return authMapper.deleteAuths(ids);
|
}
|
|
@Override
|
public Integer updateAuth(AuthEntity authEntity) {
|
return authMapper.updateAuth(authEntity);
|
}
|
|
@Override
|
public AuthEntity selectAuth(int id) {
|
return authMapper.selectAuth(id);
|
}
|
|
@Override
|
public List<AuthEntity> selectAuthAll() {
|
return authMapper.selectAuthAll();
|
}
|
}
|