Таблица qt_lot_metadata не использовалась в рантайме —
ни один репозиторий/сервис/хендлер к ней не обращался.
- удалён models/metadata.go (LotMetadata, Specs, PriceMethod, PriceFreshness)
- удалена LocalToComponent() из localdb/converters.go
- убран &LotMetadata{} из AutoMigrate
- убраны мёртвые поля PriceFreshness/PopularityScore/Specs из ComponentView
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
514 B
Go
18 lines
514 B
Go
package services
|
|
|
|
type ComponentListResult struct {
|
|
Items []ComponentView `json:"items"`
|
|
TotalCount int64 `json:"total_count"`
|
|
Page int `json:"page"`
|
|
PerPage int `json:"per_page"`
|
|
TotalPages int `json:"total_pages"`
|
|
}
|
|
|
|
type ComponentView struct {
|
|
LotName string `json:"lot_name"`
|
|
Description string `json:"description"`
|
|
Category string `json:"category"`
|
|
CategoryName string `json:"category_name"`
|
|
Model string `json:"model"`
|
|
}
|