mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 11:59:48 +00:00
Defined initial data source types
This commit is contained in:
parent
06f66fdab2
commit
8d2b451819
@ -0,0 +1,16 @@
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
public static class DataSourceExtension
|
||||
{
|
||||
public static string GetDisplayName(this DataSourceType type)
|
||||
{
|
||||
return type switch
|
||||
{
|
||||
DataSourceType.LOCAL_FILE => "Local File",
|
||||
DataSourceType.LOCAL_DIRECTORY => "Local Directory",
|
||||
DataSourceType.ERI => "ERI Server",
|
||||
|
||||
_ => "None",
|
||||
};
|
||||
}
|
||||
}
|
11
app/MindWork AI Studio/Settings/DataModel/DataSourceType.cs
Normal file
11
app/MindWork AI Studio/Settings/DataModel/DataSourceType.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace AIStudio.Settings.DataModel;
|
||||
|
||||
public enum DataSourceType
|
||||
{
|
||||
NONE = 0,
|
||||
|
||||
LOCAL_FILE,
|
||||
LOCAL_DIRECTORY,
|
||||
|
||||
ERI,
|
||||
}
|
Loading…
Reference in New Issue
Block a user