mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-31 03:32:43 +08:00
Completing CSV export
This commit is contained in:
@ -0,0 +1,36 @@
|
||||
package ai.chat2db.server.domain.api.enums;
|
||||
|
||||
import ai.chat2db.server.tools.base.enums.BaseEnum;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* How much data is currently needed at the beginning
|
||||
*
|
||||
* @author Jiaju Zhuang
|
||||
*/
|
||||
@Getter
|
||||
public enum ExportSizeEnum implements BaseEnum<String> {
|
||||
/**
|
||||
* CURRENT_PAGE
|
||||
*/
|
||||
CURRENT_PAGE("CURRENT_PAGE"),
|
||||
|
||||
/**
|
||||
* ALL
|
||||
*/
|
||||
ALL("ALL"),
|
||||
|
||||
;
|
||||
|
||||
final String description;
|
||||
|
||||
ExportSizeEnum(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCode() {
|
||||
return this.name();
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,36 @@
|
||||
package ai.chat2db.server.domain.api.enums;
|
||||
|
||||
import ai.chat2db.server.tools.base.enums.BaseEnum;
|
||||
import lombok.Getter;
|
||||
|
||||
/**
|
||||
* export type
|
||||
*
|
||||
* @author Jiaju Zhuang
|
||||
*/
|
||||
@Getter
|
||||
public enum ExportTypeEnum implements BaseEnum<String> {
|
||||
/**
|
||||
* CSV
|
||||
*/
|
||||
CSV("CSV"),
|
||||
|
||||
/**
|
||||
* INSERT
|
||||
*/
|
||||
INSERT("INSERT"),
|
||||
|
||||
;
|
||||
|
||||
final String description;
|
||||
|
||||
ExportTypeEnum(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getCode() {
|
||||
return this.name();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user