public class ServiceGenerator extends Object implements IGenerator
Constructor and Description |
---|
ServiceGenerator() |
ServiceGenerator(String templatePath) |
Modifier and Type | Method and Description |
---|---|
void |
generate(Table table,
GlobalConfig globalConfig)
根据模板生成文件。
|
String |
getTemplatePath()
获取模板文件位置。
|
void |
setTemplatePath(String templatePath)
设置模板文件位置。
|
public ServiceGenerator()
public ServiceGenerator(String templatePath)
public void generate(Table table, GlobalConfig globalConfig)
IGenerator
generate
in interface IGenerator
table
- 表内容globalConfig
- 全局配置public String getTemplatePath()
IGenerator
getTemplatePath
in interface IGenerator
public void setTemplatePath(String templatePath)
IGenerator
setTemplatePath
in interface IGenerator
Copyright © 2024. All rights reserved.