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 (
	RechargePromotionAdminService_CreateRechargePromotion_FullMethodName       = "/api.admin.promotion.v1.RechargePromotionAdminService/CreateRechargePromotion"
	RechargePromotionAdminService_UpdateRechargePromotion_FullMethodName       = "/api.admin.promotion.v1.RechargePromotionAdminService/UpdateRechargePromotion"
	RechargePromotionAdminService_DeleteRechargePromotion_FullMethodName       = "/api.admin.promotion.v1.RechargePromotionAdminService/DeleteRechargePromotion"
	RechargePromotionAdminService_GetRechargePromotionList_FullMethodName      = "/api.admin.promotion.v1.RechargePromotionAdminService/GetRechargePromotionList"
	RechargePromotionAdminService_UpdateRechargePromotionStatus_FullMethodName = "/api.admin.promotion.v1.RechargePromotionAdminService/UpdateRechargePromotionStatus"
)
View Source
const OperationRechargePromotionAdminServiceCreateRechargePromotion = "/api.admin.promotion.v1.RechargePromotionAdminService/CreateRechargePromotion"
View Source
const OperationRechargePromotionAdminServiceDeleteRechargePromotion = "/api.admin.promotion.v1.RechargePromotionAdminService/DeleteRechargePromotion"
View Source
const OperationRechargePromotionAdminServiceGetRechargePromotionList = "/api.admin.promotion.v1.RechargePromotionAdminService/GetRechargePromotionList"
View Source
const OperationRechargePromotionAdminServiceUpdateRechargePromotion = "/api.admin.promotion.v1.RechargePromotionAdminService/UpdateRechargePromotion"
View Source
const OperationRechargePromotionAdminServiceUpdateRechargePromotionStatus = "/api.admin.promotion.v1.RechargePromotionAdminService/UpdateRechargePromotionStatus"

Variables

View Source
var File_admin_promotion_v1_promotion_proto protoreflect.FileDescriptor
View Source
var RechargePromotionAdminService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.admin.promotion.v1.RechargePromotionAdminService",
	HandlerType: (*RechargePromotionAdminServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateRechargePromotion",
			Handler:    _RechargePromotionAdminService_CreateRechargePromotion_Handler,
		},
		{
			MethodName: "UpdateRechargePromotion",
			Handler:    _RechargePromotionAdminService_UpdateRechargePromotion_Handler,
		},
		{
			MethodName: "DeleteRechargePromotion",
			Handler:    _RechargePromotionAdminService_DeleteRechargePromotion_Handler,
		},
		{
			MethodName: "GetRechargePromotionList",
			Handler:    _RechargePromotionAdminService_GetRechargePromotionList_Handler,
		},
		{
			MethodName: "UpdateRechargePromotionStatus",
			Handler:    _RechargePromotionAdminService_UpdateRechargePromotionStatus_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "admin/promotion/v1/promotion.proto",
}

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

Functions

func RegisterRechargePromotionAdminServiceHTTPServer

func RegisterRechargePromotionAdminServiceHTTPServer(s *http.Server, srv RechargePromotionAdminServiceHTTPServer)

func RegisterRechargePromotionAdminServiceServer

func RegisterRechargePromotionAdminServiceServer(s grpc.ServiceRegistrar, srv RechargePromotionAdminServiceServer)

Types

type CreateRechargePromotionData

type CreateRechargePromotionData struct {
	Promotion *RechargePromotion `protobuf:"bytes,1,opt,name=promotion,proto3" json:"promotion,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRechargePromotionData) Descriptor deprecated

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

Deprecated: Use CreateRechargePromotionData.ProtoReflect.Descriptor instead.

func (*CreateRechargePromotionData) GetPromotion

func (*CreateRechargePromotionData) ProtoMessage

func (*CreateRechargePromotionData) ProtoMessage()

func (*CreateRechargePromotionData) ProtoReflect

func (*CreateRechargePromotionData) Reset

func (x *CreateRechargePromotionData) Reset()

func (*CreateRechargePromotionData) String

func (x *CreateRechargePromotionData) String() string

func (*CreateRechargePromotionData) Validate

func (m *CreateRechargePromotionData) Validate() error

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

func (m *CreateRechargePromotionData) ValidateAll() error

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

type CreateRechargePromotionDataMultiError

type CreateRechargePromotionDataMultiError []error

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

func (CreateRechargePromotionDataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateRechargePromotionDataMultiError) Error

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

type CreateRechargePromotionDataValidationError

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

CreateRechargePromotionDataValidationError is the validation error returned by CreateRechargePromotionData.Validate if the designated constraints aren't met.

func (CreateRechargePromotionDataValidationError) Cause

Cause function returns cause value.

func (CreateRechargePromotionDataValidationError) Error

Error satisfies the builtin error interface

func (CreateRechargePromotionDataValidationError) ErrorName

ErrorName returns error name.

func (CreateRechargePromotionDataValidationError) Field

Field function returns field value.

func (CreateRechargePromotionDataValidationError) Key

Key function returns key value.

func (CreateRechargePromotionDataValidationError) Reason

Reason function returns reason value.

type CreateRechargePromotionReply

type CreateRechargePromotionReply struct {
	Code    int32                        `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string                       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *CreateRechargePromotionData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRechargePromotionReply) Descriptor deprecated

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

Deprecated: Use CreateRechargePromotionReply.ProtoReflect.Descriptor instead.

func (*CreateRechargePromotionReply) GetCode

func (x *CreateRechargePromotionReply) GetCode() int32

func (*CreateRechargePromotionReply) GetData

func (*CreateRechargePromotionReply) GetMessage

func (x *CreateRechargePromotionReply) GetMessage() string

