Skip to content

Commit e2ea78b

Browse files
authored
Merge pull request #654 from iceljc/master
use map
2 parents 1ce774a + 0b145e3 commit e2ea78b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Infrastructure/BotSharp.Abstraction/Knowledges/Models/KnowledgeDocMetaData.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public class DocMetaRefData
4848
[JsonPropertyName("url")]
4949
public string Url { get; set; }
5050

51-
[JsonPropertyName("json_content")]
51+
[JsonPropertyName("data")]
5252
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
53-
public string? JsonContent { get; set; }
53+
public IDictionary<string, string>? Data { get; set; }
5454
}

src/Plugins/BotSharp.Plugin.MongoStorage/Models/KnowledgeFileMetaRefMongoModel.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public class KnowledgeFileMetaRefMongoModel
88
public string Name { get; set; }
99
public string Type { get; set; }
1010
public string Url { get; set; }
11-
public string? JsonContent { get; set; }
11+
public IDictionary<string, string>? Data { get; set; }
1212

1313
public static KnowledgeFileMetaRefMongoModel? ToMongoModel(DocMetaRefData? model)
1414
{
@@ -20,7 +20,7 @@ public class KnowledgeFileMetaRefMongoModel
2020
Name = model.Name,
2121
Type = model.Type,
2222
Url = model.Url,
23-
JsonContent = model.JsonContent
23+
Data = model.Data
2424
};
2525
}
2626

@@ -34,7 +34,7 @@ public class KnowledgeFileMetaRefMongoModel
3434
Name = model.Name,
3535
Type = model.Type,
3636
Url = model.Url,
37-
JsonContent = model.JsonContent
37+
Data = model.Data
3838
};
3939
}
4040
}

0 commit comments

Comments
 (0)