Merge branch 'jdshop' of https://e.coding.net/rosydev/jx-callback into jdshop
This commit is contained in:
@@ -148,6 +148,22 @@ func (c *StoreController) CreateStore() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 打印机授权创建京西门店(除门店名称和登录授权电话真实有效其他使用默认值)
|
||||
// @Description 打印机授权创建京西门店
|
||||
// @Param payload formData string true "json数据,store对象"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /CreateStore2Print [post]
|
||||
func (c *StoreController) CreateStore2Print() {
|
||||
c.callCreateStore2Print(func(params *tStoreCreateStore2PrintParams) (retVal interface{}, errCode string, err error) {
|
||||
store := &cms.StoreExt{}
|
||||
if err = utils.UnmarshalUseNumber([]byte(params.Payload), store); err == nil {
|
||||
retVal, err = cms.CreateStore(params.Ctx, store, params.Ctx.GetUserName())
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 商户创建京西门店
|
||||
// @Description 商户创建京西门店
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
@@ -273,7 +273,7 @@ func (c *StoreSkuController) SyncStoresSkus() {
|
||||
// @Param isAsync formData bool false "是否异步操作"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /UpdateStoresSkus [put]
|
||||
// @router /UpdateStoresSkus [put]
|
||||
func (c *StoreSkuController) UpdateStoresSkus() {
|
||||
c.callUpdateStoresSkus(func(params *tStoreSkuUpdateStoresSkusParams) (retVal interface{}, errCode string, err error) {
|
||||
var storeIDs []int
|
||||
|
||||
Reference in New Issue
Block a user