func (*CreateRechargePromotionReply) ProtoMessage

func (*CreateRechargePromotionReply) ProtoMessage()

func (*CreateRechargePromotionReply) ProtoReflect

func (*CreateRechargePromotionReply) Reset

func (x *CreateRechargePromotionReply) Reset()

func (*CreateRechargePromotionReply) String

func (*CreateRechargePromotionReply) Validate

func (m *CreateRechargePromotionReply) Validate() error

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

func (m *CreateRechargePromotionReply) ValidateAll() error

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

type CreateRechargePromotionReplyMultiError

type CreateRechargePromotionReplyMultiError []error

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

func (CreateRechargePromotionReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateRechargePromotionReplyMultiError) Error

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

type CreateRechargePromotionReplyValidationError

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

CreateRechargePromotionReplyValidationError is the validation error returned by CreateRechargePromotionReply.Validate if the designated constraints aren't met.

func (CreateRechargePromotionReplyValidationError) Cause

Cause function returns cause value.

func (CreateRechargePromotionReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateRechargePromotionReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateRechargePromotionReplyValidationError) Field

Field function returns field value.

func (CreateRechargePromotionReplyValidationError) Key

Key function returns key value.

func (CreateRechargePromotionReplyValidationError) Reason

Reason function returns reason value.

type CreateRechargePromotionRequest

type CreateRechargePromotionRequest struct {
	Name               string                   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description        string                   `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	StartTime          int64                    `protobuf:"varint,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime            int64                    `protobuf:"varint,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	Priority           int32                    `protobuf:"varint,5,opt,name=priority,proto3" json:"priority,omitempty"`
	StackMode          int32                    `protobuf:"varint,6,opt,name=stack_mode,json=stackMode,proto3" json:"stack_mode,omitempty"`
	CustomBonusEnabled bool                     `protobuf:"varint,7,opt,name=custom_bonus_enabled,json=customBonusEnabled,proto3" json:"custom_bonus_enabled,omitempty"`
	CustomBonusPercent int32                    `protobuf:"varint,8,opt,name=custom_bonus_percent,json=customBonusPercent,proto3" json:"custom_bonus_percent,omitempty"`
	Sort               int32                    `protobuf:"varint,9,opt,name=sort,proto3" json:"sort,omitempty"`
	Tiers              []*RechargePromotionTier `protobuf:"bytes,10,rep,name=tiers,proto3" json:"tiers,omitempty"`
	// contains filtered or unexported fields
}

===== Create =====

func (*CreateRechargePromotionRequest) Descriptor deprecated

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

Deprecated: Use CreateRechargePromotionRequest.ProtoReflect.Descriptor instead.

func (*CreateRechargePromotionRequest) GetCustomBonusEnabled

func (x *CreateRechargePromotionRequest) GetCustomBonusEnabled() bool

func (*CreateRechargePromotionRequest) GetCustomBonusPercent

func (x *CreateRechargePromotionRequest) GetCustomBonusPercent() int32

func (*CreateRechargePromotionRequest) GetDescription

func (x *CreateRechargePromotionRequest) GetDescription() string

func (*CreateRechargePromotionRequest) GetEndTime

func (x *CreateRechargePromotionRequest) GetEndTime() int64

func (*CreateRechargePromotionRequest) GetName

func (*CreateRechargePromotionRequest) GetPriority

func (x *CreateRechargePromotionRequest) GetPriority() int32

func (*CreateRechargePromotionRequest) GetSort

func (*CreateRechargePromotionRequest) GetStackMode

func (x *CreateRechargePromotionRequest) GetStackMode() int32

func (*CreateRechargePromotionRequest) GetStartTime

func (x *CreateRechargePromotionRequest) GetStartTime() int64

func (*CreateRechargePromotionRequest) GetTiers

func (*CreateRechargePromotionRequest) ProtoMessage

func (*CreateRechargePromotionRequest) ProtoMessage()

func (*CreateRechargePromotionRequest) ProtoReflect

func (*CreateRechargePromotionRequest) Reset

func (x *CreateRechargePromotionRequest) Reset()

func (*CreateRechargePromotionRequest) String

func (*CreateRechargePromotionRequest) Validate

func (m *CreateRechargePromotionRequest) Validate() error

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

func (m *CreateRechargePromotionRequest) ValidateAll() error

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

type CreateRechargePromotionRequestMultiError

type CreateRechargePromotionRequestMultiError []error

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

func (CreateRechargePromotionRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateRechargePromotionRequestMultiError) Error

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

type CreateRechargePromotionRequestValidationError

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

CreateRechargePromotionRequestValidationError is the validation error returned by CreateRechargePromotionRequest.Validate if the designated constraints aren't met.

func (CreateRechargePromotionRequestValidationError) Cause

Cause function returns cause value.

func (CreateRechargePromotionRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRechargePromotionRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateRechargePromotionRequestValidationError) Field

Field function returns field value.

func (CreateRechargePromotionRequestValidationError) Key

Key function returns key value.

func (CreateRechargePromotionRequestValidationError) Reason

Reason function returns reason value.

type DeleteRechargePromotionReply

type DeleteRechargePromotionReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRechargePromotionReply) Descriptor deprecated

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

Deprecated: Use DeleteRechargePromotionReply.ProtoReflect.Descriptor instead.

func (*DeleteRechargePromotionReply) GetCode

func (x *DeleteRechargePromotionReply) GetCode() int32

func (*DeleteRechargePromotionReply) GetMessage

func (x *DeleteRechargePromotionReply) GetMessage() string

func (*DeleteRechargePromotionReply) ProtoMessage

func (*DeleteRechargePromotionReply) ProtoMessage()

