shop

package
v0.0.0-...-fac1178 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KAOLA_COMMON_TAXNOS_GET    = "kaola.common.taxnos.get"    //获取所有行邮税号信息
	KAOLA_COMMON_UNITCODES_GET = "kaola.common.unitcodes.get" //获取所有度量单位信息
	KAOLA_COMMON_COUNTRIES_GET = "kaola.common.countries.get" //获取所有国家信息
	KAOLA_COMMON_PROVINCES_GET = "kaola.common.provinces.get" //获取所有省份信息
	KAOLA_COMMON_CITY_GET      = "kaola.common.city.get"      //获取城市信息
	KAOLA_COMMON_DISTRICT_GET  = "kaola.common.district.get"  //获取城市行政区信息
)
View Source
const (
	KAOLA_ITEMPROPS_GET      = "kaola.itemprops.get"      //获取标准商品类目属性
	KAOLA_ITEMPROPVALUES_GET = "kaola.itempropvalues.get" //获取标准商品类目属性的值
)
View Source
const (
	KAOLA_ITEM_UPDATE_LISTING         = "kaola.item.update.listing"         //商品上架
	KAOLA_ITEM_UPDATE_DELISTING       = "kaola.item.update.delisting"       //商品下架
	KAOLA_ITEM_GET                    = "kaola.item.get"                    //根据商品id获取单个商品的详细信息
	KAOLA_ITEM_BATCH_GET              = "kaola.item.batch.get"              //批量获取商品信息
	KAOLA_ITEM_BATCH_STATUS_GET       = "kaola.item.batch.status.get"       //根据状态查询商品信息
	KAOLA_ITEM_SKU_STOCK_UPDATE       = "kaola.item.sku.stock.update"       //修改指定sku的库存
	KAOLA_ITEM_SKU_SALE_PRICE_UPDATE  = "kaola.item.sku.sale.price.update"  //修改指定sku的销售价
	KAOLA_ITEM_ADDPART                = "kaola.item.addPart"                //新增商品
	KAOLA_ITEM_UPDATE                 = "kaola.item.update"                 //商品修改
	KAOLA_ITEM_IMG_UPLOAD             = "kaola.item.img.upload"             //上传产品图片
	KAOLA_ITEM_IMG_GET                = "kaola.item.img.get"                //商品图片查询
	KAOLA_ITEM_HIDECART_UPDATE        = "kaola.item.hidecart.update"        //设置是否隐藏加入购物车
	KAOLA_ITEM_GETBASICBYKEYS         = "kaola.item.getBasicByKeys"         //批量查询商品,获取库存信息
	KAOLA_ITEM_SEARCHBASICBYCONDITION = "kaola.item.searchBasicByCondition" //根据商品状态查询商品,获取库存信息
	KAOLA_SKU_GETBASICBYKEYS          = "kaola.sku.getBasicByKeys"          //根据sku获取库存信息
	KAOLA_ITEM_OUTERID_UPDATE         = "kaola.item.outerid.update"         //更新商品outerid
)
View Source
const (
	KAOLA_ORDER_SEARCH            = "kaola.order.search"            //根据订单信息查询订单
	KAOLA_ORDER_GET               = "kaola.order.get"               //获取指定订单的信息
	KAOLA_LOGISTICS_DELIVER       = "kaola.logistics.deliver"       //商家发货通知
	KAOLA_LOGISTICS_PACKAGE_ADD   = "kaola.logistics.package.add"   //包裹添加
	KAOLA_LOGISTICS_COMPANIES_GET = "kaola.logistics.companies.get" //获取快递公司的信息
)
View Source
const (
	KAOLA_REFUND_SEARCH      = "kaola.refund.search"      //根据订单信息查询订单
	KAOLA_REFUND_GET         = "kaola.refund.get"         //根据售后单号查询详细新
	KAOLA_REFUND_CHANGETYPE  = "kaola.refund.changetype"  //修改退货退款类型
	KAOLA_REFUND_AGREE       = "kaola.refund.agree"       //同意用户申请退款
	KAOLA_REFUND_REFUSE      = "kaola.refund.refuse"      //拒绝用户申请退款
	KAOLA_REFUNDGOODS_AGREE  = "kaola.refundgoods.agree"  //同意用户申请退货
	KAOLA_REFUNDGOODS_REFUSE = "kaola.refundgoods.refuse" //拒绝用户申请退货
)
View Source
const (
	KAOLA_VENDER_CATEGRORY_GET = "kaola.vender.category.get"  //获取商家类目
	KAOLA_VENDER_BRAND_GET     = "kaola.vender.brand.get"     //获取商家品牌
	KAOLA_VENDER_INFO_GET      = "kaola.vender.info.get"      //获取商家基本信息
	KAOLA_VENDER_WAREHOUSE_GET = "kaola.vender.warehouse.get" //获取商家仓库信息
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BrandInfo

type BrandInfo struct {
	BrandId   int64  `json:"brand_id"`
	BrandName string `json:"brand_name"`
}

type Category

type Category struct {
	CategoryId    int64  `json:"category_id"`
	CategoryName  string `json:"category_name"`
	ParentId      int64  `json:"parent_id"`
	CategoryLevel int    `json:"category_level"`
	IsLeaf        int    `json:"is_leaf"`
}

type City

type City struct {
	CityCode   int64  `json:"city_code"`
	CityName   string `json:"city_name"`
	ParentCode int64  `json:"parent_code"`
	OrderValue int    `json:"order_value"`
}

type Country

type Country struct {
	CountryCode string `json:"country_code"`
	CountryName string `json:"country_name"`
}

type District

type District struct {
	DistrictCode  string `json:"district_code"`
	DisctrictName string `json:"disctrict_name"`
	CityCode      string `json:"city_code"`
	OrderValue    int    `json:"order_value"`
}

type Hs

type Hs struct {
	HsCode           string `json:"hs_code"`
	HsKey            string `json:"hs_key"`
	NationalCategory string `json:"national_category"`
	VatCode          string `json:"vat_code"`
	ConsumerCode     string `json:"consumer_code"`
	FirstUnitCode    string `json:"firstUnitCode"`
	SecondUnitCode   string `json:"secondUnitCode"`
}

type ItemBasic

type ItemBasic struct {
	Id         int        `json:"id"`
	Name       string     `json:"name"`
	ItemNo     string     `json:"item_no"`
	ItemStatus int        `json:"item_status"`
	ItemKey    string     `json:"item_key"`
	SkuList    []SkuBasic `json:"sku_list"`
}

type ItemCategory

type ItemCategory struct {
	Id         int64 `json:"id"`
	ItemId     int64 `json:"item_id"`
	BusinessId int64 `json:"business_id"`
	CategoryId int64 `json:"category_id"`
	Rank       int64 `json:"rank"`
}

type ItemEdit

type ItemEdit struct {
	RawItemEdit          RawItemEdit         `json:"raw_item_edit"`
	Key                  string              `json:"key"`
	ItemCategoryList     []ItemCategory      `json:"item_category_list"`
	ItemPropertyList     []ItemProperty      `json:"item_property_list"`
	ItemTextPropertyList []ItemTextProperyty `json:"item_text_property_list"`
	SkuList              []Sku               `json:"sku_list"`
	ItemImageList        []ItemImage         `json:"item_image_list"`
	ItemPostage          ItemPostage         `json:"item_postage"`
	HideAddToCart        string              `json:"hide_add_to_cart"`
}

type ItemImage

type ItemImage struct {
	Id         int64  `json:"id"`
	ItemId     int64  `json:"item_id"`
	BusinessId int64  `json:"business_id"`
	ImageUrl   string `json:"image_url"`
	ImageType  int    `json:"image_type"`
	OrderValue int    `json:"order_value"`
}

type ItemPostage

type ItemPostage struct {
	Id               int64   `json:"id"`
	ItemId           int64   `json:"item_id"`
	BusinessId       int64   `json:"business_id"`
	IsPostageFree    int     `json:"is_postage_free"`
	PostFee          float64 `json:"post_fee"`
	ExpressFee       float64 `json:"express_fee"`
	EmsFee           float64 `json:"ems_fee"`
	PostageTempateId string  `json:"postage_tempate_id"`
}

type ItemProperty

type ItemProperty struct {
	RawItemProperty RawItemProperty `json:"raw_item_property"`
	PropertyName    PropertyName    `json:"property_name"`
	ProperyValue    PropertyValue   `json:"propery_value"`
}

type ItemTextProperyty

type ItemTextProperyty struct {
	Id          int64  `json:"id"`
	ItemId      int64  `json:"item_id"`
	BusinessId  int64  `json:"business_id"`
	PropNameId  string `json:"prop_name_id"`
	PropnNameCn string `json:"propn_name_cn"`
	TextValue   string `json:"text_value"`
}

type LogisticsCompany

type LogisticsCompany struct {
	ExpressCompanyCode string `json:"express_company_code"`
	ExpressCompanyName string `json:"express_company_name"`
}

type LpExpressInfo

type LpExpressInfo struct {
	LpOrderId          string `json:"lp_order_id"`          //lp_order_id	String		lp单号
	CainiaoStorageCode string `json:"cainiao_storage_code"` //cainiao_storage_code	String		菜鸟仓code
}

type Order

type Order struct {
	*context.Context
}

Package Order struct

func NewOrder

func NewOrder(context *context.Context) *Order

NewOrder instance

func (*Order) GetOrderSearch

func (order *Order) GetOrderSearch(req *ReqOrderSearch) (res ResOrderSearch, err error)

GetOrderSearch (说明:该接口不是实时拉取订单的,链路较长,无法做到很强的时效性,偶尔可能会有延时,为了防止漏单,建议可以延长查询时间或者重复查询)

func (*Order) GetPackageDetail

func (order *Order) GetPackageDetail(req *ReqOrderGet) (res ResOrderGet, err error)

GetPackageDetail package.getPackageDetail 订单详情

type OrderExpress

type OrderExpress struct {
	ExpressCompanyCode string `json:"express_company_code"` //express_company_code	String	EMS	快递公司编码
	ExpressNo          string `json:"express_no"`           //express_no	String	1111	快递运单号
}

type OrderSearch

type OrderSearch struct {
	BuyerAccount           string          `json:"buyer_account"`            //buyer_account	String	XX@163.com	买家用户名
	BuyerPhone             string          `json:"buyer_phone"`              //buyer_phone	String	15663222,0514-88888	买家手机号,座机号码(座机号码用逗号隔开,在手机号码之后)
	OrderStatus            int             `json:"order_status"`             //order_status	int	1	订单状态1(已付款)、2(已发货)、3(已签收)、4(缺货订单)、5(取消待确认)、6(已取消)、7(取消处理中)、8(发货处理中)、12(物流签收)、13(待发货已拦截) 说明:7是处于取消和已取消的一个中间状态,当查询条件为5的时候会返回该状态;8是处于已付款和待发货的一个中间状态,当查询条件为1的时候会返回该状态;12是处于已发货和已签收的一个中间状态,当前查询条件为2时会返回该状态
	OrderId                string          `json:"order_id"`                 //order_id	String	1155566663	订单号
	ReceiverName           string          `json:"receiver_name"`            //receiver_name	String	李四	收件人姓名
	ReceiverPhone          string          `json:"receiver_phone"`           //receiver_phone	String	1556655555	收件人手机
	ReceiverProvinceName   string          `json:"receiver_province_name"`   //receiver_province_name	String	浙江省	收件人省名称
	ReceiverCityName       string          `json:"receiver_city_name"`       //receiver_city_name	String	杭州市	收件人市名称
	ReceiverDistrictName   string          `json:"receiver_district_name"`   //receiver_district_name	String	滨江区	收件人区(县)名称
	ReceiverAddressDetail  string          `json:"receiver_address_detail"`  //receiver_address_detail	String	网易大厦	收件人详细地址
	ReceiverPostCode       string          `json:"receiver_post_code"`       //receiver_post_code	String	310000	收件人邮政编码
	PaySuccessTime         string          `json:"pay_success_time"`         //pay_success_time	String	2015-10-10 11:11:11	支付成功时间YYYY-MM-DD hh:mm:ss
	OrderRealPrice         string          `json:"order_real_price"`         //order_real_price	String	15.2	订单实际价格
	OrderOriginPrice       string          `json:"order_origin_price"`       //order_origin_price	String	15.2	订单原始价格
	ExpressFee             string          `json:"express_fee"`              //express_fee	String	10	邮费
	PayMethodName          string          `json:"pay_method_name"`          //pay_method_name	String	支付宝PC	支付方式(暂弃,暂时详细来源)
	PayMethodSubname       string          `json:"pay_method_subname"`       //pay_method_subname	String	支付宝	支付方式
	CouponAmount           string          `json:"coupon_amount"`            //coupon_amount	String	15.2	优惠券优惠金额
	FinishTime             string          `json:"finish_time"`              //finish_time	String	2015-10-10 11:11:11	订单完成时间
	DeliverTime            string          `json:"deliver_time"`             //deliver_time	String	2015-10-10 11:11:11	发货时间
	OrderSkus              []OrderSku      `json:"order_skus"`               //order_skus	OrderSku[]		订单SKU
	CertName               string          `json:"cert_name"`                //cert_name	String	张三	实名认证姓名
	CertIdNo               string          `json:"cert_id_no"`               //cert_id_no	String	428321198002125465	实名认证身份证号码
	TaxFee                 string          `json:"tax_fee"`                  //tax_fee	String	30	订单税费
	TradeNo                string          `json:"trade_no"`                 //trade_no	String	44154875212462	订单交易流水号
	NeedInvoice            int             `json:"need_invoice"`             //need_invoice	int	0	是否需要发票 1:是  0:否
	InVoiceAmount          string          `json:"in_voice_amount"`          //invoice_amount	String	50	发票金额
	InvoiceTitle           string          `json:"invoice_title"`            //invoice_title	String	张三	发票抬头
	WaitingDeliverTime     string          `json:"waiting_deliver_time"`     //waiting_deliver_time String	2015-10-10 11:11:11	订单待发货时间[备注:此字段为新增字段,历史数据可能为空]
	WaitingCancelTime      string          `json:"waiting_cancel_time"`      //waiting_cancel_time	String	2015-10-10 11:11:11	取消待商家处理时间[备注:此字段为用户申请取消客服同意待商家确认的时间,若用户没有申请,可能为空]
	PresaleOrder           int             `json:"presale_order"`            //presale_order	Int	1	0-非预售订单;1-预售订单
	PreDeliverTime         string          `json:"pre_deliver_time"`         //pre_deliver_time	String	2016-12-15 00:00:00	预计发货时间
	OrderExpress           []OrderExpress  `json:"order_express"`            //order_expresses	OrderExpress[]		快递信息
	LpExpressInfo          []LpExpressInfo `json:"lp_express_info"`          //lp_express_info	lp_expressInfo[]		菜鸟LP信息
	OrderTime              string          `json:"order_time"`               //order_time			订单下单时间
	OrderBusinessRemark    string          `json:"order_business_remark"`    //order_business_remark	String		卖家备注信息
	TaxpayerNo             string          `json:"taxpayer_no"`              //taxpayer_no	String		纳税人识别号
	ImportType             int             `json:"import_type"`              //Import_type			1(未知) 0(直邮) 1(保税) 2(海淘) 3(一般贸易)  4(个人物品清关)
	WarehouseClearanceType int             `json:"warehouse_clearance_type"` //warehouseClearanceType			1(POP认证仓模式)2(入仓模式)3(虚拟仓模式)4(网易物流模式)5(KOF-CC模式)6(个人物品清关模式)
	OrderBuyerRemark       string          `json:"order_buyer_remark"`       //order_buyer_remark			买家备注信息
}

type OrderSku

type OrderSku struct {
	SkuKey             string `json:"sku_key"`              //sku_key	String	22656565	SkuId
	ProductName        string `json:"product_name"`         //sku_key	String	22656565	SkuId
	OriginPrice        string `json:"origin_price"`         //origin_price	String	150.2	订单原始单价
	Count              int    `json:"count"`                //count	int	4	购买数量
	RealTotlePrice     string `json:"real_totle_price"`     //real_totle_price	String	16.2	实付总价
	AcivityTotleAmount string `json:"acivity_totle_amount"` //activity_totle_amount	String	212.2	活动优惠总金额
	GoodsNo            string `json:"goods_no"`             //goods_no	String	XXXXX	货号
	CounponTotleAmount string `json:"counpon_totle_amount"` //coupon_totle_amount	String	15.2	优惠券优惠总金额
	Barcode            string `json:"barcode"`              //barcode	String	XXXXX	商品条形码
	WarehouseCode      int    `json:"warehouse_code"`       //warehouse_code	int	50	仓库编码
	WarehouseName      string `json:"warehouse_name"`       //warehouse_name	String	仓库	仓库名称
	OrderSerialNum     int    `json:"order_serial_num"`     //order_serial_num	Int	1	序列号:报关时使用到排序
	SkuOuterId         string `json:"sku_outer_id"`         //sku_outer_id	String	1233	sku 的outerid
	SkuTaxFee          int    `json:"sku_tax_fee"`          //sku_tax_fee	Int	1233	商品税费

	ItemKey string `json:"item_key"` //item_key	String	833903-61012	itemKey
	HsKey   string `json:"hs_key"`   //hs_key	String	2016040612TAXHSCODE00000627	HScode 的id
}

type PropertyCategory

type PropertyCategory struct {
	RawPropertyCategory RawPropertyCategory `json:"raw_property_category"`
	PropertyName        PropertyName        `json:"property_name"`
	PropertyValueList   []PropertyValue     `json:"property_value_list"`
}

type PropertyEditPolicy

type PropertyEditPolicy struct {
	PropertyNameId string `json:"property_name_id"`
	InputType      string `json:"input_type"`
	Desc           string `json:"desc"`
	MaxLen         int    `json:"max_len"`
	IsMultichoice  int    `json:"is_multichoice"`
	NeedImage      int    `json:"need_image"`
	IsNecessary    int    `json:"is_necessary"`
}

type PropertyName

type PropertyName struct {
	RawPropertyName    RawPropertyName    `json:"raw_property_name"`
	PropertyEditPolicy PropertyEditPolicy `json:"property_edit_policy"`
}

type PropertyValue

type PropertyValue struct {
}

type Province

type Province struct {
	ProvinceCode int64  `json:"province_code"`
	ProvinceName string `json:"province_name"`
	OrderValue   int    `json:"order_value"`
}

type RawItemEdit

type RawItemEdit struct {
	Id                    int64   `json:"id"`
	BusinessId            int64   `json:"business_id"`
	Name                  string  `json:"name"`
	SubTitle              string  `json:"sub_title"`
	ShortTitle            string  `json:"short_title"`
	TenWordDesc           string  `json:"ten_word_desc"`
	ItemNo                string  `json:"item_NO"`
	BrandId               string  `json:"brand_id"`
	BrandName             string  `json:"brand_name"`
	OriginalCountryCodeId string  `json:"original_country_code_id"`
	ConsignArea           string  `json:"consign_area"`
	ConsignAreaId         string  `json:"consign_area_id"`
	WareHouseId           int64   `json:"ware_house_id"`
	Description           string  `json:"description"`
	ItemEditStatus        int     `json:"item_edit_status"`
	TaxCode               string  `json:"tax_code"`
	TaxCodeName           string  `json:"tax_code_name"`
	TaxCodeRate           float64 `json:"tax_code_rate"`
	UnitCode              string  `json:"unit_code"`
	UnitCodeName          string  `json:"unit_code_name"`
	HsId                  string  `json:"hs_id"`
	HsCode                string  `json:"hs_code"`
	ItemUnit              string  `json:"item_unit"`
	FirstUnit             string  `json:"first_unit"`
	FirstUniNum           string  `json:"first_uni_num"`
	SecondUnit            string  `json:"second_unit"`
	SecondUnitNum         string  `json:"second_unit_num"`
	GrossWeight           float64 `json:"gross_weight"`
	Allow7DayRefund       int     `json:"allow_7_day_refund"`
	UpdateTime            string  `json:"update_time"`
	ConsumerCode          string  `json:"consumer_code"`
	EnName                string  `json:"enName"`
	ItemType              string  `json:"item_type"`
	OuterId               string  `json:"outer_id"`
	VatCode               string  `json:"vat_code"`
}

type RawItemProperty

type RawItemProperty struct {
	Id              int64  `json:"id"`
	ItemId          int64  `json:"item_id"`
	BusinessId      int64  `json:"business_id"`
	PropertyValueId string `json:"property_value_id"`
}

type RawPropertyCategory

type RawPropertyCategory struct {
	PropertyNameId string `json:"property_name_id"`
	CategoryId     int64  `json:"category_id"`
}

type RawPropertyName

type RawPropertyName struct {
	PropNameId  string `json:"prop_name_id"`
	PropNameCn  string `json:"prop_name_cn"`
	IsSku       int    `json:"is_sku"`
	IsFilter    int    `json:"is_filter"`
	IsDisplay   int    `json:"is_display"`
	IsColor     int    `json:"is_color"`
	IsLogistics int    `json:"is_logistics"`
	Status      int    `json:"status"`
}

type RawSku

type RawSku struct {
	Id              int64   `json:"id"`
	ItemId          int64   `json:"item_id"`
	BusinessId      int64   `json:"business_id"`
	MarketPrice     float64 `json:"market_price"`
	SalePrice       float64 `json:"sale_price"`
	BarCode         string  `json:"bar_code"`
	MaterialNum     string  `json:"material_num"`
	StockCanSale    int     `json:"stock_can_sale"`
	StockFreeze     int     `json:"stock_freeze"`
	ForbiddenStatus int     `json:"forbidden_status"`
	MoneyCode       string  `json:"money_code"`
	OuterId         string  `json:"outer_id"`
	SecondUnitCount string  `json:"second_unit_count"`
	SupplyPrice     int     `json:"supply_price"`
	UnitCount       string  `json:"unit_count"`
	Volume          int     `json:"volume"`
	WareHouseId     int     `json:"ware_house_id"`
}

type RawSkuProperty

type RawSkuProperty struct {
	Id             int64  `json:"id"`
	SkuId          int64  `json:"sku_id"`
	BusinessId     int64  `json:"business_id"`
	ProperyValueId string `json:"propery_value_id"`
	ImageUrl       string `json:"image_url"`
	IsHidden       int    `json:"is_hidden"`
}

type Refund

type Refund struct {
	OrderId            string         `json:"order_id"`
	RefundId           string         `json:"refund_id"`
	RefundStatusDetail int            `json:"refund_status_detail"`
	RefundFee          string         `json:"refund_fee"`
	RefundType         string         `json:"refund_type"`
	RefundReason       string         `json:"refund_reason"`
	RefundCreateTime   string         `json:"refund_create_time"`
	UserName           string         `json:"user_name"`
	UserAccount        string         `json:"user_account"`
	UserComment        string         `json:"user_comment"`
	RefundMemberGoods  []RefundMember `json:"refund_member_goods"`
}

type RefundMember

type RefundMember struct {
	MemberGoodsId    int64  `json:"member_goods_id"`
	MemberSkuId      string `json:"member_sku_id"`
	MemberSkuKey     string `json:"member_sku_key"`
	MemberGoodsName  string `json:"member_goods_name"`
	MemberGoodsCount int    `json:"member_goods_count"`
	MemberBarCode    string `json:"member_bar_code"`
	MemberAuctionId  int64  `json:"member_auction_id"`
}

type RefundMemberGoods

type RefundMemberGoods struct {
	MemberGoodsId    int64  `json:"member_goods_id"`
	MemberSkuId      string `json:"member_sku_id"`
	MemberSkuKey     string `json:"member_sku_key"`
	MemberGoodsName  string `json:"member_goods_name"`
	MemberGoodsCount int    `json:"member_goods_count"`
	MemberBarCode    string `json:"member_bar_code"`
	MmeberAuctionId  int64  `json:"mmeber_auction_id"`
}

type RefundSku

type RefundSku struct {
	Barcode     string `json:"barcode"`
	IsGift      int    `json:"is_gift"`
	ItemKey     string `json:"item_key"`
	ItemName    string `json:"item_name"`
	ItemOuterId string `json:"item_outer_id"`
	RefundCount int    `json:"refund_count"`
	SkuKey      string `json:"sku_key"`
	SkuOuterId  string `json:"sku_outer_id"`
}

type ReqCommonCityGet

type ReqCommonCityGet struct {
	ProvinceCode int64 `json:"province_code"`
}

type ReqCommonCountriesGet

type ReqCommonCountriesGet struct {
}

type ReqCommonDistrictGet

type ReqCommonDistrictGet struct {
	CityCode string `json:"city_code"`
}

type ReqCommonHsCodesGet

type ReqCommonHsCodesGet struct {
	Keyword string `json:"keyword"`
}

type ReqCommonHsGet

type ReqCommonHsGet struct {
	HsIds []string `json:"hs_ids"`
}

type ReqCommonProvincesGet

type ReqCommonProvincesGet struct {
}

type ReqCommonTaxnosGet

type ReqCommonTaxnosGet struct {
}

type ReqCommonUnitcodesGet

type ReqCommonUnitcodesGet struct {
}

type ReqCompaniesGet

type ReqCompaniesGet struct {
}

type ReqItemAddPart

type ReqItemAddPart struct {
	Name                  string `json:"name"`
	SubTitle              string `json:"sub_title"`
	ShortTitle            string `json:"short_title"`
	TemWordsDesc          string `json:"tem_words_desc"`
	ItemNo                string `json:"item_NO"`
	BrandId               int64  `json:"brand_id"`
	OriginalCountryCodeId string `json:"original_country_code_id"`
	Description           string `json:"description"`
	CategoryId            int64  `json:"category_id"`
	WarehouseId           string `json:"warehouse_id"`
	TaxCode               string `json:"tax_code"`
	HsCode                string `json:"hs_code"`
	ExpressFee            string `json:"express_fee"`
	GrossWeight           string `json:"gross_weight"`
	ItemOuterId           string `json:"Item_outer_id"`
	UnitCode              string `json:"unit_code"`
	PropertyValueIdList   string `json:"property_valueId_list"`
	TextPropertyNameId    string `json:"text_property_name_id"`
	ImageUrls             string `json:"image_urls"`
	SkuMarketPrices       string `json:"sku_market_prices"`
	SkuSalePrices         string `json:"sku_sale_prices"`
	SkuBarcode            string `json:"sku_barcode"`
	SkuStock              string `json:"sku_stock"`
	SkuPropertyValue      string `json:"sku_property_value"`
	SkuOuterId            string `json:"sku_outer_id"`
	SkuMaterialNum        string `json:"sku_material_num"`
}

type ReqItemBatchGet

type ReqItemBatchGet struct {
	KeyList []string `json:"key_list"`
}

type ReqItemBatchStatusGet

type ReqItemBatchStatusGet struct {
	ItemEditStatus int    `json:"item_edit_status"`
	DateType       string `json:"date_type"`
	StartTime      string `json:"start_time"`
	EndTime        string `json:"end_time"`
	PageNo         int    `json:"page_no"`
	PageSize       int    `json:"page_size"`
}

type ReqItemGet

type ReqItemGet struct {
	Key string `json:"key"`
}

type ReqItemGetBasicByKeys

type ReqItemGetBasicByKeys struct {
	ItemKeyList string `json:"item_key_list"`
}

type ReqItemHidecartUpdate

type ReqItemHidecartUpdate struct {
	Key           string `json:"key"`
	HideAddToCart int    `json:"hide_add_to_cart"`
}

type ReqItemImgGet

type ReqItemImgGet struct {
	ImagePath string `json:"image_path"`
}

type ReqItemImgUpload

type ReqItemImgUpload struct {
	Pic []byte `json:"pic"`
}

type ReqItemOuterIdUpdate

type ReqItemOuterIdUpdate struct {
	Field   int    `json:"field"`
	Key     string `json:"key"`
	OuterId string `json:"outer_id"`
}

type ReqItemSalePriceUpdate

type ReqItemSalePriceUpdate struct {
	Key        string  `json:"key"`
	SalePrice  float64 `json:"sale_price"`
	SkuOuterId string  `json:"sku_outer_id"`
}

type ReqItemSearchBasicByCondition

type ReqItemSearchBasicByCondition struct {
	StartModified  string `json:"start_modified"`
	EndModified    string `json:"end_modified"`
	ItemEditStatus int    `json:"item_edit_status"`
	PageNo         int    `json:"page_no"`
	PageSize       int    `json:"page_size"`
}

type ReqItemSkuStockUpdate

type ReqItemSkuStockUpdate struct {
	Key        string `json:"key"`
	Stock      int    `json:"stock"`
	SkuOuterId string `json:"sku_outer_id"`
}

type ReqItemUpdate

type ReqItemUpdate struct {
	Description string `json:"description"`
	ImageUrls   string `json:"image_urls"`
	Key         string `json:"key"`
}

type ReqItemUpdateDelisting

type ReqItemUpdateDelisting struct {
	KeyList     []string `json:"key_list"`
	OuterIdList []string `json:"outer_id_list"`
}

type ReqItemUpdateListing

type ReqItemUpdateListing struct {
	KeyList     []string `json:"key_list"`
	OuterIdList []string `json:"outer_id_list"`
}

type ReqItempropsGet

type ReqItempropsGet struct {
	CategoryId int64 `json:"category_id"`
}

type ReqItempropvaluesGet

type ReqItempropvaluesGet struct {
	PropertyValueId string `json:"property_value_id"`
}

type ReqLogisticsDeliver

type ReqLogisticsDeliver struct {
	ReqPackageAdd
	SkuInfo string `json:"sku_info"`
}

type ReqOrderGet

type ReqOrderGet struct {
	OrderId string `json:"order_id"` //order_id	String	是	201511111223	订单号
}

type ReqOrderSearch

type ReqOrderSearch struct {
	OrderStatus int    `json:"order_status"` //order_status	int	是	1	订单状态1(已付款)、2(已发货)、3(订单已签收)、5(取消待确认)、6(已取消)
	DateType    int    `json:"date_type"`    //date_type	int	是	1	搜索日期类型1(支付时间)、2(发货时间)、3(签收时间)、1001(待发货时间)、1005(取消待处理时间) 、1006(取消时间)
	StartTime   string `json:"start_time"`   //start_time	String	是	2015-10-1012:12:12	YYYY-MM-DD HH:mm:ss 开始到结束时间不能超过一个月
	EndTime     string `json:"end_time"`     //end_time	String	是	2015-10-10 12:12:12	YYYY-MM-DD HH:mm:ss
	OrderId     string `json:"order_id"`     //order_id	String	否	201511111223	订单号
	PageNo      int    `json:"page_no"`      //page_no	int	否	1	默认为1,最大为5000
	PageSize    int    `json:"page_size"`    //page_size	int	否	20	默认为20,最大为100
}

type ReqPackageAdd

type ReqPackageAdd struct {
	OrderId            string `json:"order_id"`
	ExpressCompanyCode string `json:"express_company_code"`
	ExpressNo          string `json:"express_no"`
}

type ReqRefundAgree

type ReqRefundAgree struct {
	RefundId     string `json:"refund_id"`
	RefundRemark string `json:"refund_remark"`
	Pic          string `json:"pic"`
}

type ReqRefundChangetype

type ReqRefundChangetype struct {
	RefundId         string `json:"refund_id"`
	RefundType       int    `json:"refund_type"`
	RefundOnlyReason int    `json:"refund_only_reason"`
}

type ReqRefundGet

type ReqRefundGet struct {
	RefundId string `json:"refund_id"`
}

type ReqRefundRefuse

type ReqRefundRefuse struct {
	RefundId           int `json:"refund_id"`
	RefundRefuseReason int `json:"refund_refuse_reason"`
}

type ReqRefundSearch

type ReqRefundSearch struct {
	RefundStatus int    `json:"refund_status"`
	StartTime    string `json:"start_time"`
	EndTime      string `json:"end_time"`
	PageNo       int    `json:"page_no"`
	PageSize     int    `json:"page_size"`
}

type ReqRefundgoodsAgree

type ReqRefundgoodsAgree struct {
	RefundId string `json:"refund_id"`
}

type ReqRefundgoodsRefuse

type ReqRefundgoodsRefuse struct {
	ReqRefundRefuse
}

type ReqSkuGetBasicByKeys

type ReqSkuGetBasicByKeys struct {
	SkuKeyList string `json:"sku_key_list"`
}

type ReqVenderBrandGet

type ReqVenderBrandGet struct {
}

type ReqVenderCategoryGet

type ReqVenderCategoryGet struct {
}

type ReqVenderInfoGet

type ReqVenderInfoGet struct {
}

type ReqVenderWarehouseGet

type ReqVenderWarehouseGet struct {
	WarehouseId   string `json:"warehouse_id"`
	WarehouseName string `json:"warehouse_name"`
	PageNo        string `json:"page_no"`
	PageSize      string `json:"page_size"`
}

type ResCommonCityGet

type ResCommonCityGet struct {
	CitList []City `json:"cit_list"`
}

type ResCommonCountriesGet

type ResCommonCountriesGet struct {
	CountryList []Country `json:"country_list"`
}

type ResCommonDistrictGet

type ResCommonDistrictGet struct {
	DistrictList []District `json:"district_list"`
}

type ResCommonHsCodesGet

type ResCommonHsCodesGet struct {
	HsList []Hs `json:"hs_list"`
}

type ResCommonHsGet

type ResCommonHsGet struct {
	HsList []Hs `json:"hs_list"`
}

type ResCommonProvincesGet

type ResCommonProvincesGet struct {
	ProvinceList []Province `json:"province_list"`
}

type ResCommonTaxnosGet

type ResCommonTaxnosGet struct {
	TaxnoList []TaxNo `json:"taxno_list"`
}

type ResCommonUnitcodesGet

type ResCommonUnitcodesGet struct {
	UnitcodeList []UnitCode `json:"unitcode_list"`
}

type ResCompaniesGet

type ResCompaniesGet struct {
	LogisticsCompanys LogisticsCompany `json:"logistics_companys"`
}

type ResItemAddPart

type ResItemAddPart struct {
	Key        string             `json:"key"`
	CreateTime string             `json:"create_time"`
	SkuKeys    []SkuOuterIdResult `json:"sku_keys"`
}

type ResItemBatchGet

type ResItemBatchGet struct {
	ItemEditList []ItemEdit `json:"item_edit_list"`
}

type ResItemBatchStatusGet

type ResItemBatchStatusGet struct {
	ItemEditList []ItemEdit `json:"item_edit_list"`
	TotalCount   int        `json:"total_count"`
}

type ResItemGet

type ResItemGet struct {
	ItemEdit ItemEdit `json:"item_edit"`
}

type ResItemGetBasicByKeys

type ResItemGetBasicByKeys struct {
	ItemList []ItemBasic `json:"item_list"`
}

type ResItemHidecartUpdate

type ResItemHidecartUpdate struct {
	Result     int    `json:"result"`
	ModifyTime string `json:"modify_time"`
}

type ResItemImgGet

type ResItemImgGet struct {
	Result bool   `json:"result"`
	ImgUrl string `json:"img_url"`
}

type ResItemImgUpload

type ResItemImgUpload struct {
	Result  bool   `json:"result"`
	Url     string `json:"url"`
	Created string `json:"created"`
}

type ResItemOuterIdUpdate

type ResItemOuterIdUpdate struct {
	Result bool `json:"result"`
}

type ResItemSalePriceUpdate

type ResItemSalePriceUpdate struct {
	Result     int    `json:"result"`
	ModifyTime string `json:"modify_time"`
}

type ResItemSearchBasicByCondition

type ResItemSearchBasicByCondition struct {
	ItemList []ItemBasic `json:"item_list"`
}

type ResItemSkuStockUpdate

type ResItemSkuStockUpdate struct {
	Result     int    `json:"result"`
	ModifyTime string `json:"modify_time"`
}

type ResItemUpdate

type ResItemUpdate struct {
	Result  int         `json:"result"`
	Message interface{} `json:"message"`
}

type ResItemUpdateDelisting

type ResItemUpdateDelisting struct {
	Result        int    `json:"result"`
	DelistingTime string `json:"delisting_time"`
}

type ResItemUpdateListing

type ResItemUpdateListing struct {
	Result      int    `json:"result"`
	ListingTime string `json:"listing_time"`
}

type ResItempropsGet

type ResItempropsGet struct {
	ProperTyCategoryList []PropertyCategory `json:"proper_ty_category_list"`
}

type ResItempropvaluesGet

type ResItempropvaluesGet struct {
	PropertyValueId   string `json:"property_value_id"`
	ProperyValue      string `json:"propery_value"`
	PropertyNameId    string `json:"property_name_id"`
	PropertyValueIcon string `json:"property_value_icon"`
	IsSysProperty     int    `json:"is_sys_property"`
	ShowOrder         int    `json:"show_order"`
	Status            int    `json:"status"`
}

type ResLogisticsDeliver

type ResLogisticsDeliver struct {
	OrderId    string `json:"order_id"`
	ModifyTime string `json:"modify_time"`
}

type ResOrderGet

type ResOrderGet struct {
	util.CommonError
	Order                  //order	Order		订单信息
	OrderStatusName string `json:"order_status_name"` //order_status_name	String	已发货	订单状态名称
	InvoiceAmount   string `json:"invoice_amount"`    //invoice_amount	String	50	发票金额
}

type ResOrderSearch

type ResOrderSearch struct {
	util.CommonError
	Orders   []OrderSearch `json:"orders"`    //orders	Order[]		订单信息
	TotalInt int64         `json:"total_int"` //total_count	int	10	订单总数
}

type ResPackageAdd

type ResPackageAdd struct {
	Result bool `json:"result"`
}

type ResRefundAgree

type ResRefundAgree struct {
	Msg  int `json:"msg"`
	Code int `json:"code"`
}

type ResRefundChangetype

type ResRefundChangetype struct {
	Msg  int `json:"msg"`
	Code int `json:"code"`
}

type ResRefundGet

type ResRefundGet struct {
	ExpressCompanyName string              `json:"express_company_name"`
	ExpressNo          int                 `json:"express_no"`
	OrderId            string              `json:"order_id"`
	RefundCreateTime   string              `json:"refund_create_time"`
	RefundDesc         string              `json:"refund_desc"`
	RefundFee          float64             `json:"refund_fee"`
	RefundId           string              `json:"refund_id"`
	RefundReason       string              `json:"refund_reason"`
	RefundStatusDetail int                 `json:"refund_status_detail"`
	RefundType         int                 `json:"refund_type"`
	UserAccount        string              `json:"user_account"`
	UserComment        string              `json:"user_comment"`
	UserName           string              `json:"user_name"`
	RefundSkus         []RefundSku         `json:"refund_skus"`
	RefundMemberGoods  []RefundMemberGoods `json:"refund_member_goods"`
}

type ResRefundRefuse

type ResRefundRefuse struct {
	Code int `json:"code"`
	Msg  int `json:"msg"`
}

type ResRefundSearch

type ResRefundSearch struct {
	Refunds    []Refund `json:"refunds"`
	TotalCount int      `json:"total_count"`
}

type ResRefundgoodsAgree

type ResRefundgoodsAgree struct {
	Msg  int `json:"msg"`
	Code int `json:"code"`
}

type ResRefundgoodsRefuse

type ResRefundgoodsRefuse struct {
	Msg  int `json:"msg"`
	Code int `json:"code"`
}

type ResSkuGetBasicByKeys

type ResSkuGetBasicByKeys struct {
	SkuList []SkuBasic `json:"sku_list"`
}

type ResVenderBrandGet

type ResVenderBrandGet struct {
	BrandList []BrandInfo `json:"brand_list"`
}

type ResVenderCategoryGet

type ResVenderCategoryGet struct {
	ItemCats []Category `json:"item_cats"`
}

type ResVenderInfoGet

type ResVenderInfoGet struct {
	VenderInfo VenderInfo `json:"vender_info"`
}

type ResVenderWarehouseGet

type ResVenderWarehouseGet struct {
	ContactMobilephone       string `json:"contact_mobilephone"`
	ContactName              string `json:"contact_name"`
	ContactTelephone         string `json:"contact_telephone"`
	DeliverAddress           string `json:"deliver_address"`
	ReturnAddress            string `json:"return_address"`
	ReturnContactMobilephone string `json:"return_contact_mobilephone"`
	WarehouseId              int    `json:"warehouse_id"`
	WarehouseName            string `json:"warehouse_name"`
}

type Sku

type Sku struct {
	RawSku                RawSku        `json:"raw_sku"`
	SkuPropertyList       []SkuProperty `json:"sku_property_list"`
	Key                   string        `json:"key"`
	Seq                   string        `json:"seq"`
	SkuCustomPropertyList interface{}   `json:"sku_custom_property_list"`
}

type SkuBasic

type SkuBasic struct {
	SkuKey        string  `json:"sku_key"`
	Id            string  `json:"id"`
	OuterId       string  `json:"outer_id"`
	Barcode       string  `json:"barcode"`
	SalePrice     float64 `json:"sale_price"`
	WarehouseName string  `json:"warehouse_name"`
	WarehouseId   int64   `json:"warehouse_id"`
	StockCansale  int     `json:"stock_cansale"`
	StockFreeze   int     `json:"stock_freeze"`
}

type SkuOuterIdResult

type SkuOuterIdResult struct {
	SkuKey     string `json:"sku_key"`
	SkuOuterId string `json:"sku_outer_id"`
}

type SkuProperty

type SkuProperty struct {
	RawSkuProperty RawSkuProperty `json:"raw_sku_property"`
	PropertyName   PropertyName   `json:"property_name"`
	PropertyValue  PropertyValue  `json:"property_value"`
}

type TaxNo

type TaxNo struct {
	TaxNo    string `json:"tax_no"`
	TaxScope string `json:"tax_scope"`
}

type UnitCode

type UnitCode struct {
	UnitCode string `json:"unit_code"`
	UnitName string `json:"unit_name"`
}

type VenderInfo

type VenderInfo struct {
	VenderId       int64  `json:"vender_id"`
	VenderName     string `json:"vender_name"`
	VenderAlias    string `json:"vender_alias"`
	BusinessScope  string `json:"business_scope"`
	RefundName     string `json:"refund_name"`
	RefundTel      string `json:"refund_tel"`
	RefundMobile   string `json:"refund_mobile"`
	RefundProvince string `json:"refund_province"`
	RefundCity     string `json:"refund_city"`
	RefundDistrict string `json:"refund_district"`
	RefundAddress  string `json:"refund_address"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL