增加渠道上传预统计

This commit is contained in:
yml2213
2026-07-25 14:34:03 +08:00
parent 1ea01f7d46
commit 7ca68e6b8b
15 changed files with 689 additions and 63 deletions
@@ -115,6 +115,7 @@ func (r *Repository) ensureCreateCooldown(tx *gorm.DB, ownerID uint64, cooldown
type externalUploadCreate struct {
UploaderName string
SourceChannel string
ClientUploadTime *time.Time
ClientIP string
RawPayload []byte
@@ -186,6 +187,7 @@ func (r *Repository) CreateFromExternalUpload(ctx context.Context, upload extern
listingID := listing.ID
uploadRow := model.ListingUpload{
UploaderName: upload.UploaderName,
SourceChannel: upload.SourceChannel,
MatchedAdminID: &matchedAdminID,
OwnerID: &ownerID,
ClientUploadTime: upload.ClientUploadTime,