func (*DeleteRechargePromotionReply) ProtoReflect

func (*DeleteRechargePromotionReply) Reset

func (x *DeleteRechargePromotionReply) Reset()

func (*DeleteRechargePromotionReply) String

func (*DeleteRechargePromotionReply) Validate

func (m *DeleteRechargePromotionReply) Validate() error

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

func (m *DeleteRechargePromotionReply) ValidateAll() error

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

type DeleteRechargePromotionReplyMultiError

type DeleteRechargePromotionReplyMultiError []error

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

func (DeleteRechargePromotionReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteRechargePromotionReplyMultiError) Error

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

type DeleteRechargePromotionReplyValidationError

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

DeleteRechargePromotionReplyValidationError is the validation error returned by DeleteRechargePromotionReply.Validate if the designated constraints aren't met.

func (DeleteRechargePromotionReplyValidationError) Cause

Cause function returns cause value.

func (DeleteRechargePromotionReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteRechargePromotionReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteRechargePromotionReplyValidationError) Field

Field function returns field value.

func (DeleteRechargePromotionReplyValidationError) Key

Key function returns key value.

func (DeleteRechargePromotionReplyValidationError) Reason

Reason function returns reason value.

type DeleteRechargePromotionRequest

type DeleteRechargePromotionRequest struct {
	Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

===== Delete =====

func (*DeleteRechargePromotionRequest) Descriptor deprecated

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

Deprecated: Use DeleteRechargePromotionRequest.ProtoReflect.Descriptor instead.

func (*DeleteRechargePromotionRequest) GetId

func (*DeleteRechargePromotionRequest) ProtoMessage

func (*DeleteRechargePromotionRequest) ProtoMessage()

func (*DeleteRechargePromotionRequest) ProtoReflect

func (*DeleteRechargePromotionRequest) Reset

func (x *DeleteRechargePromotionRequest) Reset()

func (*DeleteRechargePromotionRequest) String

func (*DeleteRechargePromotionRequest) Validate

func (m *DeleteRechargePromotionRequest) Validate() error

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

func (m *DeleteRechargePromotionRequest) ValidateAll() error

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

type DeleteRechargePromotionRequestMultiError

type DeleteRechargePromotionRequestMultiError []error

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

func (DeleteRechargePromotionRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteRechargePromotionRequestMultiError) Error

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

type DeleteRechargePromotionRequestValidationError

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

DeleteRechargePromotionRequestValidationError is the validation error returned by DeleteRechargePromotionRequest.Validate if the designated constraints aren't met.

func (DeleteRechargePromotionRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRechargePromotionRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRechargePromotionRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteRechargePromotionRequestValidationError) Field

Field function returns field value.

func (DeleteRechargePromotionRequestValidationError) Key

Key function returns key value.

func (DeleteRechargePromotionRequestValidationError) Reason

Reason function returns reason value.

type GetRechargePromotionListData

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

func (*GetRechargePromotionListData) Descriptor deprecated

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

Deprecated: Use GetRechargePromotionListData.ProtoReflect.Descriptor instead.

func (*GetRechargePromotionListData) GetList

func (*GetRechargePromotionListData) GetTotal

func (x *GetRechargePromotionListData) GetTotal() int32

func (*GetRechargePromotionListData) ProtoMessage

func (*GetRechargePromotionListData) ProtoMessage()

func (*GetRechargePromotionListData) ProtoReflect

func (*GetRechargePromotionListData) Reset

func (x *GetRechargePromotionListData) Reset()

func (*GetRechargePromotionListData) String

func (*GetRechargePromotionListData) Validate

func (m *GetRechargePromotionListData) Validate() error

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

func (m *GetRechargePromotionListData) ValidateAll() error

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

type GetRechargePromotionListDataMultiError

type GetRechargePromotionListDataMultiError []error

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

func (GetRechargePromotionListDataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetRechargePromotionListDataMultiError) Error

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

type GetRechargePromotionListDataValidationError

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

GetRechargePromotionListDataValidationError is the validation error returned by GetRechargePromotionListData.Validate if the designated constraints aren't met.

func (GetRechargePromotionListDataValidationError) Cause

Cause function returns cause value.

func (GetRechargePromotionListDataValidationError) Error

Error satisfies the builtin error interface

func (GetRechargePromotionListDataValidationError) ErrorName

ErrorName returns error name.

func (GetRechargePromotionListDataValidationError) Field

Field function returns field value.

func (GetRechargePromotionListDataValidationError) Key

Key function returns key value.

func (GetRechargePromotionListDataValidationError) Reason

Reason function returns reason value.

type GetRechargePromotionListReply

type GetRechargePromotionListReply struct {
	Code    int32                         `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string                        `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *GetRechargePromotionListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRechargePromotionListReply) Descriptor deprecated

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

Deprecated: Use GetRechargePromotionListReply.ProtoReflect.Descriptor instead.

func (*GetRechargePromotionListReply) GetCode

func (x *GetRechargePromotionListReply) GetCode() int32

func (*GetRechargePromotionListReply) GetData

func (*GetRechargePromotionListReply) GetMessage

func (x *GetRechargePromotionListReply) GetMessage() string

func (*GetRechargePromotionListReply) ProtoMessage

func (*GetRechargePromotionListReply) ProtoMessage()

func (*GetRechargePromotionListReply) ProtoReflect

func (*GetRechargePromotionListReply) Reset

func (x *GetRechargePromotionListReply) Reset()

func (*GetRechargePromotionListReply) String

func (*GetRechargePromotionListReply) Validate

func (m *GetRechargePromotionListReply) Validate() error

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

func (m *GetRechargePromotionListReply) ValidateAll() error

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

type GetRechargePromotionListReplyMultiError

type GetRechargePromotionListReplyMultiError []error

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

func (GetRechargePromotionListReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetRechargePromotionListReplyMultiError) Error

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

type GetRechargePromotionListReplyValidationError

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

GetRechargePromotionListReplyValidationError is the validation error returned by GetRechargePromotionListReply.Validate if the designated constraints aren't met.

func (GetRechargePromotionListReplyValidationError) Cause

Cause function returns cause value.

func (GetRechargePromotionListReplyValidationError) Error

Error satisfies the builtin error interface

func (GetRechargePromotionListReplyValidationError) ErrorName

ErrorName returns error name.

func (GetRechargePromotionListReplyValidationError) Field

Field function returns field value.

func (GetRechargePromotionListReplyValidationError) Key

Key function returns key value.

func (GetRechargePromotionListReplyValidationError) Reason

Reason function returns reason value.

type GetRechargePromotionListRequest

type GetRechargePromotionListRequest struct {
	Page   int32   `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size   int32   `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	Status *bool   `protobuf:"varint,3,opt,name=status,proto3,oneof" json:"status,omitempty"` // 按启用状态过滤
	Search *string `protobuf:"bytes,4,opt,name=search,proto3,oneof" json:"search,omitempty"`  // 按名称模糊搜索
	// contains filtered or unexported fields
}

===== List =====

func (*GetRechargePromotionListRequest) Descriptor deprecated

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

Deprecated: Use GetRechargePromotionListRequest.ProtoReflect.Descriptor instead.

func (*GetRechargePromotionListRequest) GetPage

func (*GetRechargePromotionListRequest) GetSearch

func (x *GetRechargePromotionListRequest) GetSearch() string

func (*GetRechargePromotionListRequest) GetSize

func (*GetRechargePromotionListRequest) GetStatus

func (x *GetRechargePromotionListRequest) GetStatus() bool

func (*GetRechargePromotionListRequest) ProtoMessage

func (*GetRechargePromotionListRequest) ProtoMessage()

func (*GetRechargePromotionListRequest) ProtoReflect

func (*GetRechargePromotionListRequest) Reset

func (*GetRechargePromotionListRequest) String

func (*GetRechargePromotionListRequest) Validate

func (m *GetRechargePromotionListRequest) Validate() error

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

func (m *GetRechargePromotionListRequest) ValidateAll() error

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

type GetRechargePromotionListRequestMultiError

type GetRechargePromotionListRequestMultiError []error

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

func (GetRechargePromotionListRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetRechargePromotionListRequestMultiError) Error

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

type GetRechargePromotionListRequestValidationError

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

GetRechargePromotionListRequestValidationError is the validation error returned by GetRechargePromotionListRequest.Validate if the designated constraints aren't met.

func (GetRechargePromotionListRequestValidationError) Cause

Cause function returns cause value.

func (GetRechargePromotionListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRechargePromotionListRequestValidationError) ErrorName

ErrorName returns error name.

func (GetRechargePromotionListRequestValidationError) Field

Field function returns field value.

func (GetRechargePromotionListRequestValidationError) Key

Key function returns key value.

func (GetRechargePromotionListRequestValidationError) Reason

Reason function returns reason value.

type RechargePromotion

type RechargePromotion 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"`
	StartTime          int64                    `protobuf:"varint,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Unix 毫秒,0=不限
	EndTime            int64                    `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`       // Unix 毫秒,0=长期
	Status             bool                     `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`                        // 启用状态
	Priority           int32                    `protobuf:"varint,7,opt,name=priority,proto3" json:"priority,omitempty"`                    // 优先级 DESC
	StackMode          int32                    `protobuf:"varint,8,opt,name=stack_mode,json=stackMode,proto3" json:"stack_mode,omitempty"` // 叠加策略 0=互斥 1=叠加
	CustomBonusEnabled bool                     `protobuf:"varint,9,opt,name=custom_bonus_enabled,json=customBonusEnabled,proto3" json:"custom_bonus_enabled,omitempty"`
	CustomBonusPercent int32                    `protobuf:"varint,10,opt,name=custom_bonus_percent,json=customBonusPercent,proto3" json:"custom_bonus_percent,omitempty"` // 万分比 0-10000
	Sort               int32                    `protobuf:"varint,11,opt,name=sort,proto3" json:"sort,omitempty"`
	Tiers              []*RechargePromotionTier `protobuf:"bytes,12,rep,name=tiers,proto3" json:"tiers,omitempty"`
	CreatedAt          int64                    `protobuf:"varint,13,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` // Unix 毫秒
	UpdatedAt          int64                    `protobuf:"varint,14,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // Unix 毫秒
	// contains filtered or unexported fields
}

RechargePromotion 充值促销活动

func (*RechargePromotion) Descriptor deprecated

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

Deprecated: Use RechargePromotion.ProtoReflect.Descriptor instead.

func (*RechargePromotion) GetCreatedAt

func (x *RechargePromotion) GetCreatedAt() int64

func (*RechargePromotion) GetCustomBonusEnabled

func (x *RechargePromotion) GetCustomBonusEnabled() bool

func (*RechargePromotion) GetCustomBonusPercent

func (x *RechargePromotion) GetCustomBonusPercent() int32

func (*RechargePromotion) GetDescription

func (x *RechargePromotion) GetDescription() string

func (*RechargePromotion) GetEndTime

func (x *RechargePromotion) GetEndTime() int64

func (*RechargePromotion) GetId

func (x *RechargePromotion) GetId() int64

func (*RechargePromotion) GetName

func (x *RechargePromotion) GetName() string

func (*RechargePromotion) GetPriority

func (x *RechargePromotion) GetPriority() int32

func (*RechargePromotion) GetSort

func (x *RechargePromotion) GetSort() int32

func (*RechargePromotion) GetStackMode

func (x *RechargePromotion) GetStackMode() int32

func (*RechargePromotion) GetStartTime

func (x *RechargePromotion) GetStartTime() int64

func (*RechargePromotion) GetStatus

func (x *RechargePromotion) GetStatus() bool

func (*RechargePromotion) GetTiers

func (x *RechargePromotion) GetTiers() []*RechargePromotionTier

func (*RechargePromotion) GetUpdatedAt

func (x *RechargePromotion) GetUpdatedAt() int64

func (*RechargePromotion) ProtoMessage

func (*RechargePromotion) ProtoMessage()

func (*RechargePromotion) ProtoReflect

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

func (*RechargePromotion) Reset

func (x *RechargePromotion) Reset()

func (*RechargePromotion) String

func (x *RechargePromotion) String() string

func (*RechargePromotion) Validate

func (m *RechargePromotion) Validate() error

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

func (m *RechargePromotion) ValidateAll() error

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

type RechargePromotionAdminServiceClient

type RechargePromotionAdminServiceClient interface {
	// CreateRechargePromotion 创建充值促销活动(含档位一次性提交)
	CreateRechargePromotion(ctx context.Context, in *CreateRechargePromotionRequest, opts ...grpc.CallOption) (*CreateRechargePromotionReply, error)
	// UpdateRechargePromotion 更新充值促销活动(tiers 全量替换)
	UpdateRechargePromotion(ctx context.Context, in *UpdateRechargePromotionRequest, opts ...grpc.CallOption) (*UpdateRechargePromotionReply, error)
	// DeleteRechargePromotion 删除充值促销活动(同时删除其档位)
	DeleteRechargePromotion(ctx context.Context, in *DeleteRechargePromotionRequest, opts ...grpc.CallOption) (*DeleteRechargePromotionReply, error)
	// GetRechargePromotionList 获取充值促销活动列表
	GetRechargePromotionList(ctx context.Context, in *GetRechargePromotionListRequest, opts ...grpc.CallOption) (*GetRechargePromotionListReply, error)
	// UpdateRechargePromotionStatus 快速启停活动
	UpdateRechargePromotionStatus(ctx context.Context, in *UpdateRechargePromotionStatusRequest, opts ...grpc.CallOption) (*UpdateRechargePromotionStatusReply, error)
}

RechargePromotionAdminServiceClient is the client API for RechargePromotionAdminService 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.

RechargePromotionAdminService 充值促销管理服务(管理端)

type RechargePromotionAdminServiceHTTPClient

type RechargePromotionAdminServiceHTTPClient interface {
	// CreateRechargePromotion CreateRechargePromotion 创建充值促销活动(含档位一次性提交)
	CreateRechargePromotion(ctx context.Context, req *CreateRechargePromotionRequest, opts ...http.CallOption) (rsp *CreateRechargePromotionReply, err error)
	// DeleteRechargePromotion DeleteRechargePromotion 删除充值促销活动(同时删除其档位)
	DeleteRechargePromotion(ctx context.Context, req *DeleteRechargePromotionRequest, opts ...http.CallOption) (rsp *DeleteRechargePromotionReply, err error)
	// GetRechargePromotionList GetRechargePromotionList 获取充值促销活动列表
	GetRechargePromotionList(ctx context.Context, req *GetRechargePromotionListRequest, opts ...http.CallOption) (rsp *GetRechargePromotionListReply, err error)
	// UpdateRechargePromotion UpdateRechargePromotion 更新充值促销活动(tiers 全量替换)
	UpdateRechargePromotion(ctx context.Context, req *UpdateRechargePromotionRequest, opts ...http.CallOption) (rsp *UpdateRechargePromotionReply, err error)
	// UpdateRechargePromotionStatus UpdateRechargePromotionStatus 快速启停活动
	UpdateRechargePromotionStatus(ctx context.Context, req *UpdateRechargePromotionStatusRequest, opts ...http.CallOption) (rsp *UpdateRechargePromotionStatusReply, err error)
}

func NewRechargePromotionAdminServiceHTTPClient

func NewRechargePromotionAdminServiceHTTPClient(client *http.Client) RechargePromotionAdminServiceHTTPClient

type RechargePromotionAdminServiceHTTPClientImpl

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

func (*RechargePromotionAdminServiceHTTPClientImpl) CreateRechargePromotion

CreateRechargePromotion CreateRechargePromotion 创建充值促销活动(含档位一次性提交)

func (*RechargePromotionAdminServiceHTTPClientImpl) DeleteRechargePromotion

DeleteRechargePromotion DeleteRechargePromotion 删除充值促销活动(同时删除其档位)

func (*RechargePromotionAdminServiceHTTPClientImpl) GetRechargePromotionList

GetRechargePromotionList GetRechargePromotionList 获取充值促销活动列表

func (*RechargePromotionAdminServiceHTTPClientImpl) UpdateRechargePromotion

UpdateRechargePromotion UpdateRechargePromotion 更新充值促销活动(tiers 全量替换)

func (*RechargePromotionAdminServiceHTTPClientImpl) UpdateRechargePromotionStatus

UpdateRechargePromotionStatus UpdateRechargePromotionStatus 快速启停活动

type RechargePromotionAdminServiceHTTPServer

type RechargePromotionAdminServiceHTTPServer interface {
	// CreateRechargePromotion CreateRechargePromotion 创建充值促销活动(含档位一次性提交)
	CreateRechargePromotion(context.Context, *CreateRechargePromotionRequest) (*CreateRechargePromotionReply, error)
	// DeleteRechargePromotion DeleteRechargePromotion 删除充值促销活动(同时删除其档位)
	DeleteRechargePromotion(context.Context, *DeleteRechargePromotionRequest) (*DeleteRechargePromotionReply, error)
	// GetRechargePromotionList GetRechargePromotionList 获取充值促销活动列表
	GetRechargePromotionList(context.Context, *GetRechargePromotionListRequest) (*GetRechargePromotionListReply, error)
	// UpdateRechargePromotion UpdateRechargePromotion 更新充值促销活动(tiers 全量替换)
	UpdateRechargePromotion(context.Context, *UpdateRechargePromotionRequest) (*UpdateRechargePromotionReply, error)
	// UpdateRechargePromotionStatus UpdateRechargePromotionStatus 快速启停活动
	UpdateRechargePromotionStatus(context.Context, *UpdateRechargePromotionStatusRequest) (*UpdateRechargePromotionStatusReply, error)
}

type RechargePromotionAdminServiceServer

type RechargePromotionAdminServiceServer interface {
	// CreateRechargePromotion 创建充值促销活动(含档位一次性提交)
	CreateRechargePromotion(context.Context, *CreateRechargePromotionRequest) (*CreateRechargePromotionReply, error)
	// UpdateRechargePromotion 更新充值促销活动(tiers 全量替换)
	UpdateRechargePromotion(context.Context, *UpdateRechargePromotionRequest) (*UpdateRechargePromotionReply, error)
	// DeleteRechargePromotion 删除充值促销活动(同时删除其档位)
	DeleteRechargePromotion(context.Context, *DeleteRechargePromotionRequest) (*DeleteRechargePromotionReply, error)
	// GetRechargePromotionList 获取充值促销活动列表
	GetRechargePromotionList(context.Context, *GetRechargePromotionListRequest) (*GetRechargePromotionListReply, error)
	// UpdateRechargePromotionStatus 快速启停活动
	UpdateRechargePromotionStatus(context.Context, *UpdateRechargePromotionStatusRequest) (*UpdateRechargePromotionStatusReply, error)
	// contains filtered or unexported methods
}

RechargePromotionAdminServiceServer is the server API for RechargePromotionAdminService service. All implementations must embed UnimplementedRechargePromotionAdminServiceServer for forward compatibility.

RechargePromotionAdminService 充值促销管理服务(管理端)

type RechargePromotionMultiError

type RechargePromotionMultiError []error

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

func (RechargePromotionMultiError) AllErrors

func (m RechargePromotionMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RechargePromotionMultiError) Error

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

type RechargePromotionTier

type RechargePromotionTier 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
	Enable bool   `protobuf:"varint,5,opt,name=enable,proto3" json:"enable,omitempty"` // 单档启停
	// contains filtered or unexported fields
}

RechargePromotionTier 充值促销档位

func (*RechargePromotionTier) Descriptor deprecated

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

Deprecated: Use RechargePromotionTier.ProtoReflect.Descriptor instead.

func (*RechargePromotionTier) GetAmount

func (x *RechargePromotionTier) GetAmount() int64

func (*RechargePromotionTier) GetBonus

func (x *RechargePromotionTier) GetBonus() int64

func (*RechargePromotionTier) GetEnable

func (x *RechargePromotionTier) GetEnable() bool

func (*RechargePromotionTier) GetLabel

func (x *RechargePromotionTier) GetLabel() string

func (*RechargePromotionTier) GetSort

func (x *RechargePromotionTier) GetSort() int32

func (*RechargePromotionTier) ProtoMessage

func (*RechargePromotionTier) ProtoMessage()

func (*RechargePromotionTier) ProtoReflect

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

func (*RechargePromotionTier) Reset

func (x *RechargePromotionTier) Reset()

func (*RechargePromotionTier) String

func (x *RechargePromotionTier) String() string

func (*RechargePromotionTier) Validate

func (m *RechargePromotionTier) Validate() error

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

func (m *RechargePromotionTier) ValidateAll() error

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

type RechargePromotionTierMultiError

type RechargePromotionTierMultiError []error

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

func (RechargePromotionTierMultiError) AllErrors

func (m RechargePromotionTierMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RechargePromotionTierMultiError) Error

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

type RechargePromotionTierValidationError

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

RechargePromotionTierValidationError is the validation error returned by RechargePromotionTier.Validate if the designated constraints aren't met.

func (RechargePromotionTierValidationError) Cause

Cause function returns cause value.

func (RechargePromotionTierValidationError) Error

Error satisfies the builtin error interface

func (RechargePromotionTierValidationError) ErrorName

ErrorName returns error name.

func (RechargePromotionTierValidationError) Field

Field function returns field value.

func (RechargePromotionTierValidationError) Key

Key function returns key value.

func (RechargePromotionTierValidationError) Reason

Reason function returns reason value.

type RechargePromotionValidationError

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

RechargePromotionValidationError is the validation error returned by RechargePromotion.Validate if the designated constraints aren't met.

func (RechargePromotionValidationError) Cause

Cause function returns cause value.

func (RechargePromotionValidationError) Error

Error satisfies the builtin error interface

func (RechargePromotionValidationError) ErrorName

ErrorName returns error name.

func (RechargePromotionValidationError) Field

Field function returns field value.

func (RechargePromotionValidationError) Key

Key function returns key value.

func (RechargePromotionValidationError) Reason

Reason function returns reason value.

type UnimplementedRechargePromotionAdminServiceServer

type UnimplementedRechargePromotionAdminServiceServer struct{}

UnimplementedRechargePromotionAdminServiceServer 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 (UnimplementedRechargePromotionAdminServiceServer) CreateRechargePromotion

func (UnimplementedRechargePromotionAdminServiceServer) DeleteRechargePromotion

func (UnimplementedRechargePromotionAdminServiceServer) GetRechargePromotionList

func (UnimplementedRechargePromotionAdminServiceServer) UpdateRechargePromotion

type UnsafeRechargePromotionAdminServiceServer

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

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

type UpdateRechargePromotionData

type UpdateRechargePromotionData struct {
	Promotion *RechargePromotion `protobuf:"bytes,1,opt,name=promotion,proto3" json:"promotion,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRechargePromotionData) Descriptor deprecated

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

Deprecated: Use UpdateRechargePromotionData.ProtoReflect.Descriptor instead.

func (*UpdateRechargePromotionData) GetPromotion

func (*UpdateRechargePromotionData) ProtoMessage

func (*UpdateRechargePromotionData) ProtoMessage()

func (*UpdateRechargePromotionData) ProtoReflect

func (*UpdateRechargePromotionData) Reset

func (x *UpdateRechargePromotionData) Reset()

func (*UpdateRechargePromotionData) String

func (x *UpdateRechargePromotionData) String() string

func (*UpdateRechargePromotionData) Validate

func (m *UpdateRechargePromotionData) Validate() error

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

func (m *UpdateRechargePromotionData) ValidateAll() error

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

type UpdateRechargePromotionDataMultiError

type UpdateRechargePromotionDataMultiError []error

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

func (UpdateRechargePromotionDataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateRechargePromotionDataMultiError) Error

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

type UpdateRechargePromotionDataValidationError

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

UpdateRechargePromotionDataValidationError is the validation error returned by UpdateRechargePromotionData.Validate if the designated constraints aren't met.

func (UpdateRechargePromotionDataValidationError) Cause

Cause function returns cause value.

func (UpdateRechargePromotionDataValidationError) Error

Error satisfies the builtin error interface

func (UpdateRechargePromotionDataValidationError) ErrorName

ErrorName returns error name.

func (UpdateRechargePromotionDataValidationError) Field

Field function returns field value.

func (UpdateRechargePromotionDataValidationError) Key

Key function returns key value.

func (UpdateRechargePromotionDataValidationError) Reason

Reason function returns reason value.

type UpdateRechargePromotionReply

type UpdateRechargePromotionReply struct {
	Code    int32                        `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string                       `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	Data    *UpdateRechargePromotionData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRechargePromotionReply) Descriptor deprecated

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

Deprecated: Use UpdateRechargePromotionReply.ProtoReflect.Descriptor instead.

func (*UpdateRechargePromotionReply) GetCode

func (x *UpdateRechargePromotionReply) GetCode() int32

func (*UpdateRechargePromotionReply) GetData

func (*UpdateRechargePromotionReply) GetMessage

func (x *UpdateRechargePromotionReply) GetMessage() string

func (*UpdateRechargePromotionReply) ProtoMessage

func (*UpdateRechargePromotionReply) ProtoMessage()

func (*UpdateRechargePromotionReply) ProtoReflect

func (*UpdateRechargePromotionReply) Reset

func (x *UpdateRechargePromotionReply) Reset()

func (*UpdateRechargePromotionReply) String

func (*UpdateRechargePromotionReply) Validate

func (m *UpdateRechargePromotionReply) Validate() error

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

func (m *UpdateRechargePromotionReply) ValidateAll() error

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

type UpdateRechargePromotionReplyMultiError

type UpdateRechargePromotionReplyMultiError []error

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

func (UpdateRechargePromotionReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateRechargePromotionReplyMultiError) Error

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

type UpdateRechargePromotionReplyValidationError

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

UpdateRechargePromotionReplyValidationError is the validation error returned by UpdateRechargePromotionReply.Validate if the designated constraints aren't met.

func (UpdateRechargePromotionReplyValidationError) Cause

Cause function returns cause value.

func (UpdateRechargePromotionReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateRechargePromotionReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateRechargePromotionReplyValidationError) Field

Field function returns field value.

func (UpdateRechargePromotionReplyValidationError) Key

Key function returns key value.

func (UpdateRechargePromotionReplyValidationError) Reason

Reason function returns reason value.

type UpdateRechargePromotionRequest

type UpdateRechargePromotionRequest 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"`
	StartTime          int64                    `protobuf:"varint,4,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	EndTime            int64                    `protobuf:"varint,5,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	Priority           int32                    `protobuf:"varint,6,opt,name=priority,proto3" json:"priority,omitempty"`
	StackMode          int32                    `protobuf:"varint,7,opt,name=stack_mode,json=stackMode,proto3" json:"stack_mode,omitempty"`
	CustomBonusEnabled bool                     `protobuf:"varint,8,opt,name=custom_bonus_enabled,json=customBonusEnabled,proto3" json:"custom_bonus_enabled,omitempty"`
	CustomBonusPercent int32                    `protobuf:"varint,9,opt,name=custom_bonus_percent,json=customBonusPercent,proto3" json:"custom_bonus_percent,omitempty"`
	Sort               int32                    `protobuf:"varint,10,opt,name=sort,proto3" json:"sort,omitempty"`
	Tiers              []*RechargePromotionTier `protobuf:"bytes,11,rep,name=tiers,proto3" json:"tiers,omitempty"`
	// contains filtered or unexported fields
}

