refactor logging and filters
This commit is contained in:
@ -115,7 +115,10 @@ func makeDomainGoodItem(builder *flatbuffers.Builder, in entity.GoodsItem) flatb
|
||||
func ParseGoodsItem(data []byte) (item entity.GoodsItem, err error) {
|
||||
itemFBS := GetRootAsGoodItem(data, 0)
|
||||
item.Articul = string(itemFBS.Sku())
|
||||
item.PhotoURLs = strings.Split(string(itemFBS.Photo()), ";")
|
||||
photoURLs := string(itemFBS.Photo())
|
||||
if len(photoURLs) > 0 {
|
||||
item.PhotoURLs = strings.Split(photoURLs, ";")
|
||||
}
|
||||
item.Name = string(itemFBS.Name())
|
||||
|
||||
description, err := base64.RawStdEncoding.DecodeString(string(itemFBS.Description()))
|
||||
|
||||
Reference in New Issue
Block a user