Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterPublicOrderHTTPServer(s *http.Server, srv PublicOrderHTTPServer)
- func RegisterPublicOrderServer(s grpc.ServiceRegistrar, srv PublicOrderServer)
- type CloseOrderRequest
- func (*CloseOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CloseOrderRequest) GetOrderNo() string
- func (*CloseOrderRequest) ProtoMessage()
- func (x *CloseOrderRequest) ProtoReflect() protoreflect.Message
- func (x *CloseOrderRequest) Reset()
- func (x *CloseOrderRequest) String() string
- func (m *CloseOrderRequest) Validate() error
- func (m *CloseOrderRequest) ValidateAll() error
- type CloseOrderRequestMultiError
- type CloseOrderRequestValidationError
- func (e CloseOrderRequestValidationError) Cause() error
- func (e CloseOrderRequestValidationError) Error() string
- func (e CloseOrderRequestValidationError) ErrorName() string
- func (e CloseOrderRequestValidationError) Field() string
- func (e CloseOrderRequestValidationError) Key() bool
- func (e CloseOrderRequestValidationError) Reason() string
- type OrderDetail
- func (*OrderDetail) Descriptor() ([]byte, []int)deprecated
- func (x *OrderDetail) GetAmount() int64
- func (x *OrderDetail) GetCommission() int64
- func (x *OrderDetail) GetCoupon() string
- func (x *OrderDetail) GetCouponDiscount() int64
- func (x *OrderDetail) GetCreatedAt() int64
- func (x *OrderDetail) GetDiscount() int64
- func (x *OrderDetail) GetFeeAmount() int64
- func (x *OrderDetail) GetGiftAmount() int64
- func (x *OrderDetail) GetId() int64
- func (x *OrderDetail) GetMethod() string
- func (x *OrderDetail) GetOrderNo() string
- func (x *OrderDetail) GetPayment() *PaymentMethod
- func (x *OrderDetail) GetPrice() int64
- func (x *OrderDetail) GetQuantity() int64
- func (x *OrderDetail) GetStatus() int32
- func (x *OrderDetail) GetSubscribe() *Subscribe
- func (x *OrderDetail) GetSubscribeId() int64
- func (x *OrderDetail) GetTradeNo() string
- func (x *OrderDetail) GetType() int32
- func (x *OrderDetail) GetUpdatedAt() int64
- func (x *OrderDetail) GetUserId() int64
- func (*OrderDetail) ProtoMessage()
- func (x *OrderDetail) ProtoReflect() protoreflect.Message
- func (x *OrderDetail) Reset()
- func (x *OrderDetail) String() string
- func (m *OrderDetail) Validate() error
- func (m *OrderDetail) ValidateAll() error
- type OrderDetailMultiError
- type OrderDetailValidationError
- func (e OrderDetailValidationError) Cause() error
- func (e OrderDetailValidationError) Error() string
- func (e OrderDetailValidationError) ErrorName() string
- func (e OrderDetailValidationError) Field() string
- func (e OrderDetailValidationError) Key() bool
- func (e OrderDetailValidationError) Reason() string
- type PaymentMethod
- func (*PaymentMethod) Descriptor() ([]byte, []int)deprecated
- func (x *PaymentMethod) GetDescription() string
- func (x *PaymentMethod) GetFeeAmount() int64
- func (x *PaymentMethod) GetFeeMode() uint32
- func (x *PaymentMethod) GetFeePercent() int64
- func (x *PaymentMethod) GetIcon() string
- func (x *PaymentMethod) GetId() int64
- func (x *PaymentMethod) GetName() string
- func (x *PaymentMethod) GetPlatform() string
- func (*PaymentMethod) ProtoMessage()
- func (x *PaymentMethod) ProtoReflect() protoreflect.Message
- func (x *PaymentMethod) Reset()
- func (x *PaymentMethod) String() string
- func (m *PaymentMethod) Validate() error
- func (m *PaymentMethod) ValidateAll() error
- type PaymentMethodMultiError
- type PaymentMethodValidationError
- func (e PaymentMethodValidationError) Cause() error
- func (e PaymentMethodValidationError) Error() string
- func (e PaymentMethodValidationError) ErrorName() string
- func (e PaymentMethodValidationError) Field() string
- func (e PaymentMethodValidationError) Key() bool
- func (e PaymentMethodValidationError) Reason() string
- type PreCreateOrderReply
- func (*PreCreateOrderReply) Descriptor() ([]byte, []int)deprecated
- func (x *PreCreateOrderReply) GetAmount() int64
- func (x *PreCreateOrderReply) GetCoupon() string
- func (x *PreCreateOrderReply) GetCouponDiscount() int64
- func (x *PreCreateOrderReply) GetDiscount() int64
- func (x *PreCreateOrderReply) GetFeeAmount() int64
- func (x *PreCreateOrderReply) GetGiftAmount() int64
- func (x *PreCreateOrderReply) GetPrice() int64
- func (*PreCreateOrderReply) ProtoMessage()
- func (x *PreCreateOrderReply) ProtoReflect() protoreflect.Message
- func (x *PreCreateOrderReply) Reset()
- func (x *PreCreateOrderReply) String() string
- func (m *PreCreateOrderReply) Validate() error
- func (m *PreCreateOrderReply) ValidateAll() error
- type PreCreateOrderReplyMultiError
- type PreCreateOrderReplyValidationError
- func (e PreCreateOrderReplyValidationError) Cause() error
- func (e PreCreateOrderReplyValidationError) Error() string
- func (e PreCreateOrderReplyValidationError) ErrorName() string
- func (e PreCreateOrderReplyValidationError) Field() string
- func (e PreCreateOrderReplyValidationError) Key() bool
- func (e PreCreateOrderReplyValidationError) Reason() string
- type PreCreateOrderRequest
- func (*PreCreateOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PreCreateOrderRequest) GetCoupon() string
- func (x *PreCreateOrderRequest) GetPayment() int64
- func (x *PreCreateOrderRequest) GetQuantity() int64
- func (x *PreCreateOrderRequest) GetSubscribeId() int64
- func (*PreCreateOrderRequest) ProtoMessage()
- func (x *PreCreateOrderRequest) ProtoReflect() protoreflect.Message
- func (x *PreCreateOrderRequest) Reset()
- func (x *PreCreateOrderRequest) String() string
- func (m *PreCreateOrderRequest) Validate() error
- func (m *PreCreateOrderRequest) ValidateAll() error
- type PreCreateOrderRequestMultiError
- type PreCreateOrderRequestValidationError
- func (e PreCreateOrderRequestValidationError) Cause() error
- func (e PreCreateOrderRequestValidationError) Error() string
- func (e PreCreateOrderRequestValidationError) ErrorName() string
- func (e PreCreateOrderRequestValidationError) Field() string
- func (e PreCreateOrderRequestValidationError) Key() bool
- func (e PreCreateOrderRequestValidationError) Reason() string
- type PublicOrderClient
- type PublicOrderHTTPClient
- type PublicOrderHTTPClientImpl
- func (c *PublicOrderHTTPClientImpl) CloseOrder(ctx context.Context, in *CloseOrderRequest, opts ...http.CallOption) (*emptypb.Empty, error)
- func (c *PublicOrderHTTPClientImpl) PreCreateOrder(ctx context.Context, in *PreCreateOrderRequest, opts ...http.CallOption) (*PreCreateOrderReply, error)
- func (c *PublicOrderHTTPClientImpl) Purchase(ctx context.Context, in *PurchaseRequest, opts ...http.CallOption) (*PurchaseReply, error)
- func (c *PublicOrderHTTPClientImpl) QueryOrderDetail(ctx context.Context, in *QueryOrderDetailRequest, opts ...http.CallOption) (*OrderDetail, error)
- func (c *PublicOrderHTTPClientImpl) QueryOrderList(ctx context.Context, in *QueryOrderListRequest, opts ...http.CallOption) (*QueryOrderListReply, error)
- func (c *PublicOrderHTTPClientImpl) Recharge(ctx context.Context, in *RechargeRequest, opts ...http.CallOption) (*RechargeReply, error)
- func (c *PublicOrderHTTPClientImpl) Renewal(ctx context.Context, in *RenewalRequest, opts ...http.CallOption) (*RenewalReply, error)
- func (c *PublicOrderHTTPClientImpl) ResetTraffic(ctx context.Context, in *ResetTrafficRequest, opts ...http.CallOption) (*ResetTrafficReply, error)
- type PublicOrderHTTPServer
- type PublicOrderServer
- type PurchaseReply
- func (*PurchaseReply) Descriptor() ([]byte, []int)deprecated
- func (x *PurchaseReply) GetOrderNo() string
- func (*PurchaseReply) ProtoMessage()
- func (x *PurchaseReply) ProtoReflect() protoreflect.Message
- func (x *PurchaseReply) Reset()
- func (x *PurchaseReply) String() string
- func (m *PurchaseReply) Validate() error
- func (m *PurchaseReply) ValidateAll() error
- type PurchaseReplyMultiError
- type PurchaseReplyValidationError
- func (e PurchaseReplyValidationError) Cause() error
- func (e PurchaseReplyValidationError) Error() string
- func (e PurchaseReplyValidationError) ErrorName() string
- func (e PurchaseReplyValidationError) Field() string
- func (e PurchaseReplyValidationError) Key() bool
- func (e PurchaseReplyValidationError) Reason() string
- type PurchaseRequest
- func (*PurchaseRequest) Descriptor() ([]byte, []int)deprecated
- func (x *PurchaseRequest) GetCoupon() string
- func (x *PurchaseRequest) GetPayment() int64
- func (x *PurchaseRequest) GetQuantity() int64
- func (x *PurchaseRequest) GetSubscribeId() int64
- func (*PurchaseRequest) ProtoMessage()
- func (x *PurchaseRequest) ProtoReflect() protoreflect.Message
- func (x *PurchaseRequest) Reset()
- func (x *PurchaseRequest) String() string
- func (m *PurchaseRequest) Validate() error
- func (m *PurchaseRequest) ValidateAll() error
- type PurchaseRequestMultiError
- type PurchaseRequestValidationError
- func (e PurchaseRequestValidationError) Cause() error
- func (e PurchaseRequestValidationError) Error() string
- func (e PurchaseRequestValidationError) ErrorName() string
- func (e PurchaseRequestValidationError) Field() string
- func (e PurchaseRequestValidationError) Key() bool
- func (e PurchaseRequestValidationError) Reason() string
- type QueryOrderDetailRequest
- func (*QueryOrderDetailRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOrderDetailRequest) GetOrderNo() string
- func (*QueryOrderDetailRequest) ProtoMessage()
- func (x *QueryOrderDetailRequest) ProtoReflect() protoreflect.Message
- func (x *QueryOrderDetailRequest) Reset()
- func (x *QueryOrderDetailRequest) String() string
- func (m *QueryOrderDetailRequest) Validate() error
- func (m *QueryOrderDetailRequest) ValidateAll() error
- type QueryOrderDetailRequestMultiError
- type QueryOrderDetailRequestValidationError
- func (e QueryOrderDetailRequestValidationError) Cause() error
- func (e QueryOrderDetailRequestValidationError) Error() string
- func (e QueryOrderDetailRequestValidationError) ErrorName() string
- func (e QueryOrderDetailRequestValidationError) Field() string
- func (e QueryOrderDetailRequestValidationError) Key() bool
- func (e QueryOrderDetailRequestValidationError) Reason() string
- type QueryOrderListReply
- func (*QueryOrderListReply) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOrderListReply) GetList() []*OrderDetail
- func (x *QueryOrderListReply) GetTotal() int32
- func (*QueryOrderListReply) ProtoMessage()
- func (x *QueryOrderListReply) ProtoReflect() protoreflect.Message
- func (x *QueryOrderListReply) Reset()
- func (x *QueryOrderListReply) String() string
- func (m *QueryOrderListReply) Validate() error
- func (m *QueryOrderListReply) ValidateAll() error
- type QueryOrderListReplyMultiError
- type QueryOrderListReplyValidationError
- func (e QueryOrderListReplyValidationError) Cause() error
- func (e QueryOrderListReplyValidationError) Error() string
- func (e QueryOrderListReplyValidationError) ErrorName() string
- func (e QueryOrderListReplyValidationError) Field() string
- func (e QueryOrderListReplyValidationError) Key() bool
- func (e QueryOrderListReplyValidationError) Reason() string
- type QueryOrderListRequest
- func (*QueryOrderListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryOrderListRequest) GetPage() int64
- func (x *QueryOrderListRequest) GetSize() int64
- func (*QueryOrderListRequest) ProtoMessage()
- func (x *QueryOrderListRequest) ProtoReflect() protoreflect.Message
- func (x *QueryOrderListRequest) Reset()
- func (x *QueryOrderListRequest) String() string
- func (m *QueryOrderListRequest) Validate() error
- func (m *QueryOrderListRequest) ValidateAll() error
- type QueryOrderListRequestMultiError
- type QueryOrderListRequestValidationError
- func (e QueryOrderListRequestValidationError) Cause() error
- func (e QueryOrderListRequestValidationError) Error() string
- func (e QueryOrderListRequestValidationError) ErrorName() string
- func (e QueryOrderListRequestValidationError) Field() string
- func (e QueryOrderListRequestValidationError) Key() bool
- func (e QueryOrderListRequestValidationError) Reason() string
- type RechargeReply
- func (*RechargeReply) Descriptor() ([]byte, []int)deprecated
- func (x *RechargeReply) GetOrderNo() string
- func (*RechargeReply) ProtoMessage()
- func (x *RechargeReply) ProtoReflect() protoreflect.Message
- func (x *RechargeReply) Reset()
- func (x *RechargeReply) String() string
- func (m *RechargeReply) Validate() error
- func (m *RechargeReply) ValidateAll() error
- type RechargeReplyMultiError
- type RechargeReplyValidationError
- func (e RechargeReplyValidationError) Cause() error
- func (e RechargeReplyValidationError) Error() string
- func (e RechargeReplyValidationError) ErrorName() string
- func (e RechargeReplyValidationError) Field() string
- func (e RechargeReplyValidationError) Key() bool
- func (e RechargeReplyValidationError) Reason() string
- type RechargeRequest
- func (*RechargeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RechargeRequest) GetAmount() int64
- func (x *RechargeRequest) GetPayment() int64
- func (*RechargeRequest) ProtoMessage()
- func (x *RechargeRequest) ProtoReflect() protoreflect.Message
- func (x *RechargeRequest) Reset()
- func (x *RechargeRequest) String() string
- func (m *RechargeRequest) Validate() error
- func (m *RechargeRequest) ValidateAll() error
- type RechargeRequestMultiError
- type RechargeRequestValidationError
- func (e RechargeRequestValidationError) Cause() error
- func (e RechargeRequestValidationError) Error() string
- func (e RechargeRequestValidationError) ErrorName() string
- func (e RechargeRequestValidationError) Field() string
- func (e RechargeRequestValidationError) Key() bool
- func (e RechargeRequestValidationError) Reason() string
- type RenewalReply
- func (*RenewalReply) Descriptor() ([]byte, []int)deprecated
- func (x *RenewalReply) GetOrderNo() string
- func (*RenewalReply) ProtoMessage()
- func (x *RenewalReply) ProtoReflect() protoreflect.Message
- func (x *RenewalReply) Reset()
- func (x *RenewalReply) String() string
- func (m *RenewalReply) Validate() error
- func (m *RenewalReply) ValidateAll() error
- type RenewalReplyMultiError
- type RenewalReplyValidationError
- func (e RenewalReplyValidationError) Cause() error
- func (e RenewalReplyValidationError) Error() string
- func (e RenewalReplyValidationError) ErrorName() string
- func (e RenewalReplyValidationError) Field() string
- func (e RenewalReplyValidationError) Key() bool
- func (e RenewalReplyValidationError) Reason() string
- type RenewalRequest
- func (*RenewalRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RenewalRequest) GetCoupon() string
- func (x *RenewalRequest) GetPayment() int64
- func (x *RenewalRequest) GetQuantity() int64
- func (x *RenewalRequest) GetUserSubscribeId() int64
- func (*RenewalRequest) ProtoMessage()
- func (x *RenewalRequest) ProtoReflect() protoreflect.Message
- func (x *RenewalRequest) Reset()
- func (x *RenewalRequest) String() string
- func (m *RenewalRequest) Validate() error
- func (m *RenewalRequest) ValidateAll() error
- type RenewalRequestMultiError
- type RenewalRequestValidationError
- func (e RenewalRequestValidationError) Cause() error
- func (e RenewalRequestValidationError) Error() string
- func (e RenewalRequestValidationError) ErrorName() string
- func (e RenewalRequestValidationError) Field() string
- func (e RenewalRequestValidationError) Key() bool
- func (e RenewalRequestValidationError) Reason() string
- type ResetTrafficReply
- func (*ResetTrafficReply) Descriptor() ([]byte, []int)deprecated
- func (x *ResetTrafficReply) GetOrderNo() string
- func (*ResetTrafficReply) ProtoMessage()
- func (x *ResetTrafficReply) ProtoReflect() protoreflect.Message
- func (x *ResetTrafficReply) Reset()
- func (x *ResetTrafficReply) String() string
- func (m *ResetTrafficReply) Validate() error
- func (m *ResetTrafficReply) ValidateAll() error
- type ResetTrafficReplyMultiError
- type ResetTrafficReplyValidationError
- func (e ResetTrafficReplyValidationError) Cause() error
- func (e ResetTrafficReplyValidationError) Error() string
- func (e ResetTrafficReplyValidationError) ErrorName() string
- func (e ResetTrafficReplyValidationError) Field() string
- func (e ResetTrafficReplyValidationError) Key() bool
- func (e ResetTrafficReplyValidationError) Reason() string
- type ResetTrafficRequest
- func (*ResetTrafficRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ResetTrafficRequest) GetPayment() int64
- func (x *ResetTrafficRequest) GetUserSubscribeId() int64
- func (*ResetTrafficRequest) ProtoMessage()
- func (x *ResetTrafficRequest) ProtoReflect() protoreflect.Message
- func (x *ResetTrafficRequest) Reset()
- func (x *ResetTrafficRequest) String() string
- func (m *ResetTrafficRequest) Validate() error
- func (m *ResetTrafficRequest) ValidateAll() error
- type ResetTrafficRequestMultiError
- type ResetTrafficRequestValidationError
- func (e ResetTrafficRequestValidationError) Cause() error
- func (e ResetTrafficRequestValidationError) Error() string
- func (e ResetTrafficRequestValidationError) ErrorName() string
- func (e ResetTrafficRequestValidationError) Field() string
- func (e ResetTrafficRequestValidationError) Key() bool
- func (e ResetTrafficRequestValidationError) Reason() string
- type Subscribe
- func (*Subscribe) Descriptor() ([]byte, []int)deprecated
- func (x *Subscribe) GetAllowDeduction() bool
- func (x *Subscribe) GetCreatedAt() int64
- func (x *Subscribe) GetDeductionRatio() int32
- func (x *Subscribe) GetDescription() string
- func (x *Subscribe) GetDeviceLimit() int32
- func (x *Subscribe) GetDiscount() []*SubscribeDiscount
- func (x *Subscribe) GetId() int64
- func (x *Subscribe) GetInventory() int32
- func (x *Subscribe) GetLanguage() string
- func (x *Subscribe) GetName() string
- func (x *Subscribe) GetNodeGroupId() int64
- func (x *Subscribe) GetNodeGroupIds() []int64
- func (x *Subscribe) GetNodeTags() []string
- func (x *Subscribe) GetNodes() []int64
- func (x *Subscribe) GetQuota() int32
- func (x *Subscribe) GetRenewalReset() bool
- func (x *Subscribe) GetReplacement() int64
- func (x *Subscribe) GetResetCycle() int32
- func (x *Subscribe) GetSell() bool
- func (x *Subscribe) GetShow() bool
- func (x *Subscribe) GetShowOriginalPrice() bool
- func (x *Subscribe) GetSort() int32
- func (x *Subscribe) GetSpeedLimit() int32
- func (x *Subscribe) GetTraffic() int64
- func (x *Subscribe) GetTrafficLimit() []*TrafficLimit
- func (x *Subscribe) GetUnitPrice() int64
- func (x *Subscribe) GetUnitTime() string
- func (x *Subscribe) GetUpdatedAt() int64
- func (*Subscribe) ProtoMessage()
- func (x *Subscribe) ProtoReflect() protoreflect.Message
- func (x *Subscribe) Reset()
- func (x *Subscribe) String() string
- func (m *Subscribe) Validate() error
- func (m *Subscribe) ValidateAll() error
- type SubscribeDiscount
- func (*SubscribeDiscount) Descriptor() ([]byte, []int)deprecated
- func (x *SubscribeDiscount) GetDiscount() int64
- func (x *SubscribeDiscount) GetQuantity() int64
- func (*SubscribeDiscount) ProtoMessage()
- func (x *SubscribeDiscount) ProtoReflect() protoreflect.Message
- func (x *SubscribeDiscount) Reset()
- func (x *SubscribeDiscount) String() string
- func (m *SubscribeDiscount) Validate() error
- func (m *SubscribeDiscount) ValidateAll() error
- type SubscribeDiscountMultiError
- type SubscribeDiscountValidationError
- func (e SubscribeDiscountValidationError) Cause() error
- func (e SubscribeDiscountValidationError) Error() string
- func (e SubscribeDiscountValidationError) ErrorName() string
- func (e SubscribeDiscountValidationError) Field() string
- func (e SubscribeDiscountValidationError) Key() bool
- func (e SubscribeDiscountValidationError) Reason() string
- type SubscribeMultiError
- type SubscribeValidationError
- type TrafficLimit
- func (*TrafficLimit) Descriptor() ([]byte, []int)deprecated
- func (x *TrafficLimit) GetSpeedLimit() int32
- func (x *TrafficLimit) GetStatType() string
- func (x *TrafficLimit) GetStatValue() int64
- func (x *TrafficLimit) GetTrafficUsage() int64
- func (*TrafficLimit) ProtoMessage()
- func (x *TrafficLimit) ProtoReflect() protoreflect.Message
- func (x *TrafficLimit) Reset()
- func (x *TrafficLimit) String() string
- func (m *TrafficLimit) Validate() error
- func (m *TrafficLimit) ValidateAll() error
- type TrafficLimitMultiError
- type TrafficLimitValidationError
- func (e TrafficLimitValidationError) Cause() error
- func (e TrafficLimitValidationError) Error() string
- func (e TrafficLimitValidationError) ErrorName() string
- func (e TrafficLimitValidationError) Field() string
- func (e TrafficLimitValidationError) Key() bool
- func (e TrafficLimitValidationError) Reason() string
- type UnimplementedPublicOrderServer
- func (UnimplementedPublicOrderServer) CloseOrder(context.Context, *CloseOrderRequest) (*emptypb.Empty, error)
- func (UnimplementedPublicOrderServer) PreCreateOrder(context.Context, *PreCreateOrderRequest) (*PreCreateOrderReply, error)
- func (UnimplementedPublicOrderServer) Purchase(context.Context, *PurchaseRequest) (*PurchaseReply, error)
- func (UnimplementedPublicOrderServer) QueryOrderDetail(context.Context, *QueryOrderDetailRequest) (*OrderDetail, error)
- func (UnimplementedPublicOrderServer) QueryOrderList(context.Context, *QueryOrderListRequest) (*QueryOrderListReply, error)
- func (UnimplementedPublicOrderServer) Recharge(context.Context, *RechargeRequest) (*RechargeReply, error)
- func (UnimplementedPublicOrderServer) Renewal(context.Context, *RenewalRequest) (*RenewalReply, error)
- func (UnimplementedPublicOrderServer) ResetTraffic(context.Context, *ResetTrafficRequest) (*ResetTrafficReply, error)
- type UnsafePublicOrderServer
Constants ¶
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" )
const OperationPublicOrderCloseOrder = "/api.public.order.v1.PublicOrder/CloseOrder"
const OperationPublicOrderPreCreateOrder = "/api.public.order.v1.PublicOrder/PreCreateOrder"
const OperationPublicOrderPurchase = "/api.public.order.v1.PublicOrder/Purchase"
const OperationPublicOrderQueryOrderDetail = "/api.public.order.v1.PublicOrder/QueryOrderDetail"
const OperationPublicOrderQueryOrderList = "/api.public.order.v1.PublicOrder/QueryOrderList"
const OperationPublicOrderRecharge = "/api.public.order.v1.PublicOrder/Recharge"
const OperationPublicOrderRenewal = "/api.public.order.v1.PublicOrder/Renewal"
const OperationPublicOrderResetTraffic = "/api.public.order.v1.PublicOrder/ResetTraffic"
Variables ¶
var File_public_order_v1_order_proto protoreflect.FileDescriptor
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 ¶
func (m CloseOrderRequestMultiError) Error() string
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 ¶
func (e CloseOrderRequestValidationError) Cause() error
Cause function returns cause value.
func (CloseOrderRequestValidationError) Error ¶
func (e CloseOrderRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CloseOrderRequestValidationError) ErrorName ¶
func (e CloseOrderRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CloseOrderRequestValidationError) Field ¶
func (e CloseOrderRequestValidationError) Field() string
Field function returns field value.
func (CloseOrderRequestValidationError) Key ¶
func (e CloseOrderRequestValidationError) Key() bool
Key function returns key value.
func (CloseOrderRequestValidationError) Reason ¶
func (e CloseOrderRequestValidationError) Reason() string
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 ¶
func (e OrderDetailValidationError) Cause() error
Cause function returns cause value.
func (OrderDetailValidationError) Error ¶
func (e OrderDetailValidationError) Error() string
Error satisfies the builtin error interface
func (OrderDetailValidationError) ErrorName ¶
func (e OrderDetailValidationError) ErrorName() string
ErrorName returns error name.
func (OrderDetailValidationError) Field ¶
func (e OrderDetailValidationError) Field() string
Field function returns field value.
func (OrderDetailValidationError) Key ¶
func (e OrderDetailValidationError) Key() bool
Key function returns key value.
func (OrderDetailValidationError) Reason ¶
func (e OrderDetailValidationError) Reason() string
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 ¶
func (e PaymentMethodValidationError) Cause() error
Cause function returns cause value.
func (PaymentMethodValidationError) Error ¶
func (e PaymentMethodValidationError) Error() string
Error satisfies the builtin error interface
func (PaymentMethodValidationError) ErrorName ¶
func (e PaymentMethodValidationError) ErrorName() string
ErrorName returns error name.
func (PaymentMethodValidationError) Field ¶
func (e PaymentMethodValidationError) Field() string
Field function returns field value.
func (PaymentMethodValidationError) Key ¶
func (e PaymentMethodValidationError) Key() bool
Key function returns key value.
func (PaymentMethodValidationError) Reason ¶
func (e PaymentMethodValidationError) Reason() string
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 ¶
func (m PreCreateOrderReplyMultiError) Error() string
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 ¶
func (e PreCreateOrderReplyValidationError) Cause() error
Cause function returns cause value.
func (PreCreateOrderReplyValidationError) Error ¶
func (e PreCreateOrderReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PreCreateOrderReplyValidationError) ErrorName ¶
func (e PreCreateOrderReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PreCreateOrderReplyValidationError) Field ¶
func (e PreCreateOrderReplyValidationError) Field() string
Field function returns field value.
func (PreCreateOrderReplyValidationError) Key ¶
func (e PreCreateOrderReplyValidationError) Key() bool
Key function returns key value.
func (PreCreateOrderReplyValidationError) Reason ¶
func (e PreCreateOrderReplyValidationError) Reason() string
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 ¶
func (m PreCreateOrderRequestMultiError) Error() string
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 ¶
func (e PreCreateOrderRequestValidationError) Cause() error
Cause function returns cause value.
func (PreCreateOrderRequestValidationError) Error ¶
func (e PreCreateOrderRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PreCreateOrderRequestValidationError) ErrorName ¶
func (e PreCreateOrderRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PreCreateOrderRequestValidationError) Field ¶
func (e PreCreateOrderRequestValidationError) Field() string
Field function returns field value.
func (PreCreateOrderRequestValidationError) Key ¶
func (e PreCreateOrderRequestValidationError) Key() bool
Key function returns key value.
func (PreCreateOrderRequestValidationError) Reason ¶
func (e PreCreateOrderRequestValidationError) Reason() string
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.
func NewPublicOrderClient ¶
func NewPublicOrderClient(cc grpc.ClientConnInterface) PublicOrderClient
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 (c *PublicOrderHTTPClientImpl) CloseOrder(ctx context.Context, in *CloseOrderRequest, opts ...http.CallOption) (*emptypb.Empty, error)
func (*PublicOrderHTTPClientImpl) PreCreateOrder ¶
func (c *PublicOrderHTTPClientImpl) PreCreateOrder(ctx context.Context, in *PreCreateOrderRequest, opts ...http.CallOption) (*PreCreateOrderReply, error)
func (*PublicOrderHTTPClientImpl) Purchase ¶
func (c *PublicOrderHTTPClientImpl) Purchase(ctx context.Context, in *PurchaseRequest, opts ...http.CallOption) (*PurchaseReply, error)
func (*PublicOrderHTTPClientImpl) QueryOrderDetail ¶
func (c *PublicOrderHTTPClientImpl) QueryOrderDetail(ctx context.Context, in *QueryOrderDetailRequest, opts ...http.CallOption) (*OrderDetail, error)
func (*PublicOrderHTTPClientImpl) QueryOrderList ¶
func (c *PublicOrderHTTPClientImpl) QueryOrderList(ctx context.Context, in *QueryOrderListRequest, opts ...http.CallOption) (*QueryOrderListReply, error)
func (*PublicOrderHTTPClientImpl) Recharge ¶
func (c *PublicOrderHTTPClientImpl) Recharge(ctx context.Context, in *RechargeRequest, opts ...http.CallOption) (*RechargeReply, error)
func (*PublicOrderHTTPClientImpl) Renewal ¶
func (c *PublicOrderHTTPClientImpl) Renewal(ctx context.Context, in *RenewalRequest, opts ...http.CallOption) (*RenewalReply, error)
func (*PublicOrderHTTPClientImpl) ResetTraffic ¶
func (c *PublicOrderHTTPClientImpl) ResetTraffic(ctx context.Context, in *ResetTrafficRequest, opts ...http.CallOption) (*ResetTrafficReply, error)
type PublicOrderHTTPServer ¶
type PublicOrderHTTPServer interface {
CloseOrder(context.Context, *CloseOrderRequest) (*emptypb.Empty, error)
PreCreateOrder(context.Context, *PreCreateOrderRequest) (*PreCreateOrderReply, error)
Purchase(context.Context, *PurchaseRequest) (*PurchaseReply, error)
QueryOrderDetail(context.Context, *QueryOrderDetailRequest) (*OrderDetail, error)
QueryOrderList(context.Context, *QueryOrderListRequest) (*QueryOrderListReply, error)
Recharge(context.Context, *RechargeRequest) (*RechargeReply, error)
Renewal(context.Context, *RenewalRequest) (*RenewalReply, error)
ResetTraffic(context.Context, *ResetTrafficRequest) (*ResetTrafficReply, error)
}
type PublicOrderServer ¶
type PublicOrderServer interface {
CloseOrder(context.Context, *CloseOrderRequest) (*emptypb.Empty, error)
QueryOrderDetail(context.Context, *QueryOrderDetailRequest) (*OrderDetail, error)
QueryOrderList(context.Context, *QueryOrderListRequest) (*QueryOrderListReply, error)
PreCreateOrder(context.Context, *PreCreateOrderRequest) (*PreCreateOrderReply, error)
Purchase(context.Context, *PurchaseRequest) (*PurchaseReply, error)
Recharge(context.Context, *RechargeRequest) (*RechargeReply, error)
Renewal(context.Context, *RenewalRequest) (*RenewalReply, error)
ResetTraffic(context.Context, *ResetTrafficRequest) (*ResetTrafficReply, error)
// contains filtered or unexported methods
}
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 ¶
func (e PurchaseReplyValidationError) Cause() error
Cause function returns cause value.
func (PurchaseReplyValidationError) Error ¶
func (e PurchaseReplyValidationError) Error() string
Error satisfies the builtin error interface
func (PurchaseReplyValidationError) ErrorName ¶
func (e PurchaseReplyValidationError) ErrorName() string
ErrorName returns error name.
func (PurchaseReplyValidationError) Field ¶
func (e PurchaseReplyValidationError) Field() string
Field function returns field value.
func (PurchaseReplyValidationError) Key ¶
func (e PurchaseReplyValidationError) Key() bool
Key function returns key value.
func (PurchaseReplyValidationError) Reason ¶
func (e PurchaseReplyValidationError) Reason() string
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 ¶
func (m PurchaseRequestMultiError) Error() string
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 ¶
func (e PurchaseRequestValidationError) Cause() error
Cause function returns cause value.
func (PurchaseRequestValidationError) Error ¶
func (e PurchaseRequestValidationError) Error() string
Error satisfies the builtin error interface
func (PurchaseRequestValidationError) ErrorName ¶
func (e PurchaseRequestValidationError) ErrorName() string
ErrorName returns error name.
func (PurchaseRequestValidationError) Field ¶
func (e PurchaseRequestValidationError) Field() string
Field function returns field value.
func (PurchaseRequestValidationError) Key ¶
func (e PurchaseRequestValidationError) Key() bool
Key function returns key value.
func (PurchaseRequestValidationError) Reason ¶
func (e PurchaseRequestValidationError) Reason() string
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 ¶
func (m QueryOrderDetailRequestMultiError) Error() string
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 ¶
func (e QueryOrderDetailRequestValidationError) Cause() error
Cause function returns cause value.
func (QueryOrderDetailRequestValidationError) Error ¶
func (e QueryOrderDetailRequestValidationError) Error() string
Error satisfies the builtin error interface
func (QueryOrderDetailRequestValidationError) ErrorName ¶
func (e QueryOrderDetailRequestValidationError) ErrorName() string
ErrorName returns error name.
func (QueryOrderDetailRequestValidationError) Field ¶
func (e QueryOrderDetailRequestValidationError) Field() string
Field function returns field value.
func (QueryOrderDetailRequestValidationError) Key ¶
func (e QueryOrderDetailRequestValidationError) Key() bool
Key function returns key value.
func (QueryOrderDetailRequestValidationError) Reason ¶
func (e QueryOrderDetailRequestValidationError) Reason() string
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 ¶
func (m QueryOrderListReplyMultiError) Error() string
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 ¶
func (e QueryOrderListReplyValidationError) Cause() error
Cause function returns cause value.
func (QueryOrderListReplyValidationError) Error ¶
func (e QueryOrderListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (QueryOrderListReplyValidationError) ErrorName ¶
func (e QueryOrderListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (QueryOrderListReplyValidationError) Field ¶
func (e QueryOrderListReplyValidationError) Field() string
Field function returns field value.
func (QueryOrderListReplyValidationError) Key ¶
func (e QueryOrderListReplyValidationError) Key() bool
Key function returns key value.
func (QueryOrderListReplyValidationError) Reason ¶
func (e QueryOrderListReplyValidationError) Reason() string
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 ¶
func (m QueryOrderListRequestMultiError) Error() string
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 ¶
func (e QueryOrderListRequestValidationError) Cause() error
Cause function returns cause value.
func (QueryOrderListRequestValidationError) Error ¶
func (e QueryOrderListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (QueryOrderListRequestValidationError) ErrorName ¶
func (e QueryOrderListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (QueryOrderListRequestValidationError) Field ¶
func (e QueryOrderListRequestValidationError) Field() string
Field function returns field value.
func (QueryOrderListRequestValidationError) Key ¶
func (e QueryOrderListRequestValidationError) Key() bool
Key function returns key value.
func (QueryOrderListRequestValidationError) Reason ¶
func (e QueryOrderListRequestValidationError) Reason() string
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 ¶
func (e RechargeReplyValidationError) Cause() error
Cause function returns cause value.
func (RechargeReplyValidationError) Error ¶
func (e RechargeReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RechargeReplyValidationError) ErrorName ¶
func (e RechargeReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RechargeReplyValidationError) Field ¶
func (e RechargeReplyValidationError) Field() string
Field function returns field value.
func (RechargeReplyValidationError) Key ¶
func (e RechargeReplyValidationError) Key() bool
Key function returns key value.
func (RechargeReplyValidationError) Reason ¶
func (e RechargeReplyValidationError) Reason() string
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 ¶
func (m RechargeRequestMultiError) Error() string
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 ¶
func (e RechargeRequestValidationError) Cause() error
Cause function returns cause value.
func (RechargeRequestValidationError) Error ¶
func (e RechargeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RechargeRequestValidationError) ErrorName ¶
func (e RechargeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RechargeRequestValidationError) Field ¶
func (e RechargeRequestValidationError) Field() string
Field function returns field value.
func (RechargeRequestValidationError) Key ¶
func (e RechargeRequestValidationError) Key() bool
Key function returns key value.
func (RechargeRequestValidationError) Reason ¶
func (e RechargeRequestValidationError) Reason() string
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 ¶
func (e RenewalReplyValidationError) Cause() error
Cause function returns cause value.
func (RenewalReplyValidationError) Error ¶
func (e RenewalReplyValidationError) Error() string
Error satisfies the builtin error interface
func (RenewalReplyValidationError) ErrorName ¶
func (e RenewalReplyValidationError) ErrorName() string
ErrorName returns error name.
func (RenewalReplyValidationError) Field ¶
func (e RenewalReplyValidationError) Field() string
Field function returns field value.
func (RenewalReplyValidationError) Key ¶
func (e RenewalReplyValidationError) Key() bool
Key function returns key value.
func (RenewalReplyValidationError) Reason ¶
func (e RenewalReplyValidationError) Reason() string
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 ¶
func (e RenewalRequestValidationError) Cause() error
Cause function returns cause value.
func (RenewalRequestValidationError) Error ¶
func (e RenewalRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RenewalRequestValidationError) ErrorName ¶
func (e RenewalRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RenewalRequestValidationError) Field ¶
func (e RenewalRequestValidationError) Field() string
Field function returns field value.
func (RenewalRequestValidationError) Key ¶
func (e RenewalRequestValidationError) Key() bool
Key function returns key value.
func (RenewalRequestValidationError) Reason ¶
func (e RenewalRequestValidationError) Reason() string
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 ¶
func (m ResetTrafficReplyMultiError) Error() string
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 ¶
func (e ResetTrafficReplyValidationError) Cause() error
Cause function returns cause value.
func (ResetTrafficReplyValidationError) Error ¶
func (e ResetTrafficReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ResetTrafficReplyValidationError) ErrorName ¶
func (e ResetTrafficReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ResetTrafficReplyValidationError) Field ¶
func (e ResetTrafficReplyValidationError) Field() string
Field function returns field value.
func (ResetTrafficReplyValidationError) Key ¶
func (e ResetTrafficReplyValidationError) Key() bool
Key function returns key value.
func (ResetTrafficReplyValidationError) Reason ¶
func (e ResetTrafficReplyValidationError) Reason() string
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 ¶
func (m ResetTrafficRequestMultiError) Error() string
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 ¶
func (e ResetTrafficRequestValidationError) Cause() error
Cause function returns cause value.
func (ResetTrafficRequestValidationError) Error ¶
func (e ResetTrafficRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ResetTrafficRequestValidationError) ErrorName ¶
func (e ResetTrafficRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ResetTrafficRequestValidationError) Field ¶
func (e ResetTrafficRequestValidationError) Field() string
Field function returns field value.
func (ResetTrafficRequestValidationError) Key ¶
func (e ResetTrafficRequestValidationError) Key() bool
Key function returns key value.
func (ResetTrafficRequestValidationError) Reason ¶
func (e ResetTrafficRequestValidationError) Reason() string
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) GetAllowDeduction ¶
func (*Subscribe) GetCreatedAt ¶
func (*Subscribe) GetDeductionRatio ¶
func (*Subscribe) GetDescription ¶
func (*Subscribe) GetDeviceLimit ¶
func (*Subscribe) GetDiscount ¶
func (x *Subscribe) GetDiscount() []*SubscribeDiscount
func (*Subscribe) GetInventory ¶
func (*Subscribe) GetLanguage ¶
func (*Subscribe) GetNodeGroupId ¶
func (*Subscribe) GetNodeGroupIds ¶
func (*Subscribe) GetNodeTags ¶
func (*Subscribe) GetRenewalReset ¶
func (*Subscribe) GetReplacement ¶
func (*Subscribe) GetResetCycle ¶
func (*Subscribe) GetShowOriginalPrice ¶
func (*Subscribe) GetSpeedLimit ¶
func (*Subscribe) GetTraffic ¶
func (*Subscribe) GetTrafficLimit ¶
func (x *Subscribe) GetTrafficLimit() []*TrafficLimit
func (*Subscribe) GetUnitPrice ¶
func (*Subscribe) GetUnitTime ¶
func (*Subscribe) GetUpdatedAt ¶
func (*Subscribe) ProtoMessage ¶
func (*Subscribe) ProtoMessage()
func (*Subscribe) ProtoReflect ¶
func (x *Subscribe) ProtoReflect() protoreflect.Message
func (*Subscribe) Validate ¶
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 ¶
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 ¶
func (m SubscribeDiscountMultiError) Error() string
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 ¶
func (e SubscribeDiscountValidationError) Cause() error
Cause function returns cause value.
func (SubscribeDiscountValidationError) Error ¶
func (e SubscribeDiscountValidationError) Error() string
Error satisfies the builtin error interface
func (SubscribeDiscountValidationError) ErrorName ¶
func (e SubscribeDiscountValidationError) ErrorName() string
ErrorName returns error name.
func (SubscribeDiscountValidationError) Field ¶
func (e SubscribeDiscountValidationError) Field() string
Field function returns field value.
func (SubscribeDiscountValidationError) Key ¶
func (e SubscribeDiscountValidationError) Key() bool
Key function returns key value.
func (SubscribeDiscountValidationError) Reason ¶
func (e SubscribeDiscountValidationError) Reason() string
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 ¶
func (e SubscribeValidationError) Key() bool
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 ¶
func (e TrafficLimitValidationError) Cause() error
Cause function returns cause value.
func (TrafficLimitValidationError) Error ¶
func (e TrafficLimitValidationError) Error() string
Error satisfies the builtin error interface
func (TrafficLimitValidationError) ErrorName ¶
func (e TrafficLimitValidationError) ErrorName() string
ErrorName returns error name.
func (TrafficLimitValidationError) Field ¶
func (e TrafficLimitValidationError) Field() string
Field function returns field value.
func (TrafficLimitValidationError) Key ¶
func (e TrafficLimitValidationError) Key() bool
Key function returns key value.
func (TrafficLimitValidationError) Reason ¶
func (e TrafficLimitValidationError) Reason() string
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) CloseOrder(context.Context, *CloseOrderRequest) (*emptypb.Empty, error)
func (UnimplementedPublicOrderServer) PreCreateOrder ¶
func (UnimplementedPublicOrderServer) PreCreateOrder(context.Context, *PreCreateOrderRequest) (*PreCreateOrderReply, error)
func (UnimplementedPublicOrderServer) Purchase ¶
func (UnimplementedPublicOrderServer) Purchase(context.Context, *PurchaseRequest) (*PurchaseReply, error)
func (UnimplementedPublicOrderServer) QueryOrderDetail ¶
func (UnimplementedPublicOrderServer) QueryOrderDetail(context.Context, *QueryOrderDetailRequest) (*OrderDetail, error)
func (UnimplementedPublicOrderServer) QueryOrderList ¶
func (UnimplementedPublicOrderServer) QueryOrderList(context.Context, *QueryOrderListRequest) (*QueryOrderListReply, error)
func (UnimplementedPublicOrderServer) Recharge ¶
func (UnimplementedPublicOrderServer) Recharge(context.Context, *RechargeRequest) (*RechargeReply, error)
func (UnimplementedPublicOrderServer) Renewal ¶
func (UnimplementedPublicOrderServer) Renewal(context.Context, *RenewalRequest) (*RenewalReply, error)
func (UnimplementedPublicOrderServer) ResetTraffic ¶
func (UnimplementedPublicOrderServer) ResetTraffic(context.Context, *ResetTrafficRequest) (*ResetTrafficReply, error)
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.