rag/models/library.go

31 lines
612 B
Go
Raw Permalink Normal View History

2024-07-14 15:58:23 +00:00
package models
import "leafdev.top/leaf/rag/ent"
2024-07-14 15:58:23 +00:00
type ListLibraryRequest struct {
}
type ListLibraryResponse struct {
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 {
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"`
}