v1

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicOrder_CloseOrder_FullMethodName       = "/api.public.order.v1.PublicOrder/CloseOrder"
	PublicOrder_QueryOrderDetail_FullMethodName = "/api.public.order.v1.PublicOrder/QueryOrderDetail"
	PublicOrder_QueryOrderList_FullMethodName   = "/api.public.order.v1.PublicOrder/QueryOrderList"
	PublicOrder_PreCreateOrder_FullMethodName   = "/api.public.order.v1.PublicOrder/PreCreateOrder"
	PublicOrder_Purchase_FullMethodName         = "/api.public.order.v1.PublicOrder/Purchase"
	PublicOrder_Recharge_FullMethodName         = "/api.public.order.v1.PublicOrder/Recharge"
	PublicOrder_Renewal_FullMethodName          = "/api.public.order.v1.PublicOrder/Renewal"
	PublicOrder_ResetTraffic_FullMethodName     = "/api.public.order.v1.PublicOrder/ResetTraffic"
)
View Source
const OperationPublicOrderCloseOrder = "/api.public.order.v1.PublicOrder/CloseOrder"
View Source
const OperationPublicOrderPreCreateOrder = "/api.public.order.v1.PublicOrder/PreCreateOrder"
View Source
const OperationPublicOrderPurchase = "/api.public.order.v1.PublicOrder/Purchase"
View Source
const OperationPublicOrderQueryOrderDetail = "/api.public.order.v1.PublicOrder/QueryOrderDetail"
View Source
const OperationPublicOrderQueryOrderList = "/api.public.order.v1.PublicOrder/QueryOrderList"
View Source
const OperationPublicOrderRecharge = "/api.public.order.v1.PublicOrder/Recharge"
View Source
const OperationPublicOrderRenewal = "/api.public.order.v1.PublicOrder/Renewal"
View Source
const OperationPublicOrderResetTraffic = "/api.public.order.v1.PublicOrder/ResetTraffic"

Variables

View Source
var File_public_order_v1_order_proto protoreflect.FileDescriptor
View Source
var PublicOrder_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.public.order.v1.PublicOrder",
	HandlerType: (*PublicOrderServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CloseOrder",
			Handler:    _PublicOrder_CloseOrder_Handler,
		},
		{
			MethodName: "QueryOrderDetail",
			Handler:    _PublicOrder_QueryOrderDetail_Handler,
		},
		{
			MethodName: "QueryOrderList",
			Handler:    _PublicOrder_QueryOrderList_Handler,
		},
		{
			MethodName: "PreCreateOrder",
			Handler:    _PublicOrder_PreCreateOrder_Handler,
		},
		{
			MethodName: "Purchase",
			Handler:    _PublicOrder_Purchase_Handler,
		},
		{
			MethodName: "Recharge",
			Handler:    _PublicOrder_Recharge_Handler,
		},
		{
			MethodName: "Renewal",
			Handler:    _PublicOrder_Renewal_Handler,
		},
		{
			MethodName: "ResetTraffic",
			Handler:    _PublicOrder_ResetTraffic_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "public/order/v1/order.proto",
}

PublicOrder_ServiceDesc is the grpc.ServiceDesc for PublicOrder service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterPublicOrderHTTPServer

func RegisterPublicOrderHTTPServer(s *http.Server, srv PublicOrderHTTPServer)

func RegisterPublicOrderServer

func RegisterPublicOrderServer(s grpc.ServiceRegistrar, srv PublicOrderServer)

Types

type CloseOrderRequest

type CloseOrderRequest struct {
	OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	// contains filtered or unexported fields
}

func (*CloseOrderRequest) Descriptor deprecated

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

Deprecated: Use CloseOrderRequest.ProtoReflect.Descriptor instead.

func (*CloseOrderRequest) GetOrderNo

func (x *CloseOrderRequest) GetOrderNo() string

func (*CloseOrderRequest) ProtoMessage

func (*CloseOrderRequest) ProtoMessage()

func (*CloseOrderRequest) ProtoReflect

func (x *CloseOrderRequest) ProtoReflect() protoreflect.Message

func (*CloseOrderRequest) Reset

func (x *CloseOrderRequest) Reset()

func (*CloseOrderRequest) String

func (x *CloseOrderRequest) String() string

func (*CloseOrderRequest) Validate

func (m *CloseOrderRequest) Validate() error

Validate checks the field values on CloseOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CloseOrderRequest) ValidateAll

func (m *CloseOrderRequest) ValidateAll() error

ValidateAll checks the field values on CloseOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CloseOrderRequestMultiError, or nil if none found.

type CloseOrderRequestMultiError

type CloseOrderRequestMultiError []error

CloseOrderRequestMultiError is an error wrapping multiple validation errors returned by CloseOrderRequest.ValidateAll() if the designated constraints aren't met.

func (CloseOrderRequestMultiError) AllErrors

func (m CloseOrderRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CloseOrderRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CloseOrderRequestValidationError

type CloseOrderRequestValidationError struct {
	// contains filtered or unexported fields
}

CloseOrderRequestValidationError is the validation error returned by CloseOrderRequest.Validate if the designated constraints aren't met.

func (CloseOrderRequestValidationError) Cause

Cause function returns cause value.

func (CloseOrderRequestValidationError) Error

Error satisfies the builtin error interface

func (CloseOrderRequestValidationError) ErrorName

ErrorName returns error name.

func (CloseOrderRequestValidationError) Field

Field function returns field value.

func (CloseOrderRequestValidationError) Key

Key function returns key value.

func (CloseOrderRequestValidationError) Reason

Reason function returns reason value.

type OrderDetail

type OrderDetail struct {
	Id             int64          `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	UserId         int64          `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	OrderNo        string         `protobuf:"bytes,3,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	Type           int32          `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
	Quantity       int64          `protobuf:"varint,5,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Price          int64          `protobuf:"varint,6,opt,name=price,proto3" json:"price,omitempty"`
	Amount         int64          `protobuf:"varint,7,opt,name=amount,proto3" json:"amount,omitempty"`
	GiftAmount     int64          `protobuf:"varint,8,opt,name=gift_amount,json=giftAmount,proto3" json:"gift_amount,omitempty"`
	Discount       int64          `protobuf:"varint,9,opt,name=discount,proto3" json:"discount,omitempty"`
	Coupon         string         `protobuf:"bytes,10,opt,name=coupon,proto3" json:"coupon,omitempty"`
	CouponDiscount int64          `protobuf:"varint,11,opt,name=coupon_discount,json=couponDiscount,proto3" json:"coupon_discount,omitempty"`
	Commission     int64          `protobuf:"varint,12,opt,name=commission,proto3" json:"commission,omitempty"`
	Payment        *PaymentMethod `protobuf:"bytes,13,opt,name=payment,proto3" json:"payment,omitempty"`
	Method         string         `protobuf:"bytes,14,opt,name=method,proto3" json:"method,omitempty"`
	FeeAmount      int64          `protobuf:"varint,15,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"`
	TradeNo        string         `protobuf:"bytes,16,opt,name=trade_no,json=tradeNo,proto3" json:"trade_no,omitempty"`
	Status         int32          `protobuf:"varint,17,opt,name=status,proto3" json:"status,omitempty"`
	SubscribeId    int64          `protobuf:"varint,18,opt,name=subscribe_id,json=subscribeId,proto3" json:"subscribe_id,omitempty"`
	Subscribe      *Subscribe     `protobuf:"bytes,19,opt,name=subscribe,proto3" json:"subscribe,omitempty"`
	CreatedAt      int64          `protobuf:"varint,20,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt      int64          `protobuf:"varint,21,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*OrderDetail) Descriptor deprecated

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

Deprecated: Use OrderDetail.ProtoReflect.Descriptor instead.

func (*OrderDetail) GetAmount

func (x *OrderDetail) GetAmount() int64

func (*OrderDetail) GetCommission

func (x *OrderDetail) GetCommission() int64

func (*OrderDetail) GetCoupon

func (x *OrderDetail) GetCoupon() string

func (*OrderDetail) GetCouponDiscount

func (x *OrderDetail) GetCouponDiscount() int64

func (*OrderDetail) GetCreatedAt

func (x *OrderDetail) GetCreatedAt() int64

func (*OrderDetail) GetDiscount

func (x *OrderDetail) GetDiscount() int64

func (*OrderDetail) GetFeeAmount

func (x *OrderDetail) GetFeeAmount() int64

func (*OrderDetail) GetGiftAmount

func (x *OrderDetail) GetGiftAmount() int64

func (*OrderDetail) GetId

func (x *OrderDetail) GetId() int64

func (*OrderDetail) GetMethod

func (x *OrderDetail) GetMethod() string

func (*OrderDetail) GetOrderNo

func (x *OrderDetail) GetOrderNo() string

func (*OrderDetail) GetPayment

func (x *OrderDetail) GetPayment() *PaymentMethod

func (*OrderDetail) GetPrice

func (x *OrderDetail) GetPrice() int64

func (*OrderDetail) GetQuantity

func (x *OrderDetail) GetQuantity() int64

func (*OrderDetail) GetStatus

func (x *OrderDetail) GetStatus() int32

func (*OrderDetail) GetSubscribe

func (x *OrderDetail) GetSubscribe() *Subscribe

func (*OrderDetail) GetSubscribeId

func (x *OrderDetail) GetSubscribeId() int64

func (*OrderDetail) GetTradeNo

func (x *OrderDetail) GetTradeNo() string

func (*OrderDetail) GetType

func (x *OrderDetail) GetType() int32

func (*OrderDetail) GetUpdatedAt

func (x *OrderDetail) GetUpdatedAt() int64

func (*OrderDetail) GetUserId

func (x *OrderDetail) GetUserId() int64

func (*OrderDetail) ProtoMessage

func (*OrderDetail) ProtoMessage()

func (*OrderDetail) ProtoReflect

func (x *OrderDetail) ProtoReflect() protoreflect.Message

func (*OrderDetail) Reset

func (x *OrderDetail) Reset()

func (*OrderDetail) String

func (x *OrderDetail) String() string

func (*OrderDetail) Validate

func (m *OrderDetail) Validate() error

Validate checks the field values on OrderDetail with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*OrderDetail) ValidateAll

