package com.mi.config.aspect.database;
import lombok.Getter;

/**
 * 读写分离数据枚举
 * @author yesh
 *         (M.M)!
 *         Created by 2017/6/16.
 */
public enum  DataSourceType{

    read("read", "从库"),
    write("write", "主库");

    @Getter
    private String type;
    @Getter
    private String name;

    DataSourceType(String type, String name) {
        this.type = type;
        this.name = name;
    }
}
