Documentation ¶
Index ¶
- Constants
- Variables
- func CreateFastHttpClient() fasthttp.Client
- func MakeSign(method, appId, appSecret, version string, timestamp int64) string
- func Md5(str string) string
- func Post(req []byte) ([]byte, error)
- type AfterSaleInfoReturnAddress
- type AfterSaleInfoSKU
- type AfterSaleInfoVariants
- type ApiClient
- type BaseInfo
- type BaseRequest
- type BaseResponse
- type NegotiateRecordsAttributes
- type OAuthClient
- type OrderSkuDetailList
- type OrderSkuList
- type ReceiverQuery
- type ReqBatchDecrypt
- type ReqBatchDesensitise
- type ReqBrandSearch
- type ReqGetAccessToken
- type ReqGetAfterSaleDetail
- type ReqGetAfterSaleInfo
- type ReqGetCategories
- type ReqGetExpressCompanyList
- type ReqGetNestZone
- type ReqGetOrderDetail
- type ReqGetOrderList
- type ReqGetOrderReceiverInfo
- type ReqGetZones
- type ReqListAfterSaleApi
- type ReqListAfterSaleInfos
- type ReqOrderDeliver
- type ReqRefreshAccessToken
- type Request
- type RespBatchDecrypt
- type RespBatchDecryptData
- type RespBatchDesensitise
- type RespBatchDesensitiseData
- type RespBrandSearch
- type RespBrandSearchData
- type RespGetAccessToken
- type RespGetAccessTokenData
- type RespGetAfterSaleDetail
- type RespGetAfterSaleDetailData
- type RespGetAfterSaleInfo
- type RespGetAfterSaleInfoData
- type RespGetAfterSaleInfoDataAfterSaleInfo
- type RespGetAfterSaleInfoDataLogisticsInfo
- type RespGetAfterSaleInfoDataNegotiateRecords
- type RespGetCategories
- type RespGetCategoriesData
- type RespGetExpressCompanyList
- type RespGetExpressCompanyListData
- type RespGetNestZone
- type RespGetNestZoneData
- type RespGetOrderDetail
- type RespGetOrderDetailData
- type RespGetOrderList
- type RespGetOrderListData
- type RespGetOrderReceiverInfo
- type RespGetOrderReceiverInfoData
- type RespGetZones
- type RespGetZonesData
- type RespListAfterSaleApi
- type RespListAfterSaleApiData
- type RespListAfterSaleInfos
- type RespListAfterSaleInfosData
- type RespOrderDeliver
- type RespRefreshAccessToken
- type Response
- type Zone
- type ZoneList
Constants ¶
View Source
const ( ApiUrl = "https://ark.xiaohongshu.com/ark/open_api/v3/common_controller" // 接口调用链接 Version = "2.0" // 版本号,采用oauth2授权后均填入2.0 )
View Source
const HttpTTL = 1 * time.Minute
View Source
const (
SuccessCode = 0
)
Variables ¶
View Source
var FastClient = CreateFastHttpClient()
Functions ¶
func CreateFastHttpClient ¶
Types ¶
type AfterSaleInfoReturnAddress ¶ added in v1.0.4
type AfterSaleInfoSKU ¶ added in v1.0.4
type AfterSaleInfoSKU struct { SkuId string `json:"skuId"` SkuName string `json:"skuName"` Image string `json:"image"` Price float64 `json:"price"` BoughtCount int64 `json:"boughtCount"` AppliedCount int64 `json:"appliedCount"` AppliedTotalAmountYuan float64 `json:"appliedTotalAmountYuan"` Scskucode string `json:"scskucode"` Barcode string `json:"barcode"` Variants []AfterSaleInfoVariants `json:"variants"` SkuERPCode string `json:"skuERPCode"` }
type AfterSaleInfoVariants ¶ added in v1.0.4
type BaseRequest ¶
type BaseResponse ¶
type NegotiateRecordsAttributes ¶ added in v1.0.4
type OAuthClient ¶
func (*OAuthClient) GetAccessToken ¶
func (c *OAuthClient) GetAccessToken(code string) (RespGetAccessToken, error)
获取访问令牌
func (*OAuthClient) GetOAuthUrl ¶
func (c *OAuthClient) GetOAuthUrl(redirectUri, state string) string
获取授权码链接
func (*OAuthClient) RefreshAccessToken ¶
func (c *OAuthClient) RefreshAccessToken(refreshToken string) (RespGetAccessToken, error)
刷新访问令牌
type OrderSkuDetailList ¶
type OrderSkuDetailList struct { SkuId string `json:"skuId"` ErpCode string `json:"erpCode"` Barcode string `json:"barcode"` ScSkuCode string `json:"scSkuCode"` Quantity int64 `json:"quantity"` RegisterName string `json:"registerName"` SkuName string `json:"skuName"` PricePerSku int64 `json:"pricePerSku"` TaxPerSku int64 `json:"taxPerSku"` PaidAmountPerSku int64 `json:"paidAmountPerSku"` DepositAmountPerSku int64 `json:"depositAmountPerSku"` MerchantDiscountPerSku int64 `json:"merchantDiscountPerSku"` RedDiscountPerSku int64 `json:"redDiscountPerSku"` RawPricePerSku int64 `json:"rawPricePerSku"` }
type OrderSkuList ¶
type OrderSkuList struct { SkuId string `json:"skuId"` SkuName string `json:"skuName"` Erpcode string `json:"erpcode"` SkuSpec string `json:"skuSpec"` SkuImage string `json:"skuImage"` SkuQuantity int64 `json:"skuQuantity"` SkuDetailList []OrderSkuDetailList `json:"skuDetailList"` TotalPaidAmount int64 `json:"totalPaidAmount"` TotalMerchantDiscount int64 `json:"totalMerchantDiscount"` TotalRedDiscount int64 `json:"totalRedDiscount"` TotalTaxAmount int64 `json:"totalTaxAmount"` TotalNetWeight int64 `json:"totalNetWeight"` SkuTag int64 `json:"skuTag"` IsChannel bool `json:"isChannel"` Channel bool `json:"channel"` }
type ReceiverQuery ¶
type ReqBatchDecrypt ¶
type ReqBatchDecrypt struct { BaseRequest BaseInfos []BaseInfo `json:"baseInfos"` ActionType string `json:"actionType"` // 操作类型 1-单个查看订单明文,2-批量解密打单,3-批量解密后面向三方的数据下发,4-其他场景 AppUserId string `json:"appUserId"` // 三方操作id,服务商自定义,解密接口必填 }
func (ReqBatchDecrypt) Method ¶
func (r ReqBatchDecrypt) Method() string
func (ReqBatchDecrypt) Params ¶
func (r ReqBatchDecrypt) Params(base BaseRequest) []byte
type ReqBatchDesensitise ¶
type ReqBatchDesensitise struct { BaseRequest BaseInfos []BaseInfo `json:"baseInfos"` ActionType string `json:"actionType"` AppUserId string `json:"appUserId"` }
func (ReqBatchDesensitise) Method ¶
func (r ReqBatchDesensitise) Method() string
func (ReqBatchDesensitise) Params ¶
func (r ReqBatchDesensitise) Params(base BaseRequest) []byte
type ReqBrandSearch ¶
type ReqBrandSearch struct { BaseRequest CategoryId string `json:"categoryId"` Keyword string `json:"keyword"` PageNo int64 `json:"pageNo"` PageSize int64 `json:"pageSize"` }
func (ReqBrandSearch) Method ¶
func (r ReqBrandSearch) Method() string
func (ReqBrandSearch) Params ¶
func (r ReqBrandSearch) Params(base BaseRequest) []byte
type ReqGetAccessToken ¶
type ReqGetAccessToken struct { BaseRequest Code string `json:"code"` }
func (ReqGetAccessToken) Method ¶
func (r ReqGetAccessToken) Method() string
func (ReqGetAccessToken) Params ¶
func (r ReqGetAccessToken) Params(base BaseRequest) []byte
type ReqGetAfterSaleDetail ¶
type ReqGetAfterSaleDetail struct { BaseRequest AfterSaleId string `json:"afterSaleId"` }
func (ReqGetAfterSaleDetail) Method ¶
func (r ReqGetAfterSaleDetail) Method() string
func (ReqGetAfterSaleDetail) Params ¶
func (r ReqGetAfterSaleDetail) Params(base BaseRequest) []byte
type ReqGetAfterSaleInfo ¶ added in v1.0.4
type ReqGetAfterSaleInfo struct { BaseRequest ReturnsId string `json:"returnsId"` NeedNegotiateRecord bool `json:"needNegotiateRecord"` }
func (ReqGetAfterSaleInfo) Method ¶ added in v1.0.4
func (r ReqGetAfterSaleInfo) Method() string
func (ReqGetAfterSaleInfo) Params ¶ added in v1.0.4
func (r ReqGetAfterSaleInfo) Params(base BaseRequest) []byte
type ReqGetCategories ¶
type ReqGetCategories struct { BaseRequest CategoryId string `json:"categoryId"` }
func (ReqGetCategories) Method ¶
func (r ReqGetCategories) Method() string
func (ReqGetCategories) Params ¶
func (r ReqGetCategories) Params(base BaseRequest) []byte
type ReqGetExpressCompanyList ¶
type ReqGetExpressCompanyList struct {
BaseRequest
}
func (ReqGetExpressCompanyList) Method ¶
func (r ReqGetExpressCompanyList) Method() string
func (ReqGetExpressCompanyList) Params ¶
func (r ReqGetExpressCompanyList) Params(base BaseRequest) []byte
type ReqGetNestZone ¶
type ReqGetNestZone struct {
BaseRequest
}
func (ReqGetNestZone) Method ¶
func (r ReqGetNestZone) Method() string
func (ReqGetNestZone) Params ¶
func (r ReqGetNestZone) Params(base BaseRequest) []byte
type ReqGetOrderDetail ¶
type ReqGetOrderDetail struct { BaseRequest OrderId string `json:"orderId"` }
func (ReqGetOrderDetail) Method ¶
func (r ReqGetOrderDetail) Method() string
func (ReqGetOrderDetail) Params ¶
func (r ReqGetOrderDetail) Params(base BaseRequest) []byte
type ReqGetOrderList ¶
type ReqGetOrderList struct { BaseRequest StartTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` TimeType int64 `json:"timeType"` OrderType int64 `json:"orderType"` OrderStatus int64 `json:"orderStatus"` PageNo int64 `json:"pageNo"` PageSize int64 `json:"pageSize"` }
func (ReqGetOrderList) Method ¶
func (r ReqGetOrderList) Method() string
func (ReqGetOrderList) Params ¶
func (r ReqGetOrderList) Params(base BaseRequest) []byte
type ReqGetOrderReceiverInfo ¶
type ReqGetOrderReceiverInfo struct { BaseRequest ReceiverQueries []ReceiverQuery `json:"receiverQueries"` IsReturn bool `json:"isReturn"` }
func (ReqGetOrderReceiverInfo) Method ¶
func (r ReqGetOrderReceiverInfo) Method() string
func (ReqGetOrderReceiverInfo) Params ¶
func (r ReqGetOrderReceiverInfo) Params(base BaseRequest) []byte
type ReqGetZones ¶
type ReqGetZones struct { BaseRequest Code string `json:"code"` Name string `json:"name"` Upper string `json:"upper"` FilterNonContinental string `json:"filterNonContinental"` }
func (ReqGetZones) Method ¶
func (r ReqGetZones) Method() string
func (ReqGetZones) Params ¶
func (r ReqGetZones) Params(base BaseRequest) []byte
type ReqListAfterSaleApi ¶
type ReqListAfterSaleApi struct { BaseRequest Status int64 `json:"status"` PageNo int64 `json:"pageNo"` PageSize int64 `json:"pageSize"` StartTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` TimeType int64 `json:"timeType"` UseHasNext bool `json:"useHasNext"` ReasonId int64 `json:"reasonId"` ReturnType int64 `json:"returnType"` }
func (ReqListAfterSaleApi) Method ¶
func (r ReqListAfterSaleApi) Method() string
func (ReqListAfterSaleApi) Params ¶
func (r ReqListAfterSaleApi) Params(base BaseRequest) []byte
type ReqListAfterSaleInfos ¶ added in v1.0.4
type ReqListAfterSaleInfos struct { BaseRequest PageNo int64 `json:"pageNo"` PageSize int64 `json:"pageSize"` OrderId string `json:"orderId"` Statuses []int64 `json:"statuses"` ReturnTypes []int64 `json:"returnTypes"` StartTime int64 `json:"startTime"` EndTime int64 `json:"endTime"` TimeType int64 `json:"timeType"` }
func (ReqListAfterSaleInfos) Method ¶ added in v1.0.4
func (r ReqListAfterSaleInfos) Method() string
func (ReqListAfterSaleInfos) Params ¶ added in v1.0.4
func (r ReqListAfterSaleInfos) Params(base BaseRequest) []byte
type ReqOrderDeliver ¶
type ReqOrderDeliver struct { BaseRequest OrderId string `json:"orderId"` ExpressNo string `json:"expressNo"` ExpressCompanyCode string `json:"expressCompanyCode"` ExpressCompanyName string `json:"expressCompanyName"` DeliveringTime int64 `json:"deliveringTime"` Unpack bool `json:"unpack"` SkuIdList []string `json:"skuIdList"` }
func (ReqOrderDeliver) Method ¶
func (r ReqOrderDeliver) Method() string
func (ReqOrderDeliver) Params ¶
func (r ReqOrderDeliver) Params(base BaseRequest) []byte
type ReqRefreshAccessToken ¶
type ReqRefreshAccessToken struct { BaseRequest RefreshToken string `json:"refreshToken"` }
func (ReqRefreshAccessToken) Method ¶
func (r ReqRefreshAccessToken) Method() string
func (ReqRefreshAccessToken) Params ¶
func (r ReqRefreshAccessToken) Params(base BaseRequest) []byte
type Request ¶
type Request interface { Method() string Params(BaseRequest) []byte }
type RespBatchDecrypt ¶
type RespBatchDecrypt struct { BaseResponse Data RespBatchDecryptData `json:"data"` }
func (RespBatchDecrypt) ErrorCode ¶
func (r RespBatchDecrypt) ErrorCode() int64
func (RespBatchDecrypt) ErrorMsg ¶
func (r RespBatchDecrypt) ErrorMsg() string
func (RespBatchDecrypt) Success ¶
func (r RespBatchDecrypt) Success() bool
type RespBatchDecryptData ¶
type RespBatchDesensitise ¶
type RespBatchDesensitise struct { BaseResponse Data RespBatchDesensitiseData `json:"data"` }
func (RespBatchDesensitise) ErrorCode ¶
func (r RespBatchDesensitise) ErrorCode() int64
func (RespBatchDesensitise) ErrorMsg ¶
func (r RespBatchDesensitise) ErrorMsg() string
func (RespBatchDesensitise) Success ¶
func (r RespBatchDesensitise) Success() bool
type RespBrandSearch ¶
type RespBrandSearch struct { BaseResponse Data RespBrandSearchData `json:"data"` }
func (RespBrandSearch) ErrorCode ¶
func (r RespBrandSearch) ErrorCode() int64
func (RespBrandSearch) ErrorMsg ¶
func (r RespBrandSearch) ErrorMsg() string
func (RespBrandSearch) Success ¶
func (r RespBrandSearch) Success() bool
type RespBrandSearchData ¶
type RespGetAccessToken ¶
type RespGetAccessToken struct { BaseResponse Data RespGetAccessTokenData `json:"data"` }
func (RespGetAccessToken) ErrorCode ¶
func (r RespGetAccessToken) ErrorCode() int64
func (RespGetAccessToken) ErrorMsg ¶
func (r RespGetAccessToken) ErrorMsg() string
func (RespGetAccessToken) Success ¶
func (r RespGetAccessToken) Success() bool
type RespGetAccessTokenData ¶
type RespGetAccessTokenData struct { AccessToken string `json:"accessToken"` AccessTokenExpiresAt int64 `json:"accessTokenExpiresAt"` RefreshToken string `json:"refreshToken"` RefreshTokenExpiresAt int64 `json:"refreshTokenExpiresAt"` SellerId string `json:"sellerId"` SellerName string `json:"sellerName"` }
type RespGetAfterSaleDetail ¶
type RespGetAfterSaleDetail struct { BaseResponse Data RespGetAfterSaleDetailData `json:"data"` }
func (RespGetAfterSaleDetail) ErrorCode ¶
func (r RespGetAfterSaleDetail) ErrorCode() int64
func (RespGetAfterSaleDetail) ErrorMsg ¶
func (r RespGetAfterSaleDetail) ErrorMsg() string
func (RespGetAfterSaleDetail) Success ¶
func (r RespGetAfterSaleDetail) Success() bool
type RespGetAfterSaleDetailData ¶
type RespGetAfterSaleDetailData struct { ReturnsId string `json:"returnsId"` ReturnType int64 `json:"returnType"` ReasonId int64 `json:"reasonId"` Reason string `json:"reason"` Status int64 `json:"status"` SubStatus int64 `json:"subStatus"` ReceiveAbnormalType int64 `json:"receiveAbnormalType"` OrderId string `json:"orderId"` ExchangeOrderId string `json:"exchangeOrderId"` UserId string `json:"userId"` CreatedAt int64 `json:"createdAt"` ReturnExpressNo string `json:"returnExpressNo"` ReturnExpressCompany string `json:"returnExpressCompany"` ReturnAddress string `json:"returnAddress"` ShipNeeded int64 `json:"shipNeeded"` Refunded bool `json:"refunded"` RefundStatus int64 `json:"refundStatus"` AutoReceiveDeadline int64 `json:"autoReceiveDeadline"` UseFastRefund bool `json:"useFastRefund"` ProofPhotos []string `json:"proofPhotos"` Desc string `json:"desc"` Note string `json:"note"` RefundTime int64 `json:"refundTime"` FillExpressTime int64 `json:"fillExpressTime"` ExpressSignTime int64 `json:"expressSignTime"` Skus []struct { SkuId string `json:"skuId"` SkuName string `json:"skuName"` Image string `json:"image"` Price float64 `json:"price"` BoughtCount int64 `json:"boughtCount"` AppliedCount int64 `json:"appliedCount"` ReturnedCount int64 `json:"returnedCount"` RefundedCount int64 `json:"refundedCount"` ReturnPrice float64 `json:"returnPrice"` ExchangeSkuId string `json:"exchangeSkuId"` ExchangeSkuName string `json:"exchangeSkuName"` ExchangeSkuImage string `json:"exchangeSkuImage"` ScSkucode string `json:"scSkucode"` Barcode string `json:"barcode"` ExchangeScskuCode string `json:"exchangeScskuCode"` ExchangeBarcode string `json:"exchangeBarcode"` } `json:"skus"` RefundFee float64 `json:"refundFee"` ReturnExpressRefundable bool `json:"returnExpressRefundable"` ReturnExpressRefunded bool `json:"returnExpressRefunded"` ExpectRefundFee float64 `json:"expectRefundFee"` UpdatedAt int64 `json:"updatedAt"` ReturnExpressCompanyCode string `json:"returnExpressCompanyCode"` OpenAddressId string `json:"openAddressId"` ExpectedRefundAmount float64 `json:"expectedRefundAmount"` }
type RespGetAfterSaleInfo ¶ added in v1.0.4
type RespGetAfterSaleInfo struct { BaseResponse Data RespGetAfterSaleInfoData `json:"data"` }
func (RespGetAfterSaleInfo) ErrorCode ¶ added in v1.0.4
func (r RespGetAfterSaleInfo) ErrorCode() int64
func (RespGetAfterSaleInfo) ErrorMsg ¶ added in v1.0.4
func (r RespGetAfterSaleInfo) ErrorMsg() string
func (RespGetAfterSaleInfo) Success ¶ added in v1.0.4
func (r RespGetAfterSaleInfo) Success() bool
type RespGetAfterSaleInfoData ¶ added in v1.0.4
type RespGetAfterSaleInfoData struct { AfterSaleInfo *RespGetAfterSaleInfoDataAfterSaleInfo `json:"afterSaleInfo"` LogisticsInfo *RespGetAfterSaleInfoDataLogisticsInfo `json:"logisticsInfo"` NegotiateRecords *RespGetAfterSaleInfoDataNegotiateRecords `json:"negotiateRecords"` }
type RespGetAfterSaleInfoDataAfterSaleInfo ¶ added in v1.0.4
type RespGetAfterSaleInfoDataAfterSaleInfo struct { ReturnsId string `json:"returnsId"` ReturnType int64 `json:"returnType"` ReasonId int64 `json:"reasonId"` ReasonNameZh string `json:"reasonNameZh"` Status int64 `json:"status"` UserId string `json:"userId"` OrderId string `json:"orderId"` ApplyTime int64 `json:"applyTime"` UpdatedAt int64 `json:"updatedAt"` ExpireTime int64 `json:"expireTime"` ReturnAddress *AfterSaleInfoReturnAddress `json:"return_address"` ProofPhotos []string `json:"proofPhotos"` Desc string `json:"desc"` SupportCarriageInsurance bool `json:"supportCarriageInsurance"` OpenAddressId string `json:"openAddressId"` Skus []AfterSaleInfoSKU `json:"skus"` ExchangeSKUs []AfterSaleInfoSKU `json:"exchangeSKUs"` CloseReasonZh string `json:"closeReasonZh"` ReturnsTag int64 `json:"returnsTag"` AppliedShipFeeAmountYuan float64 `json:"appliedShipFeeAmountYuan"` AppliedSkusAmountYuan float64 `json:"appliedSkusAmountYuan"` ExpectedRefundAmountYuan float64 `json:"expectedRefundAmountYuan"` RefundAmountYuan float64 `json:"refundAmountYuan"` RefundStatus int64 `json:"refundStatus"` CargoStatus int64 `json:"cargoStatus"` }
type RespGetAfterSaleInfoDataLogisticsInfo ¶ added in v1.0.4
type RespGetAfterSaleInfoDataLogisticsInfo struct { AfterSale struct { ExpressNo string `json:"expressNo"` ExpressCompanyCode string `json:"expressCompanyCode"` ExpressCompanyName string `json:"expressCompanyName"` FillExpressNoTime int64 `json:"fillExpressNoTime"` ExpressSignTime int64 `json:"expressSignTime"` } `json:"after_sale"` Exchange struct { ExpressNo string `json:"expressNo"` ExpressCompanyCode string `json:"expressCompanyCode"` ExpressCompanyName string `json:"expressCompanyName"` FillExpressNoTime int64 `json:"fillExpressNoTime"` } `json:"exchange"` Order struct { ExpressNo string `json:"expressNo"` ExpressCompanyCode string `json:"expressCompanyCode"` ExpressCompanyName string `json:"expressCompanyName"` } `json:"order"` }
type RespGetAfterSaleInfoDataNegotiateRecords ¶ added in v1.0.4
type RespGetAfterSaleInfoDataNegotiateRecords struct { Title string `json:"title"` OperatorRoleName string `json:"operatorRoleName"` OperatorRole int64 `json:"operatorRole"` Attributes []NegotiateRecordsAttributes `json:"attributes"` Time string `json:"time"` }
type RespGetCategories ¶
type RespGetCategories struct { BaseResponse Data RespGetCategoriesData `json:"data"` }
func (RespGetCategories) ErrorCode ¶
func (r RespGetCategories) ErrorCode() int64
func (RespGetCategories) ErrorMsg ¶
func (r RespGetCategories) ErrorMsg() string
func (RespGetCategories) Success ¶
func (r RespGetCategories) Success() bool
type RespGetCategoriesData ¶
type RespGetExpressCompanyList ¶
type RespGetExpressCompanyList struct { BaseResponse Data RespGetExpressCompanyListData `json:"data"` }
func (RespGetExpressCompanyList) ErrorCode ¶
func (r RespGetExpressCompanyList) ErrorCode() int64
func (RespGetExpressCompanyList) ErrorMsg ¶
func (r RespGetExpressCompanyList) ErrorMsg() string
func (RespGetExpressCompanyList) Success ¶
func (r RespGetExpressCompanyList) Success() bool
type RespGetNestZone ¶
type RespGetNestZone struct { BaseResponse Data RespGetNestZoneData `json:"data"` }
func (RespGetNestZone) ErrorCode ¶
func (r RespGetNestZone) ErrorCode() int64
func (RespGetNestZone) ErrorMsg ¶
func (r RespGetNestZone) ErrorMsg() string
func (RespGetNestZone) Success ¶
func (r RespGetNestZone) Success() bool
type RespGetNestZoneData ¶
type RespGetNestZoneData struct {
ProvinceZoneList []ZoneList `json:"provinceZoneList"`
}
type RespGetOrderDetail ¶
type RespGetOrderDetail struct { BaseResponse Data RespGetOrderDetailData `json:"data"` }
func (RespGetOrderDetail) ErrorCode ¶
func (r RespGetOrderDetail) ErrorCode() int64
func (RespGetOrderDetail) ErrorMsg ¶
func (r RespGetOrderDetail) ErrorMsg() string
func (RespGetOrderDetail) Success ¶
func (r RespGetOrderDetail) Success() bool
type RespGetOrderDetailData ¶
type RespGetOrderDetailData struct { OrderId string `json:"orderId"` OrderType int64 `json:"orderType"` OrderStatus int64 `json:"orderStatus"` OrderAfterSalesStatus int64 `json:"orderAfterSalesStatus"` CancelStatus int64 `json:"cancelStatus"` CreatedTime int64 `json:"createdTime"` PaidTime int64 `json:"paidTime"` UpdateTime int64 `json:"updateTime"` DeliveryTime int64 `json:"deliveryTime"` CancelTime int64 `json:"cancelTime"` FinishTime int64 `json:"finishTime"` PromiseLastDeliveryTime int64 `json:"promiseLastDeliveryTime"` PlanInfoId string `json:"planInfoId"` PlanInfoName string `json:"planInfoName"` ReceiverCountryId string `json:"receiverCountryId"` ReceiverCountryName string `json:"receiverCountryName"` ReceiverProvinceId string `json:"receiverProvinceId"` ReceiverProvinceName string `json:"receiverProvinceName"` ReceiverCityId string `json:"receiverCityId"` ReceiverCityName string `json:"receiverCityName"` ReceiverDistrictId string `json:"receiverDistrictId"` ReceiverDistrictName string `json:"receiverDistrictName"` CustomerRemark string `json:"customerRemark"` SellerRemark string `json:"sellerRemark"` SellerRemarkFlag int64 `json:"sellerRemarkFlag"` PresaleDeliveryStartTime int64 `json:"presaleDeliveryStartTime"` PresaleDeliveryEndTime int64 `json:"presaleDeliveryEndTime"` SkuList []OrderSkuList `json:"skuList"` OriginalOrderId string `json:"originalOrderId"` TotalNetWeightAmount int64 `json:"totalNetWeightAmount"` TotalPayAmount int64 `json:"totalPayAmount"` TotalShippingFree int64 `json:"totalShippingFree"` Unpack bool `json:"unpack"` ExpressTrackingNo string `json:"expressTrackingNo"` ExpressCompanyCode string `json:"expressCompanyCode"` ReceiverName string `json:"receiverName"` ReceiverPhone string `json:"receiverPhone"` ReceiverAddress string `json:"receiverAddress"` BoundExtendInfo struct { PayNo string `json:"payNo"` PayChannel string `json:"payChannel"` ProductValue float64 `json:"productValue"` PayAmount float64 `json:"payAmount"` TaxAmount float64 `json:"taxAmount"` ShippingFee float64 `json:"shippingFee"` DiscountAmount float64 `json:"discountAmount"` ZoneCodes []string `json:"zoneCodes"` } `json:"boundExtendInfo"` TransferExtendInfo struct { InternationalExpressNo string `json:"internationalExpressNo"` OrderDeclaredAmount float64 `json:"orderDeclaredAmount"` PaintMarker string `json:"paintMarker"` CollectionPlace string `json:"collectionPlace"` ThreeSegmentCode string `json:"threeSegmentCode"` } `json:"transferExtendInfo"` OpenAddressId string `json:"openAddressId"` SimpleDeliveryOrderList []struct { DeliveryOrderIndex int64 `json:"deliveryOrderIndex"` Status int64 `json:"status"` ExpressTrackingNo string `json:"expressTrackingNo"` ExpressCompanyCode string `json:"expressCompanyCode"` SkuIdList []string `json:"skuIdList"` } `json:"simpleDeliveryOrderList"` Logistics string `json:"logistics"` }
type RespGetOrderList ¶
type RespGetOrderList struct { BaseResponse Data RespGetOrderListData `json:"data"` }
func (RespGetOrderList) ErrorCode ¶
func (r RespGetOrderList) ErrorCode() int64
func (RespGetOrderList) ErrorMsg ¶
func (r RespGetOrderList) ErrorMsg() string
func (RespGetOrderList) Success ¶
func (r RespGetOrderList) Success() bool
type RespGetOrderListData ¶
type RespGetOrderListData struct { Total int64 `json:"total"` PageNo int64 `json:"pageNo"` PageSize int64 `json:"pageSize"` MaxPageNo int64 `json:"maxPageNo"` OrderList []struct { OrderId string `json:"orderId"` OrderType int64 `json:"orderType"` OrderStatus int64 `json:"orderStatus"` OrderAfterSalesStatus int64 `json:"orderAfterSalesStatus"` CancelStatus int64 `json:"cancelStatus"` CreatedTime int64 `json:"createdTime"` PaidTime int64 `json:"paidTime"` UpdateTime int64 `json:"updateTime"` DeliveryTime int64 `json:"deliveryTime"` CancelTime int64 `json:"cancelTime"` FinishTime int64 `json:"finishTime"` PromiseLastDeliveryTime int64 `json:"promiseLastDeliveryTime"` PlanInfoId string `json:"planInfoId"` PlanInfoName string `json:"planInfoName"` ReceiverCountryId string `json:"receiverCountryId"` ReceiverCountryName string `json:"receiverCountryName"` ReceiverProvinceId string `json:"receiverProvinceId"` ReceiverProvinceName string `json:"receiverProvinceName"` ReceiverCityId string `json:"receiverCityId"` ReceiverCityName string `json:"receiverCityName"` ReceiverDistrictId string `json:"receiverDistrictId"` ReceiverDistrictName string `json:"receiverDistrictName"` CustomerRemark string `json:"customerRemark"` SellerRemark string `json:"sellerRemark"` SellerRemarkFlag int64 `json:"sellerRemarkFlag"` OriginalOrderId string `json:"originalOrderId"` Logistics string `json:"logistics"` } `json:"orderList"` }
type RespGetOrderReceiverInfo ¶
type RespGetOrderReceiverInfo struct { BaseResponse Data RespGetOrderReceiverInfoData `json:"data"` }
func (RespGetOrderReceiverInfo) ErrorCode ¶
func (r RespGetOrderReceiverInfo) ErrorCode() int64
func (RespGetOrderReceiverInfo) ErrorMsg ¶
func (r RespGetOrderReceiverInfo) ErrorMsg() string
func (RespGetOrderReceiverInfo) Success ¶
func (r RespGetOrderReceiverInfo) Success() bool
type RespGetOrderReceiverInfoData ¶
type RespGetOrderReceiverInfoData struct { ReceiverInfos []struct { OrderId string `json:"orderId"` Matched bool `json:"matched"` ReceiverProvinceName string `json:"receiverProvinceName"` ReceiverCityName string `json:"receiverCityName"` ReceiverDistrictName string `json:"receiverDistrictName"` ReceiverTownName string `json:"receiverTownName"` ReceiverName string `json:"receiverName"` ReceiverPhone string `json:"receiverPhone"` ReceiverAddress string `json:"receiverAddress"` } `json:"receiverInfos"` }
type RespGetZones ¶
type RespGetZones struct { BaseResponse Data []RespGetZonesData `json:"data"` }
func (RespGetZones) ErrorCode ¶
func (r RespGetZones) ErrorCode() int64
func (RespGetZones) ErrorMsg ¶
func (r RespGetZones) ErrorMsg() string
func (RespGetZones) Success ¶
func (r RespGetZones) Success() bool
type RespGetZonesData ¶
type RespListAfterSaleApi ¶
type RespListAfterSaleApi struct { BaseResponse Data RespListAfterSaleApiData `json:"data"` }
func (RespListAfterSaleApi) ErrorCode ¶
func (r RespListAfterSaleApi) ErrorCode() int64
func (RespListAfterSaleApi) ErrorMsg ¶
func (r RespListAfterSaleApi) ErrorMsg() string
func (RespListAfterSaleApi) Success ¶
func (r RespListAfterSaleApi) Success() bool
type RespListAfterSaleApiData ¶
type RespListAfterSaleApiData struct { Total int64 `json:"total"` PageNo int64 `json:"pageNo"` PageSize int64 `json:"pageSize"` HaxNext bool `json:"haxNext"` SimpleAfterSaleList []struct { ReturnsId string `json:"returnsId"` ReturnType int64 `json:"returnType"` ReasonId int64 `json:"reasonId"` Reason string `json:"reason"` Status int64 `json:"status"` SubStatus int64 `json:"subStatus"` ReceiveAbnormalType int64 `json:"receiveAbnormalType"` OrderId string `json:"orderId"` ExchangeOrderId string `json:"exchangeOrderId"` UserId string `json:"userId"` CreatedTime int64 `json:"createdTime"` ReturnExpressNo string `json:"returnExpressNo"` ReturnExpressCompany string `json:"returnExpressCompany"` ReturnAddress string `json:"returnAddress"` ShipNeeded int64 `json:"shipNeeded"` Refunded bool `json:"refunded"` RefundStatus int64 `json:"refundStatus"` AutoReceiveDeadline int64 `json:"autoReceiveDeadline"` UseFastRefund bool `json:"useFastRefund"` UpdateTime int64 `json:"updateTime"` ReturnExpressCompanyCode string `json:"returnExpressCompanyCode"` ExpectedRefundAmount float64 `json:"expectedRefundAmount"` } `json:"simpleAfterSaleList"` MaxPageNo int64 `json:"maxPageNo"` }
type RespListAfterSaleInfos ¶ added in v1.0.4
type RespListAfterSaleInfos struct { BaseResponse Data RespListAfterSaleInfosData `json:"data"` }
func (RespListAfterSaleInfos) ErrorCode ¶ added in v1.0.4
func (r RespListAfterSaleInfos) ErrorCode() int64
func (RespListAfterSaleInfos) ErrorMsg ¶ added in v1.0.4
func (r RespListAfterSaleInfos) ErrorMsg() string
func (RespListAfterSaleInfos) Success ¶ added in v1.0.4
func (r RespListAfterSaleInfos) Success() bool
type RespListAfterSaleInfosData ¶ added in v1.0.4
type RespListAfterSaleInfosData struct { TotalCount int64 `json:"totalCount"` PageNo int64 `json:"pageNo"` PageSize int64 `json:"pageSize"` AfterSaleBasicInfos []struct { ReturnsId string `json:"returnsId"` ReturnType int64 `json:"returnType"` ReasonId int64 `json:"reasonId"` ReasonNameZh string `json:"reasonNameZh"` Status int64 `json:"status"` UserId string `json:"userId"` OrderId string `json:"orderId"` ApplyTime int64 `json:"applyTime"` UpdatedAt int64 `json:"updatedAt"` ExpireTime int64 `json:"expireTime"` Desc string `json:"desc"` ReturnsTag int64 `json:"returnsTag"` ExpectedRefundAmountYuan int64 `json:"expectedRefundAmountYuan"` } `json:"afterSaleBasicInfos"` MaxPageNo int64 `json:"maxPageNo"` }
type RespOrderDeliver ¶
type RespOrderDeliver struct { BaseResponse Data string `json:"data"` }
func (RespOrderDeliver) ErrorCode ¶
func (r RespOrderDeliver) ErrorCode() int64
func (RespOrderDeliver) ErrorMsg ¶
func (r RespOrderDeliver) ErrorMsg() string
func (RespOrderDeliver) Success ¶
func (r RespOrderDeliver) Success() bool
type RespRefreshAccessToken ¶
type RespRefreshAccessToken struct { BaseResponse Data RespGetAccessTokenData `json:"data"` }
func (RespRefreshAccessToken) ErrorCode ¶
func (r RespRefreshAccessToken) ErrorCode() int64
func (RespRefreshAccessToken) ErrorMsg ¶
func (r RespRefreshAccessToken) ErrorMsg() string
func (RespRefreshAccessToken) Success ¶
func (r RespRefreshAccessToken) Success() bool
Source Files ¶
- api_base.go
- api_client.go
- api_http.go
- api_oauth.go
- api_tool.go
- oauth-刷新访问令牌.go
- oauth-获取访问令牌.go
- 公共API-获取分类列表.go
- 公共API-获取品牌信息.go
- 公共API-获取地址信息.go
- 公共API-获取地址信息新接口.go
- 公共API-获取快递公司信息.go
- 售后API-售后列表.go
- 售后API-售后详情.go
- 售后API-旧售后列表.go
- 售后API-旧售后详情.go
- 订单API-批量脱敏.go
- 订单API-批量解密.go
- 订单API-订单列表.go
- 订单API-订单发货.go
- 订单API-订单收件人信息.go
- 订单API-订单详情.go
Click to show internal directories.
Click to hide internal directories.