2024-07-14 15:58:23 +00:00
|
|
|
package models
|
|
|
|
|
2024-07-14 17:22:40 +00:00
|
|
|
import "leafdev.top/leaf/rag/ent"
|
|
|
|
|
2024-07-14 15:58:23 +00:00
|
|
|
type ListLibraryRequest struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListLibraryResponse struct {
|
2024-07-14 17:22:40 +00:00
|
|
|
Libraries []*ent.Library `json:"libraries"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateLibraryRequest struct {
|
|
|
|
Name string `json:"name" binding:"required"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateLibraryResponse struct {
|
|
|
|
Library *ent.Library `json:"library"`
|
2024-07-14 15:58:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type Library struct {
|
2024-07-14 17:22:40 +00:00
|
|
|
Id int `json:"libraryName"`
|
|
|
|
LibraryID string `json:"libraryId"`
|
|
|
|
Valid bool `json:"valid"`
|
2024-07-14 15:58:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type LibraryRequest struct {
|
|
|
|
LibraryName string `json:"libraryName"`
|
|
|
|
LibraryID string `json:"libraryId"`
|
|
|
|
Valid bool `json:"valid"`
|
|
|
|
}
|