Documentation
¶
Overview ¶
Code generated by goctl. DO NOT EDIT.
Index ¶
- type AddAttentionReq
- type AddAttentionResp
- type AddCouponReq
- type AddCouponResp
- type AddMemberAddressReq
- type AddMemberAddressResp
- type AddProductCollectionReq
- type AddProductCollectionResp
- type AddReadHistoryReq
- type AddReadHistoryResp
- type AdvertiseList
- type Brand
- type BrandList
- type BrandListData
- type BrandListReq
- type BrandListResp
- type BrandProductList
- type CalcAmount
- type CancelUserOrderReq
- type CancelUserOrderResp
- type CarItemListPromotionReq
- type CarItemtListPromotionResp
- type CarItemtPromotionListData
- type CartItemAddReq
- type CartItemAddResp
- type CartItemClearResp
- type CartItemDeleteReq
- type CartItemDeleteResp
- type CartItemListResp
- type CartItemProductAttributeList
- type CartItemSkuStockList
- type CartItemUpdateAttrReq
- type CartItemUpdateQuantityReq
- type CartItemUpdateResp
- type CartListData
- type CartProductData
- type CartProductReq
- type CartProductResp
- type CartPromotionItemList
- type ConfirmReceiveOrderReq
- type ConfirmReceiveOrderResp
- type CouponList
- type CouponListByCartData
- type CouponListByCartReq
- type CouponListByCartResp
- type Data
- type DeleteAttentionReq
- type DeleteAttentionResp
- type DeleteMemberAddressReq
- type DeleteMemberAddressResp
- type DeleteOrderReq
- type DeleteOrderResp
- type GenerateConfirmOrderReq
- type GenerateConfirmOrderResp
- type GenerateOrderData
- type GenerateOrderReq
- type GenerateOrderResp
- type HomeFlashPromotion
- type HomeResp
- type InfoResp
- type IntegrationConsumeSetting
- type ListAttentionData
- type ListAttentionResp
- type ListCouponData
- type ListCouponHistoryData
- type ListCouponHistoryReq
- type ListCouponHistoryResp
- type ListCouponReq
- type ListCouponResp
- type ListMemberAddressData
- type ListMemberAddressResp
- type ListOrderData
- type ListOrderItemData
- type LoginData
- type LoginReq
- type LoginResp
- type MemberData
- type MemberReceiveAddressList
- type OrderDetailModel
- type OrderDetailReq
- type OrderDetailResp
- type OrderListReq
- type OrderListResp
- type OrderPayQueryReq
- type OrderPayQueryResp
- type OrderPayReq
- type OrderPayResp
- type PayCallbackReq
- type PayCallbackResp
- type Product
- type ProductAttributeList
- type ProductAttributeValueList
- type ProductCateListData
- type ProductCollectionClearResp
- type ProductCollectionDeleteReq
- type ProductCollectionDeleteResp
- type ProductCollectionList
- type ProductCollectionListResp
- type ProductData
- type ProductFullReductionList
- type ProductLadderList
- type ProductList
- type QueryBrandProductListReq
- type QueryBrandProductListResp
- type QueryCouponListByProductIdReq
- type QueryProductCateListByIdReq
- type QueryProductCateListResp
- type QueryProductListData
- type QueryProductListReq
- type QueryProductListResp
- type QueryProductReq
- type QueryProductResp
- type ReadHistoryDeleteReq
- type ReadHistoryDeleteResp
- type ReadHistoryList
- type ReadHistoryListResp
- type RecommendBrandListReq
- type RecommendBrandListResp
- type RecommendHotProductListReq
- type RecommendHotProductListResp
- type RecommendNewProductListReq
- type RecommendNewProductListResp
- type RecommendProductListReq
- type RecommendProductListResp
- type RegisterReq
- type RegisterResp
- type ReturnApplyReq
- type ReturnApplyResp
- type SkuStockList
- type SubjectList
- type SubjectListReq
- type SubjectListResp
- type UpdateMemberAddressReq
- type UpdateMemberAddressResp
- type UpdateMemberReq
- type UpdateMemberResp
- type UpdatePasswordReq
- type UpdatePasswordResp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddAttentionReq ¶
type AddAttentionResp ¶
type AddCouponReq ¶
type AddCouponReq struct {
CouponId int64 `json:"couponId"`
}
type AddCouponResp ¶
type AddMemberAddressReq ¶
type AddMemberAddressReq struct { Name string `json:"name"` // 收货人名称 PhoneNumber string `json:"phoneNumber"` DefaultStatus int32 `json:"defaultStatus"` // 是否为默认 PostCode string `json:"postCode"` // 邮政编码 Province string `json:"province"` // 省份/直辖市 City string `json:"city"` // 城市 Region string `json:"region"` // 区 DetailAddress string `json:"detailAddress"` // 详细地址(街道) }
type AddMemberAddressResp ¶
type AddProductCollectionReq ¶
type AddReadHistoryReq ¶
type AddReadHistoryResp ¶
type AdvertiseList ¶
type AdvertiseList struct { ID int64 `json:"id"` Name string `json:"name"` Type int32 `json:"type"` Pic string `json:"pic"` StartTime string `json:"startTime"` EndTime string `json:"endTime"` Status int32 `json:"status"` ClickCount int32 `json:"clickCount"` OrderCount int32 `json:"orderCount"` URL string `json:"url"` Sort int32 `json:"sort"` }
type Brand ¶
type Brand struct { Id int64 `json:"id"` Name string `json:"name"` FirstLetter string `json:"firstLetter"` Sort int32 `json:"sort"` FactoryStatus int32 `json:"factoryStatus"` ShowStatus int32 `json:"showStatus"` ProductCount int32 `json:"productCount"` ProductCommentCount int32 `json:"productCommentCount"` Logo string `json:"logo"` BigPic string `json:"bigPic"` BrandStory string `json:"brandStory"` }
type BrandList ¶
type BrandList struct { ID int64 `json:"id"` Name string `json:"name"` FirstLetter string `json:"firstLetter"` Sort int32 `json:"sort"` FactoryStatus int32 `json:"factoryStatus"` ShowStatus int32 `json:"showStatus"` ProductCount int32 `json:"productCount"` ProductCommentCount int32 `json:"productCommentCount"` Logo string `json:"logo"` BigPic string `json:"bigPic"` }
type BrandListData ¶
type BrandListData struct { Id int64 `json:"id"` Name string `json:"name"` FirstLetter string `json:"firstLetter"` Sort int32 `json:"sort"` FactoryStatus int32 `json:"factoryStatus"` ShowStatus int32 `json:"showStatus"` ProductCount int32 `json:"productCount"` ProductCommentCount int32 `json:"productCommentCount"` Logo string `json:"logo"` BigPic string `json:"bigPic"` }
type BrandListReq ¶ added in v0.0.2
type BrandListResp ¶
type BrandListResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []BrandListData `json:"data"` }
type BrandProductList ¶
type BrandProductList struct { Id int64 `json:"id"` BrandId int64 `json:"brandId"` ProductCategoryId int64 `json:"productCategoryId"` FeightTemplateId int64 `json:"feightTemplateId"` ProductAttributeCategoryId int64 `json:"productAttributeCategoryId"` Name string `json:"name"` Pic string `json:"pic"` ProductSn string `json:"productSn"` DeleteStatus int32 `json:"deleteStatus"` PublishStatus int32 `json:"publishStatus"` NewStatus int32 `json:"newStatus"` RecommandStatus int32 `json:"recommandStatus"` VerifyStatus int32 `json:"verifyStatus"` Sort int32 `json:"sort"` Sale int32 `json:"sale"` Price int64 `json:"price"` PromotionPrice int64 `json:"promotionPrice"` GiftGrowth int32 `json:"giftGrowth"` GiftPoint int32 `json:"giftPoint"` UsePointLimit int32 `json:"usePointLimit"` SubTitle string `json:"subTitle"` OriginalPrice int64 `json:"originalPrice"` Stock int32 `json:"stock"` LowStock int32 `json:"lowStock"` Unit string `json:"unit"` Weight int64 `json:"weight"` PreviewStatus int32 `json:"previewStatus"` ServiceIDS string `json:"serviceIds"` Keywords string `json:"keywords"` Note string `json:"note"` AlbumPics string `json:"albumPics"` DetailTitle string `json:"detailTitle"` PromotionStartTime string `json:"promotionStartTime"` PromotionEndTime string `json:"promotionEndTime"` PromotionPerLimit int32 `json:"promotionPerLimit"` PromotionType int32 `json:"promotionType"` BrandName string `json:"brandName"` ProductCategoryName string `json:"productCategoryName"` Description string `json:"description"` }
type CalcAmount ¶
type CancelUserOrderReq ¶
type CancelUserOrderReq struct {
OrderId int64 `form:"orderId"`
}
type CancelUserOrderResp ¶
type CarItemListPromotionReq ¶
type CarItemListPromotionReq struct {
Ids []int64 `json:"ids,optional"`
}
type CarItemtListPromotionResp ¶
type CarItemtListPromotionResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []CarItemtPromotionListData `json:"data"` }
type CarItemtPromotionListData ¶
type CarItemtPromotionListData struct { Id int64 `json:"id"` ProductId int64 `json:"productId"` ProductSkuId int64 `json:"productSkuId"` MemberId int64 `json:"memberId"` Quantity int32 `json:"quantity"` // 购买数量 Price int64 `json:"price"` // 添加到购物车的价格 ProductPic string `json:"productPic"` // 商品主图 ProductName string `json:"productName"` // 商品名称 ProductSubTitle string `json:"productSubTitle"` // 商品副标题(卖点) ProductSkuCode string `json:"productSkuCode"` // 商品sku条码 MemberNickname string `json:"memberNickname"` // 会员昵称 CreateDate string `json:"createDate"` // 创建时间 ModifyDate string `json:"modifyDate"` // 修改时间 DeleteStatus int32 `json:"deleteStatus"` // 是否删除 ProductCategoryId int64 `json:"productCategoryId"` // 商品分类 ProductBrand string `json:"productBrand"` ProductSn string `json:"productSn"` ProductAttr string `json:"productAttr"` // 商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}] PromotionMessage string `json:"promotionMessage"` //促销活动信息 ReduceAmount int64 `json:"reduceAmount"` //促销活动减去的金额,针对每个商品 RealStock int32 `json:"realStock"` //商品的真实库存(剩余库存-锁定库存) Integration int32 `json:"integration"` //购买商品赠送积分 Growth int32 `json:"growth"` //购买商品赠送成长值 }
type CartItemAddReq ¶
type CartItemAddReq struct { ProductId int64 `json:"productId"` ProductSkuId int64 `json:"productSkuId"` Quantity int32 `json:"quantity"` // 购买数量 Price int64 `json:"price"` // 添加到购物车的价格 ProductPic string `json:"productPic"` // 商品主图 ProductName string `json:"productName"` // 商品名称 ProductSubTitle string `json:"productSubTitle"` // 商品副标题(卖点) ProductSkuCode string `json:"productSkuCode"` // 商品sku条码 ProductCategoryId int64 `json:"productCategoryId"` // 商品分类 ProductBrand string `json:"productBrand"` ProductSn string `json:"productSn"` ProductAttr string `json:"productAttr"` // 商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}] }
type CartItemAddResp ¶
type CartItemClearResp ¶
type CartItemDeleteReq ¶
type CartItemDeleteReq struct {
Ids []int64 `json:"ids"`
}
type CartItemDeleteResp ¶
type CartItemListResp ¶
type CartItemListResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []CartListData `json:"data"` }
type CartItemProductAttributeList ¶
type CartItemProductAttributeList struct { Id int64 `json:"id"` ProductAttributeCategoryId int64 `json:"productAttributeCategoryId"` Name string `json:"name"` SelectType int32 `json:"selectType"` InputType int32 `json:"inputType"` InputList string `json:"inputList"` Sort int32 `json:"sort"` FilterType int32 `json:"filterType"` SearchType int32 `json:"searchType"` RelatedStatus int32 `json:"relatedStatus"` HandAddStatus int32 `json:"handAddStatus"` Type int32 `json:"type"` }
type CartItemSkuStockList ¶
type CartItemSkuStockList struct { Id int64 `json:"id"` ProductId int64 `json:"productId"` SkuCode string `json:"skuCode"` // sku编码 Price int64 `json:"price"` Stock int32 `json:"stock"` // 库存 LowStock int32 `json:"lowStock"` // 预警库存 Pic string `json:"pic"` // 展示图片 Sale int32 `json:"sale"` // 销量 PromotionPrice int64 `json:"promotionPrice"` // 单品促销价格 LockStock int32 `json:"lockStock"` // 锁定库存 SpData string `json:"spData"` // 商品销售属性,json格式 }
type CartItemUpdateAttrReq ¶
type CartItemUpdateAttrReq struct { Id int64 `json:"id"` ProductId int64 `json:"productId"` ProductSkuId int64 `json:"productSkuId"` Quantity int32 `json:"quantity"` // 购买数量 Price int64 `json:"price"` // 添加到购物车的价格 ProductPic string `json:"productPic"` // 商品主图 ProductName string `json:"productName"` // 商品名称 ProductSubTitle string `json:"productSubTitle"` // 商品副标题(卖点) ProductSkuCode string `json:"productSkuCode"` // 商品sku条码 DeleteStatus int32 `json:"deleteStatus"` // 是否删除 ProductCategoryId int64 `json:"productCategoryId"` // 商品分类 ProductBrand string `json:"productBrand"` ProductSn string `json:"productSn"` ProductAttr string `json:"productAttr"` // 商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}] }
type CartItemUpdateResp ¶
type CartListData ¶
type CartListData struct { Id int64 `json:"id"` ProductId int64 `json:"productId"` ProductSkuId int64 `json:"productSkuId"` MemberId int64 `json:"memberId"` Quantity int32 `json:"quantity"` // 购买数量 Price int64 `json:"price"` // 添加到购物车的价格 ProductPic string `json:"productPic"` // 商品主图 ProductName string `json:"productName"` // 商品名称 ProductSubTitle string `json:"productSubTitle"` // 商品副标题(卖点) ProductSkuCode string `json:"productSkuCode"` // 商品sku条码 MemberNickname string `json:"memberNickname"` // 会员昵称 CreateDate string `json:"createDate"` // 创建时间 ModifyDate string `json:"modifyDate"` // 修改时间 DeleteStatus int32 `json:"deleteStatus"` // 是否删除 ProductCategoryId int64 `json:"productCategoryId"` // 商品分类 ProductBrand string `json:"productBrand"` ProductSn string `json:"productSn"` ProductAttr string `json:"productAttr"` // 商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}] }
type CartProductData ¶
type CartProductData struct { ProductAttributeList []CartItemProductAttributeList `json:"productAttributeList"` SkuStockList []CartItemSkuStockList `json:"skuStockList"` }
type CartProductReq ¶
type CartProductReq struct {
ProductId int64 `path:"productId"`
}
type CartProductResp ¶
type CartProductResp struct { Code int64 `json:"code"` Message string `json:"message"` Data CartProductData `json:"data"` }
type CartPromotionItemList ¶
type CartPromotionItemList struct { Id int64 `json:"id"` ProductId int64 `json:"productId"` ProductSkuId int64 `json:"productSkuId"` MemberId int64 `json:"memberId"` Quantity int32 `json:"quantity"` // 购买数量 Price int64 `json:"price"` // 添加到购物车的价格 ProductPic string `json:"productPic"` // 商品主图 ProductName string `json:"productName"` // 商品名称 ProductSubTitle string `json:"productSubTitle"` // 商品副标题(卖点) ProductSkuCode string `json:"productSkuCode"` // 商品sku条码 MemberNickname string `json:"memberNickname"` // 会员昵称 CreateDate string `json:"createDate"` // 创建时间 ModifyDate string `json:"modifyDate"` // 修改时间 DeleteStatus int32 `json:"deleteStatus"` // 是否删除 ProductCategoryId int64 `json:"productCategoryId"` // 商品分类 ProductBrand string `json:"productBrand"` ProductSn string `json:"productSn"` ProductAttr string `json:"productAttr"` // 商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}] PromotionMessage string `json:"promotionMessage"` //促销活动信息 ReduceAmount int64 `json:"reduceAmount"` //促销活动减去的金额,针对每个商品 RealStock int32 `json:"realStock"` //商品的真实库存(剩余库存-锁定库存) Integration int32 `json:"integration"` //购买商品赠送积分 Growth int32 `json:"growth"` //购买商品赠送成长值 }
type ConfirmReceiveOrderReq ¶
type ConfirmReceiveOrderReq struct {
OrderId int64 `form:"orderId"`
}
type ConfirmReceiveOrderResp ¶
type CouponList ¶
type CouponList struct { Id int64 `json:"id"` Type int32 `json:"type"` Name string `json:"name"` Platform int32 `json:"platform"` Count int32 `json:"count"` Amount int64 `json:"amount"` PerLimit int32 `json:"perLimit"` MinPoint int64 `json:"minPoint"` StartTime string `json:"startTime"` EndTime string `json:"endTime"` UseType int32 `json:"useType"` PublishCount int32 `json:"publishCount"` UseCount int32 `json:"useCount"` ReceiveCount int32 `json:"receiveCount"` EnableTime string `json:"enableTime"` }
type CouponListByCartData ¶ added in v0.0.2
type CouponListByCartData struct { EnableList interface{} `json:"enableList"` DisableList interface{} `json:"disableList"` }
type CouponListByCartReq ¶
type CouponListByCartReq struct {
Type int32 `form:"type"` // 使用状态-使用可用:0->不可用;1->可用
}
type CouponListByCartResp ¶
type CouponListByCartResp struct { Code int64 `json:"code"` Message string `json:"message"` Data CouponListByCartData `json:"data"` }
type Data ¶
type Data struct { AdvertiseList []AdvertiseList `json:"advertiseList"` //获取首页广告 BrandList []BrandList `json:"brandList"` //获取推荐品牌 HomeFlashPromotion HomeFlashPromotion `json:"homeFlashPromotion"` //获取秒杀信息 NewProductList []ProductList `json:"newProductList"` //获取新品推荐 HotProductList []ProductList `json:"hotProductList"` //获取人气推荐 SubjectList []SubjectList `json:"subjectList"` //获取推荐专题 }
type DeleteAttentionReq ¶
type DeleteAttentionReq struct {
BrandIds []int64 `form:"brandId"`
}
type DeleteAttentionResp ¶
type DeleteMemberAddressReq ¶
type DeleteMemberAddressReq struct {
Ids []int64 `form:"ids"`
}
type DeleteMemberAddressResp ¶
type DeleteOrderReq ¶
type DeleteOrderReq struct {
OrderId int64 `form:"orderId"`
}
type DeleteOrderResp ¶
type GenerateConfirmOrderReq ¶
type GenerateConfirmOrderReq struct {
Ids []int64 `json:"ids,optional"`
}
type GenerateConfirmOrderResp ¶
type GenerateConfirmOrderResp struct { Code int64 `json:"code"` Message string `json:"message"` Data OrderDetailModel `json:"data"` }
type GenerateOrderData ¶
type GenerateOrderData struct { Id int64 `json:"id"` // 订单id MemberId int64 `json:"memberId"` // 会员id MemberUsername string `json:"memberUserName"` // 用户帐号 TotalAmount int64 `json:"totalAmount"` // 订单总金额 PayAmount int64 `json:"payAmount"` // 应付金额(实际支付金额) FreightAmount int64 `json:"freightAmount"` // 运费金额 PromotionAmount int64 `json:"promotionAmount"` // 促销优化金额(促销价、满减、阶梯价) IntegrationAmount int64 `json:"integrationAmount"` // 积分抵扣金额 CouponAmount int64 `json:"couponAmount"` // 优惠券抵扣金额 DiscountAmount int64 `json:"discountAmount"` // 管理员后台调整订单使用的折扣金额 PayType int32 `json:"payType"` // 支付方式:0->未支付;1->支付宝;2->微信 SourceType int32 `json:"sourceType"` // 订单来源:0->PC订单;1->app订单 Status int32 `json:"status"` // 订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单 OrderType int32 `json:"orderType"` // 订单类型:0->正常订单;1->秒杀订单 Integration int32 `json:"integration"` // 可以获得的积分 Growth int32 `json:"growth"` // 可以活动的成长值 PromotionInfo string `json:"promotionInfo"` // 活动信息 Note string `json:"note"` // 订单备注 UseIntegration int32 `json:"useIntegration"` // 下单时使用的积分 }
type GenerateOrderReq ¶
type GenerateOrderResp ¶
type GenerateOrderResp struct { Code int64 `json:"code"` Message string `json:"message"` Data GenerateOrderData `json:"data"` }
type HomeFlashPromotion ¶
type HomeFlashPromotion struct { StartTime string `json:"startTime"` EndTime string `json:"endTime"` NextStartTime string `json:"nextStartTime"` NextEndTime string `json:"nextEndTime"` ProductList []ProductList `json:"productList"` }
type InfoResp ¶
type InfoResp struct { Code int64 `json:"code"` Message string `json:"message"` Data MemberData `json:"data"` }
type ListAttentionData ¶
type ListAttentionData struct { Id int64 `json:"id"` MemberId int64 `json:"memberId"` // 会员id MemberNickName string `json:"memberNickName"` // 会员姓名 MemberIcon string `json:"memberIcon"` // 会员头像 BrandId int64 `json:"brandId"` // 品牌id BrandName string `json:"brandName"` // 品牌名称 BrandLogo string `json:"brandLogo"` // 品牌Logo BrandCity string `json:"brandCity"` // 品牌所在城市 CreateTime string `json:"createTime"` // 关注时间 }
type ListAttentionResp ¶
type ListAttentionResp struct { Data []ListAttentionData `json:"data"` Success bool `json:"success"` Code int64 `json:"code"` Message string `json:"message"` }
type ListCouponData ¶
type ListCouponData struct { Id int64 `json:"id"` Type int32 `json:"type"` // 优惠券类型;0->全场赠券;1->会员赠券;2->购物赠券;3->注册赠券 Name string `json:"name"` Platform int32 `json:"platform"` // 使用平台:0->全部;1->移动;2->PC Count int32 `json:"count"` // 数量 Amount int64 `json:"amount"` // 金额 PerLimit int32 `json:"perLimit"` // 每人限领张数 MinPoint int64 `json:"minPoint"` // 使用门槛;0表示无门槛 StartTime string `json:"startTime"` EndTime string `json:"endTime"` UseType int32 `json:"useType"` // 使用类型:0->全场通用;1->指定分类;2->指定商品 Note string `json:"note"` // 备注 PublishCount int32 `json:"publishCount"` // 发行数量 UseCount int32 `json:"useCount"` // 已使用数量 ReceiveCount int32 `json:"receiveCount"` // 领取数量 EnableTime string `json:"enableTime"` // 可以领取的日期 Code string `json:"code"` // 优惠码 MemberLevel int32 `json:"memberLevel"` // 可领取的会员类型:0->无限时 }
type ListCouponHistoryData ¶
type ListCouponHistoryData struct { Id int64 `json:"id"` CouponId int64 `json:"couponId"` MemberId int64 `json:"memberId"` CouponCode string `json:"couponCode"` MemberNickname string `json:"memberNickName"` // 领取人昵称 GetType int32 `json:"getType"` // 获取类型:0->后台赠送;1->主动获取 CreateTime string `json:"createTime"` UseStatus int32 `json:"useStatus"` // 使用状态:0->未使用;1->已使用;2->已过期 UseTime string `json:"useTime"` // 使用时间 OrderId int64 `json:"orderId"` // 订单编号 OrderSn string `json:"orderSn"` // 订单号码 }
type ListCouponHistoryReq ¶
type ListCouponHistoryReq struct {
UseStatus int32 `path:"useStatus,default=3"` // 使用状态:0->未使用;1->已使用;2->已过期
}
type ListCouponHistoryResp ¶
type ListCouponHistoryResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []*ListCouponHistoryData `json:"data"` }
type ListCouponReq ¶
type ListCouponReq struct {
UseStatus int32 `form:"useStatus,default=3"` // 使用状态:0->未使用;1->已使用;2->已过期
}
type ListCouponResp ¶
type ListCouponResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []*ListCouponData `json:"data"` }
type ListMemberAddressData ¶
type ListMemberAddressData struct { Id int64 `json:"id"` MemberId int64 `json:"memberId"` Name string `json:"name"` // 收货人名称 PhoneNumber string `json:"phoneNumber"` DefaultStatus int32 `json:"defaultStatus"` // 是否为默认 PostCode string `json:"postCode"` // 邮政编码 Province string `json:"province"` // 省份/直辖市 City string `json:"city"` // 城市 Region string `json:"region"` // 区 DetailAddress string `json:"detailAddress"` // 详细地址(街道) }
type ListMemberAddressResp ¶
type ListMemberAddressResp struct { Data []ListMemberAddressData `json:"data"` Success bool `json:"success"` Code int64 `json:"code"` Message string `json:"message"` }
type ListOrderData ¶
type ListOrderData struct { Id int64 `json:"id"` // 订单id MemberId int64 `json:"memberId"` CouponId int64 `json:"couponId"` OrderSn string `json:"orderSn"` // 订单编号 CreateTime string `json:"createTime"` // 提交时间 MemberUsername string `json:"memberUserName"` // 用户帐号 TotalAmount int64 `json:"totalAmount"` // 订单总金额 PayAmount int64 `json:"payAmount"` // 应付金额(实际支付金额) FreightAmount int64 `json:"freightAmount"` // 运费金额 PromotionAmount int64 `json:"promotionAmount"` // 促销优化金额(促销价、满减、阶梯价) IntegrationAmount int64 `json:"integrationAmount"` // 积分抵扣金额 CouponAmount int64 `json:"couponAmount"` // 优惠券抵扣金额 DiscountAmount int64 `json:"discountAmount"` // 管理员后台调整订单使用的折扣金额 PayType int32 `json:"payType"` // 支付方式:0->未支付;1->支付宝;2->微信 SourceType int32 `json:"sourceType"` // 订单来源:0->PC订单;1->app订单 Status int32 `json:"status"` // 订单状态:0->待付款;1->待发货;2->已发货;3->已完成;4->已关闭;5->无效订单 OrderType int32 `json:"orderType"` // 订单类型:0->正常订单;1->秒杀订单 DeliveryCompany string `json:"deliveryCompany"` // 物流公司(配送方式) DeliverySn string `json:"deliverySn"` // 物流单号 AutoConfirmDay int32 `json:"autoConfirmDay"` // 自动确认时间(天) Integration int32 `json:"integration"` // 可以获得的积分 Growth int32 `json:"growth"` // 可以活动的成长值 PromotionInfo string `json:"promotionInfo"` // 活动信息 BillType int32 `json:"billType"` // 发票类型:0->不开发票;1->电子发票;2->纸质发票 BillHeader string `json:"billHeader"` // 发票抬头 BillContent string `json:"billContent"` // 发票内容 BillReceiverPhone string `json:"billReceiverPhone"` // 收票人电话 BillReceiverEmail string `json:"billReceiverEmail"` // 收票人邮箱 ReceiverName string `json:"receiverName"` // 收货人姓名 ReceiverPhone string `json:"receiverPhone"` // 收货人电话 ReceiverPostCode string `json:"receiverPostCode"` // 收货人邮编 ReceiverProvince string `json:"receiverProvince"` // 省份/直辖市 ReceiverCity string `json:"receiverCity"` // 城市 ReceiverRegion string `json:"receiverRegion"` // 区 ReceiverDetailAddress string `json:"receiverDetailAddress"` // 详细地址 Note string `json:"note"` // 订单备注 ConfirmStatus int32 `json:"confirmStatus"` // 确认收货状态:0->未确认;1->已确认 DeleteStatus int32 `json:"deleteStatus"` // 删除状态:0->未删除;1->已删除 UseIntegration int32 `json:"useIntegration"` // 下单时使用的积分 PaymentTime string `json:"paymentTime"` // 支付时间 DeliveryTime string `json:"deliveryTime"` // 发货时间 ReceiveTime string `json:"receiveTime"` // 确认收货时间 CommentTime string `json:"commentTime"` // 评价时间 ModifyTime string `json:"modifyTime"` // 修改时间 ListOrderItem []ListOrderItemData `json:"orderItemList"` // 商品数据 }
type ListOrderItemData ¶
type ListOrderItemData struct { Id int64 `json:"id"` OrderId int64 `json:"orderId"` // 订单id OrderSn string `json:"orderSn"` // 订单编号 ProductId int64 `json:"productId"` ProductPic string `json:"productPic"` ProductName string `json:"productName"` ProductBrand string `json:"productBrand"` ProductSn string `json:"productSn"` ProductPrice int64 `json:"productPrice"` // 销售价格 ProductQuantity int32 `json:"productQuantity"` // 购买数量 ProductSkuId int64 `json:"productSkuId"` // 商品sku编号 ProductSkuCode string `json:"productSkuCode"` // 商品sku条码 ProductCategoryId int64 `json:"productCategoryId"` // 商品分类id PromotionName string `json:"promotionName"` // 商品促销名称 PromotionAmount int64 `json:"promotionAmount"` // 商品促销分解金额 CouponAmount int64 `json:"couponAmount"` // 优惠券优惠分解金额 IntegrationAmount int64 `json:"integrationAmount"` // 积分优惠分解金额 RealAmount int64 `json:"realAmount"` // 该商品经过优惠后的分解金额 GiftIntegration int32 `json:"giftIntegration"` GiftGrowth int32 `json:"giftGrowth"` ProductAttr string `json:"productAttr"` // 商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}] }
type MemberData ¶
type MemberData struct { Id int64 `json:"id"` MemberLevelId int64 `json:"memberLevelId"` Username string `json:"username"` // 用户名 Nickname string `json:"nickname"` // 昵称 Phone string `json:"phone"` // 手机号码 Status int32 `json:"status"` // 帐号启用状态:0->禁用;1->启用 CreateTime string `json:"createTime"` // 注册时间 Icon string `json:"icon"` // 头像 Gender int32 `json:"gender"` // 性别:0->未知;1->男;2->女 Birthday string `json:"birthday"` // 生日 City string `json:"city"` // 所做城市 Job string `json:"job"` // 职业 PersonalizedSignature string `json:"personalizedSignature"` // 个性签名 SourceType int32 `json:"sourceType"` // 用户来源 Integration int32 `json:"integration"` // 积分 Growth int32 `json:"growth"` // 成长值 LuckeyCount int32 `json:"luckeyCount"` // 剩余抽奖次数 HistoryIntegration int32 `json:"historyIntegration"` // 历史积分数量 CouponCount int32 `json:"couponCount"` // 优惠券数量 }
type MemberReceiveAddressList ¶
type MemberReceiveAddressList struct { Id int64 `json:"id"` MemberId int64 `json:"memberId"` Name string `json:"name"` PhoneNumber string `json:"phoneNumber"` DefaultStatus int32 `json:"defaultStatus"` PostCode string `json:"postCode"` Province string `json:"province"` City string `json:"city"` Region string `json:"region"` DetailAddress string `json:"detailAddress"` }
type OrderDetailModel ¶
type OrderDetailModel struct { CartPromotionItemList []CartPromotionItemList `json:"cartPromotionItemList"` MemberReceiveAddressList []MemberReceiveAddressList `json:"memberReceiveAddressList"` CouponHistoryDetailList interface{} `json:"couponHistoryDetailList"` IntegrationConsumeSetting IntegrationConsumeSetting `json:"integrationConsumeSetting"` MemberIntegration int64 `json:"memberIntegration"` CalcAmount CalcAmount `json:"calcAmount"` }
type OrderDetailReq ¶
type OrderDetailReq struct {
OrderId int64 `form:"orderId"`
}
type OrderDetailResp ¶
type OrderDetailResp struct { Code int64 `json:"code"` Message string `json:"message"` Data ListOrderData `json:"data"` }
type OrderListReq ¶
type OrderListResp ¶
type OrderListResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []*ListOrderData `json:"data"` }
type OrderPayQueryReq ¶
type OrderPayQueryReq struct {
OrderId int64 `json:"orderId"`
}
type OrderPayQueryResp ¶
type OrderPayReq ¶
type OrderPayResp ¶
type PayCallbackReq ¶
type PayCallbackResp ¶
type Product ¶
type Product struct { Id int64 `json:"id"` BrandId int64 `json:"brandId"` ProductCategoryId int64 `json:"productCategoryId"` FeightTemplateId int64 `json:"feightTemplateId"` ProductAttributeCategoryId int64 `json:"productAttributeCategoryId"` Name string `json:"name"` Pic string `json:"pic"` ProductSn string `json:"productSn"` DeleteStatus int32 `json:"deleteStatus"` PublishStatus int32 `json:"publishStatus"` NewStatus int32 `json:"newStatus"` RecommandStatus int32 `json:"recommandStatus"` VerifyStatus int32 `json:"verifyStatus"` Sort int32 `json:"sort"` Sale int32 `json:"sale"` Price int64 `json:"price"` PromotionPrice int64 `json:"promotionPrice"` GiftGrowth int32 `json:"giftGrowth"` GiftPoint int32 `json:"giftPoint"` UsePointLimit int32 `json:"usePointLimit"` SubTitle string `json:"subTitle"` OriginalPrice int64 `json:"originalPrice"` Stock int32 `json:"stock"` LowStock int32 `json:"lowStock"` Unit string `json:"unit"` Weight int64 `json:"weight"` PreviewStatus int32 `json:"previewStatus"` ServiceIds string `json:"serviceIds"` Keywords string `json:"keywords"` Note string `json:"note"` AlbumPics string `json:"albumPics"` DetailTitle string `json:"detailTitle"` PromotionStartTime string `json:"promotionStartTime"` PromotionEndTime string `json:"promotionEndTime"` PromotionPerLimit int32 `json:"promotionPerLimit"` PromotionType int32 `json:"promotionType"` BrandName string `json:"brandName"` ProductCategoryName string `json:"productCategoryName"` Description string `json:"description"` DetailDesc string `json:"detailDesc"` DetailHtml string `json:"detailHtml"` DetailMobileHtml string `json:"detailMobileHtml"` }
type ProductAttributeList ¶
type ProductAttributeList struct { Id int64 `json:"id"` ProductAttributeCategoryId int64 `json:"productAttributeCategoryId"` Name string `json:"name"` SelectType int32 `json:"selectType"` InputType int32 `json:"inputType"` InputList string `json:"inputList"` Sort int32 `json:"sort"` FilterType int32 `json:"filterType"` SearchType int32 `json:"searchType"` RelatedStatus int32 `json:"relatedStatus"` HandAddStatus int32 `json:"handAddStatus"` Type int32 `json:"type"` }
type ProductCateListData ¶ added in v0.0.2
type ProductCollectionDeleteReq ¶
type ProductCollectionDeleteReq struct {
Ids []int64 `form:"ids"`
}
type ProductCollectionList ¶
type ProductCollectionList struct { Id int64 `json:"id"` // 编号 MemberId int64 `json:"memberId"` // 会员id MemberNickName string `json:"memberNickName"` // 会员姓名 MemberIcon string `json:"memberIcon"` // 会员头像 ProductId int64 `json:"productId"` // 商品id ProductName string `json:"productName"` // 商品名称 ProductPic string `json:"productPic"` // 商品图片 ProductSubTitle string `json:"productSubTitle"` // 商品标题 ProductPrice int64 `json:"productPrice"` // 商品价格 CreateTime string `json:"createTime"` // 浏览时间 }
type ProductCollectionListResp ¶
type ProductCollectionListResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []ProductCollectionList `json:"data"` //收藏列表 }
type ProductData ¶
type ProductData struct { Product Product `json:"product"` Brand Brand `json:"brand"` ProductAttributeList []ProductAttributeList `json:"productAttributeList"` ProductAttributeValueList []ProductAttributeValueList `json:"productAttributeValueList"` SkuStockList []SkuStockList `json:"skuStockList"` ProductLadderList []ProductLadderList `json:"productLadderList"` ProductFullReductionList []ProductFullReductionList `json:"productFullReductionList"` CouponList []CouponList `json:"couponList"` }
type ProductLadderList ¶
type ProductList ¶
type ProductList struct { Id int64 `json:"id"` BrandId int64 `json:"brandId"` ProductCategoryId int64 `json:"productCategoryId"` FeightTemplateId int64 `json:"feightTemplateId"` ProductAttributeCategoryId int64 `json:"productAttributeCategoryId"` Name string `json:"name"` Pic string `json:"pic"` ProductSn string `json:"productSn"` DeleteStatus int32 `json:"deleteStatus"` PublishStatus int32 `json:"publishStatus"` NewStatus int32 `json:"newStatus"` RecommandStatus int32 `json:"recommandStatus"` VerifyStatus int32 `json:"verifyStatus"` Sort int32 `json:"sort"` Sale int32 `json:"sale"` Price int64 `json:"price"` PromotionPrice int64 `json:"promotionPrice,omitempty"` GiftGrowth int32 `json:"giftGrowth"` GiftPoint int32 `json:"giftPoint"` UsePointLimit int32 `json:"usePointLimit"` SubTitle string `json:"subTitle"` OriginalPrice int64 `json:"originalPrice"` Stock int32 `json:"stock"` LowStock int32 `json:"lowStock"` Unit string `json:"unit"` Weight int64 `json:"weight"` PreviewStatus int32 `json:"previewStatus"` ServiceIDS string `json:"serviceIds"` Keywords string `json:"keywords"` Note string `json:"note"` AlbumPics string `json:"albumPics"` DetailTitle string `json:"detailTitle"` PromotionStartTime string `json:"promotionStartTime,omitempty"` PromotionEndTime string `json:"promotionEndTime,omitempty"` PromotionPerLimit int32 `json:"promotionPerLimit"` PromotionType int32 `json:"promotionType"` BrandName string `json:"brandName"` ProductCategoryName string `json:"productCategoryName"` Description string `json:"description"` }
type QueryBrandProductListReq ¶ added in v0.0.2
type QueryBrandProductListResp ¶ added in v0.0.2
type QueryBrandProductListResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []BrandProductList `json:"data"` }
type QueryCouponListByProductIdReq ¶ added in v0.0.2
type QueryProductCateListByIdReq ¶ added in v0.0.2
type QueryProductCateListByIdReq struct {
ParentId int64 `form:"parentId"` // 上级分类的编号:0表示一级分类
}
type QueryProductCateListResp ¶
type QueryProductCateListResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []ProductCateListData `json:"data"` }
type QueryProductListData ¶
type QueryProductListData struct { Id int64 `json:"id"` BrandId int64 `json:"brandId"` ProductCategoryId int64 `json:"productCategoryId"` FeightTemplateId int64 `json:"feightTemplateId"` ProductAttributeCategoryId int64 `json:"productAttributeCategoryId"` Name string `json:"name"` Pic string `json:"pic"` ProductSn string `json:"productSn"` DeleteStatus int32 `json:"deleteStatus"` PublishStatus int32 `json:"publishStatus"` NewStatus int32 `json:"newStatus"` RecommandStatus int32 `json:"recommandStatus"` VerifyStatus int32 `json:"verifyStatus"` Sort int32 `json:"sort"` Sale int32 `json:"sale"` Price int64 `json:"price"` PromotionPrice int64 `json:"promotionPrice,omitempty"` GiftGrowth int32 `json:"giftGrowth"` GiftPoint int32 `json:"giftPoint"` UsePointLimit int32 `json:"usePointLimit"` SubTitle string `json:"subTitle"` OriginalPrice int64 `json:"originalPrice"` Stock int32 `json:"stock"` LowStock int32 `json:"lowStock"` Unit string `json:"unit"` Weight int64 `json:"weight"` PreviewStatus int32 `json:"previewStatus"` ServiceIDS string `json:"serviceIds"` Keywords string `json:"keywords"` Note string `json:"note"` AlbumPics string `json:"albumPics"` DetailTitle string `json:"detailTitle"` PromotionStartTime string `json:"promotionStartTime,omitempty"` PromotionEndTime string `json:"promotionEndTime,omitempty"` PromotionPerLimit int32 `json:"promotionPerLimit"` PromotionType int32 `json:"promotionType"` BrandName string `json:"brandName"` ProductCategoryName string `json:"productCategoryName"` Description string `json:"description"` }
type QueryProductListReq ¶
type QueryProductListResp ¶
type QueryProductListResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []QueryProductListData `json:"data"` }
type QueryProductReq ¶
type QueryProductReq struct {
ProductId int64 `form:"productId"`
}
type QueryProductResp ¶
type QueryProductResp struct { Code int64 `json:"code"` Message string `json:"message"` Data ProductData `json:"data"` }
type ReadHistoryDeleteReq ¶
type ReadHistoryDeleteReq struct {
Ids []int64 `form:"ids"`
}
type ReadHistoryDeleteResp ¶
type ReadHistoryList ¶
type ReadHistoryList struct { Id int64 `json:"id"` // 编号 MemberId int64 `json:"memberId"` // 会员id MemberNickName string `json:"memberNickName"` // 会员姓名 MemberIcon string `json:"memberIcon"` // 会员头像 ProductId int64 `json:"productId"` // 商品id ProductName string `json:"productName"` // 商品名称 ProductPic string `json:"productPic"` // 商品图片 ProductSubTitle string `json:"productSubTitle"` // 商品标题 ProductPrice int64 `json:"productPrice"` // 商品价格 CreateTime string `json:"createTime"` // 浏览时间 }
type ReadHistoryListResp ¶
type ReadHistoryListResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []ReadHistoryList `json:"data"` //浏览列表 }
type RecommendBrandListReq ¶
type RecommendBrandListResp ¶
type RecommendHotProductListResp ¶
type RecommendHotProductListResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []ProductList `json:"data"` }
type RecommendNewProductListResp ¶
type RecommendNewProductListResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []ProductList `json:"data"` }
type RecommendProductListReq ¶
type RecommendProductListResp ¶
type RecommendProductListResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []ProductList `json:"data"` }
type RegisterReq ¶
type RegisterResp ¶
type ReturnApplyReq ¶
type ReturnApplyReq struct { OrderId int64 `json:"orderId"` ProductId int64 `json:"productId"` OrderSn string `json:"orderSn"` MemberUsername string `json:"memberUsername"` ReturnName string `json:"returnName"` ReturnPhone string `json:"returnPhone"` ProductPic string `json:"productPic"` ProductName string `json:"productName"` ProductBrand string `json:"productBrand"` ProductAttr string `json:"productAttr"` ProductCount int32 `json:"productCount"` ProductPrice int64 `json:"productPrice"` ProductRealPrice int64 `json:"productRealPrice"` Reason string `json:"reason"` Description string `json:"description"` ProofPics string `json:"proofPics"` }
type ReturnApplyResp ¶
type SkuStockList ¶
type SkuStockList struct { Id int64 `json:"id"` ProductId int64 `json:"productId"` SkuCode string `json:"skuCode"` // sku编码 Price int64 `json:"price"` Stock int32 `json:"stock"` // 库存 LowStock int32 `json:"lowStock"` // 预警库存 Pic string `json:"pic"` // 展示图片 Sale int32 `json:"sale"` // 销量 PromotionPrice int64 `json:"promotionPrice"` // 单品促销价格 LockStock int32 `json:"lockStock"` // 锁定库存 SpData string `json:"spData"` // 商品销售属性,json格式 }
type SubjectList ¶
type SubjectList struct { CategoryId int64 `json:"categoryId"` Title string `json:"title"` Pic string `json:"pic"` // 专题主图 ProductCount int32 `json:"productCount"` // 关联产品数量 RecommendStatus int32 `json:"recommendStatus"` CollectCount int32 `json:"collectCount"` ReadCount int32 `json:"readCount"` CommentCount int32 `json:"commentCount"` AlbumPics string `json:"albumPics"` // 画册图片用逗号分割 Description string `json:"description"` ShowStatus int32 `json:"showStatus"` // 显示状态:0->不显示;1->显示 Content string `json:"content"` ForwardCount int32 `json:"forwardCount"` // 转发数 CategoryName string `json:"categoryName"` // 专题分类名称 }
type SubjectListReq ¶ added in v0.0.2
type SubjectListResp ¶ added in v0.0.2
type SubjectListResp struct { Code int64 `json:"code"` Message string `json:"message"` Data []SubjectList `json:"data"` }
type UpdateMemberAddressReq ¶
type UpdateMemberAddressReq struct { Id int64 `json:"id"` Name string `json:"name"` // 收货人名称 PhoneNumber string `json:"phoneNumber"` DefaultStatus int32 `json:"defaultStatus"` // 是否为默认 PostCode string `json:"postCode"` // 邮政编码 Province string `json:"province"` // 省份/直辖市 City string `json:"city"` // 城市 Region string `json:"region"` // 区 DetailAddress string `json:"detailAddress"` // 详细地址(街道) }
type UpdateMemberAddressResp ¶
type UpdateMemberReq ¶
type UpdateMemberReq struct { Id int64 `json:"id"` MemberLevelId int64 `json:"memberLevelId"` Username string `json:"username"` // 用户名 Password string `json:"password"` // 密码 Nickname string `json:"nickname"` // 昵称 Phone string `json:"phone"` // 手机号码 Status int32 `json:"status"` // 帐号启用状态:0->禁用;1->启用 CreateTime string `json:"createTime"` // 注册时间 Icon string `json:"icon"` // 头像 Gender int32 `json:"gender"` // 性别:0->未知;1->男;2->女 Birthday string `json:"birthday"` // 生日 City string `json:"city"` // 所做城市 Job string `json:"job"` // 职业 PersonalizedSignature string `json:"personalizedSignature"` // 个性签名 SourceType int32 `json:"sourceType"` // 用户来源 Integration int32 `json:"integration"` // 积分 Growth int32 `json:"growth"` // 成长值 LuckeyCount int32 `json:"luckeyCount"` // 剩余抽奖次数 HistoryIntegration int32 `json:"historyIntegration"` // 历史积分数量 }
type UpdateMemberResp ¶
type UpdatePasswordReq ¶
type UpdatePasswordReq struct {
Password string `json:"password"` //密码
}
type UpdatePasswordResp ¶
Click to show internal directories.
Click to hide internal directories.