package io.renren.modules.generator.service.impl;

import io.renren.datasource.annotation.DataSource;
import io.renren.modules.generator.dao.VisiAlgNodeDao;
import io.renren.modules.generator.entity.VisiAlgNode;
import io.renren.modules.generator.service.VisiAlgNodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@DataSource("slave2")
public class VisiAlgNodeServiceImpl implements VisiAlgNodeService {
    @Autowired
    VisiAlgNodeDao visiAlgNodeDao;
    @Override
    public int insert(VisiAlgNode visiAlgNode) {
        return visiAlgNodeDao.insert(visiAlgNode);
    }
}
