item

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: GPL-3.0 Imports: 4 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(ctx context.Context, 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"`
}

func (FindJoinActivitiesData) Error added in v1.1.1

func (r FindJoinActivitiesData) Error() string

func (FindJoinActivitiesData) IsError added in v1.1.1

func (r FindJoinActivitiesData) IsError() bool

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"`
}

func (FindJoinActivitiesResponse) Error added in v1.1.1

func (FindJoinActivitiesResponse) IsError added in v1.1.1

func (r FindJoinActivitiesResponse) IsError() bool

type FindJoinActivitiesResult

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

func (FindJoinActivitiesResult) Error

func (r FindJoinActivitiesResult) Error() string

func (FindJoinActivitiesResult) IsError added in v1.1.1

func (r FindJoinActivitiesResult) IsError() bool

Jump to

Keyboard shortcuts

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