package com.ruoyi.system.service.impl;
|
|
import java.util.List;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.ruoyi.system.mapper.SysSauthAccountMapper;
|
import com.ruoyi.system.domain.SysSauthAccount;
|
import com.ruoyi.system.service.ISysSauthAccountService;
|
import com.ruoyi.common.core.text.Convert;
|
|
/**
|
* 授权地址Service业务层处理
|
*
|
* @author Ling9
|
* @date 2023-07-22
|
*/
|
@Service
|
public class SysSauthAccountServiceImpl implements ISysSauthAccountService
|
{
|
@Autowired
|
private SysSauthAccountMapper sysSauthAccountMapper;
|
|
/**
|
* 查询授权地址
|
*
|
* @param id 授权地址主键
|
* @return 授权地址
|
*/
|
@Override
|
public SysSauthAccount selectSysSauthAccountById(Long id)
|
{
|
return sysSauthAccountMapper.selectSysSauthAccountById(id);
|
}
|
|
/**
|
* 查询授权地址列表
|
*
|
* @param sysSauthAccount 授权地址
|
* @return 授权地址
|
*/
|
@Override
|
public List<SysSauthAccount> selectSysSauthAccountList(SysSauthAccount sysSauthAccount)
|
{
|
return sysSauthAccountMapper.selectSysSauthAccountList(sysSauthAccount);
|
}
|
|
/**
|
* 新增授权地址
|
*
|
* @param sysSauthAccount 授权地址
|
* @return 结果
|
*/
|
@Override
|
public int insertSysSauthAccount(SysSauthAccount sysSauthAccount)
|
{
|
return sysSauthAccountMapper.insertSysSauthAccount(sysSauthAccount);
|
}
|
|
/**
|
* 修改授权地址
|
*
|
* @param sysSauthAccount 授权地址
|
* @return 结果
|
*/
|
@Override
|
public int updateSysSauthAccount(SysSauthAccount sysSauthAccount)
|
{
|
return sysSauthAccountMapper.updateSysSauthAccount(sysSauthAccount);
|
}
|
|
/**
|
* 批量删除授权地址
|
*
|
* @param ids 需要删除的授权地址主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteSysSauthAccountByIds(String ids)
|
{
|
return sysSauthAccountMapper.deleteSysSauthAccountByIds(Convert.toStrArray(ids));
|
}
|
|
/**
|
* 删除授权地址信息
|
*
|
* @param id 授权地址主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteSysSauthAccountById(Long id)
|
{
|
return sysSauthAccountMapper.deleteSysSauthAccountById(id);
|
}
|
}
|