package cn.ezhizao.project.tenant.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.ezhizao.framework.aspectj.lang.annotation.DataSource;
import cn.ezhizao.framework.aspectj.lang.enums.DataSourceType;
import cn.ezhizao.project.tenant.domain.Tenant;
import cn.ezhizao.project.tenant.mapper.TenantMapper;
import cn.ezhizao.project.tenant.service.ITenantService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
 * @author zhushan
 */
@Service
@DataSource(value=DataSourceType.MASTER)
public class TenantServiceImpl extends ServiceImpl<TenantMapper, Tenant>  implements ITenantService {

    @Resource
    private TenantMapper tenantMapper;

    @Override
    public List<Tenant> getList(Tenant tenant) {
        return tenantMapper.getList(tenant);
    }

    @Override
    public void setTenantInfo(Tenant tenant) {

    }
}
