package cn.edu.whu.boot.xml.service.impl;

import cn.edu.whu.boot.xml.domain.XmlEnity;
import cn.edu.whu.boot.xml.mapper.XmlEnityMapper;
import cn.edu.whu.boot.xml.service.IXmlEnityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class XmlEnityServiceImpl implements IXmlEnityService{

    private final XmlEnityMapper xmlEnityMapper;

    @Autowired
    public XmlEnityServiceImpl(XmlEnityMapper xmlEnityMapper){
        this.xmlEnityMapper = xmlEnityMapper;
    }

    @Override
    public XmlEnity getXmlEnityById(Integer id){
        return xmlEnityMapper.selectByPrimaryKey(id);
    }


}
