Skip to content

Commit

Permalink
fix(spda): file items to FileData
Browse files Browse the repository at this point in the history
  • Loading branch information
bububa committed Dec 23, 2021
1 parent a83833a commit 46e0c05
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions marketing-api/model/spda/xml.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package spda
package spda

import (
"encoding/xml"
Expand Down Expand Up @@ -102,7 +102,11 @@ type Delivery struct {

// File 商品信息文件
type File struct {
XMLName xml.Name `xml:"dataset"`
XMLName xml.Name `xml:"dataset"`
Items []FileData `xml:"data"`
}

type FileData struct {
// ID 商品ID, 主键,用于区别商品
ID uint64 `xml:"id"`
// Name 商品名,
Expand Down

0 comments on commit 46e0c05

Please sign in to comment.