This commit is contained in:
+21
-5
@@ -28,11 +28,14 @@ type Followup struct {
|
||||
}
|
||||
|
||||
type Category struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
CompleteName string `json:"completename"`
|
||||
Hints []string `json:"hints,omitempty"`
|
||||
Examples []string `json:"confirmed_examples,omitempty"`
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
CompleteName string `json:"completename"`
|
||||
// KnowbaseCategoryID is the GLPI knowledge-base category associated with
|
||||
// this ITIL category, when the installed GLPI exposes that relation.
|
||||
KnowbaseCategoryID int64 `json:"knowbase_category_id,omitempty"`
|
||||
Hints []string `json:"hints,omitempty"`
|
||||
Examples []string `json:"confirmed_examples,omitempty"`
|
||||
}
|
||||
|
||||
type LearningExample struct {
|
||||
@@ -61,10 +64,23 @@ type KnowledgeDoc struct {
|
||||
Keywords []string `json:"keywords"`
|
||||
Source string `json:"source"`
|
||||
SourceURI string `json:"source_uri,omitempty"`
|
||||
SourceCategoryIDs []int64 `json:"source_category_ids,omitempty"`
|
||||
SourceModifiedAt string `json:"source_modified_at,omitempty"`
|
||||
Language string `json:"language"`
|
||||
CommunicationStyle string `json:"communication_style"`
|
||||
}
|
||||
|
||||
// GLPIKnowledgeItem is the normalized read-only representation returned by
|
||||
// the GLPI connector before it is converted into a KnowledgeDoc.
|
||||
type GLPIKnowledgeItem struct {
|
||||
ID int64 `json:"id"`
|
||||
Title string `json:"title"`
|
||||
Content string `json:"content"`
|
||||
CategoryIDs []int64 `json:"category_ids,omitempty"`
|
||||
Language string `json:"language,omitempty"`
|
||||
ModifiedAt string `json:"modified_at,omitempty"`
|
||||
}
|
||||
|
||||
type KnowledgeHit struct {
|
||||
Doc KnowledgeDoc `json:"doc"`
|
||||
Score float64 `json:"score"`
|
||||
|
||||
Reference in New Issue
Block a user