fix: implement resource reconciliation and update handling in media supply favorites
Frontend CI / Frontend (push) Successful in 2m55s
Backend CI / Backend (push) Failing after 8m41s

This commit is contained in:
2026-06-23 23:34:45 +08:00
parent 04bd3e42e0
commit a406971187
6 changed files with 167 additions and 14 deletions
@@ -128,10 +128,11 @@ func (r *meijiequanMediaListResponse) UnmarshalJSON(body []byte) error {
}
type MeijiequanMediaPage struct {
Items []UpsertSupplierMediaResourceInput
Page int
AllPage int
AllNum int
Items []UpsertSupplierMediaResourceInput
RawItemCount int
Page int
AllPage int
AllNum int
}
type meijiequanSearchOptionsCache struct {
@@ -687,6 +688,7 @@ func (c *MeijiequanClient) ListMedia(ctx context.Context, modelID, page, pageSiz
result.Page = parsed.Page
result.AllPage = parsed.AllPage
result.AllNum = parsed.AllNum
result.RawItemCount = len(parsed.Data)
result.Items = make([]UpsertSupplierMediaResourceInput, 0, len(parsed.Data))
for _, item := range parsed.Data {
resource, ok := parseMeijiequanMediaItem(modelID, item)