item

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Coupon

type Coupon struct {
	RoleId        uint64     `json:"roleId,omitempty" codec:"roleId,omitempty"`
	EncryptedKey  string     `json:"encryptedKey,omitempty" codec:"encryptedKey,omitempty"`
	ToUrl         string     `json:"toUrl,omitempty" codec:"toUrl,omitempty"`
	UserClass     string     `json:"userClass,omitempty" codec:"userClass,omitempty"`
	UserRiskLevel int        `json:"userRiskLevel,omitempty" codec:"userRiskLevel,omitempty"`
	BeginTime     int64      `json:"beginTime,omitempty" codec:"beginTime,omitempty"`
	EndTime       int64      `json:"endTime,omitempty" codec:"endTime,omitempty"`
	BatchId       uint64     `json:"batchId,omitempty" codec:"batchId,omitempty"`
	Discount      float64    `json:"discount,omitempty" codec:"discount,omitempty"`
	Quota         float64    `json:"quota,omitempty" codec:"quota,omitempty"`
	CouponType    CouponType `json:"couponType,omitempty" codec:"couponType,omitempty"`
	Name          string     `json:"name,omitempty" codec:"name,omitempty"`
	LimitType     uint       `json:"limitType,omitempty" codec:"limitType,omitempty"`
	AddDays       uint       `json:"addDays,omitempty" codec:"addDays,omitempty"`
	BatchCount    uint       `json:"batchCount,omitempty" codec:"batchCount,omitempty"`
	NowCount      uint       `json:"nowCount,omitempty" codec:"nowCount,omitempty"`
	Url           string     `json:"url,omitempty" codec:"url,omitempty"`
	MUrl          string     `json:"mUrl,omitempty" codec:"mUrl,omitempty"`
}

func FindJoinActivities

func FindJoinActivities(req *FindJoinActivitiesRequest) ([]Coupon, error)

输入单个订单id,得到所有相关订单信息

type CouponType

type CouponType uint
const (
	JING_QUAN          CouponType = 0
	DONG_QUAN          CouponType = 1
	FREE_SHIPPING_QUAN CouponType = 2
)

type CouponVo

type CouponVo struct {
	Coupon Coupon `json:"batchActiveVo,omitempty" codec:"batchActiveVo,omitempty"`
}

type FindJoinActivitiesData

type FindJoinActivitiesData struct {
	Result FindJoinActivitiesResult `json:"findjoinactivesResult" codec:"findjoinactivesResult"`
}

type FindJoinActivitiesRequest

type FindJoinActivitiesRequest struct {
	api.BaseRequest
	Uid string `json:"uid,omitempty" codec:"uid,omitempty"`
	Sku uint64 `json:"sku,omitempty" codec:"sku,omitempty"`
}

type FindJoinActivitiesResponse

type FindJoinActivitiesResponse struct {
	ErrorResp *api.ErrorResponnse     `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *FindJoinActivitiesData `json:"jd_kpl_open_item_findjoinactives_response,omitempty" codec:"jd_kpl_open_item_findjoinactives_responseomitempty"`
}

type FindJoinActivitiesResult

type FindJoinActivitiesResult struct {
	Error   string      `json:"error,omitempty" codec:"error,omitempty"`
	Coupons []*CouponVo `json:"coupons,omitempty" codec:"coupons,omitempty"`
}

Jump to

Keyboard shortcuts

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