Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop

This commit is contained in:
邹宗楠
2023-06-29 09:33:55 +08:00
10 changed files with 150 additions and 26 deletions

View File

@@ -5,6 +5,8 @@ import (
"encoding/json"
"errors"
"git.rosy.net.cn/jx-callback/business/partner/purchase/tao_vegetable"
"git.rosy.net.cn/baseapi/utils"
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
"git.rosy.net.cn/jx-callback/business/jxstore/common"
@@ -1677,6 +1679,25 @@ func (c *StoreController) SingleBindTaoVegetable() {
})
}
// @Title 更新淘鲜达门店信息
// @Description 更新淘鲜达门店信息
// @Param token header string true "认证token"
// @Param txdStores formData string true "TxdStore"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /UpdateTxdStore [post]
func (c *StoreController) UpdateTxdStore() {
c.callUpdateTxdStore(func(params *tStoreUpdateTxdStoreParams) (retVal interface{}, errMsg string, err error) {
taoStore := tao_vegetable.TxdStore{}
b := bytes.NewBufferString(params.TxdStores)
decoder := json.NewDecoder(b)
if err = decoder.Decode(&taoStore); err == nil {
err = tao_vegetable.UpdateTxdStore(taoStore)
}
return nil, "", err
})
}
// @Title 测试操作freight_template
// @Description 测试操作freight_template
// @Param token header string true "认证token"

View File

@@ -7,6 +7,7 @@ import (
"git.rosy.net.cn/jx-callback/business/model"
"errors"
"git.rosy.net.cn/jx-callback/business/jxstore/cms"
"git.rosy.net.cn/jx-callback/business/jxutils"
"git.rosy.net.cn/jx-callback/business/model/dao"
@@ -46,7 +47,7 @@ type StoreSkuController struct {
// @Param jdSyncStatus query int false "京东同步标识"
// @Param ebaiSyncStatus query int false "饿百同步标识"
// @Param mtwmSyncStatus query int false "美团外卖同步标识"
// @Param taoSyncStatus query int false "淘达同步标识"
// @Param taoSyncStatus query int false "淘达同步标识"
// @Param lockTime query string false "价格锁定时间"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult