v1

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1 is a generated protocol buffer package.

use {app_id}.{version} as package name

It is generated from these files:

app/service/main/coupon/api/api.proto

It has these top-level messages:

CaptchaTokenReq
CaptchaTokenReply
UseCouponCodeReq
UseCouponCodeResp
UsableAllowanceCouponV2Req
ModelPriceInfo
UsableAllowanceCouponV2Reply
ModelCouponAllowancePanelInfo

Index

Constants

View Source
const AppID = "account.service.coupon"

AppID .

Variables

View Source
var (
	ErrInvalidLengthApi = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApi   = fmt.Errorf("proto: integer overflow")
)

Functions

func RegisterCouponServer

func RegisterCouponServer(s *grpc.Server, srv CouponServer)

Types

type CaptchaTokenReply

type CaptchaTokenReply struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Url   string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
}

func (*CaptchaTokenReply) Descriptor

func (*CaptchaTokenReply) Descriptor() ([]byte, []int)

func (*CaptchaTokenReply) GetToken

func (m *CaptchaTokenReply) GetToken() string

func (*CaptchaTokenReply) GetUrl

func (m *CaptchaTokenReply) GetUrl() string

func (*CaptchaTokenReply) Marshal

func (m *CaptchaTokenReply) Marshal() (dAtA []byte, err error)

func (*CaptchaTokenReply) MarshalTo

func (m *CaptchaTokenReply) MarshalTo(dAtA []byte) (int, error)

func (*CaptchaTokenReply) ProtoMessage

func (*CaptchaTokenReply) ProtoMessage()

func (*CaptchaTokenReply) Reset

func (m *CaptchaTokenReply) Reset()

func (*CaptchaTokenReply) Size

func (m *CaptchaTokenReply) Size() (n int)

func (*CaptchaTokenReply) String

func (m *CaptchaTokenReply) String() string

func (*CaptchaTokenReply) Unmarshal

func (m *CaptchaTokenReply) Unmarshal(dAtA []byte) error

type CaptchaTokenReq

type CaptchaTokenReq struct {
	Ip string `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"`
}

func (*CaptchaTokenReq) Descriptor

func (*CaptchaTokenReq) Descriptor() ([]byte, []int)

func (*CaptchaTokenReq) GetIp

func (m *CaptchaTokenReq) GetIp() string

func (*CaptchaTokenReq) Marshal

func (m *CaptchaTokenReq) Marshal() (dAtA []byte, err error)

func (*CaptchaTokenReq) MarshalTo

func (m *CaptchaTokenReq) MarshalTo(dAtA []byte) (int, error)

func (*CaptchaTokenReq) ProtoMessage

func (*CaptchaTokenReq) ProtoMessage()

func (*CaptchaTokenReq) Reset

func (m *CaptchaTokenReq) Reset()

func (*CaptchaTokenReq) Size

func (m *CaptchaTokenReq) Size() (n int)

func (*CaptchaTokenReq) String

func (m *CaptchaTokenReq) String() string

func (*CaptchaTokenReq) Unmarshal

func (m *CaptchaTokenReq) Unmarshal(dAtA []byte) error

type CouponClient

type CouponClient interface {
	// CaptchaToken captcha token.
	CaptchaToken(ctx context.Context, in *CaptchaTokenReq, opts ...grpc.CallOption) (*CaptchaTokenReply, error)
	// UseCouponCode use coupon code.
	UseCouponCode(ctx context.Context, in *UseCouponCodeReq, opts ...grpc.CallOption) (*UseCouponCodeResp, error)
	// UsableAllowanceCouponV2 use allowance coupon v2.
	UsableAllowanceCouponV2(ctx context.Context, in *UsableAllowanceCouponV2Req, opts ...grpc.CallOption) (*UsableAllowanceCouponV2Reply, error)
}

func NewClient

func NewClient(cfg *warden.ClientConfig, opts ...grpc.DialOption) (CouponClient, error)

NewClient new grpc client

func NewCouponClient

