mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 10:19:04 +00:00
perf[protocol]: all protocol files are generated in a single protocol file
This commit is contained in:
1 parent
3ea92c3a54
commit
1ca4db6c59
5 files changed
+32
-3
No files matched your search
@@ -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