Documentation
¶
Index ¶
- type Abstract
- type AdvancedInfo
- type BaseInfo
- type BoardingPass
- type BusTicket
- type Card
- type CardInterface
- type CardQRCode
- type Cash
- type DateInfo
- type Discount
- type GeneralCoupon
- type Gift
- type GroupOn
- type MeetingTicket
- type MemberCard
- type MovieTicket
- type MultiCard
- type RequestCardCreate
- type RequestCreateQrCode
- type SKU
- type ScenicTicket
- type TextImage
- type TimeLimit
- type UseCondition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvancedInfo ¶
type AdvancedInfo struct {
UseCondition *UseCondition `json:"use_condition"`
Abstract *Abstract `json:"abstract"`
TextImageList []*TextImage `json:"text_image_list"`
TimeLimit []*TimeLimit `json:"time_limit"`
BusinessService []string `json:"business_service"`
}
type BaseInfo ¶
type BaseInfo struct {
LogoUrl string `json:"logo_url"`
BrandName string `json:"brand_name"`
CodeType string `json:"code_type"`
Title string `json:"title"`
Color string `json:"color"`
Notice string `json:"notice"`
ServicePhone string `json:"service_phone"`
Description string `json:"description"`
DateInfo *DateInfo `json:"date_info"`
SKU *SKU `json:"sku"`
UseLimit int `json:"use_limit"`
GetLimit int `json:"get_limit"`
UseCustomCode bool `json:"use_custom_code"`
BindOpenid bool `json:"bind_openid"`
CanGiveFriend bool `json:"can_give_friend"`
LocationIdList []int `json:"location_id_list"`
CenterTitle string `json:"center_title"`
CenterSubTitle string `json:"center_sub_title"`
CenterUrl string `json:"center_url"`
CustomUrlName string `json:"custom_url_name"`
CustomUrl string `json:"custom_url"`
CustomUrlSubTitle string `json:"custom_url_sub_title"`
PromotionUrlName string `json:"promotion_url_name"`
PromotionUrl string `json:"promotion_url"`
Source string `json:"source"`
}
type BoardingPass ¶
type BoardingPass struct {
CardInterface
BaseInfo *BaseInfo `json:"base_info"`
}
type BusTicket ¶
type BusTicket struct {
CardInterface
BaseInfo *BaseInfo `json:"base_info"`
}
type Card ¶
type Card struct {
CardType string `json:"card_type"`
Groupon *GroupOn `json:"groupon"`
Cash *Cash `json:"cash"`
Discount *Discount `json:"discount"`
Gift *Gift `json:"gift"`
GeneralCoupon *GeneralCoupon `json:"general_coupon"`
MemberCard *MemberCard `json:"member_card"`
ScenicTicket *ScenicTicket `json:"scenic_ticket"`
MovieTicket *MovieTicket `json:"movie_ticket"`
BoardingPass *BoardingPass `json:"boarding_pass"`
MeetingTicket *MeetingTicket `json:"meeting_ticket"`
BusTicket *BusTicket `json:"bus_ticket"`
}
type CardInterface ¶
type CardInterface interface {
GetCardType() string
}
type CardQRCode ¶
type Cash ¶
type Cash struct {
CardInterface
BaseInfo *BaseInfo `json:"base_info"`
AdvancedInfo *AdvancedInfo `json:"advanced_info"`
LeastCost int `json:"least_cost"`
ReduceCost int `json:"reduce_cost"`
}
type Discount ¶
type Discount struct {
CardInterface
BaseInfo *BaseInfo `json:"base_info"`
AdvancedInfo *AdvancedInfo `json:"advanced_info"`
Discount int `json:"discount"`
}
type GeneralCoupon ¶
type GeneralCoupon struct {
CardInterface
BaseInfo *BaseInfo `json:"base_info"`
AdvancedInfo *AdvancedInfo `json:"advanced_info"`
DefaultDetail string `json:"default_detail"`
}
type Gift ¶
type Gift struct {
CardInterface
BaseInfo *BaseInfo `json:"base_info"`
AdvancedInfo *AdvancedInfo `json:"advanced_info"`
Gift string `json:"gift"`
}
type GroupOn ¶
type GroupOn struct {
CardInterface
BaseInfo *BaseInfo `json:"base_info"`
AdvancedInfo *AdvancedInfo `json:"advanced_info"`
DealDetail string `json:"deal_detail"`
}
type MeetingTicket ¶
type MeetingTicket struct {
CardInterface
BaseInfo *BaseInfo `json:"base_info"`
}
type MemberCard ¶
type MemberCard struct {
CardInterface
BaseInfo *BaseInfo `json:"base_info"`
BonusCleared string `json:"bonus_cleared"`
BonusRules string `json:"bonus_rules"`
Prerogative string `json:"prerogative"`
}
type MovieTicket ¶
type MovieTicket struct {
CardInterface
BaseInfo *BaseInfo `json:"base_info"`
}
type MultiCard ¶
type MultiCard struct {
CardList []*CardQRCode `json:"card_list"`
}
type RequestCardCreate ¶
type RequestCardCreate struct {
Card *Card `json:"card"`
}
type RequestCreateQrCode ¶
type RequestCreateQrCode struct {
ActionName string `json:"action_name"`
ActionInfo struct {
MultipleCard *MultiCard `json:"multiple_card"`
Card *CardQRCode `json:"card"`
} `json:"action_info"`
}
type ScenicTicket ¶
type ScenicTicket struct {
CardInterface
BaseInfo *BaseInfo `json:"base_info"`
}
type UseCondition ¶
Click to show internal directories.
Click to hide internal directories.