func NewCouponClient(cc *grpc.ClientConn) CouponClient

type CouponServer

type CouponServer interface {
	// CaptchaToken captcha token.
	CaptchaToken(context.Context, *CaptchaTokenReq) (*CaptchaTokenReply, error)
	// UseCouponCode use coupon code.
	UseCouponCode(context.Context, *UseCouponCodeReq) (*UseCouponCodeResp, error)
	// UsableAllowanceCouponV2 use allowance coupon v2.
	UsableAllowanceCouponV2(context.Context, *UsableAllowanceCouponV2Req) (*UsableAllowanceCouponV2Reply, error)
}

type ModelCouponAllowancePanelInfo

type ModelCouponAllowancePanelInfo struct {
	CouponToken         string  `protobuf:"bytes,1,opt,name=coupon_token,json=couponToken,proto3" json:"coupon_token,omitempty"`
	CouponAmount        float64 `protobuf:"fixed64,2,opt,name=coupon_amount,json=couponAmount,proto3" json:"coupon_amount,omitempty"`
	State               int32   `protobuf:"varint,3,opt,name=state,proto3" json:"state,omitempty"`
	FullLimitExplain    string  `protobuf:"bytes,4,opt,name=full_limit_explain,json=fullLimitExplain,proto3" json:"full_limit_explain,omitempty"`
	ScopeExplain        string  `protobuf:"bytes,5,opt,name=scope_explain,json=scopeExplain,proto3" json:"scope_explain,omitempty"`
	FullAmount          float64 `protobuf:"fixed64,6,opt,name=full_amount,json=fullAmount,proto3" json:"full_amount,omitempty"`
	CouponDiscountPrice float64 `protobuf:"fixed64,7,opt,name=coupon_discount_price,json=couponDiscountPrice,proto3" json:"coupon_discount_price,omitempty"`
	StartTime           int64   `protobuf:"varint,8,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	ExpireTime          int64   `protobuf:"varint,9,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"`
	Selected            int32   `protobuf:"varint,10,opt,name=selected,proto3" json:"selected,omitempty"`
	DisablesExplains    string  `protobuf:"bytes,11,opt,name=disables_explains,json=disablesExplains,proto3" json:"disables_explains,omitempty"`
	OrderNo             string  `protobuf:"bytes,12,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	Name                string  `protobuf:"bytes,13,opt,name=name,proto3" json:"name,omitempty"`
	Usable              int32   `protobuf:"varint,14,opt,name=usable,proto3" json:"usable,omitempty"`
}

func (*ModelCouponAllowancePanelInfo) Descriptor

func (*ModelCouponAllowancePanelInfo) Descriptor() ([]byte, []int)

func (*ModelCouponAllowancePanelInfo) GetCouponAmount

func (m *ModelCouponAllowancePanelInfo) GetCouponAmount() float64

func (*ModelCouponAllowancePanelInfo) GetCouponDiscountPrice

func (m *ModelCouponAllowancePanelInfo) GetCouponDiscountPrice() float64

func (*ModelCouponAllowancePanelInfo) GetCouponToken

func (m *ModelCouponAllowancePanelInfo) GetCouponToken() string

func (*ModelCouponAllowancePanelInfo) GetDisablesExplains

func (m *ModelCouponAllowancePanelInfo) GetDisablesExplains() string

func (*ModelCouponAllowancePanelInfo) GetExpireTime

func (m *ModelCouponAllowancePanelInfo) GetExpireTime() int64

func (*ModelCouponAllowancePanelInfo) GetFullAmount

func (m *ModelCouponAllowancePanelInfo) GetFullAmount() float64

func (*ModelCouponAllowancePanelInfo) GetFullLimitExplain

func (m *ModelCouponAllowancePanelInfo) GetFullLimitExplain() string

func (*ModelCouponAllowancePanelInfo) GetName

func (*ModelCouponAllowancePanelInfo) GetOrderNo

func (m *ModelCouponAllowancePanelInfo) GetOrderNo() string

