mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-09-08 22:20:43 +00:00
perf[protocol]: all protocol files are generated in a single protocol file
This commit is contained in:
@@ -33,6 +33,12 @@ public class GenerateOperation {
|
||||
*/
|
||||
public static final GenerateOperation NO_OPERATION = new GenerateOperation();
|
||||
|
||||
/**
|
||||
* EN: All protocol files are generated in a single protocol file.
|
||||
* CN: 所有的协议文件生成在一个协议文件里
|
||||
*/
|
||||
private boolean oneProtocol;
|
||||
|
||||
/**
|
||||
* EN: Fold the protocol. The generated protocol file will maintain the same directory structure as the Java source file.
|
||||
* It will not be folded by default.
|
||||
@@ -66,6 +72,14 @@ public class GenerateOperation {
|
||||
this.protocolPath = protocolPath;
|
||||
}
|
||||
|
||||
public boolean isOneProtocol() {
|
||||
return oneProtocol;
|
||||
}
|
||||
|
||||
public void setOneProtocol(boolean oneProtocol) {
|
||||
this.oneProtocol = oneProtocol;
|
||||
}
|
||||
|
||||
public boolean isFoldProtocol() {
|
||||
return foldProtocol;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user