Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterRechargePromotionAdminServiceHTTPServer(s *http.Server, srv RechargePromotionAdminServiceHTTPServer)
- func RegisterRechargePromotionAdminServiceServer(s grpc.ServiceRegistrar, srv RechargePromotionAdminServiceServer)
- type CreateRechargePromotionData
- func (*CreateRechargePromotionData) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRechargePromotionData) GetPromotion() *RechargePromotion
- func (*CreateRechargePromotionData) ProtoMessage()
- func (x *CreateRechargePromotionData) ProtoReflect() protoreflect.Message
- func (x *CreateRechargePromotionData) Reset()
- func (x *CreateRechargePromotionData) String() string
- func (m *CreateRechargePromotionData) Validate() error
- func (m *CreateRechargePromotionData) ValidateAll() error
- type CreateRechargePromotionDataMultiError
- type CreateRechargePromotionDataValidationError
- func (e CreateRechargePromotionDataValidationError) Cause() error
- func (e CreateRechargePromotionDataValidationError) Error() string
- func (e CreateRechargePromotionDataValidationError) ErrorName() string
- func (e CreateRechargePromotionDataValidationError) Field() string
- func (e CreateRechargePromotionDataValidationError) Key() bool
- func (e CreateRechargePromotionDataValidationError) Reason() string
- type CreateRechargePromotionReply
- func (*CreateRechargePromotionReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRechargePromotionReply) GetCode() int32
- func (x *CreateRechargePromotionReply) GetData() *CreateRechargePromotionData
- func (x *CreateRechargePromotionReply) GetMessage() string
- func (*CreateRechargePromotionReply) ProtoMessage()
- func (x *CreateRechargePromotionReply) ProtoReflect() protoreflect.Message
- func (x *CreateRechargePromotionReply) Reset()
- func (x *CreateRechargePromotionReply) String() string
- func (m *CreateRechargePromotionReply) Validate() error
- func (m *CreateRechargePromotionReply) ValidateAll() error
- type CreateRechargePromotionReplyMultiError
- type CreateRechargePromotionReplyValidationError
- func (e CreateRechargePromotionReplyValidationError) Cause() error
- func (e CreateRechargePromotionReplyValidationError) Error() string
- func (e CreateRechargePromotionReplyValidationError) ErrorName() string
- func (e CreateRechargePromotionReplyValidationError) Field() string
- func (e CreateRechargePromotionReplyValidationError) Key() bool
- func (e CreateRechargePromotionReplyValidationError) Reason() string
- type CreateRechargePromotionRequest
- func (*CreateRechargePromotionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRechargePromotionRequest) GetCustomBonusEnabled() bool
- func (x *CreateRechargePromotionRequest) GetCustomBonusPercent() int32
- func (x *CreateRechargePromotionRequest) GetDescription() string
- func (x *CreateRechargePromotionRequest) GetEndTime() int64
- func (x *CreateRechargePromotionRequest) GetName() string
- func (x *CreateRechargePromotionRequest) GetPriority() int32
- func (x *CreateRechargePromotionRequest) GetSort() int32
- func (x *CreateRechargePromotionRequest) GetStackMode() int32
- func (x *CreateRechargePromotionRequest) GetStartTime() int64
- func (x *CreateRechargePromotionRequest) GetTiers() []*RechargePromotionTier
- func (*CreateRechargePromotionRequest) ProtoMessage()
- func (x *CreateRechargePromotionRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRechargePromotionRequest) Reset()
- func (x *CreateRechargePromotionRequest) String() string
- func (m *CreateRechargePromotionRequest) Validate() error
- func (m *CreateRechargePromotionRequest) ValidateAll() error
- type CreateRechargePromotionRequestMultiError
- type CreateRechargePromotionRequestValidationError
- func (e CreateRechargePromotionRequestValidationError) Cause() error
- func (e CreateRechargePromotionRequestValidationError) Error() string
- func (e CreateRechargePromotionRequestValidationError) ErrorName() string
- func (e CreateRechargePromotionRequestValidationError) Field() string
- func (e CreateRechargePromotionRequestValidationError) Key() bool
- func (e CreateRechargePromotionRequestValidationError) Reason() string
- type DeleteRechargePromotionReply
- func (*DeleteRechargePromotionReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRechargePromotionReply) GetCode() int32
- func (x *DeleteRechargePromotionReply) GetMessage() string
- func (*DeleteRechargePromotionReply) ProtoMessage()
- func (x *DeleteRechargePromotionReply) ProtoReflect() protoreflect.Message
- func (x *DeleteRechargePromotionReply) Reset()
- func (x *DeleteRechargePromotionReply) String() string
- func (m *DeleteRechargePromotionReply) Validate() error
- func (m *DeleteRechargePromotionReply) ValidateAll() error
- type DeleteRechargePromotionReplyMultiError
- type DeleteRechargePromotionReplyValidationError
- func (e DeleteRechargePromotionReplyValidationError) Cause() error
- func (e DeleteRechargePromotionReplyValidationError) Error() string
- func (e DeleteRechargePromotionReplyValidationError) ErrorName() string
- func (e DeleteRechargePromotionReplyValidationError) Field() string
- func (e DeleteRechargePromotionReplyValidationError) Key() bool
- func (e DeleteRechargePromotionReplyValidationError) Reason() string
- type DeleteRechargePromotionRequest
- func (*DeleteRechargePromotionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRechargePromotionRequest) GetId() int64
- func (*DeleteRechargePromotionRequest) ProtoMessage()
- func (x *DeleteRechargePromotionRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRechargePromotionRequest) Reset()
- func (x *DeleteRechargePromotionRequest) String() string
- func (m *DeleteRechargePromotionRequest) Validate() error
- func (m *DeleteRechargePromotionRequest) ValidateAll() error
- type DeleteRechargePromotionRequestMultiError
- type DeleteRechargePromotionRequestValidationError
- func (e DeleteRechargePromotionRequestValidationError) Cause() error
- func (e DeleteRechargePromotionRequestValidationError) Error() string
- func (e DeleteRechargePromotionRequestValidationError) ErrorName() string
- func (e DeleteRechargePromotionRequestValidationError) Field() string
- func (e DeleteRechargePromotionRequestValidationError) Key() bool
- func (e DeleteRechargePromotionRequestValidationError) Reason() string
- type GetRechargePromotionListData
- func (*GetRechargePromotionListData) Descriptor() ([]byte, []int)deprecated
- func (x *GetRechargePromotionListData) GetList() []*RechargePromotion
- func (x *GetRechargePromotionListData) GetTotal() int32
- func (*GetRechargePromotionListData) ProtoMessage()
- func (x *GetRechargePromotionListData) ProtoReflect() protoreflect.Message
- func (x *GetRechargePromotionListData) Reset()
- func (x *GetRechargePromotionListData) String() string
- func (m *GetRechargePromotionListData) Validate() error
- func (m *GetRechargePromotionListData) ValidateAll() error
- type GetRechargePromotionListDataMultiError
- type GetRechargePromotionListDataValidationError
- func (e GetRechargePromotionListDataValidationError) Cause() error
- func (e GetRechargePromotionListDataValidationError) Error() string
- func (e GetRechargePromotionListDataValidationError) ErrorName() string
- func (e GetRechargePromotionListDataValidationError) Field() string
- func (e GetRechargePromotionListDataValidationError) Key() bool
- func (e GetRechargePromotionListDataValidationError) Reason() string
- type GetRechargePromotionListReply
- func (*GetRechargePromotionListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetRechargePromotionListReply) GetCode() int32
- func (x *GetRechargePromotionListReply) GetData() *GetRechargePromotionListData
- func (x *GetRechargePromotionListReply) GetMessage() string
- func (*GetRechargePromotionListReply) ProtoMessage()
- func (x *GetRechargePromotionListReply) ProtoReflect() protoreflect.Message
- func (x *GetRechargePromotionListReply) Reset()
- func (x *GetRechargePromotionListReply) String() string
- func (m *GetRechargePromotionListReply) Validate() error
- func (m *GetRechargePromotionListReply) ValidateAll() error
- type GetRechargePromotionListReplyMultiError
- type GetRechargePromotionListReplyValidationError
- func (e GetRechargePromotionListReplyValidationError) Cause() error
- func (e GetRechargePromotionListReplyValidationError) Error() string
- func (e GetRechargePromotionListReplyValidationError) ErrorName() string
- func (e GetRechargePromotionListReplyValidationError) Field() string
- func (e GetRechargePromotionListReplyValidationError) Key() bool
- func (e GetRechargePromotionListReplyValidationError) Reason() string
- type GetRechargePromotionListRequest
- func (*GetRechargePromotionListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRechargePromotionListRequest) GetPage() int32
- func (x *GetRechargePromotionListRequest) GetSearch() string
- func (x *GetRechargePromotionListRequest) GetSize() int32
- func (x *GetRechargePromotionListRequest) GetStatus() bool
- func (*GetRechargePromotionListRequest) ProtoMessage()
- func (x *GetRechargePromotionListRequest) ProtoReflect() protoreflect.Message
- func (x *GetRechargePromotionListRequest) Reset()
- func (x *GetRechargePromotionListRequest) String() string
- func (m *GetRechargePromotionListRequest) Validate() error
- func (m *GetRechargePromotionListRequest) ValidateAll() error
- type GetRechargePromotionListRequestMultiError
- type GetRechargePromotionListRequestValidationError
- func (e GetRechargePromotionListRequestValidationError) Cause() error
- func (e GetRechargePromotionListRequestValidationError) Error() string
- func (e GetRechargePromotionListRequestValidationError) ErrorName() string
- func (e GetRechargePromotionListRequestValidationError) Field() string
- func (e GetRechargePromotionListRequestValidationError) Key() bool
- func (e GetRechargePromotionListRequestValidationError) Reason() string
- type RechargePromotion
- func (*RechargePromotion) Descriptor() ([]byte, []int)deprecated
- func (x *RechargePromotion) GetCreatedAt() int64
- func (x *RechargePromotion) GetCustomBonusEnabled() bool
- func (x *RechargePromotion) GetCustomBonusPercent() int32
- func (x *RechargePromotion) GetDescription() string
- func (x *RechargePromotion) GetEndTime() int64
- func (x *RechargePromotion) GetId() int64
- func (x *RechargePromotion) GetName() string
- func (x *RechargePromotion) GetPriority() int32
- func (x *RechargePromotion) GetSort() int32
- func (x *RechargePromotion) GetStackMode() int32
- func (x *RechargePromotion) GetStartTime() int64
- func (x *RechargePromotion) GetStatus() bool
- func (x *RechargePromotion) GetTiers() []*RechargePromotionTier
- func (x *RechargePromotion) GetUpdatedAt() int64
- func (*RechargePromotion) ProtoMessage()
- func (x *RechargePromotion) ProtoReflect() protoreflect.Message
- func (x *RechargePromotion) Reset()
- func (x *RechargePromotion) String() string
- func (m *RechargePromotion) Validate() error
- func (m *RechargePromotion) ValidateAll() error
- type RechargePromotionAdminServiceClient
- type RechargePromotionAdminServiceHTTPClient
- type RechargePromotionAdminServiceHTTPClientImpl
- func (c *RechargePromotionAdminServiceHTTPClientImpl) CreateRechargePromotion(ctx context.Context, in *CreateRechargePromotionRequest, ...) (*CreateRechargePromotionReply, error)
- func (c *RechargePromotionAdminServiceHTTPClientImpl) DeleteRechargePromotion(ctx context.Context, in *DeleteRechargePromotionRequest, ...) (*DeleteRechargePromotionReply, error)
- func (c *RechargePromotionAdminServiceHTTPClientImpl) GetRechargePromotionList(ctx context.Context, in *GetRechargePromotionListRequest, ...) (*GetRechargePromotionListReply, error)
- func (c *RechargePromotionAdminServiceHTTPClientImpl) UpdateRechargePromotion(ctx context.Context, in *UpdateRechargePromotionRequest, ...) (*UpdateRechargePromotionReply, error)
- func (c *RechargePromotionAdminServiceHTTPClientImpl) UpdateRechargePromotionStatus(ctx context.Context, in *UpdateRechargePromotionStatusRequest, ...) (*UpdateRechargePromotionStatusReply, error)
- type RechargePromotionAdminServiceHTTPServer
- type RechargePromotionAdminServiceServer
- type RechargePromotionMultiError
- type RechargePromotionTier
- func (*RechargePromotionTier) Descriptor() ([]byte, []int)deprecated
- func (x *RechargePromotionTier) GetAmount() int64
- func (x *RechargePromotionTier) GetBonus() int64
- func (x *RechargePromotionTier) GetEnable() bool
- func (x *RechargePromotionTier) GetLabel() string
- func (x *RechargePromotionTier) GetSort() int32
- func (*RechargePromotionTier) ProtoMessage()
- func (x *RechargePromotionTier) ProtoReflect() protoreflect.Message
- func (x *RechargePromotionTier) Reset()
- func (x *RechargePromotionTier) String() string
- func (m *RechargePromotionTier) Validate() error
- func (m *RechargePromotionTier) ValidateAll() error
- type RechargePromotionTierMultiError
- type RechargePromotionTierValidationError
- func (e RechargePromotionTierValidationError) Cause() error
- func (e RechargePromotionTierValidationError) Error() string
- func (e RechargePromotionTierValidationError) ErrorName() string
- func (e RechargePromotionTierValidationError) Field() string
- func (e RechargePromotionTierValidationError) Key() bool
- func (e RechargePromotionTierValidationError) Reason() string
- type RechargePromotionValidationError
- func (e RechargePromotionValidationError) Cause() error
- func (e RechargePromotionValidationError) Error() string
- func (e RechargePromotionValidationError) ErrorName() string
- func (e RechargePromotionValidationError) Field() string
- func (e RechargePromotionValidationError) Key() bool
- func (e RechargePromotionValidationError) Reason() string
- type UnimplementedRechargePromotionAdminServiceServer
- func (UnimplementedRechargePromotionAdminServiceServer) CreateRechargePromotion(context.Context, *CreateRechargePromotionRequest) (*CreateRechargePromotionReply, error)
- func (UnimplementedRechargePromotionAdminServiceServer) DeleteRechargePromotion(context.Context, *DeleteRechargePromotionRequest) (*DeleteRechargePromotionReply, error)
- func (UnimplementedRechargePromotionAdminServiceServer) GetRechargePromotionList(context.Context, *GetRechargePromotionListRequest) (*GetRechargePromotionListReply, error)
- func (UnimplementedRechargePromotionAdminServiceServer) UpdateRechargePromotion(context.Context, *UpdateRechargePromotionRequest) (*UpdateRechargePromotionReply, error)
- func (UnimplementedRechargePromotionAdminServiceServer) UpdateRechargePromotionStatus(context.Context, *UpdateRechargePromotionStatusRequest) (*UpdateRechargePromotionStatusReply, error)
- type UnsafeRechargePromotionAdminServiceServer
- type UpdateRechargePromotionData
- func (*UpdateRechargePromotionData) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRechargePromotionData) GetPromotion() *RechargePromotion
- func (*UpdateRechargePromotionData) ProtoMessage()
- func (x *UpdateRechargePromotionData) ProtoReflect() protoreflect.Message
- func (x *UpdateRechargePromotionData) Reset()
- func (x *UpdateRechargePromotionData) String() string
- func (m *UpdateRechargePromotionData) Validate() error
- func (m *UpdateRechargePromotionData) ValidateAll() error
- type UpdateRechargePromotionDataMultiError
- type UpdateRechargePromotionDataValidationError
- func (e UpdateRechargePromotionDataValidationError) Cause() error
- func (e UpdateRechargePromotionDataValidationError) Error() string
- func (e UpdateRechargePromotionDataValidationError) ErrorName() string
- func (e UpdateRechargePromotionDataValidationError) Field() string
- func (e UpdateRechargePromotionDataValidationError) Key() bool
- func (e UpdateRechargePromotionDataValidationError) Reason() string
- type UpdateRechargePromotionReply
- func (*UpdateRechargePromotionReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRechargePromotionReply) GetCode() int32
- func (x *UpdateRechargePromotionReply) GetData() *UpdateRechargePromotionData
- func (x *UpdateRechargePromotionReply) GetMessage() string
- func (*UpdateRechargePromotionReply) ProtoMessage()
- func (x *UpdateRechargePromotionReply) ProtoReflect() protoreflect.Message
- func (x *UpdateRechargePromotionReply) Reset()
- func (x *UpdateRechargePromotionReply) String() string
- func (m *UpdateRechargePromotionReply) Validate() error
- func (m *UpdateRechargePromotionReply) ValidateAll() error
- type UpdateRechargePromotionReplyMultiError
- type UpdateRechargePromotionReplyValidationError
- func (e UpdateRechargePromotionReplyValidationError) Cause() error
- func (e UpdateRechargePromotionReplyValidationError) Error() string
- func (e UpdateRechargePromotionReplyValidationError) ErrorName() string
- func (e UpdateRechargePromotionReplyValidationError) Field() string
- func (e UpdateRechargePromotionReplyValidationError) Key() bool
- func (e UpdateRechargePromotionReplyValidationError) Reason() string
- type UpdateRechargePromotionRequest
- func (*UpdateRechargePromotionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRechargePromotionRequest) GetCustomBonusEnabled() bool
- func (x *UpdateRechargePromotionRequest) GetCustomBonusPercent() int32
- func (x *UpdateRechargePromotionRequest) GetDescription() string
- func (x *UpdateRechargePromotionRequest) GetEndTime() int64
- func (x *UpdateRechargePromotionRequest) GetId() int64
- func (x *UpdateRechargePromotionRequest) GetName() string
- func (x *UpdateRechargePromotionRequest) GetPriority() int32
- func (x *UpdateRechargePromotionRequest) GetSort() int32
- func (x *UpdateRechargePromotionRequest) GetStackMode() int32
- func (x *UpdateRechargePromotionRequest) GetStartTime() int64
- func (x *UpdateRechargePromotionRequest) GetTiers() []*RechargePromotionTier
- func (*UpdateRechargePromotionRequest) ProtoMessage()
- func (x *UpdateRechargePromotionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRechargePromotionRequest) Reset()
- func (x *UpdateRechargePromotionRequest) String() string
- func (m *UpdateRechargePromotionRequest) Validate() error
- func (m *UpdateRechargePromotionRequest) ValidateAll() error
- type UpdateRechargePromotionRequestMultiError
- type UpdateRechargePromotionRequestValidationError
- func (e UpdateRechargePromotionRequestValidationError) Cause() error
- func (e UpdateRechargePromotionRequestValidationError) Error() string
- func (e UpdateRechargePromotionRequestValidationError) ErrorName() string
- func (e UpdateRechargePromotionRequestValidationError) Field() string
- func (e UpdateRechargePromotionRequestValidationError) Key() bool
- func (e UpdateRechargePromotionRequestValidationError) Reason() string
- type UpdateRechargePromotionStatusReply
- func (*UpdateRechargePromotionStatusReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRechargePromotionStatusReply) GetCode() int32
- func (x *UpdateRechargePromotionStatusReply) GetMessage() string
- func (*UpdateRechargePromotionStatusReply) ProtoMessage()
- func (x *UpdateRechargePromotionStatusReply) ProtoReflect() protoreflect.Message
- func (x *UpdateRechargePromotionStatusReply) Reset()
- func (x *UpdateRechargePromotionStatusReply) String() string
- func (m *UpdateRechargePromotionStatusReply) Validate() error
- func (m *UpdateRechargePromotionStatusReply) ValidateAll() error
- type UpdateRechargePromotionStatusReplyMultiError
- type UpdateRechargePromotionStatusReplyValidationError
- func (e UpdateRechargePromotionStatusReplyValidationError) Cause() error
- func (e UpdateRechargePromotionStatusReplyValidationError) Error() string
- func (e UpdateRechargePromotionStatusReplyValidationError) ErrorName() string
- func (e UpdateRechargePromotionStatusReplyValidationError) Field() string
- func (e UpdateRechargePromotionStatusReplyValidationError) Key() bool
- func (e UpdateRechargePromotionStatusReplyValidationError) Reason() string
- type UpdateRechargePromotionStatusRequest
- func (*UpdateRechargePromotionStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRechargePromotionStatusRequest) GetId() int64
- func (x *UpdateRechargePromotionStatusRequest) GetStatus() bool
- func (*UpdateRechargePromotionStatusRequest) ProtoMessage()
- func (x *UpdateRechargePromotionStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRechargePromotionStatusRequest) Reset()
- func (x *UpdateRechargePromotionStatusRequest) String() string
- func (m *UpdateRechargePromotionStatusRequest) Validate() error
- func (m *UpdateRechargePromotionStatusRequest) ValidateAll() error
- type UpdateRechargePromotionStatusRequestMultiError
- type UpdateRechargePromotionStatusRequestValidationError
- func (e UpdateRechargePromotionStatusRequestValidationError) Cause() error
- func (e UpdateRechargePromotionStatusRequestValidationError) Error() string
- func (e UpdateRechargePromotionStatusRequestValidationError) ErrorName() string
- func (e UpdateRechargePromotionStatusRequestValidationError) Field() string
- func (e UpdateRechargePromotionStatusRequestValidationError) Key() bool
- func (e UpdateRechargePromotionStatusRequestValidationError) Reason() string
Constants ¶
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" )
const OperationRechargePromotionAdminServiceCreateRechargePromotion = "/api.admin.promotion.v1.RechargePromotionAdminService/CreateRechargePromotion"
const OperationRechargePromotionAdminServiceDeleteRechargePromotion = "/api.admin.promotion.v1.RechargePromotionAdminService/DeleteRechargePromotion"
const OperationRechargePromotionAdminServiceGetRechargePromotionList = "/api.admin.promotion.v1.RechargePromotionAdminService/GetRechargePromotionList"
const OperationRechargePromotionAdminServiceUpdateRechargePromotion = "/api.admin.promotion.v1.RechargePromotionAdminService/UpdateRechargePromotion"
const OperationRechargePromotionAdminServiceUpdateRechargePromotionStatus = "/api.admin.promotion.v1.RechargePromotionAdminService/UpdateRechargePromotionStatus"
Variables ¶
var File_admin_promotion_v1_promotion_proto protoreflect.FileDescriptor
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 (x *CreateRechargePromotionData) GetPromotion() *RechargePromotion
func (*CreateRechargePromotionData) ProtoMessage ¶
func (*CreateRechargePromotionData) ProtoMessage()
func (*CreateRechargePromotionData) ProtoReflect ¶
func (x *CreateRechargePromotionData) ProtoReflect() protoreflect.Message
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 ¶
func (m CreateRechargePromotionDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRechargePromotionDataMultiError) Error ¶
func (m CreateRechargePromotionDataMultiError) Error() string
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 ¶
func (e CreateRechargePromotionDataValidationError) Cause() error
Cause function returns cause value.
func (CreateRechargePromotionDataValidationError) Error ¶
func (e CreateRechargePromotionDataValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRechargePromotionDataValidationError) ErrorName ¶
func (e CreateRechargePromotionDataValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRechargePromotionDataValidationError) Field ¶
func (e CreateRechargePromotionDataValidationError) Field() string
Field function returns field value.
func (CreateRechargePromotionDataValidationError) Key ¶
func (e CreateRechargePromotionDataValidationError) Key() bool
Key function returns key value.
func (CreateRechargePromotionDataValidationError) Reason ¶
func (e CreateRechargePromotionDataValidationError) Reason() string
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 (x *CreateRechargePromotionReply) GetData() *CreateRechargePromotionData
func (*CreateRechargePromotionReply) GetMessage ¶
func (x *CreateRechargePromotionReply) GetMessage() string
func (*CreateRechargePromotionReply) ProtoMessage ¶
func (*CreateRechargePromotionReply) ProtoMessage()
func (*CreateRechargePromotionReply) ProtoReflect ¶
func (x *CreateRechargePromotionReply) ProtoReflect() protoreflect.Message
func (*CreateRechargePromotionReply) Reset ¶
func (x *CreateRechargePromotionReply) Reset()
func (*CreateRechargePromotionReply) String ¶
func (x *CreateRechargePromotionReply) String() 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 ¶
func (m CreateRechargePromotionReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRechargePromotionReplyMultiError) Error ¶
func (m CreateRechargePromotionReplyMultiError) Error() string
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 ¶
func (e CreateRechargePromotionReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateRechargePromotionReplyValidationError) Error ¶
func (e CreateRechargePromotionReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRechargePromotionReplyValidationError) ErrorName ¶
func (e CreateRechargePromotionReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRechargePromotionReplyValidationError) Field ¶
func (e CreateRechargePromotionReplyValidationError) Field() string
Field function returns field value.
func (CreateRechargePromotionReplyValidationError) Key ¶
func (e CreateRechargePromotionReplyValidationError) Key() bool
Key function returns key value.
func (CreateRechargePromotionReplyValidationError) Reason ¶
func (e CreateRechargePromotionReplyValidationError) Reason() string
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 (x *CreateRechargePromotionRequest) GetName() string
func (*CreateRechargePromotionRequest) GetPriority ¶
func (x *CreateRechargePromotionRequest) GetPriority() int32
func (*CreateRechargePromotionRequest) GetSort ¶
func (x *CreateRechargePromotionRequest) GetSort() int32
func (*CreateRechargePromotionRequest) GetStackMode ¶
func (x *CreateRechargePromotionRequest) GetStackMode() int32
func (*CreateRechargePromotionRequest) GetStartTime ¶
func (x *CreateRechargePromotionRequest) GetStartTime() int64
func (*CreateRechargePromotionRequest) GetTiers ¶
func (x *CreateRechargePromotionRequest) GetTiers() []*RechargePromotionTier
func (*CreateRechargePromotionRequest) ProtoMessage ¶
func (*CreateRechargePromotionRequest) ProtoMessage()
func (*CreateRechargePromotionRequest) ProtoReflect ¶
func (x *CreateRechargePromotionRequest) ProtoReflect() protoreflect.Message
func (*CreateRechargePromotionRequest) Reset ¶
func (x *CreateRechargePromotionRequest) Reset()
func (*CreateRechargePromotionRequest) String ¶
func (x *CreateRechargePromotionRequest) String() 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 ¶
func (m CreateRechargePromotionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRechargePromotionRequestMultiError) Error ¶
func (m CreateRechargePromotionRequestMultiError) Error() string
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 ¶
func (e CreateRechargePromotionRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRechargePromotionRequestValidationError) Error ¶
func (e CreateRechargePromotionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRechargePromotionRequestValidationError) ErrorName ¶
func (e CreateRechargePromotionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRechargePromotionRequestValidationError) Field ¶
func (e CreateRechargePromotionRequestValidationError) Field() string
Field function returns field value.
func (CreateRechargePromotionRequestValidationError) Key ¶
func (e CreateRechargePromotionRequestValidationError) Key() bool
Key function returns key value.
func (CreateRechargePromotionRequestValidationError) Reason ¶
func (e CreateRechargePromotionRequestValidationError) Reason() string
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 (x *DeleteRechargePromotionReply) ProtoReflect() protoreflect.Message
func (*DeleteRechargePromotionReply) Reset ¶
func (x *DeleteRechargePromotionReply) Reset()
func (*DeleteRechargePromotionReply) String ¶
func (x *DeleteRechargePromotionReply) String() 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 ¶
func (m DeleteRechargePromotionReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRechargePromotionReplyMultiError) Error ¶
func (m DeleteRechargePromotionReplyMultiError) Error() string
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 ¶
func (e DeleteRechargePromotionReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteRechargePromotionReplyValidationError) Error ¶
func (e DeleteRechargePromotionReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRechargePromotionReplyValidationError) ErrorName ¶
func (e DeleteRechargePromotionReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRechargePromotionReplyValidationError) Field ¶
func (e DeleteRechargePromotionReplyValidationError) Field() string
Field function returns field value.
func (DeleteRechargePromotionReplyValidationError) Key ¶
func (e DeleteRechargePromotionReplyValidationError) Key() bool
Key function returns key value.
func (DeleteRechargePromotionReplyValidationError) Reason ¶
func (e DeleteRechargePromotionReplyValidationError) Reason() string
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 (x *DeleteRechargePromotionRequest) GetId() int64
func (*DeleteRechargePromotionRequest) ProtoMessage ¶
func (*DeleteRechargePromotionRequest) ProtoMessage()
func (*DeleteRechargePromotionRequest) ProtoReflect ¶
func (x *DeleteRechargePromotionRequest) ProtoReflect() protoreflect.Message
func (*DeleteRechargePromotionRequest) Reset ¶
func (x *DeleteRechargePromotionRequest) Reset()
func (*DeleteRechargePromotionRequest) String ¶
func (x *DeleteRechargePromotionRequest) String() 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 ¶
func (m DeleteRechargePromotionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRechargePromotionRequestMultiError) Error ¶
func (m DeleteRechargePromotionRequestMultiError) Error() string
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 ¶
func (e DeleteRechargePromotionRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRechargePromotionRequestValidationError) Error ¶
func (e DeleteRechargePromotionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRechargePromotionRequestValidationError) ErrorName ¶
func (e DeleteRechargePromotionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRechargePromotionRequestValidationError) Field ¶
func (e DeleteRechargePromotionRequestValidationError) Field() string
Field function returns field value.
func (DeleteRechargePromotionRequestValidationError) Key ¶
func (e DeleteRechargePromotionRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRechargePromotionRequestValidationError) Reason ¶
func (e DeleteRechargePromotionRequestValidationError) Reason() string
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 (x *GetRechargePromotionListData) GetList() []*RechargePromotion
func (*GetRechargePromotionListData) GetTotal ¶
func (x *GetRechargePromotionListData) GetTotal() int32
func (*GetRechargePromotionListData) ProtoMessage ¶
func (*GetRechargePromotionListData) ProtoMessage()
func (*GetRechargePromotionListData) ProtoReflect ¶
func (x *GetRechargePromotionListData) ProtoReflect() protoreflect.Message
func (*GetRechargePromotionListData) Reset ¶
func (x *GetRechargePromotionListData) Reset()
func (*GetRechargePromotionListData) String ¶
func (x *GetRechargePromotionListData) String() 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 ¶
func (m GetRechargePromotionListDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRechargePromotionListDataMultiError) Error ¶
func (m GetRechargePromotionListDataMultiError) Error() string
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 ¶
func (e GetRechargePromotionListDataValidationError) Cause() error
Cause function returns cause value.
func (GetRechargePromotionListDataValidationError) Error ¶
func (e GetRechargePromotionListDataValidationError) Error() string
Error satisfies the builtin error interface
func (GetRechargePromotionListDataValidationError) ErrorName ¶
func (e GetRechargePromotionListDataValidationError) ErrorName() string
ErrorName returns error name.
func (GetRechargePromotionListDataValidationError) Field ¶
func (e GetRechargePromotionListDataValidationError) Field() string
Field function returns field value.
func (GetRechargePromotionListDataValidationError) Key ¶
func (e GetRechargePromotionListDataValidationError) Key() bool
Key function returns key value.
func (GetRechargePromotionListDataValidationError) Reason ¶
func (e GetRechargePromotionListDataValidationError) Reason() string
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 (x *GetRechargePromotionListReply) GetData() *GetRechargePromotionListData
func (*GetRechargePromotionListReply) GetMessage ¶
func (x *GetRechargePromotionListReply) GetMessage() string
func (*GetRechargePromotionListReply) ProtoMessage ¶
func (*GetRechargePromotionListReply) ProtoMessage()
func (*GetRechargePromotionListReply) ProtoReflect ¶
func (x *GetRechargePromotionListReply) ProtoReflect() protoreflect.Message
func (*GetRechargePromotionListReply) Reset ¶
func (x *GetRechargePromotionListReply) Reset()
func (*GetRechargePromotionListReply) String ¶
func (x *GetRechargePromotionListReply) String() 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 ¶
func (m GetRechargePromotionListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRechargePromotionListReplyMultiError) Error ¶
func (m GetRechargePromotionListReplyMultiError) Error() string
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 ¶
func (e GetRechargePromotionListReplyValidationError) Cause() error
Cause function returns cause value.
func (GetRechargePromotionListReplyValidationError) Error ¶
func (e GetRechargePromotionListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetRechargePromotionListReplyValidationError) ErrorName ¶
func (e GetRechargePromotionListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetRechargePromotionListReplyValidationError) Field ¶
func (e GetRechargePromotionListReplyValidationError) Field() string
Field function returns field value.
func (GetRechargePromotionListReplyValidationError) Key ¶
func (e GetRechargePromotionListReplyValidationError) Key() bool
Key function returns key value.
func (GetRechargePromotionListReplyValidationError) Reason ¶
func (e GetRechargePromotionListReplyValidationError) Reason() string
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 (x *GetRechargePromotionListRequest) GetPage() int32
func (*GetRechargePromotionListRequest) GetSearch ¶
func (x *GetRechargePromotionListRequest) GetSearch() string
func (*GetRechargePromotionListRequest) GetSize ¶
func (x *GetRechargePromotionListRequest) GetSize() int32
func (*GetRechargePromotionListRequest) GetStatus ¶
func (x *GetRechargePromotionListRequest) GetStatus() bool
func (*GetRechargePromotionListRequest) ProtoMessage ¶
func (*GetRechargePromotionListRequest) ProtoMessage()
func (*GetRechargePromotionListRequest) ProtoReflect ¶
func (x *GetRechargePromotionListRequest) ProtoReflect() protoreflect.Message
func (*GetRechargePromotionListRequest) Reset ¶
func (x *GetRechargePromotionListRequest) Reset()
func (*GetRechargePromotionListRequest) String ¶
func (x *GetRechargePromotionListRequest) String() 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 ¶
func (m GetRechargePromotionListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRechargePromotionListRequestMultiError) Error ¶
func (m GetRechargePromotionListRequestMultiError) Error() string
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 ¶
func (e GetRechargePromotionListRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRechargePromotionListRequestValidationError) Error ¶
func (e GetRechargePromotionListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRechargePromotionListRequestValidationError) ErrorName ¶
func (e GetRechargePromotionListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRechargePromotionListRequestValidationError) Field ¶
func (e GetRechargePromotionListRequestValidationError) Field() string
Field function returns field value.
func (GetRechargePromotionListRequestValidationError) Key ¶
func (e GetRechargePromotionListRequestValidationError) Key() bool
Key function returns key value.
func (GetRechargePromotionListRequestValidationError) Reason ¶
func (e GetRechargePromotionListRequestValidationError) Reason() string
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 充值促销管理服务(管理端)
func NewRechargePromotionAdminServiceClient ¶
func NewRechargePromotionAdminServiceClient(cc grpc.ClientConnInterface) RechargePromotionAdminServiceClient
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 ¶
func (c *RechargePromotionAdminServiceHTTPClientImpl) CreateRechargePromotion(ctx context.Context, in *CreateRechargePromotionRequest, opts ...http.CallOption) (*CreateRechargePromotionReply, error)
CreateRechargePromotion CreateRechargePromotion 创建充值促销活动(含档位一次性提交)
func (*RechargePromotionAdminServiceHTTPClientImpl) DeleteRechargePromotion ¶
func (c *RechargePromotionAdminServiceHTTPClientImpl) DeleteRechargePromotion(ctx context.Context, in *DeleteRechargePromotionRequest, opts ...http.CallOption) (*DeleteRechargePromotionReply, error)
DeleteRechargePromotion DeleteRechargePromotion 删除充值促销活动(同时删除其档位)
func (*RechargePromotionAdminServiceHTTPClientImpl) GetRechargePromotionList ¶
func (c *RechargePromotionAdminServiceHTTPClientImpl) GetRechargePromotionList(ctx context.Context, in *GetRechargePromotionListRequest, opts ...http.CallOption) (*GetRechargePromotionListReply, error)
GetRechargePromotionList GetRechargePromotionList 获取充值促销活动列表
func (*RechargePromotionAdminServiceHTTPClientImpl) UpdateRechargePromotion ¶
func (c *RechargePromotionAdminServiceHTTPClientImpl) UpdateRechargePromotion(ctx context.Context, in *UpdateRechargePromotionRequest, opts ...http.CallOption) (*UpdateRechargePromotionReply, error)
UpdateRechargePromotion UpdateRechargePromotion 更新充值促销活动(tiers 全量替换)
func (*RechargePromotionAdminServiceHTTPClientImpl) UpdateRechargePromotionStatus ¶
func (c *RechargePromotionAdminServiceHTTPClientImpl) UpdateRechargePromotionStatus(ctx context.Context, in *UpdateRechargePromotionStatusRequest, opts ...http.CallOption) (*UpdateRechargePromotionStatusReply, error)
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 ¶
func (m RechargePromotionMultiError) Error() string
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 ¶
func (m RechargePromotionTierMultiError) Error() string
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 ¶
func (e RechargePromotionTierValidationError) Cause() error
Cause function returns cause value.
func (RechargePromotionTierValidationError) Error ¶
func (e RechargePromotionTierValidationError) Error() string
Error satisfies the builtin error interface
func (RechargePromotionTierValidationError) ErrorName ¶
func (e RechargePromotionTierValidationError) ErrorName() string
ErrorName returns error name.
func (RechargePromotionTierValidationError) Field ¶
func (e RechargePromotionTierValidationError) Field() string
Field function returns field value.
func (RechargePromotionTierValidationError) Key ¶
func (e RechargePromotionTierValidationError) Key() bool
Key function returns key value.
func (RechargePromotionTierValidationError) Reason ¶
func (e RechargePromotionTierValidationError) Reason() string
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 ¶
func (e RechargePromotionValidationError) Cause() error
Cause function returns cause value.
func (RechargePromotionValidationError) Error ¶
func (e RechargePromotionValidationError) Error() string
Error satisfies the builtin error interface
func (RechargePromotionValidationError) ErrorName ¶
func (e RechargePromotionValidationError) ErrorName() string
ErrorName returns error name.
func (RechargePromotionValidationError) Field ¶
func (e RechargePromotionValidationError) Field() string
Field function returns field value.
func (RechargePromotionValidationError) Key ¶
func (e RechargePromotionValidationError) Key() bool
Key function returns key value.
func (RechargePromotionValidationError) Reason ¶
func (e RechargePromotionValidationError) Reason() string
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) CreateRechargePromotion(context.Context, *CreateRechargePromotionRequest) (*CreateRechargePromotionReply, error)
func (UnimplementedRechargePromotionAdminServiceServer) DeleteRechargePromotion ¶
func (UnimplementedRechargePromotionAdminServiceServer) DeleteRechargePromotion(context.Context, *DeleteRechargePromotionRequest) (*DeleteRechargePromotionReply, error)
func (UnimplementedRechargePromotionAdminServiceServer) GetRechargePromotionList ¶
func (UnimplementedRechargePromotionAdminServiceServer) GetRechargePromotionList(context.Context, *GetRechargePromotionListRequest) (*GetRechargePromotionListReply, error)
func (UnimplementedRechargePromotionAdminServiceServer) UpdateRechargePromotion ¶
func (UnimplementedRechargePromotionAdminServiceServer) UpdateRechargePromotion(context.Context, *UpdateRechargePromotionRequest) (*UpdateRechargePromotionReply, error)
func (UnimplementedRechargePromotionAdminServiceServer) UpdateRechargePromotionStatus ¶
func (UnimplementedRechargePromotionAdminServiceServer) UpdateRechargePromotionStatus(context.Context, *UpdateRechargePromotionStatusRequest) (*UpdateRechargePromotionStatusReply, error)
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 (x *UpdateRechargePromotionData) GetPromotion() *RechargePromotion
func (*UpdateRechargePromotionData) ProtoMessage ¶
func (*UpdateRechargePromotionData) ProtoMessage()
func (*UpdateRechargePromotionData) ProtoReflect ¶
func (x *UpdateRechargePromotionData) ProtoReflect() protoreflect.Message
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 ¶
func (m UpdateRechargePromotionDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRechargePromotionDataMultiError) Error ¶
func (m UpdateRechargePromotionDataMultiError) Error() string
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 ¶
func (e UpdateRechargePromotionDataValidationError) Cause() error
Cause function returns cause value.
func (UpdateRechargePromotionDataValidationError) Error ¶
func (e UpdateRechargePromotionDataValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRechargePromotionDataValidationError) ErrorName ¶
func (e UpdateRechargePromotionDataValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRechargePromotionDataValidationError) Field ¶
func (e UpdateRechargePromotionDataValidationError) Field() string
Field function returns field value.
func (UpdateRechargePromotionDataValidationError) Key ¶
func (e UpdateRechargePromotionDataValidationError) Key() bool
Key function returns key value.
func (UpdateRechargePromotionDataValidationError) Reason ¶
func (e UpdateRechargePromotionDataValidationError) Reason() string
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 (x *UpdateRechargePromotionReply) GetData() *UpdateRechargePromotionData
func (*UpdateRechargePromotionReply) GetMessage ¶
func (x *UpdateRechargePromotionReply) GetMessage() string
func (*UpdateRechargePromotionReply) ProtoMessage ¶
func (*UpdateRechargePromotionReply) ProtoMessage()
func (*UpdateRechargePromotionReply) ProtoReflect ¶
func (x *UpdateRechargePromotionReply) ProtoReflect() protoreflect.Message
func (*UpdateRechargePromotionReply) Reset ¶
func (x *UpdateRechargePromotionReply) Reset()
func (*UpdateRechargePromotionReply) String ¶
func (x *UpdateRechargePromotionReply) String() 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 ¶
func (m UpdateRechargePromotionReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRechargePromotionReplyMultiError) Error ¶
func (m UpdateRechargePromotionReplyMultiError) Error() string
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 ¶
func (e UpdateRechargePromotionReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateRechargePromotionReplyValidationError) Error ¶
func (e UpdateRechargePromotionReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRechargePromotionReplyValidationError) ErrorName ¶
func (e UpdateRechargePromotionReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRechargePromotionReplyValidationError) Field ¶
func (e UpdateRechargePromotionReplyValidationError) Field() string
Field function returns field value.
func (UpdateRechargePromotionReplyValidationError) Key ¶
func (e UpdateRechargePromotionReplyValidationError) Key() bool
Key function returns key value.
func (UpdateRechargePromotionReplyValidationError) Reason ¶
func (e UpdateRechargePromotionReplyValidationError) Reason() string
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 (x *UpdateRechargePromotionRequest) GetId() int64
func (*UpdateRechargePromotionRequest) GetName ¶
func (x *UpdateRechargePromotionRequest) GetName() string
func (*UpdateRechargePromotionRequest) GetPriority ¶
func (x *UpdateRechargePromotionRequest) GetPriority() int32
func (*UpdateRechargePromotionRequest) GetSort ¶
func (x *UpdateRechargePromotionRequest) GetSort() int32
func (*UpdateRechargePromotionRequest) GetStackMode ¶
func (x *UpdateRechargePromotionRequest) GetStackMode() int32
func (*UpdateRechargePromotionRequest) GetStartTime ¶
func (x *UpdateRechargePromotionRequest) GetStartTime() int64
func (*UpdateRechargePromotionRequest) GetTiers ¶
func (x *UpdateRechargePromotionRequest) GetTiers() []*RechargePromotionTier
func (*UpdateRechargePromotionRequest) ProtoMessage ¶
func (*UpdateRechargePromotionRequest) ProtoMessage()
func (*UpdateRechargePromotionRequest) ProtoReflect ¶
func (x *UpdateRechargePromotionRequest) ProtoReflect() protoreflect.Message
func (*UpdateRechargePromotionRequest) Reset ¶
func (x *UpdateRechargePromotionRequest) Reset()
func (*UpdateRechargePromotionRequest) String ¶
func (x *UpdateRechargePromotionRequest) String() 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 ¶
func (m UpdateRechargePromotionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRechargePromotionRequestMultiError) Error ¶
func (m UpdateRechargePromotionRequestMultiError) Error() string
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 ¶
func (e UpdateRechargePromotionRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRechargePromotionRequestValidationError) Error ¶
func (e UpdateRechargePromotionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRechargePromotionRequestValidationError) ErrorName ¶
func (e UpdateRechargePromotionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRechargePromotionRequestValidationError) Field ¶
func (e UpdateRechargePromotionRequestValidationError) Field() string
Field function returns field value.
func (UpdateRechargePromotionRequestValidationError) Key ¶
func (e UpdateRechargePromotionRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRechargePromotionRequestValidationError) Reason ¶
func (e UpdateRechargePromotionRequestValidationError) Reason() string
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 (x *UpdateRechargePromotionStatusReply) GetCode() int32
func (*UpdateRechargePromotionStatusReply) GetMessage ¶
func (x *UpdateRechargePromotionStatusReply) GetMessage() string
func (*UpdateRechargePromotionStatusReply) ProtoMessage ¶
func (*UpdateRechargePromotionStatusReply) ProtoMessage()
func (*UpdateRechargePromotionStatusReply) ProtoReflect ¶
func (x *UpdateRechargePromotionStatusReply) ProtoReflect() protoreflect.Message
func (*UpdateRechargePromotionStatusReply) Reset ¶
func (x *UpdateRechargePromotionStatusReply) Reset()
func (*UpdateRechargePromotionStatusReply) String ¶
func (x *UpdateRechargePromotionStatusReply) String() string
func (*UpdateRechargePromotionStatusReply) Validate ¶
func (m *UpdateRechargePromotionStatusReply) Validate() error
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 ¶
func (m UpdateRechargePromotionStatusReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRechargePromotionStatusReplyMultiError) Error ¶
func (m UpdateRechargePromotionStatusReplyMultiError) Error() string
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 ¶
func (e UpdateRechargePromotionStatusReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateRechargePromotionStatusReplyValidationError) Error ¶
func (e UpdateRechargePromotionStatusReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRechargePromotionStatusReplyValidationError) ErrorName ¶
func (e UpdateRechargePromotionStatusReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRechargePromotionStatusReplyValidationError) Field ¶
func (e UpdateRechargePromotionStatusReplyValidationError) Field() string
Field function returns field value.
func (UpdateRechargePromotionStatusReplyValidationError) Key ¶
func (e UpdateRechargePromotionStatusReplyValidationError) Key() bool
Key function returns key value.
func (UpdateRechargePromotionStatusReplyValidationError) Reason ¶
func (e UpdateRechargePromotionStatusReplyValidationError) Reason() string
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 (x *UpdateRechargePromotionStatusRequest) GetId() int64
func (*UpdateRechargePromotionStatusRequest) GetStatus ¶
func (x *UpdateRechargePromotionStatusRequest) GetStatus() bool
func (*UpdateRechargePromotionStatusRequest) ProtoMessage ¶
func (*UpdateRechargePromotionStatusRequest) ProtoMessage()
func (*UpdateRechargePromotionStatusRequest) ProtoReflect ¶
func (x *UpdateRechargePromotionStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateRechargePromotionStatusRequest) Reset ¶
func (x *UpdateRechargePromotionStatusRequest) Reset()
func (*UpdateRechargePromotionStatusRequest) String ¶
func (x *UpdateRechargePromotionStatusRequest) String() string
func (*UpdateRechargePromotionStatusRequest) Validate ¶
func (m *UpdateRechargePromotionStatusRequest) Validate() error
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 ¶
func (m *UpdateRechargePromotionStatusRequest) ValidateAll() error
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 ¶
func (m UpdateRechargePromotionStatusRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRechargePromotionStatusRequestMultiError) Error ¶
func (m UpdateRechargePromotionStatusRequestMultiError) Error() string
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 ¶
func (e UpdateRechargePromotionStatusRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRechargePromotionStatusRequestValidationError) Error ¶
func (e UpdateRechargePromotionStatusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRechargePromotionStatusRequestValidationError) ErrorName ¶
func (e UpdateRechargePromotionStatusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRechargePromotionStatusRequestValidationError) Field ¶
func (e UpdateRechargePromotionStatusRequestValidationError) Field() string
Field function returns field value.
func (UpdateRechargePromotionStatusRequestValidationError) Key ¶
func (e UpdateRechargePromotionStatusRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRechargePromotionStatusRequestValidationError) Reason ¶
func (e UpdateRechargePromotionStatusRequestValidationError) Reason() string
Reason function returns reason value.