Files
baseapi/platformapi/gome_live_show/guomei_const_emu.go

109 lines
5.3 KiB
Go

package gome_live_show
// api/url
const (
gomeUrl = "http://openapi-uat-external.lohashow.com" // 基础url
GetTokenApi = "login/auth/getToken" // 获取token
// 门店
GetStoreListApi = "V2/store/list" // 获取门店列表
// 商户商品
GetMerchantGoodsList = "V2/goods/merchant/list" // 商户商品列表
GetMerchantGoodsDetailList = "V2/goods/merchant/detail" // 商户商品商品详情列表
CreateMerchantGoodsToStore = "V2/goods/merchant/create" // 商户商品新增
UpdateMerchantGoodsToStore = "V2/goods/merchant/update" // 商户商品修改
DeleteMerchantGoodsToStore = "V2/goods/merchant/delete" // 商户商品删除
// 门店分类
GetStoreCategoryListApi = "V2/category/storeGoods/list" // 获取店铺商品分类列表(素菜,水果,牛肉)
AddStoreCategoryApi = "V2/category/storeGoods/create" // 店铺商品分类新增
ModifyStoreCategoryApi = "V2/category/storeGoods/update" // 店铺商品分类修改
DeleteStoreCategoryApi = "V2/category/storeGoods/delete" // 店铺商品分类删除
// 门店商品规格
GoodsCategoryApi = "V2/goodsCategory/list" // 商品品类查询(超市/超市/(洋酒/鲜花/面包))
GoodsSpecListApi = "V2/spec/list" // 查询商品规格列表
GoodsSpecDetailApi = "V2/spec/detail" // 查询商品规格详情
GoodsSpecCreateApi = "V2/spec/create" // 创建商品规格
GoodsSpecUpdateApi = "V2/spec/update" // 修改商品规格
GoodsSpecDeleteApi = "V2/spec/delete" // 删除商品规格
GoodsSpecTypeApi = "V2/goodsType/list" // 获取不同商品类型
// 门店商品维护
QueryGoodsListByStoreId = "V2/goods/store/list" // 根据店铺编码查询店铺商品列表
QueryOneGoodsByStoreId = "V2/goods/store/detail" // 根据 storeCode+skuCode 查询店铺商品详情
GoodsOnOffLineByStore = "V2/goods/store/onOffline" // 门店商品上下架状态
UpdatePriceToOneGoodsByStore = "V2/goods/store/priceUpdate" // 单商品维护售价
UpdateGoodsStockForStore = "V2/goods/store/stockUpdate" // 商品库存更新接口
AddGoodsForStore = "V2/goods/store/create" // 新增店铺商品
// 订单
QueryOrderList = "V2/order/list" // 根据创建时间查询订单的列表信息
QueryOrderDetail = "V2/order/detail" // 查询订单详情接口
CancelOrder = "V2/order/cancel" // 取消订单
ConfirmOrder = "V2/order/confirm" // 此接口主要用于商户接单场景
DeliveryOrder = "V2/order/delivery" // 发货
CheckOutOrder = "V2/order/checkout" // 用户自提商家核销
CancelAgreeOrRefuseAfterApply = "V2/order/cancle/agreeOrRefuseAfterApply" // 用户自提商家核销
// 售后订单
QueryAfterSaleList = "V2/afterSale/list" // 批量查询售后单接口
CreateAfterSaleOrder = "V2/afterSale/create" // 创建售后单接口
QueryAfterSaleOrderDetail = "V2/afterSale/get" // 售后单详情接口
AgreeOrRefuseAfterApplyOrder = "V2/afterSale/agreeOrRefuseAfterApply" // 商家审核订单
MerchantAgreeOkAfterApplyOrder = "V2/afterSale/confirm/goods" // 售后单商户收货确认
UploadImg = "V2/material/upload" // 主要用于为合作方上传图片提供服务,将合作方素材转化为乐活秀平台所需素材链接。
)
// 国美枚举说明
const (
// 上下架枚举值
PutOnTheShelf = "SHELVE" // 上架
DownOnTheShelf = "READY" // 下架
// 订单状态枚举值
GoodsToBePrepared = "STOCKUP_PENDING" // 待备货
PayingAndCancel = "PAID_CANCEL" // 支付后取消
Consignment = "DELIVERY_PENDING" // 待发货
CancelAfterStock = "STOCKUP_CANCEL" // 备货后取消
GoodsToBeReceived = "RECEIVING" // 待收货
Completed = "COMPLETE" // 已完成
//售后单状态枚举值
SubmitAfterSalesApplication = iota // 提交售后申请 0
AfterSalesAuditPassed // 售后审核通过 1
MerchantFailedToPass // 上架审核未通过 2
CustomerShipped // 客户已发货 3
MerchantHasReceivedTheGoods // 商家已收货 4
AfterSalesCompletion // 售后完成 5
UserCancel // 用户取消(完成) 6
TimeoutShutdown // 超时关闭(完成) 7
PlatformInterventionConsent // 平台介入同意 9
PlatformInterventionNo // 平台介入拒绝 10
PlatformInterventionApply // 申请平台介入 11
PlatformInterventionAgainApply // 拒绝后再次申请 12
// 门店营业状态
GoMeiStoreStatusToBeOpen = 1 // 待开业
GoMeiStoreStatusOpen = 2 // 开业
GoMeiStoreStatusTemporaryClose = 3 // 临时关闭
GoMeiStoreStatusClose = 4 // 关闭
)
// 常量
const (
PageNumber = 1
PageSize = 50
ConstNumberOne = 0
GoMeiMaxStock = 99999999 // 最大库存量
)
func GoMeiStoreSkuStatus(status int) string {
if status == 1 {
return PutOnTheShelf
}
return DownOnTheShelf
}