- GetMissingStoreSkuFromOrder

This commit is contained in:
gazebo
2019-06-16 11:30:38 +08:00
parent c42e67529d
commit 68e569d885
5 changed files with 106 additions and 5 deletions

View File

@@ -409,3 +409,20 @@ func (c *StoreSkuController) SyncJdStoreProducts() {
return retVal, "", err
})
}
// @Title 从订单得到本地没有关注的商品信息
// @Description 从订单得到本地没有关注的商品信息
// @Param token header string true "认证token"
// @Param fromTime query string false "扫描的订单开始时间"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetMissingStoreSkuFromOrder [get]
func (c *StoreSkuController) GetMissingStoreSkuFromOrder() {
c.callGetMissingStoreSkuFromOrder(func(params *tStoreSkuGetMissingStoreSkuFromOrderParams) (retVal interface{}, errCode string, err error) {
timeList, err := jxutils.BatchStr2Time(params.FromTime)
if err == nil {
retVal, err = cms.GetMissingStoreSkuFromOrder(params.Ctx, timeList[0])
}
return retVal, "", err
})
}