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
+2 -2
View File
@@ -171,7 +171,7 @@ type CatalogProductOutcome struct {
func UpsertCatalogShopeeProduct(q Execer, in CatalogShopeeProductInput) (out CatalogProductOutcome, err error) {
var oldObserved, oldShopID, imageURL, shopName, imageSource, imageObserved, shopSource, shopObserved sql.NullString
var imageManual, shopManual int
shopID, err := FindShopIDByAlias(q, "shopee", in.ShopName)
shopID, err := FindShopIDByName(q, in.ShopName)
if err != nil {
return out, err
}
@@ -232,7 +232,7 @@ func UpsertCatalogShopeeProduct(q Execer, in CatalogShopeeProductInput) (out Cat
resolvedShopID := oldShopID.String
shopAssociationChanged := false
if shopChanged {
resolvedShopID, err = FindShopIDByAlias(q, "shopee", newShop)
resolvedShopID, err = FindShopIDByName(q, newShop)
if err != nil {
return out, err
}