func (*ModelCouponAllowancePanelInfo) GetScopeExplain

func (m *ModelCouponAllowancePanelInfo) GetScopeExplain() string

func (*ModelCouponAllowancePanelInfo) GetSelected

func (m *ModelCouponAllowancePanelInfo) GetSelected() int32

func (*ModelCouponAllowancePanelInfo) GetStartTime

func (m *ModelCouponAllowancePanelInfo) GetStartTime() int64

func (*ModelCouponAllowancePanelInfo) GetState

func (m *ModelCouponAllowancePanelInfo) GetState() int32

func (*ModelCouponAllowancePanelInfo) GetUsable

func (m *ModelCouponAllowancePanelInfo) GetUsable() int32

func (*ModelCouponAllowancePanelInfo) Marshal

func (m *ModelCouponAllowancePanelInfo) Marshal() (dAtA []byte, err error)

func (*ModelCouponAllowancePanelInfo) MarshalTo

func (m *ModelCouponAllowancePanelInfo) MarshalTo(dAtA []byte) (int, error)

func (*ModelCouponAllowancePanelInfo) ProtoMessage

func (*ModelCouponAllowancePanelInfo) ProtoMessage()

func (*ModelCouponAllowancePanelInfo) Reset

func (m *ModelCouponAllowancePanelInfo) Reset()

func (*ModelCouponAllowancePanelInfo) Size

func (m *ModelCouponAllowancePanelInfo) Size() (n int)

func (*ModelCouponAllowancePanelInfo) String

func (*ModelCouponAllowancePanelInfo) Unmarshal

func (m *ModelCouponAllowancePanelInfo) Unmarshal(dAtA []byte) error

type ModelPriceInfo

type ModelPriceInfo struct {
	Price          float64 `protobuf:"fixed64,1,opt,name=price,proto3" json:"price,omitempty"`
	Plat           int64   `protobuf:"varint,2,opt,name=plat,proto3" json:"plat,omitempty"`
	ProdLimMonth   int32   `protobuf:"varint,3,opt,name=prodLimMonth,proto3" json:"prodLimMonth,omitempty"`
	ProdLimRenewal int32   `protobuf:"varint,4,opt,name=prodLimRenewal,proto3" json:"prodLimRenewal,omitempty"`
}

func (*ModelPriceInfo) Descriptor

func (*ModelPriceInfo) Descriptor() ([]byte, []int)

func (*ModelPriceInfo) GetPlat

func (m *ModelPriceInfo) GetPlat() int64

func (*ModelPriceInfo) GetPrice

func (m *ModelPriceInfo) GetPrice() float64

func (*ModelPriceInfo) GetProdLimMonth

func (m *ModelPriceInfo) GetProdLimMonth() int32

func (*ModelPriceInfo) GetProdLimRenewal

func (m *ModelPriceInfo) GetProdLimRenewal() int32

func (*ModelPriceInfo) Marshal

func (m *ModelPriceInfo) Marshal() (dAtA []byte, err error)

func (*ModelPriceInfo) MarshalTo

func (m *ModelPriceInfo) MarshalTo(dAtA []byte) (int, error)

func (*ModelPriceInfo) ProtoMessage

func (*ModelPriceInfo) ProtoMessage()

func (*ModelPriceInfo) Reset

func (m *ModelPriceInfo) Reset()

func (*ModelPriceInfo) Size

func (m *ModelPriceInfo) Size() (n int)

func (*ModelPriceInfo) String

func (m *ModelPriceInfo) String() string

func (*ModelPriceInfo) Unmarshal

func (m *ModelPriceInfo) Unmarshal(dAtA []byte) error

type UsableAllowanceCouponV2Reply

type UsableAllowanceCouponV2Reply struct {
	CouponTip  string                         `protobuf:"bytes,1,opt,name=coupon_tip,json=couponTip,proto3" json:"coupon_tip,omitempty"`
	CouponInfo *ModelCouponAllowancePanelInfo `protobuf:"bytes,2,opt,name=coupon_info,json=couponInfo" json:"coupon_info,omitempty"`
}

