v1

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const OperationRechargePromotionPublicServiceListActiveRechargePromotion = "/api.public.promotion.v1.RechargePromotionPublicService/ListActiveRechargePromotion"
View Source
const (
	RechargePromotionPublicService_ListActiveRechargePromotion_FullMethodName = "/api.public.promotion.v1.RechargePromotionPublicService/ListActiveRechargePromotion"
)

Variables

View Source
var File_public_promotion_v1_promotion_proto protoreflect.FileDescriptor
View Source
var RechargePromotionPublicService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.public.promotion.v1.RechargePromotionPublicService",
	HandlerType: (*RechargePromotionPublicServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListActiveRechargePromotion",
			Handler:    _RechargePromotionPublicService_ListActiveRechargePromotion_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "public/promotion/v1/promotion.proto",
}

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

Functions

func RegisterRechargePromotionPublicServiceHTTPServer

func RegisterRechargePromotionPublicServiceHTTPServer(s *http.Server, srv RechargePromotionPublicServiceHTTPServer)

func RegisterRechargePromotionPublicServiceServer

func RegisterRechargePromotionPublicServiceServer(s grpc.ServiceRegistrar, srv RechargePromotionPublicServiceServer)

Types

type ActiveRechargePromotion

type ActiveRechargePromotion 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"`
	Description        string                         `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	EndTime            int64                          `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`       // Unix 毫秒,0=长期(用户端只关心截止时间)
	StackMode          int32                          `protobuf:"varint,5,opt,name=stack_mode,json=stackMode,proto3" json:"stack_mode,omitempty"` // 叠加策略(用于前端理解)
	CustomBonusEnabled bool                           `protobuf:"varint,6,opt,name=custom_bonus_enabled,json=customBonusEnabled,proto3" json:"custom_bonus_enabled,omitempty"`
	CustomBonusPercent int32                          `protobuf:"varint,7,opt,name=custom_bonus_percent,json=customBonusPercent,proto3" json:"custom_bonus_percent,omitempty"` // 万分比
	Tiers              []*ActiveRechargePromotionTier `protobuf:"bytes,8,rep,name=tiers,proto3" json:"tiers,omitempty"`
	// contains filtered or unexported fields
}

ActiveRechargePromotion 用户端活动(脱敏,仅展示字段)

func (*ActiveRechargePromotion) Descriptor deprecated

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

Deprecated: Use ActiveRechargePromotion.ProtoReflect.Descriptor instead.

func (*ActiveRechargePromotion) GetCustomBonusEnabled

func (x *ActiveRechargePromotion) GetCustomBonusEnabled() bool

func (*ActiveRechargePromotion) GetCustomBonusPercent

func (x *ActiveRechargePromotion) GetCustomBonusPercent() int32

func (*ActiveRechargePromotion) GetDescription

func (x *ActiveRechargePromotion) GetDescription() string

func (*ActiveRechargePromotion) GetEndTime

func (x *ActiveRechargePromotion) GetEndTime() int64

func (*ActiveRechargePromotion) GetId

func (x *ActiveRechargePromotion) GetId() int64

func (*ActiveRechargePromotion) GetName

func (x *ActiveRechargePromotion) GetName() string

func (*ActiveRechargePromotion) GetStackMode

func (x *ActiveRechargePromotion) GetStackMode() int32

func (*ActiveRechargePromotion) GetTiers

func (*ActiveRechargePromotion) ProtoMessage

func (*ActiveRechargePromotion) ProtoMessage()

func (*ActiveRechargePromotion) ProtoReflect

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

func (*ActiveRechargePromotion) Reset

func (x *ActiveRechargePromotion) Reset()

func (*ActiveRechargePromotion) String

func (x *ActiveRechargePromotion) String() string

func (*ActiveRechargePromotion) Validate

func (m *ActiveRechargePromotion) Validate() error

Validate checks the field values on ActiveRechargePromotion 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 (*ActiveRechargePromotion) ValidateAll

func (m *ActiveRechargePromotion) ValidateAll() error

ValidateAll checks the field values on ActiveRechargePromotion 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 ActiveRechargePromotionMultiError, or nil if none found.

type ActiveRechargePromotionMultiError

type ActiveRechargePromotionMultiError []error

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

func (ActiveRechargePromotionMultiError) AllErrors

func (m ActiveRechargePromotionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ActiveRechargePromotionMultiError) Error

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

type ActiveRechargePromotionTier

type ActiveRechargePromotionTier struct {
	Amount int64  `protobuf:"varint,1,opt,name=amount,proto3" json:"amount,omitempty"` // 充值档位金额 分
	Bonus  int64  `protobuf:"varint,2,opt,name=bonus,proto3" json:"bonus,omitempty"`   // 赠送金额 分
	Label  string `protobuf:"bytes,3,opt,name=label,proto3" json:"label,omitempty"`    // 档位标签
	Sort   int32  `protobuf:"varint,4,opt,name=sort,proto3" json:"sort,omitempty"`     // 档位排序 ASC
	// contains filtered or unexported fields
}

ActiveRechargePromotionTier 用户端档位(脱敏,仅展示字段)

func (*ActiveRechargePromotionTier) Descriptor deprecated

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

Deprecated: Use ActiveRechargePromotionTier.ProtoReflect.Descriptor instead.

func (*ActiveRechargePromotionTier) GetAmount

func (x *ActiveRechargePromotionTier) GetAmount() int64

func (*ActiveRechargePromotionTier) GetBonus

func (x *ActiveRechargePromotionTier) GetBonus() int64

func (*ActiveRechargePromotionTier) GetLabel

func (x *ActiveRechargePromotionTier) GetLabel() string

func (*ActiveRechargePromotionTier) GetSort

func (x *ActiveRechargePromotionTier) GetSort() int32

func (*ActiveRechargePromotionTier) ProtoMessage

func (*ActiveRechargePromotionTier) ProtoMessage()

func (*ActiveRechargePromotionTier) ProtoReflect

func (*ActiveRechargePromotionTier) Reset

func (x *ActiveRechargePromotionTier) Reset()

func (*ActiveRechargePromotionTier) String

func (x *ActiveRechargePromotionTier) String() string

func (*ActiveRechargePromotionTier) Validate

func (m *ActiveRechargePromotionTier) Validate() error

Validate checks the field values on ActiveRechargePromotionTier 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 (*ActiveRechargePromotionTier) ValidateAll

func (m *ActiveRechargePromotionTier) ValidateAll() error

ValidateAll checks the field values on ActiveRechargePromotionTier 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 ActiveRechargePromotionTierMultiError, or nil if none found.

type ActiveRechargePromotionTierMultiError

type ActiveRechargePromotionTierMultiError []error

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

func (ActiveRechargePromotionTierMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ActiveRechargePromotionTierMultiError) Error

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

type ActiveRechargePromotionTierValidationError

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

ActiveRechargePromotionTierValidationError is the validation error returned by ActiveRechargePromotionTier.Validate if the designated constraints aren't met.

func (ActiveRechargePromotionTierValidationError) Cause

Cause function returns cause value.

func (ActiveRechargePromotionTierValidationError) Error

Error satisfies the builtin error interface

func (ActiveRechargePromotionTierValidationError) ErrorName

ErrorName returns error name.

func (ActiveRechargePromotionTierValidationError) Field

Field function returns field value.

func (ActiveRechargePromotionTierValidationError) Key

Key function returns key value.

func (ActiveRechargePromotionTierValidationError) Reason

Reason function returns reason value.

type ActiveRechargePromotionValidationError

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

ActiveRechargePromotionValidationError is the validation error returned by ActiveRechargePromotion.Validate if the designated constraints aren't met.

func (ActiveRechargePromotionValidationError) Cause

Cause function returns cause value.

func (ActiveRechargePromotionValidationError) Error

Error satisfies the builtin error interface

func (ActiveRechargePromotionValidationError) ErrorName

ErrorName returns error name.

func (ActiveRechargePromotionValidationError) Field

Field function returns field value.

func (ActiveRechargePromotionValidationError) Key

Key function returns key value.

func (ActiveRechargePromotionValidationError) Reason

Reason function returns reason value.

type ListActiveRechargePromotionReply

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

func (*ListActiveRechargePromotionReply) Descriptor deprecated

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

Deprecated: Use ListActiveRechargePromotionReply.ProtoReflect.Descriptor instead.

func (*ListActiveRechargePromotionReply) GetList

func (*ListActiveRechargePromotionReply) GetTotal

func (*ListActiveRechargePromotionReply) ProtoMessage

func (*ListActiveRechargePromotionReply) ProtoMessage()

func (*ListActiveRechargePromotionReply) ProtoReflect

func (*ListActiveRechargePromotionReply) Reset

func (*ListActiveRechargePromotionReply) String

func (*ListActiveRechargePromotionReply) Validate

Validate checks the field values on ListActiveRechargePromotionReply 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 (*ListActiveRechargePromotionReply) ValidateAll

func (m *ListActiveRechargePromotionReply) ValidateAll() error

ValidateAll checks the field values on ListActiveRechargePromotionReply 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 ListActiveRechargePromotionReplyMultiError, or nil if none found.

type ListActiveRechargePromotionReplyMultiError

type ListActiveRechargePromotionReplyMultiError []error

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

func (ListActiveRechargePromotionReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListActiveRechargePromotionReplyMultiError) Error

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

type ListActiveRechargePromotionReplyValidationError

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

ListActiveRechargePromotionReplyValidationError is the validation error returned by ListActiveRechargePromotionReply.Validate if the designated constraints aren't met.

func (ListActiveRechargePromotionReplyValidationError) Cause

Cause function returns cause value.

func (ListActiveRechargePromotionReplyValidationError) Error

Error satisfies the builtin error interface

func (ListActiveRechargePromotionReplyValidationError) ErrorName

ErrorName returns error name.

func (ListActiveRechargePromotionReplyValidationError) Field

Field function returns field value.

func (ListActiveRechargePromotionReplyValidationError) Key

Key function returns key value.

func (ListActiveRechargePromotionReplyValidationError) Reason

Reason function returns reason value.

type ListActiveRechargePromotionRequest

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

func (*ListActiveRechargePromotionRequest) Descriptor deprecated

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

Deprecated: Use ListActiveRechargePromotionRequest.ProtoReflect.Descriptor instead.

func (*ListActiveRechargePromotionRequest) ProtoMessage

func (*ListActiveRechargePromotionRequest) ProtoMessage()

func (*ListActiveRechargePromotionRequest) ProtoReflect

func (*ListActiveRechargePromotionRequest) Reset

func (*ListActiveRechargePromotionRequest) String

func (*ListActiveRechargePromotionRequest) Validate

Validate checks the field values on ListActiveRechargePromotionRequest 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 (*ListActiveRechargePromotionRequest) ValidateAll

func (m *ListActiveRechargePromotionRequest) ValidateAll() error

ValidateAll checks the field values on ListActiveRechargePromotionRequest 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 ListActiveRechargePromotionRequestMultiError, or nil if none found.

type ListActiveRechargePromotionRequestMultiError

type ListActiveRechargePromotionRequestMultiError []error

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

func (ListActiveRechargePromotionRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListActiveRechargePromotionRequestMultiError) Error

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

type ListActiveRechargePromotionRequestValidationError

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

ListActiveRechargePromotionRequestValidationError is the validation error returned by ListActiveRechargePromotionRequest.Validate if the designated constraints aren't met.

func (ListActiveRechargePromotionRequestValidationError) Cause

Cause function returns cause value.

func (ListActiveRechargePromotionRequestValidationError) Error

Error satisfies the builtin error interface

func (ListActiveRechargePromotionRequestValidationError) ErrorName

ErrorName returns error name.

func (ListActiveRechargePromotionRequestValidationError) Field

Field function returns field value.

func (ListActiveRechargePromotionRequestValidationError) Key

Key function returns key value.

func (ListActiveRechargePromotionRequestValidationError) Reason

Reason function returns reason value.

type RechargePromotionPublicServiceClient

type RechargePromotionPublicServiceClient interface {
	// ListActiveRechargePromotion 列出当前生效的充值促销活动(含档位)
	ListActiveRechargePromotion(ctx context.Context, in *ListActiveRechargePromotionRequest, opts ...grpc.CallOption) (*ListActiveRechargePromotionReply, error)
}

RechargePromotionPublicServiceClient is the client API for RechargePromotionPublicService 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.

RechargePromotionPublicService 充值促销用户端服务(查询当前有效活动)

type RechargePromotionPublicServiceHTTPClient

type RechargePromotionPublicServiceHTTPClient interface {
	// ListActiveRechargePromotion ListActiveRechargePromotion 列出当前生效的充值促销活动(含档位)
	ListActiveRechargePromotion(ctx context.Context, req *ListActiveRechargePromotionRequest, opts ...http.CallOption) (rsp *ListActiveRechargePromotionReply, err error)
}

func NewRechargePromotionPublicServiceHTTPClient

func NewRechargePromotionPublicServiceHTTPClient(client *http.Client) RechargePromotionPublicServiceHTTPClient

type RechargePromotionPublicServiceHTTPClientImpl

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

func (*RechargePromotionPublicServiceHTTPClientImpl) ListActiveRechargePromotion

ListActiveRechargePromotion ListActiveRechargePromotion 列出当前生效的充值促销活动(含档位)

type RechargePromotionPublicServiceHTTPServer

type RechargePromotionPublicServiceHTTPServer interface {
	// ListActiveRechargePromotion ListActiveRechargePromotion 列出当前生效的充值促销活动(含档位)
	ListActiveRechargePromotion(context.Context, *ListActiveRechargePromotionRequest) (*ListActiveRechargePromotionReply, error)
}

type RechargePromotionPublicServiceServer

type RechargePromotionPublicServiceServer interface {
	// ListActiveRechargePromotion 列出当前生效的充值促销活动(含档位)
	ListActiveRechargePromotion(context.Context, *ListActiveRechargePromotionRequest) (*ListActiveRechargePromotionReply, error)
	// contains filtered or unexported methods
}

RechargePromotionPublicServiceServer is the server API for RechargePromotionPublicService service. All implementations must embed UnimplementedRechargePromotionPublicServiceServer for forward compatibility.

RechargePromotionPublicService 充值促销用户端服务(查询当前有效活动)

type UnimplementedRechargePromotionPublicServiceServer

type UnimplementedRechargePromotionPublicServiceServer struct{}

UnimplementedRechargePromotionPublicServiceServer 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.

type UnsafeRechargePromotionPublicServiceServer

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

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

Jump to

Keyboard shortcuts

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