feat: 收敛店铺管理和蝦皮分类搜索 (#212 #213)

This commit is contained in:
chengma
2026-08-13 11:47:56 +08:00
parent 1abed648a5
commit 313e9f9151
22 changed files with 389 additions and 464 deletions
+5 -8
View File
@@ -165,7 +165,7 @@ func (p PddProduct) IsDeleted() bool {
// 采集结果和采集状态**不在这里**——它们属于 PDD 商品,见 PddProduct。
type ShopeeProduct struct {
GoodsID string
ShopID string // 关联全局业务店铺;原始渠道店铺名仍单独保留
ShopID string // 关联店铺管理中的稳定店铺;来源名称仍单独保留
Title string
ShopeeStatus string
MainSKUCode string
@@ -220,7 +220,7 @@ type ShopeeSKU struct {
type SybOrder struct {
SybID string
OrderNo string
ShopID string // 由 SYB 渠道别名精确解析,无法识别时为空
ShopID string // 由 SYB 店铺名精确解析,无法识别时为空
ShopName string // 顺运宝货运单级 shopName;同一货运单的商品明细相同
Title string
ProductSpec string // 规格原文,顺运宝 productSpec,原样保留,对应 shopee_skus.spec_raw
@@ -268,23 +268,20 @@ type SybSyncRun struct {
FinishedAt string
}
// Shop 是跨 SYB、Shopee 等渠道共享的业务店铺身份。
// 渠道返回的原始名称保存在各业务表和 ShopChannelAlias 中,不用显示名替代。
// Shop 是 SYB 与蝦皮共用的店铺配置。
// DisplayName 是唯一面向用户的店铺名称;各业务表仍保留来源系统返回的原始名称。
type Shop struct {
ShopID string
DisplayName string
NormalizedName string
Enabled bool
SybAlias string
SybSyncEnabled bool
ShopeeAlias string
ShopeeProductCount int
CreatedByUserID string
CreatedAt string
UpdatedAt string
}
// ShopChannelAlias 把一个渠道中的精确名称映射到稳定业务店铺。
// ShopChannelAlias 是 v18 渠道名称结构的兼容记录;v19 起完全由 Shop 派生。
type ShopChannelAlias struct {
AliasID string
ShopID string