memberupdate

package
v0.0.0-...-905ac7b Latest Latest
Warning

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

Go to latest
Published: Apr 29, 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 ExternalData

type ExternalData struct {
	/**
	 *  商户外部会员卡卡号
	 */
	ExternalCardNo string `json:"externalCardNo"`
	/**
	 *  会员卡积分,积分必须为数字型(可为浮点型,带2位小数点)
	 */
	Point string `json:"point"`
	/**
	 *  资金卡余额,单位:元,精确到小数点后两位
	 */
	Balance string `json:"balance"`
	/**
	 *  优惠券建议展示X张
	 */
	Coupon string `json:"coupon"`
}

type MemberUpdateRequest

type MemberUpdateRequest struct {
	/**
	 *  商户唯一标识,领卡事件中的userOpenId
	 */
	UserOpenId string `json:"userOpenId"`
	/**
	 *  该用户使用的卡模板key,应该能对应到一张唯一的卡模板,否则报错
	 */
	DefaultTemplateKey string `json:"defaultTemplateKey"`
	/**
	 *  会员卡更新内容
	 */
	ExternalData ExternalData `json:"externalData"`
}

func (*MemberUpdateRequest) DoInvoke

func (req *MemberUpdateRequest) DoInvoke(client mtclient.MeituanClient, appAuthToken string) (*MemberUpdateResponse, error)

type MemberUpdateResponse

type MemberUpdateResponse struct {
	Code    string `json:"code"`
	Msg     string `json:"msg"`
	Data    Resp   `json:"data"`
	TraceId string `json:"traceId"`
}

func (*MemberUpdateResponse) IsSuccess

func (response *MemberUpdateResponse) IsSuccess() bool

type Resp

type Resp struct {
	/**
	 * 业务状态
	 */
	Status string `json:"status"`
	/**
	 * 业务异常时的报错信息
	 */
	ErrMsg string `json:"errMsg"`
}

Jump to

Keyboard shortcuts

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