|
|
|
@ -1,8 +1,6 @@
|
|
|
|
|
package jcook
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"git.oa00.com/go/mysql"
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
"recook/internal/back"
|
|
|
|
|
jcook2 "recook/internal/v2/lib/jcook"
|
|
|
|
|
"recook/internal/v2/lib/shama"
|
|
|
|
@ -10,6 +8,9 @@ import (
|
|
|
|
|
"recook/internal/v2/model/recook/goods"
|
|
|
|
|
"recook/tools"
|
|
|
|
|
"strconv"
|
|
|
|
|
|
|
|
|
|
"git.oa00.com/go/mysql"
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Proxy struct {
|
|
|
|
@ -49,8 +50,8 @@ func (a *Proxy) Stock(c *gin.Context) {
|
|
|
|
|
Address: p.Address,
|
|
|
|
|
SkuList: []jcook2.SkuQuantity{
|
|
|
|
|
{
|
|
|
|
|
uint(id),
|
|
|
|
|
1,
|
|
|
|
|
SkuID: uint(id),
|
|
|
|
|
Quantity: 1,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
@ -71,8 +72,8 @@ func (a *Proxy) Stock(c *gin.Context) {
|
|
|
|
|
Address: p.Address,
|
|
|
|
|
SkuList: []shama.SkuQuantity{
|
|
|
|
|
{
|
|
|
|
|
uint(id),
|
|
|
|
|
1,
|
|
|
|
|
SkuID: uint(id),
|
|
|
|
|
Quantity: 1,
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|