feat(listing): 商品列表展示来源商行
This commit is contained in:
@@ -23,6 +23,7 @@ type listingRow struct {
|
||||
IsExternalUpload bool `gorm:"column:is_external_upload"`
|
||||
DistributionSiteCode string `gorm:"column:distribution_site_code"`
|
||||
DistributionSiteName string `gorm:"column:distribution_site_name"`
|
||||
SourceMerchantName string `gorm:"column:source_merchant_name"`
|
||||
Description string
|
||||
GameName string
|
||||
ServerRegion string
|
||||
@@ -72,6 +73,7 @@ func applyPublicListingURLs(item *ListingDTO) {
|
||||
return
|
||||
}
|
||||
item.SourceChannel = ""
|
||||
item.SourceMerchantName = ""
|
||||
item.IsExternalUpload = false
|
||||
rawScreenshotURLs := item.ScreenshotURLS
|
||||
item.ScreenshotURLS = publicScreenshotURLs(item.ID, item.ScreenshotURLS, item.Status, item.ReviewStatus)
|
||||
@@ -138,6 +140,7 @@ func applySellerListingPrice(item *ListingDTO) {
|
||||
return
|
||||
}
|
||||
item.SourceChannel = ""
|
||||
item.SourceMerchantName = ""
|
||||
item.IsExternalUpload = false
|
||||
if item.AssetSummary == nil {
|
||||
return
|
||||
@@ -198,6 +201,7 @@ func (row listingRow) toDTO() ListingDTO {
|
||||
DistributionSiteID: row.DistributionSiteID,
|
||||
DistributionSiteCode: row.DistributionSiteCode,
|
||||
DistributionSiteName: row.DistributionSiteName,
|
||||
SourceMerchantName: row.SourceMerchantName,
|
||||
IsPremium: row.IsPremium,
|
||||
CompensationPlan: normalizedCompensationPlan(row.CompensationPlan),
|
||||
InsuranceFeeBps: row.InsuranceFeeBps,
|
||||
|
||||
Reference in New Issue
Block a user