cn.mybatis.mp.generator.config.ServiceConfig Maven / Gradle / Ivy
package cn.mybatis.mp.generator.config;
import lombok.Getter;
@Getter
public class ServiceConfig {
/**
* service接口父类
*/
private String superClass;
/**
* 是否启用
*/
private boolean enable = true;
/**
* 启用泛型
*/
private boolean generic = false;
/**
* service接口包名
*/
private String packageName = "service";
/**
* service接口后缀
*/
private String suffix = "Service";
/**
* service接口父类
*/
public ServiceConfig superClass(String superClass) {
this.superClass = superClass;
return this;
}
/**
* 设置是否启用
*/
public ServiceConfig enable(boolean enable) {
this.enable = enable;
return this;
}
/**
* 启用泛型
*/
public ServiceConfig generic(boolean generic) {
this.generic = generic;
return this;
}
/**
* service接口包名
*/
public ServiceConfig packageName(String packageName) {
this.packageName = packageName;
return this;
}
/**
* service接口后缀
*/
public ServiceConfig suffix(String suffix) {
this.suffix = suffix;
return this;
}
}