===== Update =====

func (*UpdateRechargePromotionRequest) Descriptor deprecated

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

Deprecated: Use UpdateRechargePromotionRequest.ProtoReflect.Descriptor instead.

func (*UpdateRechargePromotionRequest) GetCustomBonusEnabled

func (x *UpdateRechargePromotionRequest) GetCustomBonusEnabled() bool

func (*UpdateRechargePromotionRequest) GetCustomBonusPercent

func (x *UpdateRechargePromotionRequest) GetCustomBonusPercent() int32

func (*UpdateRechargePromotionRequest) GetDescription

func (x *UpdateRechargePromotionRequest) GetDescription() string

func (*UpdateRechargePromotionRequest) GetEndTime

func (x *UpdateRechargePromotionRequest) GetEndTime() int64

func (*UpdateRechargePromotionRequest) GetId

func (*UpdateRechargePromotionRequest) GetName

func (*UpdateRechargePromotionRequest) GetPriority

func (x *UpdateRechargePromotionRequest) GetPriority() int32

func (*UpdateRechargePromotionRequest) GetSort

func (*UpdateRechargePromotionRequest) GetStackMode

func (x *UpdateRechargePromotionRequest) GetStackMode() int32

func (*UpdateRechargePromotionRequest) GetStartTime

func (x *UpdateRechargePromotionRequest) GetStartTime() int64

