同步京东门店

This commit is contained in:
苏尹岚
2020-02-17 14:54:04 +08:00
parent 49ede2c9d8
commit 0dfc27c84e
3 changed files with 110 additions and 0 deletions

View File

@@ -634,3 +634,16 @@ func (c *StoreController) RefreshJdLevel() {
return retVal, "", err
})
}
// @Title 同步指定京东门店
// @Description 同步京东门店
// @Param token header string true "认证token"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /SyncJdStore [post]
func (c *StoreController) SyncJdStore() {
c.callSyncJdStore(func(params *tStoreSyncJdStoreParams) (retVal interface{}, errCode string, err error) {
err = cms.UpdateJdStoreNameAll(params.Ctx)
return retVal, "", err
})
}