func (*UsableAllowanceCouponV2Reply) Descriptor

func (*UsableAllowanceCouponV2Reply) Descriptor() ([]byte, []int)

func (*UsableAllowanceCouponV2Reply) GetCouponInfo

func (*UsableAllowanceCouponV2Reply) GetCouponTip

func (m *UsableAllowanceCouponV2Reply) GetCouponTip() string

func (*UsableAllowanceCouponV2Reply) Marshal

func (m *UsableAllowanceCouponV2Reply) Marshal() (dAtA []byte, err error)

func (*UsableAllowanceCouponV2Reply) MarshalTo

func (m *UsableAllowanceCouponV2Reply) MarshalTo(dAtA []byte) (int, error)

func (*UsableAllowanceCouponV2Reply) ProtoMessage

func (*UsableAllowanceCouponV2Reply) ProtoMessage()

func (*UsableAllowanceCouponV2Reply) Reset

func (m *UsableAllowanceCouponV2Reply) Reset()

func (*UsableAllowanceCouponV2Reply) Size

func (m *UsableAllowanceCouponV2Reply) Size() (n int)

func (*UsableAllowanceCouponV2Reply) String

func (*UsableAllowanceCouponV2Reply) Unmarshal

func (m *UsableAllowanceCouponV2Reply) Unmarshal(dAtA []byte) error

type UsableAllowanceCouponV2Req

type UsableAllowanceCouponV2Req struct {
	Mid       int64             `protobuf:"varint,1,opt,name=mid,proto3" json:"mid,omitempty"`
	PriceInfo []*ModelPriceInfo `protobuf:"bytes,2,rep,name=priceInfo" json:"priceInfo,omitempty"`
}

func (*UsableAllowanceCouponV2Req) Descriptor

func (*UsableAllowanceCouponV2Req) Descriptor() ([]byte, []int)

func (*UsableAllowanceCouponV2Req) GetMid

func (m *UsableAllowanceCouponV2Req) GetMid() int64

func (*UsableAllowanceCouponV2Req) GetPriceInfo

func (m *UsableAllowanceCouponV2Req) GetPriceInfo() []*ModelPriceInfo

func (*UsableAllowanceCouponV2Req) Marshal

func (m *UsableAllowanceCouponV2Req) Marshal() (dAtA []byte, err error)

func (*UsableAllowanceCouponV2Req) MarshalTo

func (m *UsableAllowanceCouponV2Req) MarshalTo(dAtA []byte) (int, error)

func (*UsableAllowanceCouponV2Req) ProtoMessage

func (*UsableAllowanceCouponV2Req) ProtoMessage()

func (*UsableAllowanceCouponV2Req) Reset

func (m *UsableAllowanceCouponV2Req) Reset()

func (*UsableAllowanceCouponV2Req) Size

func (m *UsableAllowanceCouponV2Req) Size() (n int)

func (*UsableAllowanceCouponV2Req) String

func (m *UsableAllowanceCouponV2Req) String() string

func (*UsableAllowanceCouponV2Req) Unmarshal

func (m *UsableAllowanceCouponV2Req) Unmarshal(dAtA []byte) error

type UseCouponCodeReq

type UseCouponCodeReq struct {
	Token  string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	Code   string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	Verify string `protobuf:"bytes,3,opt,name=verify,proto3" json:"verify,omitempty"`
	Ip     string `protobuf:"bytes,4,opt,name=ip,proto3" json:"ip,omitempty"`
	Mid    int64  `protobuf:"varint,5,opt,name=mid,proto3" json:"mid,omitempty"`
}

func (*UseCouponCodeReq) Descriptor

func (*UseCouponCodeReq) Descriptor() ([]byte, []int)

func (*UseCouponCodeReq) GetCode

func (m *UseCouponCodeReq) GetCode() string

func (*UseCouponCodeReq) GetIp

