diff --git a/api.product.go b/api.product.go index 9e10de8..432e045 100644 --- a/api.product.go +++ b/api.product.go @@ -10,17 +10,17 @@ type ApiProductResponse struct { Code string `json:"code"` Message string `json:"message"` Data struct { - Id int `json:"id"` // 商品编号 - ProductName string `json:"product_name"` // 商品名称 - Name string `json:"name"` // 规格名称 - Price float64 `json:"price"` // 售价 - ValidPurchasingQuantity string `json:"valid_purchasing_quantity"` // 合法的购买数量 - SuperiorCommissionsRate int `json:"superior_commissions_rate"` // 上级佣金比例 - Type int `json:"type"` // 商品类型(1:充值,2:卡密,3:卡券,4:人工) - SupplyState int `json:"supply_state"` // 库存状态(1:充足,2:断货) - StockState int `json:"stock_state"` // 状态(1:上架,2:维护,3:下架) - BanStartAt string `json:"ban_start_at"` // 禁售开始时间 - BanEndAt string `json:"ban_end_at"` // 禁售结束时间 + Id int `json:"id"` // 商品编号 + ProductName string `json:"product_name,omitempty"` // 商品名称 + Name string `json:"name"` // 规格名称 + Price string `json:"price"` // 售价 + ValidPurchasingQuantity string `json:"valid_purchasing_quantity"` // 合法的购买数量 + SuperiorCommissionsRate int `json:"superior_commissions_rate"` // 上级佣金比例 + Type int `json:"type"` // 商品类型(1:充值,2:卡密,3:卡券,4:人工) + SupplyState int `json:"supply_state"` // 库存状态(1:充足,2:断货) + StockState int `json:"stock_state"` // 状态(1:上架,2:维护,3:下架) + BanStartAt string `json:"ban_start_at,omitempty"` // 禁售开始时间 + BanEndAt string `json:"ban_end_at,omitempty"` // 禁售结束时间 } `json:"data"` } diff --git a/const.go b/const.go index 32c8f23..ed78814 100644 --- a/const.go +++ b/const.go @@ -15,5 +15,5 @@ const ( const ( LogTable = "kashangwl" - Version = "1.0.26" + Version = "1.0.27" ) diff --git a/go.mod b/go.mod index ce11d5e..589b79c 100644 --- a/go.mod +++ b/go.mod @@ -89,7 +89,7 @@ require ( golang.org/x/text v0.3.7 // indirect google.golang.org/protobuf v1.28.1 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect - gorm.io/driver/mysql v1.4.0 // indirect + gorm.io/driver/mysql v1.4.1 // indirect gorm.io/driver/postgres v1.4.4 // indirect gorm.io/gorm v1.24.0 // indirect mellium.im/sasl v0.3.0 // indirect diff --git a/go.sum b/go.sum index c04e14f..b389028 100644 --- a/go.sum +++ b/go.sum @@ -738,8 +738,8 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= -gorm.io/driver/mysql v1.4.0 h1:P+gpa0QGyNma39khn1vZMS/eXEJxTwHz4Q26NR4C8fw= -gorm.io/driver/mysql v1.4.0/go.mod h1:sSIebwZAVPiT+27jK9HIwvsqOGKx3YMPmrA3mBJR10c= +gorm.io/driver/mysql v1.4.1 h1:4InA6SOaYtt4yYpV1NF9B2kvUKe9TbvUd1iWrvxnjic= +gorm.io/driver/mysql v1.4.1/go.mod h1:sSIebwZAVPiT+27jK9HIwvsqOGKx3YMPmrA3mBJR10c= gorm.io/driver/postgres v1.4.4 h1:zt1fxJ+C+ajparn0SteEnkoPg0BQ6wOWXEQ99bteAmw= gorm.io/driver/postgres v1.4.4/go.mod h1:whNfh5WhhHs96honoLjBAMwJGYEuA3m1hvgUbNXhPCw= gorm.io/gorm v1.23.7/go.mod h1:l2lP/RyAtc1ynaTjFksBde/O8v9oOGIApu2/xRitmZk=