Documentation
¶
Index ¶
- type AddDeliverOrderReq
- type AddOrderDirectReq
- type AddOrderDirectResp
- type AuthorizeResp
- type BeeOrderGoods
- type BeeOrderReputationItem
- type BeeOrderReputationReq
- type BindWxMobileReq
- type CancelDeliverOrderReq
- type CancelDeliverOrderRes
- type CashLogReq
- type CashLogResp
- type CmsResp
- type CommentAddReq
- type CouponDetailResp
- type CreateOrderReq
- type CreateOrderResp
- type CyTableTokenResp
- type DistanceResp
- type DistanceRespElements
- type DistanceRespResult
- type DistanceRespRows
- type GetLevelListResp
- type GetOrderDetailResp
- type GetOrderListResp
- type GetUserAmountResp
- type GetUserDetailResp
- type GetWxPayInfoRes
- type GoodsDetailResp
- type GoodsLogistics
- type GoodsLogisticsDetail
- type GoodsPriceResp
- type ListOrderReq
- type ListOrderResp
- type ListShopReq
- type ListShopResp
- type LogisticsMap
- type MyCouponStatisticsResp
- type MyQueue
- type MyQueueLog
- type MyQueuingUpType
- type OrderDetailDto
- type OrderDto
- type OrderInfo
- type PageReqCommon
- type PageRespCommon
- type PayBillRes
- type PayLogsReq
- type PayLogsResp
- type QueryDeliverFeeReq
- type QueryDeliverFeeResult
- type QueryDeliveryResult
- type Response
- type SaveAddressReq
- type ShopInfoResp
- type ShoppingCartGoodsItem
- type ShoppingCartGoodsSku
- type ShoppingCartGoodsStatus
- type ShoppingCartInfo
- type ShoppingCartShop
- type UploadFileResp
- type UserAddressDetailResp
- type UserAddressResp
- type UserCouponResp
- type WxPayNotifyReq
- type WxPayNotifyResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddDeliverOrderReq ¶
type AddOrderDirectReq ¶
type AddOrderDirectReq struct {
QueryDeliverFeeReq
DeliveryNo string `json:"deliveryNo"` // 是 平台订单编号
DaySeq int64 `json:"daySeq"` //流水号
Source string `json:"source"`
ShopAddress string `json:"shop_address"`
ShopName string `json:"shop_name"`
ShopPhone string `json:"shop_phone"`
}
AddOrderDirectReq 直接下单req
type AddOrderDirectResp ¶
type AddOrderDirectResp struct {
QueryDeliverFeeResult
}
AddOrderDirectResp 直接下单resp
type AuthorizeResp ¶
type BeeOrderGoods ¶
type BeeOrderGoods struct {
AfterSale string `json:"afterSale"`
Amount decimal.Decimal `json:"amount"`
AmountCoupon decimal.Decimal `json:"amountCoupon"`
AmountSingle decimal.Decimal `json:"amountSingle"`
AmountSingleBase decimal.Decimal `json:"amountSingleBase"`
BuyRewardEnd bool `json:"buyRewardEnd"`
CategoryID int64 `json:"categoryId"`
CyTableStatus enum.CyTableStatus `json:"cyTableStatus"`
DateAdd string `json:"dateAdd"`
FxType enum.FxType `json:"fxType"`
GoodsID int64 `json:"goodsId"`
GoodsIDStr string `json:"goodsIdStr"`
GoodsName string `json:"goodsName"`
ID int64 `json:"id"`
InviterId int64 `json:"inviter_id"`
IsProcessHis bool `json:"isProcessHis"`
IsScoreOrder bool `json:"isScoreOrder"`
LogisticsType int `json:"logisticsType"`
Number int64 `json:"number"`
NumberNoFahuo int64 `json:"numberNoFahuo"`
OrderID string `json:"orderId"`
Persion int64 `json:"persion"`
Pic string `json:"pic"`
PriceID int64 `json:"priceId"`
Property string `json:"property"`
PropertyChildIds string `json:"propertyChildIds"`
Purchase bool `json:"purchase"`
RefundStatus enum.OrderRefundStatus `json:"refundStatus"`
Score decimal.Decimal `json:"score"`
ShopID int64 `json:"shopId"`
Status enum.OrderGoodsStatus `json:"status"`
Type int64 `json:"type"`
UID int64 `json:"uid"`
Unit string `json:"unit"`
UserID int64 `json:"userId"`
Weight decimal.Decimal `json:"weight"`
}
func BeeOrderGoodsToDto ¶
func BeeOrderGoodsToDto(goods *model.BeeOrderGoods) *BeeOrderGoods
type BeeOrderReputationItem ¶
type BeeOrderReputationItem struct {
Id string `json:"id"`
Reputation enum.OrderReputation `json:"reputation"`
Remark string `json:"remark"`
Pics []string `json:"pics"`
}
type BeeOrderReputationReq ¶
type BeeOrderReputationReq struct {
Token string `json:"token"`
OrderId string `json:"orderId"`
Reputations []*BeeOrderReputationItem `json:"reputations"`
}
type BindWxMobileReq ¶
type CancelDeliverOrderReq ¶
type CancelDeliverOrderRes ¶
type CashLogReq ¶
type CashLogReq struct {
PageReqCommon
Behavior *enum.BeeCashLogBehavior // 0 收入; 1 支出 false
OrderId string //业务订单号 false
Type *enum.BeeCashLogType //交易类型 0 充值 11 提现申请 12 提现失败 1 提现成功 2 支付订单 3 退款 4支付预约报名费
// 5 知识付费 6分销返佣 7 分享商品奖励; 8 优惠买单; 100 押金;101 押金退还; 110 购买会员; 120 货款收入;
// 130 分润收入; 140 积分兑换 false
Types string // 交易类型,同时获取多种类型请用英文逗号分隔 query false
}
type CashLogResp ¶
type CashLogResp struct {
PageRespCommon
Result []*model.BeeCashLog `json:"result"`
}
type CmsResp ¶
type CmsResp struct {
ExtJson interface{} `json:"extJson"`
Info *model.BeeCmsInfo `json:"info"`
}
type CommentAddReq ¶
type CommentAddReq struct {
RefId int64 `json:"refId" form:"refId"` //业务ID,比如文章id
Pid int64 `json:"pid" form:"pid"` //引用的留言ID
ShopId int64 `json:"shopId" form:"shopId"` //门店ID
Type enum.CommentType `json:"type" form:"type"` //0 网站留言 1 意见反馈 2 投诉建议 3 CMS文章评论 4 接口申请 5 预约/活动/报名 6 商城订单
Pics string `json:"pics" form:"pics"` // 图片数组
File string `json:"file" form:"file"` // 文件附件链接,可传图片、文件
Mobile string `json:"mobile" form:"mobile"` // 联系电话
Content string `json:"content" form:"content"` // 留言/评论内容
ExtJsonStr string `json:"extJsonStr" form:"extJsonStr"` //属性信息,JSON格式的字符串
Ip string
}
type CouponDetailResp ¶
type CreateOrderReq ¶
type CreateOrderReq struct {
GoodsJsonStr string `json:"goodsJsonStr" form:"goodsJsonStr"` // 购买的商品、规格尺寸、数量信息的数组,如:[{"goodsId":11,"number":2,"propertyChildIds":"","logisticsType":0, "days": ["2019-07-26", "2019-07-27"],"wholesaleId":0}, {"goodsId":8,"number":3,"propertyChildIds":"2:9","logisticsType":0, "inviter_id":邀请用户ID, "days": ["2019-07-26", "2019-07-27"]}] query true
Address string `json:"address" form:"address"` // 收货地址详细地址 query false
AdminPurchase string `json:"adminPurchase" form:"adminPurchase"` // 区管从总店进货 query false
AttendanDay string `json:"attendanDay" form:"attendanDay"` // 服务日期, 格式 yyyy-MM-dd query false
AttendanTime string `json:"attendanTime" form:"attendanTime"` // 服务时间 query false
AttendanTime2 string `json:"attendanTime2" form:"attendanTime2"` // 服务时间2,预留字段 query false
AttendantId string `json:"attendantId" form:"attendantId"` // 技师/服务人员ID query false
AutoDeliver string `json:"autoDeliver" form:"autoDeliver"` // 是否自动发货,true 启用,需要开通自动发货插件后方可使用 query false
AutoPeisong string `json:"autoPeisong" form:"autoPeisong"` // 是否启用配送联动,激活并使用配送模块 query false
Calculate string `json:"calculate" form:"calculate"` // true 不实际下单,而是返回价格计算 query false
CardId string `json:"cardId" form:"cardId"` // 用户名下会员卡记录ID,注意不是会员卡ID query false
CityId string `json:"cityId" form:"cityId"` // 收货地址城市编码 query false
Code string `json:"code" form:"code"` // 收货地址邮政编码 query false
CouponId string `json:"couponId" form:"couponId"` // 使用的优惠券编号,多张优惠券请用英文的逗号分隔 query false
CouponPriority string `json:"couponPriority" form:"couponPriority"` // 传true,自动使用一张最优惠的优惠券 query false
DadaShopNo string `json:"dadaShopNo" form:"dadaShopNo"` // 达达商户ID query false
DeductionScore string `json:"deductionScore" form:"deductionScore"` // 用多少积分来抵扣本次交易,请配合后台积分抵扣规则使用,小于等于0代表自动用抵扣,保留绝对值金额不允许抵扣 query false
DistrictId string `json:"districtId" form:"districtId"` // 收货地址区县编码 query false
Email string `json:"email" form:"email"` // 京东云交易订单接收邮箱地址 query false
ExtJsonStr string `json:"extJsonStr" form:"extJsonStr"` // 订单扩展属性信息,JSON格式 query false
ExtType string `json:"extType" form:"extType"` // 自定义订单类型,最多32字 query false
FilterShopId string `json:"filterShopId" form:"filterShopId"` // 只下单指定门店商品,其他商品将被忽略 query false
GoodsType string `json:"goodsType" form:"goodsType"` // 0 自营商品; 1 京东vop商品; 2 京东权益商品 query false
Grabkey string `json:"grabkey" form:"grabkey"` // 如果开启秒杀模式,必须先调用秒杀抢占名额接口获取grabkey query false
Idcard string `json:"idcard" form:"idcard"` // 身份证号码【国际件使用】 query false
IgnoreDiscountPrice string `json:"ignoreDiscountPrice" form:"ignoreDiscountPrice"` // 如果传,将忽略商品设置里面的优惠金额 query false
IsCanHx string `json:"isCanHx" form:"isCanHx"` // 是否支持核销,true 支持,默认不支持 query false
Kjid string `json:"kjid" form:"kjid"` // 砍价编号,可直接购买砍价商品 query false
Lat string `json:"lat" form:"lat"` // 收货地址的纬度 query false
LinkMan string `json:"linkMan" form:"linkMan"` // 收货地址联系人信息 query false
ListingId string `json:"listingId" form:"listingId"` // 如果是接龙下单,需要传接龙ID query false
Lng string `json:"lng" form:"lng"` // 收货地址的经度 query false
Menpai string `json:"menpai" form:"menpai"` // 门牌 query false
Mobile string `json:"mobile" form:"mobile"` // 收货地址联系人手机号码 query false
OrderInviterId string `json:"orderInviterId" form:"orderInviterId"` // 推荐人用户id query false
OrderPeriod string `json:"orderPeriod" form:"orderPeriod"` // 周期订单参数: {"unit":1,"duration":1,"dateStart":"2020-05-05 11:47:19", "dateStart": false}, unit: 0 天 1 月 2 年 query false
PayOnDelivery string `json:"payOnDelivery" form:"payOnDelivery"` // 1 为货到付款,其他数字为先支付 query false
PeisongFeeId string `json:"peisongFeeId" form:"peisongFeeId"` // 配送费的id query false
PeisongType string `json:"peisongType" form:"peisongType"` // 配送类型,kd 代表快递;zq代表到店自取; keloop 快跑者; pszq 商家配送自取(还需收取快递费); meituan 美团配送; shansong 闪送 query false
PickPointId string `json:"pickPointId" form:"pickPointId"` // 取货点ID query false
PingtuanOpenId string `json:"pingtuanOpenId" form:"pingtuanOpenId"` // 拼团购买的团号 query false
ProvinceId string `json:"provinceId" form:"provinceId"` // 收货地址省份编码 query false
Remark string `json:"remark" form:"remark"` // 下单备注信息 query false
ScoreExchangeClose string `json:"scoreExchangeClose" form:"scoreExchangeClose"` // 如果不传或者传false,积分商品积分不足的时候,自动根据兑换比例折算成钱结算 query false
ScoreForceExchange string `json:"scoreForceExchange" form:"scoreForceExchange"` // 如果传true,所有的积分折算成金额进行结算 query false
ShipmentType string `json:"shipmentType" form:"shipmentType"` // 京东云交易配送方式。1:京东配送 2:京配转三方配送 3:第三方配送 4:普通快递配送 9:不支持配送 query false
ShopIdZt int64 `json:"shopIdZt" form:"shopIdZt"` // 自提门店id query false
ShopNameZt string `json:"shopNameZt" form:"shopNameZt"` // 自提门店名称 query false
ShopPurchase string `json:"shopPurchase" form:"shopPurchase"` // 门店从区管进货 query false
StreetId string `json:"streetId" form:"streetId"` // 收货地址街道/社区编码 query false
Trips string `json:"trips" form:"trips"` // 小费金额,用户可自行输入小费金额 query false
Xiaoqu string `json:"xiaoqu" form:"xiaoqu"` // 小区名称 query false
TableNum string `json:"tableNum" form:"tableNum"`
}
type CreateOrderResp ¶
type CreateOrderResp struct {
Id int64 `json:"id"`
Amount decimal.Decimal `json:"amount"` //货款
AmountReal decimal.Decimal `json:"amountReal"` //实际需要支付金额
AmountTax int `json:"amountTax"`
AmountTaxGst int `json:"amountTaxGst"`
AmountTaxService int `json:"amountTaxService"`
AmountTotle decimal.Decimal `json:"amountTotle"` //商品总额,不包含运费
AmountTotleOriginal decimal.Decimal `json:"amountTotleOriginal"` //优惠前商品金额
AmountCoupons decimal.Decimal `json:"amountCoupons"` //优惠券抵扣金额
AmountLogistics decimal.Decimal `json:"amountLogistics"` //运费原价
AmountLogisticsReal decimal.Decimal `json:"amountLogisticsReal"` //真实运费金额
AmountLogisticsCoupons decimal.Decimal `json:"amountLogisticsCoupons"` //优惠券抵扣运费金额
CouponId []int64 `json:"couponId"`
CouponUserList []*UserCouponResp `json:"couponUserList"`
DeductionMoney int `json:"deductionMoney"`
DeductionScore int `json:"deductionScore"`
FreightScore int `json:"freightScore"`
GoodsNumber int64 `json:"goodsNumber"`
IsNeedLogistics bool `json:"isNeedLogistics"`
Overseas bool `json:"overseas"`
Score int `json:"score"`
HxNumber string `json:"hxNumber"`
IsPay bool `json:"isPay"`
OrderNumber string `json:"orderNumber"`
NearbyCloseMillis int64 `json:"nearbyCloseMillis"` // 订单关闭时间
Status enum.OrderStatus `json:"status"`
}
type CyTableTokenResp ¶
type CyTableTokenResp AuthorizeResp
type DistanceResp ¶
type DistanceResp struct {
Message string `json:"message"`
RequestID string `json:"request_id"`
Result DistanceRespResult `json:"result"`
Status int `json:"status"`
}
type DistanceRespElements ¶
type DistanceRespElements struct {
Distance int `json:"distance"`
}
type DistanceRespResult ¶
type DistanceRespResult struct {
Rows []DistanceRespRows `json:"rows"`
}
type DistanceRespRows ¶
type DistanceRespRows struct {
Elements []DistanceRespElements `json:"elements"`
}
type GetLevelListResp ¶
type GetLevelListResp struct {
PageRespCommon
Result []*model.BeeLevel `json:"result"`
}
type GetOrderDetailResp ¶
type GetOrderDetailResp struct {
OrderInfo *OrderDto `json:"orderInfo"`
Goods []*BeeOrderGoods `json:"goods"`
Logistics *model.BeeOrderLogistics `json:"logistics"`
Logs []*model.BeeOrderLog `json:"logs"`
}
type GetOrderListResp ¶
type GetOrderListResp struct {
GoodsMap map[string][]*BeeOrderGoods `json:"goodsMap"`
LogisticsMap *LogisticsMap `json:"logisticsMap"`
OrderList []*OrderInfo `json:"orderList"`
TotalPage int `json:"totalPage"`
TotalRow int `json:"totalRow"`
}
type GetUserAmountResp ¶
type GetUserAmountResp struct {
model.BeeUserAmount
}
type GetUserDetailResp ¶
type GetWxPayInfoRes ¶
type GetWxPayInfoRes struct {
TimeStamp string `json:"timeStamp"`
OutTradeId string `json:"outTradeId"`
Package string `json:"package"`
PaySign string `json:"paySign"`
Appid string `json:"appid"`
Sign string `json:"sign"`
SignType string `json:"signType"`
PrepayId string `json:"prepayId"`
NonceStr string `json:"nonceStr"`
}
type GoodsDetailResp ¶
type GoodsDetailResp struct {
BasicInfo *model.BeeShopGoods `json:"basicInfo"`
Category *model.BeeShopGoodsCategory `json:"category"`
Content string `json:"content"`
Logistics *GoodsLogistics `json:"logistics"`
Pics []*model.BeeShopGoodsImages `json:"pics"`
Pics2 []string `json:"pics2"`
Properties []*model.BeeShopGoodsProp `json:"properties"`
SkuList []*model.BeeShopGoodsSku `json:"skuList"`
}
type GoodsLogistics ¶
type GoodsLogistics struct {
IsFree bool `json:"isFree"`
FeeType enum.BeeLogisticsType `json:"feeType"`
FeeTypeStr string `json:"feeTypeStr"`
Details []*GoodsLogisticsDetail `json:"details"`
}
func (*GoodsLogistics) FillData ¶
func (m *GoodsLogistics) FillData()
type GoodsLogisticsDetail ¶
type GoodsPriceResp ¶
type GoodsPriceResp struct {
FxType enum.FxType `json:"fxType"`
GoodsId int64 `json:"goodsId"`
Id int64 `json:"id"`
OriginalPrice decimal.Decimal `json:"originalPrice"`
PingtuanPrice decimal.Decimal `json:"pingtuanPrice"`
Price decimal.Decimal `json:"price"`
PropertyChildIds string `json:"propertyChildIds"`
PropertyChildNames string `json:"propertyChildNames"`
Score decimal.Decimal `json:"score"`
Stores int64 `json:"stores"`
}
type ListOrderReq ¶
type ListOrderReq struct {
DateAddBegin string `json:"dateAddBegin" form:"DateAddBegin"`
DateAddEnd string `json:"dateAddEnd" form:"DateAddEnd"`
DateRange string `json:"dateRange" form:"DateRange"` // 下单时间范围:今天 today;昨天 yestoday; 本周 week; 本月 month;上月 lastmonth;今年 year;去年 lastyear;近30天 30day query false
GoodReputation enum.OrderReputation `json:"goodReputation" form:"goodReputation"` // 评价状态:0 差评 1 中评 2 好评 false
GoodsId string `json:"goodsId" form:"GoodReputation"`
HasRefund *bool `json:"hasRefund" form:"hasRefund"` // true / false ,读取是否有退款的订单 false
IsNeedLogistics *bool `json:"isNeedLogistics" form:"isNeedLogistics"` //订单是否需要物流 false
LogisticsMobile string `json:"logisticsMobile" form:"GoodsId"` //收货人手机号码
LogisticsNameLike string `json:"logisticsNameLike" form:"HasRefund"` //收货人姓名 query false
LogisticsNameOrmobileLike string `json:"logisticsNameOrmobileLike" form:"IsNeedLogistics"` //收货人姓名/手机号码 query false
Mod int `json:"mod" form:"mod"` // 0 显示自己的订单(不传默认0); 1 为团长查看所有的订单; 2 查看收件人手机号码是自己的订单; 3 团队订单(下级分销商订单); 4 查看我邀请的订单(推广人); 5 查看我的拼团用户的订单; 6 接龙团长查看订单; 7 技师查看自己服务的订单 query false
OrderNumber string `json:"orderNumber" form:"LogisticsMobile"` // 订单编号,如:OD1703281618955938 false
Page int `json:"page" form:"page"` // 获取第几页数据,示例值(1) query false
PageSize int `json:"pageSize" form:"pageSize"` //每页显示多少数据,示例值(50) query false
PeisongStatusBatch string `json:"peisongStatusBatch" form:"LogisticsNameLike"` //批量拉取多种配送状态订单,多个状态之间用逗号隔开,1 待接单; 2 待取货(餐); 3 配送中; 4 已完成; 5 已取消; 6 预留; 7 预留; 8 预留; 9 退回中; 10 已退回; query false
PingtuanOpenId string `json:"pingtuanOpenId" form:"LogisticsNameOrmobileLike"` // 拼团购买的团号 false
RemarkLike string `json:"remarkLike" form:"Mod"` //根据下单备注搜索 query false
ShopId string `json:"shopId" form:"OrderNumber"` // 所属门店ID,用于查询该门店下的订单 false
ShowAttendant *bool `json:"showAttendant" form:"showAttendant"` //显示技师信息 query false
ShowExtJson *bool `json:"showExtJson" form:"showExtJson"` //显示扩展属性 query false
ShowShopInfo *bool `json:"showShopInfo" form:"showShopInfo"` //获取门店数据 query false
Status *enum.OrderStatus `json:"status" form:"status"` //-1 已关闭 0 待支付 1 已支付待发货 2 已发货待确认 3 确认收货待评价 4 已评价 false
StatusBatch string `json:"statusBatch" form:"Page"` //,多个状态之间用逗号隔开,-1 已关闭 0 待支付 1 已支付待发货 2 已发货待确认 3 确认收货待评价 4 已评价 query false
StatusOuterBatch string `json:"statusOuterBatch" form:"PageSize"` //批量拉取 status_outer 状态,多个状态之间用逗号隔开 query false
Type2 *bool `json:"type2" form:"type2"` // 自定义的订单类型 false
}
type ListOrderResp ¶
type ListOrderResp struct {
TotalRow int64 `json:"totalRow"`
TotalPage int64 `json:"totalPage"`
OrderList []*OrderDto `json:"orderList"`
LogisticsMap map[string]*model.BeeOrderLogistics `json:"logisticsMap"`
OrderGoodsMap map[string][]*model.BeeOrderGoods `json:"goodsMap"`
}
type ListShopReq ¶
type ListShopReq struct {
PageReqCommon
NameLike string `json:"nameLike" form:"nameLike"`
Latitude float64 `json:"curlatitude" form:"curlatitude"`
Longitude float64 `json:"curlongitude" form:"curlongitude"`
}
type ListShopResp ¶
type ListShopResp []*model.BeeShopInfo
type LogisticsMap ¶
type LogisticsMap struct {
}
type MyCouponStatisticsResp ¶
type MyQueue ¶
type MyQueue struct {
QueuingLog *MyQueueLog `json:"queuingLog"`
QueuingUpType *MyQueuingUpType `json:"queuingUpType"`
}
type MyQueueLog ¶
type MyQueueLog struct {
Number int64 `json:"number"`
Status enum.BeeUserQueueStatus `json:"status"`
StatusStr string `json:"statusStr"`
Name string `json:"name"`
}
func (*MyQueueLog) FillData ¶
func (log *MyQueueLog) FillData()
type MyQueuingUpType ¶
type OrderDetailDto ¶
type OrderDetailDto struct {
OrderDto
OrderGoods []*model.BeeOrderGoods `json:"orderGoods,omitempty"`
OrderLogistics *model.BeeOrderLogistics
}
func (*OrderDetailDto) CalWeightTotal ¶
func (o *OrderDetailDto) CalWeightTotal() decimal.Decimal
type OrderDto ¶
type OrderDto struct {
model.BeeOrder
DifferHours int64 `json:"differHours,omitempty"` // 下单离现在相差多少个小时
}
func BeeOrder2Dto ¶
type OrderInfo ¶
type OrderInfo struct {
Amount decimal.Decimal `json:"amount"`
AmountCard decimal.Decimal `json:"amountCard"`
AmountCoupons decimal.Decimal `json:"amountCoupons"`
AmountLogistics decimal.Decimal `json:"amountLogistics"`
AmountReal decimal.Decimal `json:"amountReal"`
AmountRefundTotal decimal.Decimal `json:"amountRefundTotal"`
AmountTax decimal.Decimal `json:"amountTax"`
AmountTaxGst decimal.Decimal `json:"amountTaxGst"`
AmountTaxService decimal.Decimal `json:"amountTaxService"`
AutoDeliverStatus int `json:"autoDeliverStatus"`
DateAdd string `json:"dateAdd"`
DateClose string `json:"dateClose"`
DatePay string `json:"datePay"`
DateUpdate string `json:"dateUpdate"`
DifferHours int `json:"differHours"`
GoodsNumber int `json:"goodsNumber"`
HasRefund bool `json:"hasRefund"`
HxNumber string `json:"hxNumber"`
ID int `json:"id"`
IP string `json:"ip"`
IsCanHx bool `json:"isCanHx"`
IsDelUser bool `json:"isDelUser"`
IsEnd bool `json:"isEnd"`
IsHasBenefit bool `json:"isHasBenefit"`
IsNeedLogistics bool `json:"isNeedLogistics"`
IsPay bool `json:"isPay"`
IsScoreOrder bool `json:"isScoreOrder"`
IsSuccessPingtuan bool `json:"isSuccessPingtuan"`
Jd8Status int `json:"jd8Status"`
NearbyCloseMillis int `json:"nearbyCloseMillis"`
OrderNumber string `json:"orderNumber"`
OrderType int `json:"orderType"`
PeriodAutoPay bool `json:"periodAutoPay"`
Pid int `json:"pid"`
Qudanhao string `json:"qudanhao"`
RefundStatus int `json:"refundStatus"`
Remark string `json:"remark"`
Score int `json:"score"`
ScoreDeduction int `json:"scoreDeduction"`
ShopID int `json:"shopId"`
ShopIDZt int `json:"shopIdZt"`
ShopNameZt string `json:"shopNameZt"`
Status int `json:"status"`
StatusStr string `json:"statusStr"`
Trips decimal.Decimal `json:"trips"`
Type int `json:"type"`
UID int `json:"uid"`
UserID int `json:"userId"`
}
type PageReqCommon ¶
type PageReqCommon struct {
DateAddBegin string // 时间起,格式 2018-05-16 query false
DateAddEnd string // 时间止,格式 2018-05-16 query false
Page int64 // 获取第几页数据,示例值(1) query false
PageSize int64 // 每页显示多少数据,示例值(50) query false
}
func (PageReqCommon) GetPage ¶
func (p PageReqCommon) GetPage() int64
func (PageReqCommon) GetPageSize ¶
func (p PageReqCommon) GetPageSize() int64
type PageRespCommon ¶
func GetPageCommon ¶
func GetPageCommon(cnt, pageSize int64) PageRespCommon
type PayBillRes ¶
type PayBillRes struct {
RealMoney decimal.Decimal `json:"realMoney"`
Amount decimal.Decimal `json:"amount"`
Balance decimal.Decimal `json:"balance"`
Behavior int `json:"behavior"`
Freeze decimal.Decimal `json:"freeze"`
Id int64 `json:"id"`
Remark string `json:"remark"`
Type int `json:"type"`
TypeStr string `json:"typeStr"`
Uid int64 `json:"uid"`
UserId int64 `json:"userId"`
}
type PayLogsReq ¶
type PayLogsReq struct {
PageReqCommon
Recharge *bool //参数如果传true,那么只会返回所有用户的充值记录(用来支付订单的支付记录不会返回),不传该参数返回所有记录
Status enum.PayLogStatus // 0 未支付;1 已支付;2 失败
}
type PayLogsResp ¶
type QueryDeliverFeeReq ¶
type QueryDeliverFeeReq struct {
ShopNo string `json:"shop_no"` // 是 门店编号,门店创建后可在门店列表查看
OriginId string `json:"origin_id"` // 是 第三方订单ID
CargoPrice decimal.Decimal `json:"cargo_price"` // 是 订单金额(单位:元)
IsPrepay int8 `json:"is_prepay"` // 是 是否需要垫付 1:是 0:否 (垫付订单金额,非运费)
ReceiverName string `json:"receiver_name"` // 是 收货人姓名
ReceiverAddress string `json:"receiver_address"` // 是 收货人地址
Callback string `json:"callback"` // 是 回调URL(查看回调说明)
CargoWeight float64 `json:"cargo_weight"` // 是 订单重量(单位:Kg)
ReceiverLat float64 `json:"proto.QueryDeliverFeeResult{}receiver_lat"` // 是 收货人地址纬度(支持火星坐标系(高德、腾讯地图))
ReceiverLng float64 `json:"receiver_lng"` // 是 收货人地址经度(支持火星坐标系(高德、腾讯地图))
ReceiverPhone string `json:"receiver_phone,omitempty"` // 否 收货人手机号(手机号和座机号必填一项),如传入隐私号,请使用英文逗号","分隔格式,并确保支持接收短信
ReceiverTel string `json:"receiver_tel,omitempty"` // 否 收货人座机号(手机号和座机号必填一项)
Tips decimal.Decimal `json:"tips,omitempty"` // 否 小费(单位:元,精确小数点后一位,小费金额不能高于订单金额。)
Info string `json:"info,omitempty"` // 否 订单备注
CargoType int `json:"cargo_type,omitempty"` // 否 支持配送的物品品类见链接。请选择门店真实配送品类,如无法判断可咨询您的销售经理。
CargoNum int `json:"cargo_num,omitempty"` // 否 订单商品数量
}
QueryDeliverFeeReq 查询配送订单费用req
type QueryDeliverFeeResult ¶
type QueryDeliverFeeResult struct {
Distance float64 `json:"distance"` // 是 配送距离(单位:米)
DeliveryNo string `json:"deliveryNo"` // 是 平台订单号
Fee decimal.Decimal `json:"fee"` // 是 实际运费(单位:元),运费减去优惠券费用
DeliverFee decimal.Decimal `json:"deliver_fee"` // 是 运费(单位:元)
CouponFee decimal.Decimal `json:"couponFee"` // 否 优惠券费用(单位:元)
Tips float64 `json:"tips"` // 否 小费(单位:元,精确小数点后一位,小费金额不能高于订单金额。)
InsuranceFee decimal.Decimal `json:"insuranceFee"` // 否 保价费(单位:元)
}
QueryDeliverFeeResult 查询配送订单费用res
type QueryDeliveryResult ¶
type QueryDeliveryResult struct {
OrderId string `json:"orderId"` // 第三方订单编号
StatusCode int `json:"statusCode"` // 订单状态(待接单=1,待取货=2,配送中=3,已完成=4,已取消=5, 指派单=8,妥投异常之物品返回中=9, 妥投异常之物品返回完成=10, 骑士到店=100,创建达达运单失败=1000 可参考文末的状态说明)
StatusMsg string `json:"statusMsg"` // 订单状态
TransporterName string `json:"transporterName"` // 骑手姓名
TransporterPhone string `json:"transporterPhone"` // 骑手电话
TransporterLng string `json:"transporterLng"` // 骑手经度
TransporterLat string `json:"transporterLat"` // 骑手纬度
DeliveryFee decimal.Decimal `json:"deliveryFee"` // 订单总费用,包含运费、小费、保价费
Tips decimal.Decimal `json:"tips"` // 小费,单位为元
CouponFee decimal.Decimal `json:"couponFee"` // 优惠券费用,单位为元
InsuranceFee decimal.Decimal `json:"insuranceFee"` // 保价费,单位为元
ActualFee decimal.Decimal `json:"actualFee"` // 订单实际费用消耗,订单总费用减优惠券
Distance float64 `json:"distance"` // 配送距离,单位为米
CreateTime string `json:"createTime"` // 发单时间
AcceptTime string `json:"acceptTime"` // 接单时间,若未接单,则为空
FetchTime string `json:"fetchTime"` // 取货时间,若未取货,则为空
FinishTime string `json:"finishTime"` // 送达时间,若未送达,则为空
CancelTime string `json:"cancelTime"` // 取消时间,若未取消,则为空
OrderFinishCode string `json:"orderFinishCode"` // 收货码
DeductFee decimal.Decimal `json:"deductFee"` // 违约金
}
QueryDeliveryResult 查询配送订单信息
type SaveAddressReq ¶
type SaveAddressReq struct {
Id int64 `json:"id" form:"id"`
Address *string `json:"address" form:"address"`
AreaStr *string `json:"areaStr" form:"areaStr"`
CityId *string `json:"cityId" form:"cityId"`
CityStr *string `json:"cityStr" form:"cityStr"`
DistrictId *string `json:"districtId" form:"districtId"`
IsDefault *bool `json:"isDefault" form:"isDefault"`
Latitude *float64 `json:"latitude" form:"latitude"`
LinkMan *string `json:"linkMan" form:"linkMan"`
Longitude *float64 `json:"longitude" form:"longitude"`
Mobile *string `json:"mobile" form:"mobile"`
ProvinceId *string `json:"provinceId" form:"provinceId"`
ProvinceStr *string `json:"provinceStr" form:"provinceStr"`
Status *int64 `json:"status" form:"status"`
Uid *int64 `json:"uid" form:"uid"`
}
type ShopInfoResp ¶
type ShopInfoResp struct {
Info *model.BeeShopInfo `json:"info"`
ExtJson map[string]interface{} `json:"extJson"`
}
type ShoppingCartGoodsItem ¶
type ShoppingCartGoodsItem struct {
CategoryId int64 `json:"categoryId"`
GoodsId int64 `json:"goodsId"`
Key string `json:"key"` // 唯一key
LogisticsId int64 `json:"logisticsId"`
MinBuyNumber int64 `json:"minBuyNumber"`
Name string `json:"name"`
Number int64 `json:"number"`
Overseas bool `json:"overseas"`
Pic string `json:"pic"`
Price decimal.Decimal `json:"price"`
Score decimal.Decimal `json:"score"`
Selected bool `json:"selected"`
ShopId int64 `json:"shopId"`
Sku []*ShoppingCartGoodsSku `json:"sku"`
Status enum.CartStatus `json:"status"`
StatusStr string `json:"statusStr"`
Stores int64 `json:"stores"`
Type int64 `json:"type"` //可不传该参数,用来区分多个购物车;业务场景中需要区分购物车的场景下使用
Weight decimal.Decimal `json:"weight"`
}
type ShoppingCartGoodsSku ¶
type ShoppingCartGoodsSku struct {
OptionId int64 `json:"optionId"`
OptionName string `json:"optionName"`
OptionValueId int64 `json:"optionValueId"`
OptionValueName string `json:"optionValueName"`
}
func NewShoppingCartGoodsSkuList ¶
func NewShoppingCartGoodsSkuList(sku *model.BeeShopGoodsSku) []*ShoppingCartGoodsSku
type ShoppingCartGoodsStatus ¶
type ShoppingCartGoodsStatus struct {
Id int64 `json:"id"`
SellEnd bool `json:"sellEnd"`
SellStart bool `json:"sellStart"`
Status enum.GoodsStatus `json:"status"`
StatusStr string `json:"statusStr"`
Stores int64 `json:"stores"`
}
func NewShoppingCartGoodsStatus ¶
func NewShoppingCartGoodsStatus(goods *model.BeeShopGoods) *ShoppingCartGoodsStatus
type ShoppingCartInfo ¶
type ShoppingCartInfo struct {
Number int64 `json:"number"`
Price decimal.Decimal `json:"price"`
Score decimal.Decimal `json:"score"`
ShopList []*ShoppingCartShop `json:"shopList"`
Items []*ShoppingCartGoodsItem `json:"items"`
GoodsStatus []*ShoppingCartGoodsStatus `json:"goodsStatus"`
}
type ShoppingCartShop ¶
type UploadFileResp ¶
type UserAddressDetailResp ¶
type UserAddressDetailResp struct {
Info *UserAddressResp `json:"info"`
ExtJson map[string]interface{} `json:"extJson"`
}
type UserAddressResp ¶
type UserCouponResp ¶
type UserCouponResp struct {
DateAdd string `json:"dateAdd"`
DateEnd string `json:"dateEnd"`
DateStart string `json:"dateStart"`
ExpiryMillis int64 `json:"expiryMillis"`
Id int64 `json:"id"`
Money decimal.Decimal `json:"money"`
MoneyHreshold decimal.Decimal `json:"moneyHreshold"`
MoneyType enum.CouponMoneyType `json:"moneyType"`
Name string `json:"name"`
OnlyFreight bool `json:"onlyFreight"`
Pid int64 `json:"pid"`
ShopId int64 `json:"shopId"`
Source string `json:"source"`
Status enum.CouponStatus `json:"status"`
StatusStr string `json:"statusStr"`
}
func NewUserCouponResp ¶
func NewUserCouponResp(coupon *model.BeeUserCoupon) *UserCouponResp
type WxPayNotifyReq ¶
type WxPayNotifyReq struct {
ID string `json:"id"`
CreateTime time.Time `json:"create_time"`
ResourceType string `json:"resource_type"`
EventType string `json:"event_type"`
Summary string `json:"summary"`
Resource struct {
OriginalType string `json:"original_type"`
Algorithm string `json:"algorithm"`
Ciphertext string `json:"ciphertext"`
AssociatedData string `json:"associated_data"`
Nonce string `json:"nonce"`
} `json:"resource"`
}
type WxPayNotifyResp ¶
Click to show internal directories.
Click to hide internal directories.