func (*UpdateRechargePromotionRequest) GetTiers

func (*UpdateRechargePromotionRequest) ProtoMessage

func (*UpdateRechargePromotionRequest) ProtoMessage()

func (*UpdateRechargePromotionRequest) ProtoReflect

func (*UpdateRechargePromotionRequest) Reset

func (x *UpdateRechargePromotionRequest) Reset()

func (*UpdateRechargePromotionRequest) String

func (*UpdateRechargePromotionRequest) Validate

func (m *UpdateRechargePromotionRequest) Validate() error

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

func (m *UpdateRechargePromotionRequest) ValidateAll() error

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

type UpdateRechargePromotionRequestMultiError

type UpdateRechargePromotionRequestMultiError []error

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

func (UpdateRechargePromotionRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateRechargePromotionRequestMultiError) Error

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

type UpdateRechargePromotionRequestValidationError

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

UpdateRechargePromotionRequestValidationError is the validation error returned by UpdateRechargePromotionRequest.Validate if the designated constraints aren't met.

func (UpdateRechargePromotionRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRechargePromotionRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRechargePromotionRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRechargePromotionRequestValidationError) Field

Field function returns field value.

func (UpdateRechargePromotionRequestValidationError) Key

Key function returns key value.

func (UpdateRechargePromotionRequestValidationError) Reason

