rag/models/library.go
Twilight df929aa104 改进 swag doc
增加 创建和列出 library
2024-07-15 01:22:40 +08:00

31 lines
612 B
Go

package models
import "leafdev.top/leaf/rag/ent"
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"`
}
type Library struct {
Id int `json:"libraryName"`
LibraryID string `json:"libraryId"`
Valid bool `json:"valid"`
}
type LibraryRequest struct {
LibraryName string `json:"libraryName"`
LibraryID string `json:"libraryId"`
Valid bool `json:"valid"`
}