func (m *UseCouponCodeReq) GetIp() string

func (*UseCouponCodeReq) GetMid

func (m *UseCouponCodeReq) GetMid() int64

func (*UseCouponCodeReq) GetToken

func (m *UseCouponCodeReq) GetToken() string

func (*UseCouponCodeReq) GetVerify

func (m *UseCouponCodeReq) GetVerify() string

func (*UseCouponCodeReq) Marshal

func (m *UseCouponCodeReq) Marshal() (dAtA []byte, err error)

func (*UseCouponCodeReq) MarshalTo

func (m *UseCouponCodeReq) MarshalTo(dAtA []byte) (int, error)

func (*UseCouponCodeReq) ProtoMessage

func (*UseCouponCodeReq) ProtoMessage()

func (*UseCouponCodeReq) Reset

func (m *UseCouponCodeReq) Reset()

func (*UseCouponCodeReq) Size

func (m *UseCouponCodeReq) Size() (n int)

func (*UseCouponCodeReq) String

func (m *UseCouponCodeReq) String() string

func (*UseCouponCodeReq) Unmarshal

func (m *UseCouponCodeReq) Unmarshal(dAtA []byte) error

type UseCouponCodeResp

type UseCouponCodeResp struct {
	CouponToken          string  `protobuf:"bytes,1,opt,name=coupon_token,json=couponToken,proto3" json:"coupon_token,omitempty"`
	CouponAmount         float64 `protobuf:"fixed64,2,opt,name=coupon_amount,json=couponAmount,proto3" json:"coupon_amount,omitempty"`
	FullAmount           float64 `protobuf:"fixed64,3,opt,name=full_amount,json=fullAmount,proto3" json:"full_amount,omitempty"`
	PlatfromLimitExplain string  `protobuf:"bytes,4,opt,name=platfrom_limit_explain,json=platfromLimitExplain,proto3" json:"platfrom_limit_explain,omitempty"`
	ProductLimitMonth    int32   `protobuf:"varint,5,opt,name=product_limit_month,json=productLimitMonth,proto3" json:"product_limit_month,omitempty"`
	ProductLimitRenewal  int32   `protobuf:"varint,6,opt,name=product_limit_renewal,json=productLimitRenewal,proto3" json:"product_limit_renewal,omitempty"`
}

func (*UseCouponCodeResp) Descriptor

func (*UseCouponCodeResp) Descriptor() ([]byte, []int)

func (*UseCouponCodeResp) GetCouponAmount

func (m *UseCouponCodeResp) GetCouponAmount() float64

func (*UseCouponCodeResp) GetCouponToken

func (m *UseCouponCodeResp) GetCouponToken() string

func (*UseCouponCodeResp) GetFullAmount

func (m *UseCouponCodeResp) GetFullAmount() float64

func (*UseCouponCodeResp) GetPlatfromLimitExplain

func (m *UseCouponCodeResp) GetPlatfromLimitExplain() string

func (*UseCouponCodeResp) GetProductLimitMonth

func (m *UseCouponCodeResp) GetProductLimitMonth() int32

func (*UseCouponCodeResp) GetProductLimitRenewal

func (m *UseCouponCodeResp) GetProductLimitRenewal() int32

func (*UseCouponCodeResp) Marshal

func (m *UseCouponCodeResp) Marshal() (dAtA []byte, err error)

func (*UseCouponCodeResp) MarshalTo

func (m *UseCouponCodeResp) MarshalTo(dAtA []byte) (int, error)

func (*UseCouponCodeResp) ProtoMessage

func (*UseCouponCodeResp) ProtoMessage()

func (*UseCouponCodeResp) Reset

func (m *UseCouponCodeResp) Reset()

func (*UseCouponCodeResp) Size

func (m *UseCouponCodeResp) Size() (n int)

func (*UseCouponCodeResp) String

func (m *UseCouponCodeResp) String() string

func (*UseCouponCodeResp) Unmarshal

func (m *UseCouponCodeResp) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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