Reason function returns reason value.

type UpdateRechargePromotionStatusReply

type UpdateRechargePromotionStatusReply struct {
	Code    int32  `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRechargePromotionStatusReply) Descriptor deprecated

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

Deprecated: Use UpdateRechargePromotionStatusReply.ProtoReflect.Descriptor instead.

func (*UpdateRechargePromotionStatusReply) GetCode

func (*UpdateRechargePromotionStatusReply) GetMessage

func (*UpdateRechargePromotionStatusReply) ProtoMessage

func (*UpdateRechargePromotionStatusReply) ProtoMessage()

func (*UpdateRechargePromotionStatusReply) ProtoReflect

func (*UpdateRechargePromotionStatusReply) Reset

func (*UpdateRechargePromotionStatusReply) String

func (*UpdateRechargePromotionStatusReply) Validate

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

func (m *UpdateRechargePromotionStatusReply) ValidateAll() error

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

type UpdateRechargePromotionStatusReplyMultiError

type UpdateRechargePromotionStatusReplyMultiError []error

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

func (UpdateRechargePromotionStatusReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateRechargePromotionStatusReplyMultiError) Error

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

type UpdateRechargePromotionStatusReplyValidationError

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

UpdateRechargePromotionStatusReplyValidationError is the validation error returned by UpdateRechargePromotionStatusReply.Validate if the designated constraints aren't met.

func (UpdateRechargePromotionStatusReplyValidationError) Cause

Cause function returns cause value.

func (UpdateRechargePromotionStatusReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateRechargePromotionStatusReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateRechargePromotionStatusReplyValidationError) Field

Field function returns field value.

func (UpdateRechargePromotionStatusReplyValidationError) Key

Key function returns key value.

func (UpdateRechargePromotionStatusReplyValidationError) Reason

Reason function returns reason value.

type UpdateRechargePromotionStatusRequest

type UpdateRechargePromotionStatusRequest struct {
	Id     int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Status bool  `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

===== UpdateStatus =====

func (*UpdateRechargePromotionStatusRequest) Descriptor deprecated

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

Deprecated: Use UpdateRechargePromotionStatusRequest.ProtoReflect.Descriptor instead.

func (*UpdateRechargePromotionStatusRequest) GetId

func (*UpdateRechargePromotionStatusRequest) GetStatus

func (*UpdateRechargePromotionStatusRequest) ProtoMessage

func (*UpdateRechargePromotionStatusRequest) ProtoMessage()

func (*UpdateRechargePromotionStatusRequest) ProtoReflect

func (*UpdateRechargePromotionStatusRequest) Reset

func (*UpdateRechargePromotionStatusRequest) String

func (*UpdateRechargePromotionStatusRequest) Validate

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

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

type UpdateRechargePromotionStatusRequestMultiError

type UpdateRechargePromotionStatusRequestMultiError []error

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

func (UpdateRechargePromotionStatusRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateRechargePromotionStatusRequestMultiError) Error

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

type UpdateRechargePromotionStatusRequestValidationError

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

UpdateRechargePromotionStatusRequestValidationError is the validation error returned by UpdateRechargePromotionStatusRequest.Validate if the designated constraints aren't met.

func (UpdateRechargePromotionStatusRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRechargePromotionStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRechargePromotionStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRechargePromotionStatusRequestValidationError) Field

Field function returns field value.

func (UpdateRechargePromotionStatusRequestValidationError) Key

Key function returns key value.

func (UpdateRechargePromotionStatusRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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