feat(tenant): 增加双站共享货架与跨站下单

This commit is contained in:
yml
2026-11-15 15:45:00 +08:00
parent abf0fce89b
commit 4eb2bc253b
20 changed files with 767 additions and 31 deletions
+14
View File
@@ -10,6 +10,7 @@ import (
type ListingDTO struct {
ID uint64 `json:"id"`
SourceTenantID uint64 `json:"source_tenant_id"`
ListingNo string `json:"listing_no"`
AccountID uint64 `json:"account_id"`
OwnerID uint64 `json:"owner_id"`
@@ -187,6 +188,19 @@ type PublicListResult struct {
ZoneCounts map[string]int64 `json:"zone_counts"`
}
type TenantListingOfferDTO struct {
TenantID uint64 `json:"tenant_id"`
ListingID uint64 `json:"listing_id"`
DisplayStatus string `json:"display_status"`
PriceCent *int64 `json:"price_cent"`
EffectivePriceCent int64 `json:"effective_price_cent"`
}
type UpdateTenantListingOfferRequest struct {
DisplayStatus string `json:"display_status"`
PriceCent *int64 `json:"price_cent"`
}
type AdminActionRequest struct {
Reason string `json:"reason" binding:"required"`
}