- jd basic api(category, sku, store management) finished.
This commit is contained in:
@@ -2,7 +2,6 @@ package skuman
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/model"
|
||||
"git.rosy.net.cn/jx-callback/business/model/dao"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -18,16 +17,3 @@ func New(sku *model.Sku) *Sku {
|
||||
Sku: sku,
|
||||
}
|
||||
}
|
||||
|
||||
func GetJdCategoryID(sku *model.Sku) int {
|
||||
cat, _ := dao.GetCategory(sku.CategoryID, nil)
|
||||
jdCategoryID := defJdCategoryID
|
||||
if cat != nil && cat.JdCategoryID != 0 {
|
||||
jdCategoryID = cat.JdCategoryID
|
||||
}
|
||||
return jdCategoryID
|
||||
}
|
||||
|
||||
func GetCategories(sku *model.Sku) []int {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user