feat(t240): cache freight item images

This commit is contained in:
QiuSW
2026-07-29 15:12:05 +08:00
parent 5f17fc11aa
commit c7e152aaa1
28 changed files with 1728 additions and 30 deletions
@@ -548,6 +548,13 @@ func (store *Store) GetFreightOrder(
if err := rows.Err(); err != nil {
return domain.FreightOrderDetail{}, repositoryFailure(err)
}
if err := store.applyFreightItemImageStatuses(
ctx,
order.ID,
items,
); err != nil {
return domain.FreightOrderDetail{}, err
}
return domain.FreightOrderDetail{Order: order, Items: items}, nil
}