func (m *OrderDetail) ValidateAll() error

ValidateAll checks the field values on OrderDetail with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OrderDetailMultiError, or nil if none found.

type OrderDetailMultiError

type OrderDetailMultiError []error

OrderDetailMultiError is an error wrapping multiple validation errors returned by OrderDetail.ValidateAll() if the designated constraints aren't met.

func (OrderDetailMultiError) AllErrors

func (m OrderDetailMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (OrderDetailMultiError) Error

func (m OrderDetailMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type OrderDetailValidationError

type OrderDetailValidationError struct {
	// contains filtered or unexported fields
}

OrderDetailValidationError is the validation error returned by OrderDetail.Validate if the designated constraints aren't met.

func (OrderDetailValidationError) Cause

Cause function returns cause value.

func (OrderDetailValidationError) Error

Error satisfies the builtin error interface

func (OrderDetailValidationError) ErrorName

func (e OrderDetailValidationError) ErrorName() string

ErrorName returns error name.

func (OrderDetailValidationError) Field

Field function returns field value.

func (OrderDetailValidationError) Key

Key function returns key value.

func (OrderDetailValidationError) Reason

Reason function returns reason value.

type PaymentMethod

type PaymentMethod struct {
	Id          int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Platform    string `protobuf:"bytes,3,opt,name=platform,proto3" json:"platform,omitempty"`
	Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Icon        string `protobuf:"bytes,5,opt,name=icon,proto3" json:"icon,omitempty"`
	FeeMode     uint32 `protobuf:"varint,6,opt,name=fee_mode,json=feeMode,proto3" json:"fee_mode,omitempty"`
	FeePercent  int64  `protobuf:"varint,7,opt,name=fee_percent,json=feePercent,proto3" json:"fee_percent,omitempty"`
	FeeAmount   int64  `protobuf:"varint,8,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"`
	// contains filtered or unexported fields
}

func (*PaymentMethod) Descriptor deprecated

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

Deprecated: Use PaymentMethod.ProtoReflect.Descriptor instead.

func (*PaymentMethod) GetDescription

func (x *PaymentMethod) GetDescription() string

func (*PaymentMethod) GetFeeAmount

func (x *PaymentMethod) GetFeeAmount() int64

func (*PaymentMethod) GetFeeMode

func (x *PaymentMethod) GetFeeMode() uint32

func (*PaymentMethod) GetFeePercent

func (x *PaymentMethod) GetFeePercent() int64

func (*PaymentMethod) GetIcon

func (x *PaymentMethod) GetIcon() string

func (*PaymentMethod) GetId

func (x *PaymentMethod) GetId() int64

func (*PaymentMethod) GetName

func (x *PaymentMethod) GetName() string

func (*PaymentMethod) GetPlatform

func (x *PaymentMethod) GetPlatform() string

func (*PaymentMethod) ProtoMessage

func (*PaymentMethod) ProtoMessage()

func (*PaymentMethod) ProtoReflect

func (x *PaymentMethod) ProtoReflect() protoreflect.Message

func (*PaymentMethod) Reset

func (x *PaymentMethod) Reset()

func (*PaymentMethod) String

func (x *PaymentMethod) String() string

func (*PaymentMethod) Validate

func (m *PaymentMethod) Validate() error

Validate checks the field values on PaymentMethod with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PaymentMethod) ValidateAll

func (m *PaymentMethod) ValidateAll() error

ValidateAll checks the field values on PaymentMethod with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PaymentMethodMultiError, or nil if none found.

type PaymentMethodMultiError

type PaymentMethodMultiError []error

PaymentMethodMultiError is an error wrapping multiple validation errors returned by PaymentMethod.ValidateAll() if the designated constraints aren't met.

func (PaymentMethodMultiError) AllErrors

func (m PaymentMethodMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PaymentMethodMultiError) Error

func (m PaymentMethodMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PaymentMethodValidationError

type PaymentMethodValidationError struct {
	// contains filtered or unexported fields
}

PaymentMethodValidationError is the validation error returned by PaymentMethod.Validate if the designated constraints aren't met.

func (PaymentMethodValidationError) Cause

Cause function returns cause value.

func (PaymentMethodValidationError) Error

Error satisfies the builtin error interface

func (PaymentMethodValidationError) ErrorName

func (e PaymentMethodValidationError) ErrorName() string

ErrorName returns error name.

func (PaymentMethodValidationError) Field

Field function returns field value.

func (PaymentMethodValidationError) Key

Key function returns key value.

func (PaymentMethodValidationError) Reason

Reason function returns reason value.

type PreCreateOrderReply

type PreCreateOrderReply struct {
	Price          int64  `protobuf:"varint,1,opt,name=price,proto3" json:"price,omitempty"`
	Amount         int64  `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
	Discount       int64  `protobuf:"varint,3,opt,name=discount,proto3" json:"discount,omitempty"`
	GiftAmount     int64  `protobuf:"varint,4,opt,name=gift_amount,json=giftAmount,proto3" json:"gift_amount,omitempty"`
	Coupon         string `protobuf:"bytes,5,opt,name=coupon,proto3" json:"coupon,omitempty"`
	CouponDiscount int64  `protobuf:"varint,6,opt,name=coupon_discount,json=couponDiscount,proto3" json:"coupon_discount,omitempty"`
	FeeAmount      int64  `protobuf:"varint,7,opt,name=fee_amount,json=feeAmount,proto3" json:"fee_amount,omitempty"`
	// contains filtered or unexported fields
}

func (*PreCreateOrderReply) Descriptor deprecated

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

Deprecated: Use PreCreateOrderReply.ProtoReflect.Descriptor instead.

func (*PreCreateOrderReply) GetAmount

func (x *PreCreateOrderReply) GetAmount() int64

func (*PreCreateOrderReply) GetCoupon

func (x *PreCreateOrderReply) GetCoupon() string

func (*PreCreateOrderReply) GetCouponDiscount

func (x *PreCreateOrderReply) GetCouponDiscount() int64

func (*PreCreateOrderReply) GetDiscount

func (x *PreCreateOrderReply) GetDiscount() int64

func (*PreCreateOrderReply) GetFeeAmount

func (x *PreCreateOrderReply) GetFeeAmount() int64

func (*PreCreateOrderReply) GetGiftAmount

func (x *PreCreateOrderReply) GetGiftAmount() int64

func (*PreCreateOrderReply) GetPrice

func (x *PreCreateOrderReply) GetPrice() int64

func (*PreCreateOrderReply) ProtoMessage

func (*PreCreateOrderReply) ProtoMessage()

func (*PreCreateOrderReply) ProtoReflect

func (x *PreCreateOrderReply) ProtoReflect() protoreflect.Message

func (*PreCreateOrderReply) Reset

func (x *PreCreateOrderReply) Reset()

func (*PreCreateOrderReply) String

func (x *PreCreateOrderReply) String() string

func (*PreCreateOrderReply) Validate

func (m *PreCreateOrderReply) Validate() error

Validate checks the field values on PreCreateOrderReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PreCreateOrderReply) ValidateAll

func (m *PreCreateOrderReply) ValidateAll() error

ValidateAll checks the field values on PreCreateOrderReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PreCreateOrderReplyMultiError, or nil if none found.

type PreCreateOrderReplyMultiError

type PreCreateOrderReplyMultiError []error

PreCreateOrderReplyMultiError is an error wrapping multiple validation errors returned by PreCreateOrderReply.ValidateAll() if the designated constraints aren't met.

func (PreCreateOrderReplyMultiError) AllErrors

func (m PreCreateOrderReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PreCreateOrderReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PreCreateOrderReplyValidationError

type PreCreateOrderReplyValidationError struct {
	// contains filtered or unexported fields
}

PreCreateOrderReplyValidationError is the validation error returned by PreCreateOrderReply.Validate if the designated constraints aren't met.

func (PreCreateOrderReplyValidationError) Cause

Cause function returns cause value.

func (PreCreateOrderReplyValidationError) Error

Error satisfies the builtin error interface

func (PreCreateOrderReplyValidationError) ErrorName

ErrorName returns error name.

func (PreCreateOrderReplyValidationError) Field

Field function returns field value.

func (PreCreateOrderReplyValidationError) Key

Key function returns key value.

func (PreCreateOrderReplyValidationError) Reason

Reason function returns reason value.

type PreCreateOrderRequest

type PreCreateOrderRequest struct {
	SubscribeId int64  `protobuf:"varint,1,opt,name=subscribe_id,json=subscribeId,proto3" json:"subscribe_id,omitempty"`
	Quantity    int64  `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Payment     int64  `protobuf:"varint,3,opt,name=payment,proto3" json:"payment,omitempty"`
	Coupon      string `protobuf:"bytes,4,opt,name=coupon,proto3" json:"coupon,omitempty"`
	// contains filtered or unexported fields
}

func (*PreCreateOrderRequest) Descriptor deprecated

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

Deprecated: Use PreCreateOrderRequest.ProtoReflect.Descriptor instead.

func (*PreCreateOrderRequest) GetCoupon

func (x *PreCreateOrderRequest) GetCoupon() string

func (*PreCreateOrderRequest) GetPayment

func (x *PreCreateOrderRequest) GetPayment() int64

func (*PreCreateOrderRequest) GetQuantity

func (x *PreCreateOrderRequest) GetQuantity() int64

func (*PreCreateOrderRequest) GetSubscribeId

func (x *PreCreateOrderRequest) GetSubscribeId() int64

func (*PreCreateOrderRequest) ProtoMessage

func (*PreCreateOrderRequest) ProtoMessage()

func (*PreCreateOrderRequest) ProtoReflect

func (x *PreCreateOrderRequest) ProtoReflect() protoreflect.Message

func (*PreCreateOrderRequest) Reset

func (x *PreCreateOrderRequest) Reset()

func (*PreCreateOrderRequest) String

func (x *PreCreateOrderRequest) String() string

func (*PreCreateOrderRequest) Validate

func (m *PreCreateOrderRequest) Validate() error

Validate checks the field values on PreCreateOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PreCreateOrderRequest) ValidateAll

func (m *PreCreateOrderRequest) ValidateAll() error

ValidateAll checks the field values on PreCreateOrderRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PreCreateOrderRequestMultiError, or nil if none found.

type PreCreateOrderRequestMultiError

type PreCreateOrderRequestMultiError []error

PreCreateOrderRequestMultiError is an error wrapping multiple validation errors returned by PreCreateOrderRequest.ValidateAll() if the designated constraints aren't met.

func (PreCreateOrderRequestMultiError) AllErrors

func (m PreCreateOrderRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PreCreateOrderRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PreCreateOrderRequestValidationError

type PreCreateOrderRequestValidationError struct {
	// contains filtered or unexported fields
}

PreCreateOrderRequestValidationError is the validation error returned by PreCreateOrderRequest.Validate if the designated constraints aren't met.

func (PreCreateOrderRequestValidationError) Cause

Cause function returns cause value.

func (PreCreateOrderRequestValidationError) Error

Error satisfies the builtin error interface

func (PreCreateOrderRequestValidationError) ErrorName

ErrorName returns error name.

func (PreCreateOrderRequestValidationError) Field

Field function returns field value.

func (PreCreateOrderRequestValidationError) Key

Key function returns key value.

func (PreCreateOrderRequestValidationError) Reason

Reason function returns reason value.

type PublicOrderClient

type PublicOrderClient interface {
	CloseOrder(ctx context.Context, in *CloseOrderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	QueryOrderDetail(ctx context.Context, in *QueryOrderDetailRequest, opts ...grpc.CallOption) (*OrderDetail, error)
	QueryOrderList(ctx context.Context, in *QueryOrderListRequest, opts ...grpc.CallOption) (*QueryOrderListReply, error)
	PreCreateOrder(ctx context.Context, in *PreCreateOrderRequest, opts ...grpc.CallOption) (*PreCreateOrderReply, error)
	Purchase(ctx context.Context, in *PurchaseRequest, opts ...grpc.CallOption) (*PurchaseReply, error)
	Recharge(ctx context.Context, in *RechargeRequest, opts ...grpc.CallOption) (*RechargeReply, error)
	Renewal(ctx context.Context, in *RenewalRequest, opts ...grpc.CallOption) (*RenewalReply, error)
	ResetTraffic(ctx context.Context, in *ResetTrafficRequest, opts ...grpc.CallOption) (*ResetTrafficReply, error)
}

PublicOrderClient is the client API for PublicOrder service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type PublicOrderHTTPClient

type PublicOrderHTTPClient interface {
	CloseOrder(ctx context.Context, req *CloseOrderRequest, opts ...http.CallOption) (rsp *emptypb.Empty, err error)
	PreCreateOrder(ctx context.Context, req *PreCreateOrderRequest, opts ...http.CallOption) (rsp *PreCreateOrderReply, err error)
	Purchase(ctx context.Context, req *PurchaseRequest, opts ...http.CallOption) (rsp *PurchaseReply, err error)
	QueryOrderDetail(ctx context.Context, req *QueryOrderDetailRequest, opts ...http.CallOption) (rsp *OrderDetail, err error)
	QueryOrderList(ctx context.Context, req *QueryOrderListRequest, opts ...http.CallOption) (rsp *QueryOrderListReply, err error)
	Recharge(ctx context.Context, req *RechargeRequest, opts ...http.CallOption) (rsp *RechargeReply, err error)
	Renewal(ctx context.Context, req *RenewalRequest, opts ...http.CallOption) (rsp *RenewalReply, err error)
	ResetTraffic(ctx context.Context, req *ResetTrafficRequest, opts ...http.CallOption) (rsp *ResetTrafficReply, err error)
}

func NewPublicOrderHTTPClient

func NewPublicOrderHTTPClient(client *http.Client) PublicOrderHTTPClient

type PublicOrderHTTPClientImpl

type PublicOrderHTTPClientImpl struct {
	// contains filtered or unexported fields
}

func (*PublicOrderHTTPClientImpl) CloseOrder

func (*PublicOrderHTTPClientImpl) PreCreateOrder

func (*PublicOrderHTTPClientImpl) Purchase

func (*PublicOrderHTTPClientImpl) QueryOrderDetail

func (*PublicOrderHTTPClientImpl) QueryOrderList

func (*PublicOrderHTTPClientImpl) Recharge

func (*PublicOrderHTTPClientImpl) Renewal

func (*PublicOrderHTTPClientImpl) ResetTraffic

type PublicOrderServer

PublicOrderServer is the server API for PublicOrder service. All implementations must embed UnimplementedPublicOrderServer for forward compatibility.

type PurchaseReply

type PurchaseReply struct {
	OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseReply) Descriptor deprecated

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

Deprecated: Use PurchaseReply.ProtoReflect.Descriptor instead.

func (*PurchaseReply) GetOrderNo

func (x *PurchaseReply) GetOrderNo() string

func (*PurchaseReply) ProtoMessage

func (*PurchaseReply) ProtoMessage()

func (*PurchaseReply) ProtoReflect

func (x *PurchaseReply) ProtoReflect() protoreflect.Message

func (*PurchaseReply) Reset

func (x *PurchaseReply) Reset()

func (*PurchaseReply) String

func (x *PurchaseReply) String() string

func (*PurchaseReply) Validate

func (m *PurchaseReply) Validate() error

Validate checks the field values on PurchaseReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PurchaseReply) ValidateAll

func (m *PurchaseReply) ValidateAll() error

ValidateAll checks the field values on PurchaseReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PurchaseReplyMultiError, or nil if none found.

type PurchaseReplyMultiError

type PurchaseReplyMultiError []error

PurchaseReplyMultiError is an error wrapping multiple validation errors returned by PurchaseReply.ValidateAll() if the designated constraints aren't met.

func (PurchaseReplyMultiError) AllErrors

func (m PurchaseReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PurchaseReplyMultiError) Error

func (m PurchaseReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PurchaseReplyValidationError

type PurchaseReplyValidationError struct {
	// contains filtered or unexported fields
}

PurchaseReplyValidationError is the validation error returned by PurchaseReply.Validate if the designated constraints aren't met.

func (PurchaseReplyValidationError) Cause

Cause function returns cause value.

func (PurchaseReplyValidationError) Error

Error satisfies the builtin error interface

func (PurchaseReplyValidationError) ErrorName

func (e PurchaseReplyValidationError) ErrorName() string

ErrorName returns error name.

func (PurchaseReplyValidationError) Field

Field function returns field value.

func (PurchaseReplyValidationError) Key

Key function returns key value.

func (PurchaseReplyValidationError) Reason

Reason function returns reason value.

type PurchaseRequest

type PurchaseRequest struct {
	SubscribeId int64  `protobuf:"varint,1,opt,name=subscribe_id,json=subscribeId,proto3" json:"subscribe_id,omitempty"`
	Quantity    int64  `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Payment     int64  `protobuf:"varint,3,opt,name=payment,proto3" json:"payment,omitempty"`
	Coupon      string `protobuf:"bytes,4,opt,name=coupon,proto3" json:"coupon,omitempty"`
	// contains filtered or unexported fields
}

func (*PurchaseRequest) Descriptor deprecated

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

Deprecated: Use PurchaseRequest.ProtoReflect.Descriptor instead.

func (*PurchaseRequest) GetCoupon

func (x *PurchaseRequest) GetCoupon() string

func (*PurchaseRequest) GetPayment

func (x *PurchaseRequest) GetPayment() int64

func (*PurchaseRequest) GetQuantity

func (x *PurchaseRequest) GetQuantity() int64

func (*PurchaseRequest) GetSubscribeId

func (x *PurchaseRequest) GetSubscribeId() int64

func (*PurchaseRequest) ProtoMessage

func (*PurchaseRequest) ProtoMessage()

func (*PurchaseRequest) ProtoReflect

func (x *PurchaseRequest) ProtoReflect() protoreflect.Message

func (*PurchaseRequest) Reset

func (x *PurchaseRequest) Reset()

func (*PurchaseRequest) String

func (x *PurchaseRequest) String() string

func (*PurchaseRequest) Validate

func (m *PurchaseRequest) Validate() error

Validate checks the field values on PurchaseRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PurchaseRequest) ValidateAll

func (m *PurchaseRequest) ValidateAll() error

ValidateAll checks the field values on PurchaseRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PurchaseRequestMultiError, or nil if none found.

type PurchaseRequestMultiError

type PurchaseRequestMultiError []error

PurchaseRequestMultiError is an error wrapping multiple validation errors returned by PurchaseRequest.ValidateAll() if the designated constraints aren't met.

func (PurchaseRequestMultiError) AllErrors

func (m PurchaseRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PurchaseRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type PurchaseRequestValidationError

type PurchaseRequestValidationError struct {
	// contains filtered or unexported fields
}

PurchaseRequestValidationError is the validation error returned by PurchaseRequest.Validate if the designated constraints aren't met.

func (PurchaseRequestValidationError) Cause

Cause function returns cause value.

func (PurchaseRequestValidationError) Error

Error satisfies the builtin error interface

func (PurchaseRequestValidationError) ErrorName

func (e PurchaseRequestValidationError) ErrorName() string

ErrorName returns error name.

func (PurchaseRequestValidationError) Field

Field function returns field value.

func (PurchaseRequestValidationError) Key

Key function returns key value.

func (PurchaseRequestValidationError) Reason

Reason function returns reason value.

type QueryOrderDetailRequest

type QueryOrderDetailRequest struct {
	OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryOrderDetailRequest) Descriptor deprecated

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

Deprecated: Use QueryOrderDetailRequest.ProtoReflect.Descriptor instead.

func (*QueryOrderDetailRequest) GetOrderNo

func (x *QueryOrderDetailRequest) GetOrderNo() string

func (*QueryOrderDetailRequest) ProtoMessage

func (*QueryOrderDetailRequest) ProtoMessage()

func (*QueryOrderDetailRequest) ProtoReflect

func (x *QueryOrderDetailRequest) ProtoReflect() protoreflect.Message

func (*QueryOrderDetailRequest) Reset

func (x *QueryOrderDetailRequest) Reset()

func (*QueryOrderDetailRequest) String

func (x *QueryOrderDetailRequest) String() string

func (*QueryOrderDetailRequest) Validate

func (m *QueryOrderDetailRequest) Validate() error

Validate checks the field values on QueryOrderDetailRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*QueryOrderDetailRequest) ValidateAll

func (m *QueryOrderDetailRequest) ValidateAll() error

ValidateAll checks the field values on QueryOrderDetailRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryOrderDetailRequestMultiError, or nil if none found.

type QueryOrderDetailRequestMultiError

type QueryOrderDetailRequestMultiError []error

QueryOrderDetailRequestMultiError is an error wrapping multiple validation errors returned by QueryOrderDetailRequest.ValidateAll() if the designated constraints aren't met.

func (QueryOrderDetailRequestMultiError) AllErrors

func (m QueryOrderDetailRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QueryOrderDetailRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type QueryOrderDetailRequestValidationError

type QueryOrderDetailRequestValidationError struct {
	// contains filtered or unexported fields
}

QueryOrderDetailRequestValidationError is the validation error returned by QueryOrderDetailRequest.Validate if the designated constraints aren't met.

func (QueryOrderDetailRequestValidationError) Cause

Cause function returns cause value.

func (QueryOrderDetailRequestValidationError) Error

Error satisfies the builtin error interface

func (QueryOrderDetailRequestValidationError) ErrorName

ErrorName returns error name.

func (QueryOrderDetailRequestValidationError) Field

Field function returns field value.

func (QueryOrderDetailRequestValidationError) Key

Key function returns key value.

func (QueryOrderDetailRequestValidationError) Reason

Reason function returns reason value.

type QueryOrderListReply

type QueryOrderListReply struct {
	Total int32          `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"`
	List  []*OrderDetail `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryOrderListReply) Descriptor deprecated

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

Deprecated: Use QueryOrderListReply.ProtoReflect.Descriptor instead.

func (*QueryOrderListReply) GetList

func (x *QueryOrderListReply) GetList() []*OrderDetail

func (*QueryOrderListReply) GetTotal

func (x *QueryOrderListReply) GetTotal() int32

func (*QueryOrderListReply) ProtoMessage

func (*QueryOrderListReply) ProtoMessage()

func (*QueryOrderListReply) ProtoReflect

func (x *QueryOrderListReply) ProtoReflect() protoreflect.Message

func (*QueryOrderListReply) Reset

func (x *QueryOrderListReply) Reset()

func (*QueryOrderListReply) String

func (x *QueryOrderListReply) String() string

func (*QueryOrderListReply) Validate

func (m *QueryOrderListReply) Validate() error

Validate checks the field values on QueryOrderListReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*QueryOrderListReply) ValidateAll

func (m *QueryOrderListReply) ValidateAll() error

ValidateAll checks the field values on QueryOrderListReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryOrderListReplyMultiError, or nil if none found.

type QueryOrderListReplyMultiError

type QueryOrderListReplyMultiError []error

QueryOrderListReplyMultiError is an error wrapping multiple validation errors returned by QueryOrderListReply.ValidateAll() if the designated constraints aren't met.

func (QueryOrderListReplyMultiError) AllErrors

func (m QueryOrderListReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QueryOrderListReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type QueryOrderListReplyValidationError

type QueryOrderListReplyValidationError struct {
	// contains filtered or unexported fields
}

QueryOrderListReplyValidationError is the validation error returned by QueryOrderListReply.Validate if the designated constraints aren't met.

func (QueryOrderListReplyValidationError) Cause

Cause function returns cause value.

func (QueryOrderListReplyValidationError) Error

Error satisfies the builtin error interface

func (QueryOrderListReplyValidationError) ErrorName

ErrorName returns error name.

func (QueryOrderListReplyValidationError) Field

Field function returns field value.

func (QueryOrderListReplyValidationError) Key

Key function returns key value.

func (QueryOrderListReplyValidationError) Reason

Reason function returns reason value.

type QueryOrderListRequest

type QueryOrderListRequest struct {
	Page int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryOrderListRequest) Descriptor deprecated

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

Deprecated: Use QueryOrderListRequest.ProtoReflect.Descriptor instead.

func (*QueryOrderListRequest) GetPage

func (x *QueryOrderListRequest) GetPage() int64

func (*QueryOrderListRequest) GetSize

func (x *QueryOrderListRequest) GetSize() int64

func (*QueryOrderListRequest) ProtoMessage

func (*QueryOrderListRequest) ProtoMessage()

func (*QueryOrderListRequest) ProtoReflect

func (x *QueryOrderListRequest) ProtoReflect() protoreflect.Message

func (*QueryOrderListRequest) Reset

func (x *QueryOrderListRequest) Reset()

func (*QueryOrderListRequest) String

func (x *QueryOrderListRequest) String() string

func (*QueryOrderListRequest) Validate

func (m *QueryOrderListRequest) Validate() error

Validate checks the field values on QueryOrderListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*QueryOrderListRequest) ValidateAll

func (m *QueryOrderListRequest) ValidateAll() error

ValidateAll checks the field values on QueryOrderListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryOrderListRequestMultiError, or nil if none found.

type QueryOrderListRequestMultiError

type QueryOrderListRequestMultiError []error

QueryOrderListRequestMultiError is an error wrapping multiple validation errors returned by QueryOrderListRequest.ValidateAll() if the designated constraints aren't met.

func (QueryOrderListRequestMultiError) AllErrors

func (m QueryOrderListRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (QueryOrderListRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type QueryOrderListRequestValidationError

type QueryOrderListRequestValidationError struct {
	// contains filtered or unexported fields
}

QueryOrderListRequestValidationError is the validation error returned by QueryOrderListRequest.Validate if the designated constraints aren't met.

func (QueryOrderListRequestValidationError) Cause

Cause function returns cause value.

func (QueryOrderListRequestValidationError) Error

Error satisfies the builtin error interface

func (QueryOrderListRequestValidationError) ErrorName

ErrorName returns error name.

func (QueryOrderListRequestValidationError) Field

Field function returns field value.

func (QueryOrderListRequestValidationError) Key

Key function returns key value.

func (QueryOrderListRequestValidationError) Reason

Reason function returns reason value.

type RechargeReply

type RechargeReply struct {
	OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	// contains filtered or unexported fields
}

func (*RechargeReply) Descriptor deprecated

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

Deprecated: Use RechargeReply.ProtoReflect.Descriptor instead.

func (*RechargeReply) GetOrderNo

func (x *RechargeReply) GetOrderNo() string

func (*RechargeReply) ProtoMessage

func (*RechargeReply) ProtoMessage()

func (*RechargeReply) ProtoReflect

func (x *RechargeReply) ProtoReflect() protoreflect.Message

func (*RechargeReply) Reset

func (x *RechargeReply) Reset()

func (*RechargeReply) String

func (x *RechargeReply) String() string

func (*RechargeReply) Validate

func (m *RechargeReply) Validate() error

Validate checks the field values on RechargeReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RechargeReply) ValidateAll

func (m *RechargeReply) ValidateAll() error

ValidateAll checks the field values on RechargeReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RechargeReplyMultiError, or nil if none found.

type RechargeReplyMultiError

type RechargeReplyMultiError []error

RechargeReplyMultiError is an error wrapping multiple validation errors returned by RechargeReply.ValidateAll() if the designated constraints aren't met.

func (RechargeReplyMultiError) AllErrors

func (m RechargeReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RechargeReplyMultiError) Error

func (m RechargeReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RechargeReplyValidationError

type RechargeReplyValidationError struct {
	// contains filtered or unexported fields
}

RechargeReplyValidationError is the validation error returned by RechargeReply.Validate if the designated constraints aren't met.

func (RechargeReplyValidationError) Cause

Cause function returns cause value.

func (RechargeReplyValidationError) Error

Error satisfies the builtin error interface

func (RechargeReplyValidationError) ErrorName

func (e RechargeReplyValidationError) ErrorName() string

ErrorName returns error name.

func (RechargeReplyValidationError) Field

Field function returns field value.

func (RechargeReplyValidationError) Key

Key function returns key value.

func (RechargeReplyValidationError) Reason

Reason function returns reason value.

type RechargeRequest

type RechargeRequest struct {
	Amount  int64 `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Payment int64 `protobuf:"varint,2,opt,name=payment,proto3" json:"payment,omitempty"`
	// contains filtered or unexported fields
}

func (*RechargeRequest) Descriptor deprecated

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

Deprecated: Use RechargeRequest.ProtoReflect.Descriptor instead.

func (*RechargeRequest) GetAmount

func (x *RechargeRequest) GetAmount() int64

func (*RechargeRequest) GetPayment

func (x *RechargeRequest) GetPayment() int64

func (*RechargeRequest) ProtoMessage

func (*RechargeRequest) ProtoMessage()

func (*RechargeRequest) ProtoReflect

func (x *RechargeRequest) ProtoReflect() protoreflect.Message

func (*RechargeRequest) Reset

func (x *RechargeRequest) Reset()

func (*RechargeRequest) String

func (x *RechargeRequest) String() string

func (*RechargeRequest) Validate

func (m *RechargeRequest) Validate() error

Validate checks the field values on RechargeRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RechargeRequest) ValidateAll

func (m *RechargeRequest) ValidateAll() error

ValidateAll checks the field values on RechargeRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RechargeRequestMultiError, or nil if none found.

type RechargeRequestMultiError

type RechargeRequestMultiError []error

RechargeRequestMultiError is an error wrapping multiple validation errors returned by RechargeRequest.ValidateAll() if the designated constraints aren't met.

func (RechargeRequestMultiError) AllErrors

func (m RechargeRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RechargeRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type RechargeRequestValidationError

type RechargeRequestValidationError struct {
	// contains filtered or unexported fields
}

RechargeRequestValidationError is the validation error returned by RechargeRequest.Validate if the designated constraints aren't met.

func (RechargeRequestValidationError) Cause

Cause function returns cause value.

func (RechargeRequestValidationError) Error

Error satisfies the builtin error interface

func (RechargeRequestValidationError) ErrorName

func (e RechargeRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RechargeRequestValidationError) Field

Field function returns field value.

func (RechargeRequestValidationError) Key

Key function returns key value.

func (RechargeRequestValidationError) Reason

Reason function returns reason value.

type RenewalReply

type RenewalReply struct {
	OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	// contains filtered or unexported fields
}

func (*RenewalReply) Descriptor deprecated

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

Deprecated: Use RenewalReply.ProtoReflect.Descriptor instead.

func (*RenewalReply) GetOrderNo

func (x *RenewalReply) GetOrderNo() string

func (*RenewalReply) ProtoMessage

func (*RenewalReply) ProtoMessage()

func (*RenewalReply) ProtoReflect

func (x *RenewalReply) ProtoReflect() protoreflect.Message

func (*RenewalReply) Reset

func (x *RenewalReply) Reset()

func (*RenewalReply) String

func (x *RenewalReply) String() string

func (*RenewalReply) Validate

func (m *RenewalReply) Validate() error

Validate checks the field values on RenewalReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RenewalReply) ValidateAll

func (m *RenewalReply) ValidateAll() error

ValidateAll checks the field values on RenewalReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RenewalReplyMultiError, or nil if none found.

type RenewalReplyMultiError

type RenewalReplyMultiError []error

RenewalReplyMultiError is an error wrapping multiple validation errors returned by RenewalReply.ValidateAll() if the designated constraints aren't met.

func (RenewalReplyMultiError) AllErrors

func (m RenewalReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RenewalReplyMultiError) Error

func (m RenewalReplyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RenewalReplyValidationError

type RenewalReplyValidationError struct {
	// contains filtered or unexported fields
}

RenewalReplyValidationError is the validation error returned by RenewalReply.Validate if the designated constraints aren't met.

func (RenewalReplyValidationError) Cause

Cause function returns cause value.

func (RenewalReplyValidationError) Error

Error satisfies the builtin error interface

func (RenewalReplyValidationError) ErrorName

func (e RenewalReplyValidationError) ErrorName() string

ErrorName returns error name.

func (RenewalReplyValidationError) Field

Field function returns field value.

func (RenewalReplyValidationError) Key

Key function returns key value.

func (RenewalReplyValidationError) Reason

Reason function returns reason value.

type RenewalRequest

type RenewalRequest struct {
	UserSubscribeId int64  `protobuf:"varint,1,opt,name=user_subscribe_id,json=userSubscribeId,proto3" json:"user_subscribe_id,omitempty"`
	Quantity        int64  `protobuf:"varint,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Payment         int64  `protobuf:"varint,3,opt,name=payment,proto3" json:"payment,omitempty"`
	Coupon          string `protobuf:"bytes,4,opt,name=coupon,proto3" json:"coupon,omitempty"`
	// contains filtered or unexported fields
}

func (*RenewalRequest) Descriptor deprecated

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

Deprecated: Use RenewalRequest.ProtoReflect.Descriptor instead.

func (*RenewalRequest) GetCoupon

func (x *RenewalRequest) GetCoupon() string

func (*RenewalRequest) GetPayment

func (x *RenewalRequest) GetPayment() int64

func (*RenewalRequest) GetQuantity

func (x *RenewalRequest) GetQuantity() int64

func (*RenewalRequest) GetUserSubscribeId

func (x *RenewalRequest) GetUserSubscribeId() int64

func (*RenewalRequest) ProtoMessage

func (*RenewalRequest) ProtoMessage()

func (*RenewalRequest) ProtoReflect

func (x *RenewalRequest) ProtoReflect() protoreflect.Message

func (*RenewalRequest) Reset

func (x *RenewalRequest) Reset()

func (*RenewalRequest) String

func (x *RenewalRequest) String() string

func (*RenewalRequest) Validate

func (m *RenewalRequest) Validate() error

Validate checks the field values on RenewalRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*RenewalRequest) ValidateAll

func (m *RenewalRequest) ValidateAll() error

ValidateAll checks the field values on RenewalRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RenewalRequestMultiError, or nil if none found.

type RenewalRequestMultiError

type RenewalRequestMultiError []error

RenewalRequestMultiError is an error wrapping multiple validation errors returned by RenewalRequest.ValidateAll() if the designated constraints aren't met.

func (RenewalRequestMultiError) AllErrors

func (m RenewalRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RenewalRequestMultiError) Error

func (m RenewalRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RenewalRequestValidationError

type RenewalRequestValidationError struct {
	// contains filtered or unexported fields
}

RenewalRequestValidationError is the validation error returned by RenewalRequest.Validate if the designated constraints aren't met.

func (RenewalRequestValidationError) Cause

Cause function returns cause value.

func (RenewalRequestValidationError) Error

Error satisfies the builtin error interface

func (RenewalRequestValidationError) ErrorName

func (e RenewalRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RenewalRequestValidationError) Field

Field function returns field value.

func (RenewalRequestValidationError) Key

Key function returns key value.

func (RenewalRequestValidationError) Reason

Reason function returns reason value.

type ResetTrafficReply

type ResetTrafficReply struct {
	OrderNo string `protobuf:"bytes,1,opt,name=order_no,json=orderNo,proto3" json:"order_no,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetTrafficReply) Descriptor deprecated

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

Deprecated: Use ResetTrafficReply.ProtoReflect.Descriptor instead.

func (*ResetTrafficReply) GetOrderNo

func (x *ResetTrafficReply) GetOrderNo() string

func (*ResetTrafficReply) ProtoMessage

func (*ResetTrafficReply) ProtoMessage()

func (*ResetTrafficReply) ProtoReflect

func (x *ResetTrafficReply) ProtoReflect() protoreflect.Message

func (*ResetTrafficReply) Reset

func (x *ResetTrafficReply) Reset()

func (*ResetTrafficReply) String

func (x *ResetTrafficReply) String() string

func (*ResetTrafficReply) Validate

func (m *ResetTrafficReply) Validate() error

Validate checks the field values on ResetTrafficReply with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResetTrafficReply) ValidateAll

func (m *ResetTrafficReply) ValidateAll() error

ValidateAll checks the field values on ResetTrafficReply with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResetTrafficReplyMultiError, or nil if none found.

type ResetTrafficReplyMultiError

type ResetTrafficReplyMultiError []error

ResetTrafficReplyMultiError is an error wrapping multiple validation errors returned by ResetTrafficReply.ValidateAll() if the designated constraints aren't met.

func (ResetTrafficReplyMultiError) AllErrors

func (m ResetTrafficReplyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResetTrafficReplyMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResetTrafficReplyValidationError

type ResetTrafficReplyValidationError struct {
	// contains filtered or unexported fields
}

ResetTrafficReplyValidationError is the validation error returned by ResetTrafficReply.Validate if the designated constraints aren't met.

func (ResetTrafficReplyValidationError) Cause

Cause function returns cause value.

func (ResetTrafficReplyValidationError) Error

Error satisfies the builtin error interface

func (ResetTrafficReplyValidationError) ErrorName

ErrorName returns error name.

func (ResetTrafficReplyValidationError) Field

Field function returns field value.

func (ResetTrafficReplyValidationError) Key

Key function returns key value.

func (ResetTrafficReplyValidationError) Reason

Reason function returns reason value.

type ResetTrafficRequest

type ResetTrafficRequest struct {
	UserSubscribeId int64 `protobuf:"varint,1,opt,name=user_subscribe_id,json=userSubscribeId,proto3" json:"user_subscribe_id,omitempty"`
	Payment         int64 `protobuf:"varint,2,opt,name=payment,proto3" json:"payment,omitempty"`
	// contains filtered or unexported fields
}

func (*ResetTrafficRequest) Descriptor deprecated

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

Deprecated: Use ResetTrafficRequest.ProtoReflect.Descriptor instead.

func (*ResetTrafficRequest) GetPayment

func (x *ResetTrafficRequest) GetPayment() int64

func (*ResetTrafficRequest) GetUserSubscribeId

func (x *ResetTrafficRequest) GetUserSubscribeId() int64

func (*ResetTrafficRequest) ProtoMessage

func (*ResetTrafficRequest) ProtoMessage()

func (*ResetTrafficRequest) ProtoReflect

func (x *ResetTrafficRequest) ProtoReflect() protoreflect.Message

func (*ResetTrafficRequest) Reset

func (x *ResetTrafficRequest) Reset()

func (*ResetTrafficRequest) String

func (x *ResetTrafficRequest) String() string

func (*ResetTrafficRequest) Validate

func (m *ResetTrafficRequest) Validate() error

Validate checks the field values on ResetTrafficRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ResetTrafficRequest) ValidateAll

func (m *ResetTrafficRequest) ValidateAll() error

ValidateAll checks the field values on ResetTrafficRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ResetTrafficRequestMultiError, or nil if none found.

type ResetTrafficRequestMultiError

type ResetTrafficRequestMultiError []error

ResetTrafficRequestMultiError is an error wrapping multiple validation errors returned by ResetTrafficRequest.ValidateAll() if the designated constraints aren't met.

func (ResetTrafficRequestMultiError) AllErrors

func (m ResetTrafficRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ResetTrafficRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ResetTrafficRequestValidationError

type ResetTrafficRequestValidationError struct {
	// contains filtered or unexported fields
}

ResetTrafficRequestValidationError is the validation error returned by ResetTrafficRequest.Validate if the designated constraints aren't met.

func (ResetTrafficRequestValidationError) Cause

Cause function returns cause value.

func (ResetTrafficRequestValidationError) Error

Error satisfies the builtin error interface

func (ResetTrafficRequestValidationError) ErrorName

ErrorName returns error name.

func (ResetTrafficRequestValidationError) Field

Field function returns field value.

func (ResetTrafficRequestValidationError) Key

Key function returns key value.

func (ResetTrafficRequestValidationError) Reason

Reason function returns reason value.

type Subscribe

type Subscribe struct {
	Id                int64                `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Name              string               `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Language          string               `protobuf:"bytes,3,opt,name=language,proto3" json:"language,omitempty"`
	Description       string               `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	UnitPrice         int64                `protobuf:"varint,5,opt,name=unit_price,json=unitPrice,proto3" json:"unit_price,omitempty"`
	UnitTime          string               `protobuf:"bytes,6,opt,name=unit_time,json=unitTime,proto3" json:"unit_time,omitempty"`
	Discount          []*SubscribeDiscount `protobuf:"bytes,7,rep,name=discount,proto3" json:"discount,omitempty"`
	Replacement       int64                `protobuf:"varint,8,opt,name=replacement,proto3" json:"replacement,omitempty"`
	Inventory         int32                `protobuf:"varint,9,opt,name=inventory,proto3" json:"inventory,omitempty"`
	Traffic           int64                `protobuf:"varint,10,opt,name=traffic,proto3" json:"traffic,omitempty"`
	SpeedLimit        int32                `protobuf:"varint,11,opt,name=speed_limit,json=speedLimit,proto3" json:"speed_limit,omitempty"`
	DeviceLimit       int32                `protobuf:"varint,12,opt,name=device_limit,json=deviceLimit,proto3" json:"device_limit,omitempty"`
	Quota             int32                `protobuf:"varint,13,opt,name=quota,proto3" json:"quota,omitempty"`
	Nodes             []int64              `protobuf:"varint,14,rep,packed,name=nodes,proto3" json:"nodes,omitempty"`
	NodeTags          []string             `protobuf:"bytes,15,rep,name=node_tags,json=nodeTags,proto3" json:"node_tags,omitempty"`
	NodeGroupIds      []int64              `protobuf:"varint,16,rep,packed,name=node_group_ids,json=nodeGroupIds,proto3" json:"node_group_ids,omitempty"`
	NodeGroupId       int64                `protobuf:"varint,17,opt,name=node_group_id,json=nodeGroupId,proto3" json:"node_group_id,omitempty"`
	TrafficLimit      []*TrafficLimit      `protobuf:"bytes,18,rep,name=traffic_limit,json=trafficLimit,proto3" json:"traffic_limit,omitempty"`
	Show              bool                 `protobuf:"varint,19,opt,name=show,proto3" json:"show,omitempty"`
	Sell              bool                 `protobuf:"varint,20,opt,name=sell,proto3" json:"sell,omitempty"`
	Sort              int32                `protobuf:"varint,21,opt,name=sort,proto3" json:"sort,omitempty"`
	DeductionRatio    int32                `protobuf:"varint,22,opt,name=deduction_ratio,json=deductionRatio,proto3" json:"deduction_ratio,omitempty"`
	AllowDeduction    bool                 `protobuf:"varint,23,opt,name=allow_deduction,json=allowDeduction,proto3" json:"allow_deduction,omitempty"`
	ResetCycle        int32                `protobuf:"varint,24,opt,name=reset_cycle,json=resetCycle,proto3" json:"reset_cycle,omitempty"`
	RenewalReset      bool                 `protobuf:"varint,25,opt,name=renewal_reset,json=renewalReset,proto3" json:"renewal_reset,omitempty"`
	ShowOriginalPrice bool                 `protobuf:"varint,26,opt,name=show_original_price,json=showOriginalPrice,proto3" json:"show_original_price,omitempty"`
	CreatedAt         int64                `protobuf:"varint,27,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt         int64                `protobuf:"varint,28,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*Subscribe) Descriptor deprecated

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

Deprecated: Use Subscribe.ProtoReflect.Descriptor instead.

func (*Subscribe) GetAllowDeduction

func (x *Subscribe) GetAllowDeduction() bool

func (*Subscribe) GetCreatedAt

func (x *Subscribe) GetCreatedAt() int64

func (*Subscribe) GetDeductionRatio

func (x *Subscribe) GetDeductionRatio() int32

func (*Subscribe) GetDescription

func (x *Subscribe) GetDescription() string

func (*Subscribe) GetDeviceLimit

func (x *Subscribe) GetDeviceLimit() int32

func (*Subscribe) GetDiscount

func (x *Subscribe) GetDiscount() []*SubscribeDiscount

func (*Subscribe) GetId

func (x *Subscribe) GetId() int64

func (*Subscribe) GetInventory

func (x *Subscribe) GetInventory() int32

func (*Subscribe) GetLanguage

func (x *Subscribe) GetLanguage() string

func (*Subscribe) GetName

func (x *Subscribe) GetName() string

func (*Subscribe) GetNodeGroupId

func (x *Subscribe) GetNodeGroupId() int64

func (*Subscribe) GetNodeGroupIds

func (x *Subscribe) GetNodeGroupIds() []int64

func (*Subscribe) GetNodeTags

func (x *Subscribe) GetNodeTags() []string

func (*Subscribe) GetNodes

func (x *Subscribe) GetNodes() []int64

func (*Subscribe) GetQuota

func (x *Subscribe) GetQuota() int32

func (*Subscribe) GetRenewalReset

func (x *Subscribe) GetRenewalReset() bool

func (*Subscribe) GetReplacement

func (x *Subscribe) GetReplacement() int64

func (*Subscribe) GetResetCycle

func (x *Subscribe) GetResetCycle() int32

func (*Subscribe) GetSell

func (x *Subscribe) GetSell() bool

func (*Subscribe) GetShow

func (x *Subscribe) GetShow() bool

func (*Subscribe) GetShowOriginalPrice

func (x *Subscribe) GetShowOriginalPrice() bool

func (*Subscribe) GetSort

func (x *Subscribe) GetSort() int32

func (*Subscribe) GetSpeedLimit

func (x *Subscribe) GetSpeedLimit() int32

func (*Subscribe) GetTraffic

func (x *Subscribe) GetTraffic() int64

func (*Subscribe) GetTrafficLimit

func (x *Subscribe) GetTrafficLimit() []*TrafficLimit

func (*Subscribe) GetUnitPrice

func (x *Subscribe) GetUnitPrice() int64

func (*Subscribe) GetUnitTime

func (x *Subscribe) GetUnitTime() string

func (*Subscribe) GetUpdatedAt

func (x *Subscribe) GetUpdatedAt() int64

func (*Subscribe) ProtoMessage

func (*Subscribe) ProtoMessage()

func (*Subscribe) ProtoReflect

func (x *Subscribe) ProtoReflect() protoreflect.Message

func (*Subscribe) Reset

func (x *Subscribe) Reset()

func (*Subscribe) String

func (x *Subscribe) String() string

func (*Subscribe) Validate

func (m *Subscribe) Validate() error

Validate checks the field values on Subscribe with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Subscribe) ValidateAll

func (m *Subscribe) ValidateAll() error

ValidateAll checks the field values on Subscribe with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubscribeMultiError, or nil if none found.

type SubscribeDiscount

type SubscribeDiscount struct {
	Quantity int64 `protobuf:"varint,1,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Discount int64 `protobuf:"varint,2,opt,name=discount,proto3" json:"discount,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeDiscount) Descriptor deprecated

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

Deprecated: Use SubscribeDiscount.ProtoReflect.Descriptor instead.

func (*SubscribeDiscount) GetDiscount

func (x *SubscribeDiscount) GetDiscount() int64

func (*SubscribeDiscount) GetQuantity

func (x *SubscribeDiscount) GetQuantity() int64

func (*SubscribeDiscount) ProtoMessage

func (*SubscribeDiscount) ProtoMessage()

func (*SubscribeDiscount) ProtoReflect

func (x *SubscribeDiscount) ProtoReflect() protoreflect.Message

func (*SubscribeDiscount) Reset

func (x *SubscribeDiscount) Reset()

func (*SubscribeDiscount) String

func (x *SubscribeDiscount) String() string

func (*SubscribeDiscount) Validate

func (m *SubscribeDiscount) Validate() error

Validate checks the field values on SubscribeDiscount with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*SubscribeDiscount) ValidateAll

func (m *SubscribeDiscount) ValidateAll() error

ValidateAll checks the field values on SubscribeDiscount with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SubscribeDiscountMultiError, or nil if none found.

type SubscribeDiscountMultiError

type SubscribeDiscountMultiError []error

SubscribeDiscountMultiError is an error wrapping multiple validation errors returned by SubscribeDiscount.ValidateAll() if the designated constraints aren't met.

func (SubscribeDiscountMultiError) AllErrors

func (m SubscribeDiscountMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubscribeDiscountMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type SubscribeDiscountValidationError

type SubscribeDiscountValidationError struct {
	// contains filtered or unexported fields
}

SubscribeDiscountValidationError is the validation error returned by SubscribeDiscount.Validate if the designated constraints aren't met.

func (SubscribeDiscountValidationError) Cause

Cause function returns cause value.

func (SubscribeDiscountValidationError) Error

Error satisfies the builtin error interface

func (SubscribeDiscountValidationError) ErrorName

ErrorName returns error name.

func (SubscribeDiscountValidationError) Field

Field function returns field value.

func (SubscribeDiscountValidationError) Key

Key function returns key value.

func (SubscribeDiscountValidationError) Reason

Reason function returns reason value.

type SubscribeMultiError

type SubscribeMultiError []error

SubscribeMultiError is an error wrapping multiple validation errors returned by Subscribe.ValidateAll() if the designated constraints aren't met.

func (SubscribeMultiError) AllErrors

func (m SubscribeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (SubscribeMultiError) Error

func (m SubscribeMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type SubscribeValidationError

type SubscribeValidationError struct {
	// contains filtered or unexported fields
}

SubscribeValidationError is the validation error returned by Subscribe.Validate if the designated constraints aren't met.

func (SubscribeValidationError) Cause

func (e SubscribeValidationError) Cause() error

Cause function returns cause value.

func (SubscribeValidationError) Error

func (e SubscribeValidationError) Error() string

Error satisfies the builtin error interface

func (SubscribeValidationError) ErrorName

func (e SubscribeValidationError) ErrorName() string

ErrorName returns error name.

func (SubscribeValidationError) Field

func (e SubscribeValidationError) Field() string

Field function returns field value.

func (SubscribeValidationError) Key

Key function returns key value.

func (SubscribeValidationError) Reason

func (e SubscribeValidationError) Reason() string

Reason function returns reason value.

type TrafficLimit

type TrafficLimit struct {
	StatType     string `protobuf:"bytes,1,opt,name=stat_type,json=statType,proto3" json:"stat_type,omitempty"`
	StatValue    int64  `protobuf:"varint,2,opt,name=stat_value,json=statValue,proto3" json:"stat_value,omitempty"`
	TrafficUsage int64  `protobuf:"varint,3,opt,name=traffic_usage,json=trafficUsage,proto3" json:"traffic_usage,omitempty"`
	SpeedLimit   int32  `protobuf:"varint,4,opt,name=speed_limit,json=speedLimit,proto3" json:"speed_limit,omitempty"`
	// contains filtered or unexported fields
}

func (*TrafficLimit) Descriptor deprecated

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

Deprecated: Use TrafficLimit.ProtoReflect.Descriptor instead.

func (*TrafficLimit) GetSpeedLimit

func (x *TrafficLimit) GetSpeedLimit() int32

func (*TrafficLimit) GetStatType

func (x *TrafficLimit) GetStatType() string

func (*TrafficLimit) GetStatValue

func (x *TrafficLimit) GetStatValue() int64

func (*TrafficLimit) GetTrafficUsage

func (x *TrafficLimit) GetTrafficUsage() int64

func (*TrafficLimit) ProtoMessage

func (*TrafficLimit) ProtoMessage()

func (*TrafficLimit) ProtoReflect

func (x *TrafficLimit) ProtoReflect() protoreflect.Message

func (*TrafficLimit) Reset

func (x *TrafficLimit) Reset()

func (*TrafficLimit) String

func (x *TrafficLimit) String() string

func (*TrafficLimit) Validate

func (m *TrafficLimit) Validate() error

Validate checks the field values on TrafficLimit with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*TrafficLimit) ValidateAll

func (m *TrafficLimit) ValidateAll() error

ValidateAll checks the field values on TrafficLimit with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in TrafficLimitMultiError, or nil if none found.

type TrafficLimitMultiError

type TrafficLimitMultiError []error

TrafficLimitMultiError is an error wrapping multiple validation errors returned by TrafficLimit.ValidateAll() if the designated constraints aren't met.

func (TrafficLimitMultiError) AllErrors

func (m TrafficLimitMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (TrafficLimitMultiError) Error

func (m TrafficLimitMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type TrafficLimitValidationError

type TrafficLimitValidationError struct {
	// contains filtered or unexported fields
}

TrafficLimitValidationError is the validation error returned by TrafficLimit.Validate if the designated constraints aren't met.

func (TrafficLimitValidationError) Cause

Cause function returns cause value.

func (TrafficLimitValidationError) Error

Error satisfies the builtin error interface

func (TrafficLimitValidationError) ErrorName

func (e TrafficLimitValidationError) ErrorName() string

ErrorName returns error name.

func (TrafficLimitValidationError) Field

Field function returns field value.

func (TrafficLimitValidationError) Key

Key function returns key value.

func (TrafficLimitValidationError) Reason

Reason function returns reason value.

type UnimplementedPublicOrderServer

type UnimplementedPublicOrderServer struct{}

UnimplementedPublicOrderServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedPublicOrderServer) CloseOrder

func (UnimplementedPublicOrderServer) PreCreateOrder

func (UnimplementedPublicOrderServer) Purchase

func (UnimplementedPublicOrderServer) QueryOrderDetail

func (UnimplementedPublicOrderServer) QueryOrderList

func (UnimplementedPublicOrderServer) Recharge

func (UnimplementedPublicOrderServer) Renewal

func (UnimplementedPublicOrderServer) ResetTraffic

type UnsafePublicOrderServer

type UnsafePublicOrderServer interface {
	// contains filtered or unexported methods
}

UnsafePublicOrderServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PublicOrderServer will result in compilation errors.

Jump to

Keyboard shortcuts

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