Accept Merge Request #131: (yonghui -> mark)

Merge Request: 增加同步返回错误
Created By: @苏尹岚
Accepted By: @苏尹岚
URL: https://rosydev.coding.net/p/jx-callback/d/jx-callback/git/merge/131
This commit is contained in:
苏尹岚
2020-01-08 18:09:56 +08:00
5 changed files with 70 additions and 4 deletions

View File

@@ -105,6 +105,19 @@ var (
Coupon: "优惠券",
}
OperateTypeName = map[int]string{
OperateAdd: "新增",
OperateUpdate: "修改",
OperateDelete: "删除",
}
ThingTypeName = map[int]string{
ThingTypeCategory: "分类",
ThingTypeSku: "门店商品",
ThingTypeSkuName: "商品库",
ThingTypeStore: "门店",
}
MultiStoresVendorMap = map[int]int{
VendorIDJD: 1,
VendorIDMTWM: 0,
@@ -241,6 +254,12 @@ const (
Coupon = 2 //优惠券
)
const (
OperateAdd = 1 //新增操作
OperateUpdate = 2 //修改操作
OperateDelete = 4 //删除操作
)
const (
WaybillStatusRefuseFailedGetGoods = -70
WaybillStatusUnknown = 0

View File

@@ -16,6 +16,7 @@ const (
ErrCodeJsonActPriceTooLarger = "-102" // 这个错误号表示description中的是一个json对象不是错误文本
ErrCodeJsonActEarningPriceIsZero = "-103"
ErrCodeJsonUserAlreadyExist = "-104" // 用户已经存在错,且能成功登录
ErrCodeJsonSyncErr = "-105"
)
var (

View File

@@ -4,6 +4,7 @@ const (
ThingTypeCategory = 1
ThingTypeSkuName = 2
ThingTypeSku = 3
ThingTypeStore = 4
)
type ThingMap struct {