card

package
v0.0.0-...-5652a87 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

卡券数据统计接口

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BizUinData

type BizUinData struct {
	RefDate      string `json:"ref_date"`     // 日期信息, YYYY-MM-DD
	ViewCount    int    `json:"view_cnt"`     // 浏览次数
	ViewUser     int    `json:"view_user"`    // 浏览人数
	ReceiveCount int    `json:"receive_cnt"`  // 领取次数
	ReceiveUser  int    `json:"receive_user"` // 领取人数
	VerifyCount  int    `json:"verify_cnt"`   // 使用次数
	VerifyUser   int    `json:"verify_user"`  // 使用人数
	GivenCount   int    `json:"given_cnt"`    // 转赠次数
	GivenUser    int    `json:"given_user"`   // 转赠人数
	ExpireCount  int    `json:"expire_cnt"`   // 过期次数
	ExpireUser   int    `json:"expire_user"`  // 过期人数
}

卡券概况数据

func GetBizUinInfo

func GetBizUinInfo(clt *mp.Client, req *Request) (list []BizUinData, err error)

拉取卡券概况数据接口

type CardData

type CardData struct {
	RefDate      string `json:"ref_date"`     // 日期信息, YYYY-MM-DD
	CardId       string `json:"card_id"`      // 卡券ID
	CardType     int    `json:"card_type"`    // cardtype:0:折扣券,1:代金券,2:礼品券,3:优惠券,4:团购券(暂不支持拉取特殊票券类型数据,电影票、飞机票、会议门票、景区门票)
	IsPay        int    `json:"is_pay"`       // 是否付费券。0为非付费券,1为付费券
	ViewCount    int    `json:"view_cnt"`     // 浏览次数
	ViewUser     int    `json:"view_user"`    // 浏览人数
	ReceiveCount int    `json:"receive_cnt"`  // 领取次数
	ReceiveUser  int    `json:"receive_user"` // 领取人数
	VerifyCount  int    `json:"verify_cnt"`   // 使用次数
	VerifyUser   int    `json:"verify_user"`  // 使用人数
	GivenCount   int    `json:"given_cnt"`    // 转赠次数
	GivenUser    int    `json:"given_user"`   // 转赠人数
	ExpireCount  int    `json:"expire_cnt"`   // 过期次数
	ExpireUser   int    `json:"expire_user"`  // 过期人数
}

免费券数据

func GetCardInfo

func GetCardInfo(clt *mp.Client, req *Request) (list []CardData, err error)

获取免费券数据接口

type MemberCardData

type MemberCardData struct {
	RefDate          string `json:"ref_date"`           // 日期信息, YYYY-MM-DD
	ViewCount        int    `json:"view_cnt"`           // 浏览次数
	ViewUser         int    `json:"view_user"`          // 浏览人数
	ReceiveCount     int    `json:"receive_cnt"`        // 领取次数
	ReceiveUser      int    `json:"receive_user"`       // 领取人数
	VerifyCount      int    `json:"verify_cnt"`         // 使用次数
	VerifyUser       int    `json:"verify_user"`        // 使用人数
	ActiveUser       int    `json:"active_user"`        // 激活人数
	TotalUser        int    `json:"total_user"`         // 有效会员总人数
	TotalReceiveUser int    `json:"total_receive_user"` // 历史领取会员卡总人数
}

会员卡数据

func GetMemberCardInfo

func GetMemberCardInfo(clt *mp.Client, req *Request) (list []MemberCardData, err error)

拉取会员卡数据接口

type Request

type Request struct {
	BeginDate  string `json:"begin_date"`        // 查询数据的起始时间, YYYY-MM-DD 格式;
	EndDate    string `json:"end_date"`          // 查询数据的截至时间, YYYY-MM-DD 格式;
	CondSource int    `json:"cond_source"`       // 卡券来源,0为公众平台创建的卡券数据、1是API创建的卡券数据
	CardId     string `json:"card_id,omitempty"` // 可选; 卡券ID。填写后,指定拉出该卡券的相关数据。
}

请求数据结构

Jump to

Keyboard shortcuts

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