v1

package
v1.0.11 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Redemption_CreateRedemptionCode_FullMethodName       = "/api.admin.redemption.v1.Redemption/CreateRedemptionCode"
	Redemption_UpdateRedemptionCode_FullMethodName       = "/api.admin.redemption.v1.Redemption/UpdateRedemptionCode"
	Redemption_ToggleRedemptionCodeStatus_FullMethodName = "/api.admin.redemption.v1.Redemption/ToggleRedemptionCodeStatus"
	Redemption_DeleteRedemptionCode_FullMethodName       = "/api.admin.redemption.v1.Redemption/DeleteRedemptionCode"
	Redemption_BatchDeleteRedemptionCode_FullMethodName  = "/api.admin.redemption.v1.Redemption/BatchDeleteRedemptionCode"
	Redemption_GetRedemptionCodeList_FullMethodName      = "/api.admin.redemption.v1.Redemption/GetRedemptionCodeList"
	Redemption_GetRedemptionRecordList_FullMethodName    = "/api.admin.redemption.v1.Redemption/GetRedemptionRecordList"
)
View Source
const OperationRedemptionBatchDeleteRedemptionCode = "/api.admin.redemption.v1.Redemption/BatchDeleteRedemptionCode"
View Source
const OperationRedemptionCreateRedemptionCode = "/api.admin.redemption.v1.Redemption/CreateRedemptionCode"
View Source
const OperationRedemptionDeleteRedemptionCode = "/api.admin.redemption.v1.Redemption/DeleteRedemptionCode"
View Source
const OperationRedemptionGetRedemptionCodeList = "/api.admin.redemption.v1.Redemption/GetRedemptionCodeList"
View Source
const OperationRedemptionGetRedemptionRecordList = "/api.admin.redemption.v1.Redemption/GetRedemptionRecordList"
View Source
const OperationRedemptionToggleRedemptionCodeStatus = "/api.admin.redemption.v1.Redemption/ToggleRedemptionCodeStatus"
View Source
const OperationRedemptionUpdateRedemptionCode = "/api.admin.redemption.v1.Redemption/UpdateRedemptionCode"

Variables

View Source
var File_admin_redemption_v1_redemption_proto protoreflect.FileDescriptor
View Source
var Redemption_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "api.admin.redemption.v1.Redemption",
	HandlerType: (*RedemptionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateRedemptionCode",
			Handler:    _Redemption_CreateRedemptionCode_Handler,
		},
		{
			MethodName: "UpdateRedemptionCode",
			Handler:    _Redemption_UpdateRedemptionCode_Handler,
		},
		{
			MethodName: "ToggleRedemptionCodeStatus",
			Handler:    _Redemption_ToggleRedemptionCodeStatus_Handler,
		},
		{
			MethodName: "DeleteRedemptionCode",
			Handler:    _Redemption_DeleteRedemptionCode_Handler,
		},
		{
			MethodName: "BatchDeleteRedemptionCode",
			Handler:    _Redemption_BatchDeleteRedemptionCode_Handler,
		},
		{
			MethodName: "GetRedemptionCodeList",
			Handler:    _Redemption_GetRedemptionCodeList_Handler,
		},
		{
			MethodName: "GetRedemptionRecordList",
			Handler:    _Redemption_GetRedemptionRecordList_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "admin/redemption/v1/redemption.proto",
}

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

Functions

func RegisterRedemptionHTTPServer

func RegisterRedemptionHTTPServer(s *http.Server, srv RedemptionHTTPServer)

func RegisterRedemptionServer

func RegisterRedemptionServer(s grpc.ServiceRegistrar, srv RedemptionServer)

Types

type BatchDeleteRedemptionCodeData

type BatchDeleteRedemptionCodeData struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchDeleteRedemptionCodeData) Descriptor deprecated

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

Deprecated: Use BatchDeleteRedemptionCodeData.ProtoReflect.Descriptor instead.

func (*BatchDeleteRedemptionCodeData) GetSuccess

func (x *BatchDeleteRedemptionCodeData) GetSuccess() bool

func (*BatchDeleteRedemptionCodeData) ProtoMessage

func (*BatchDeleteRedemptionCodeData) ProtoMessage()

func (*BatchDeleteRedemptionCodeData) ProtoReflect

func (*BatchDeleteRedemptionCodeData) Reset

func (x *BatchDeleteRedemptionCodeData) Reset()

func (*BatchDeleteRedemptionCodeData) String

func (*BatchDeleteRedemptionCodeData) Validate

func (m *BatchDeleteRedemptionCodeData) Validate() error

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

func (m *BatchDeleteRedemptionCodeData) ValidateAll() error

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

type BatchDeleteRedemptionCodeDataMultiError

type BatchDeleteRedemptionCodeDataMultiError []error

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

func (BatchDeleteRedemptionCodeDataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (BatchDeleteRedemptionCodeDataMultiError) Error

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

type BatchDeleteRedemptionCodeDataValidationError

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

BatchDeleteRedemptionCodeDataValidationError is the validation error returned by BatchDeleteRedemptionCodeData.Validate if the designated constraints aren't met.

func (BatchDeleteRedemptionCodeDataValidationError) Cause

Cause function returns cause value.

func (BatchDeleteRedemptionCodeDataValidationError) Error

Error satisfies the builtin error interface

func (BatchDeleteRedemptionCodeDataValidationError) ErrorName

ErrorName returns error name.

func (BatchDeleteRedemptionCodeDataValidationError) Field

Field function returns field value.

func (BatchDeleteRedemptionCodeDataValidationError) Key

Key function returns key value.

func (BatchDeleteRedemptionCodeDataValidationError) Reason

Reason function returns reason value.

type BatchDeleteRedemptionCodeReply

type BatchDeleteRedemptionCodeReply 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    *BatchDeleteRedemptionCodeData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchDeleteRedemptionCodeReply) Descriptor deprecated

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

Deprecated: Use BatchDeleteRedemptionCodeReply.ProtoReflect.Descriptor instead.

func (*BatchDeleteRedemptionCodeReply) GetCode

func (*BatchDeleteRedemptionCodeReply) GetData

func (*BatchDeleteRedemptionCodeReply) GetMessage

func (x *BatchDeleteRedemptionCodeReply) GetMessage() string

func (*BatchDeleteRedemptionCodeReply) ProtoMessage

func (*BatchDeleteRedemptionCodeReply) ProtoMessage()

func (*BatchDeleteRedemptionCodeReply) ProtoReflect

func (*BatchDeleteRedemptionCodeReply) Reset

func (x *BatchDeleteRedemptionCodeReply) Reset()

func (*BatchDeleteRedemptionCodeReply) String

func (*BatchDeleteRedemptionCodeReply) Validate

func (m *BatchDeleteRedemptionCodeReply) Validate() error

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

func (m *BatchDeleteRedemptionCodeReply) ValidateAll() error

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

type BatchDeleteRedemptionCodeReplyMultiError

type BatchDeleteRedemptionCodeReplyMultiError []error

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

func (BatchDeleteRedemptionCodeReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (BatchDeleteRedemptionCodeReplyMultiError) Error

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

type BatchDeleteRedemptionCodeReplyValidationError

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

BatchDeleteRedemptionCodeReplyValidationError is the validation error returned by BatchDeleteRedemptionCodeReply.Validate if the designated constraints aren't met.

func (BatchDeleteRedemptionCodeReplyValidationError) Cause

Cause function returns cause value.

func (BatchDeleteRedemptionCodeReplyValidationError) Error

Error satisfies the builtin error interface

func (BatchDeleteRedemptionCodeReplyValidationError) ErrorName

ErrorName returns error name.

func (BatchDeleteRedemptionCodeReplyValidationError) Field

Field function returns field value.

func (BatchDeleteRedemptionCodeReplyValidationError) Key

Key function returns key value.

func (BatchDeleteRedemptionCodeReplyValidationError) Reason

Reason function returns reason value.

type BatchDeleteRedemptionCodeRequest

type BatchDeleteRedemptionCodeRequest struct {
	Ids []int64 `protobuf:"varint,1,rep,packed,name=ids,proto3" json:"ids,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchDeleteRedemptionCodeRequest) Descriptor deprecated

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

Deprecated: Use BatchDeleteRedemptionCodeRequest.ProtoReflect.Descriptor instead.

func (*BatchDeleteRedemptionCodeRequest) GetIds

func (*BatchDeleteRedemptionCodeRequest) ProtoMessage

func (*BatchDeleteRedemptionCodeRequest) ProtoMessage()

func (*BatchDeleteRedemptionCodeRequest) ProtoReflect

func (*BatchDeleteRedemptionCodeRequest) Reset

func (*BatchDeleteRedemptionCodeRequest) String

func (*BatchDeleteRedemptionCodeRequest) Validate

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

func (m *BatchDeleteRedemptionCodeRequest) ValidateAll() error

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

type BatchDeleteRedemptionCodeRequestMultiError

type BatchDeleteRedemptionCodeRequestMultiError []error

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

func (BatchDeleteRedemptionCodeRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (BatchDeleteRedemptionCodeRequestMultiError) Error

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

type BatchDeleteRedemptionCodeRequestValidationError

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

BatchDeleteRedemptionCodeRequestValidationError is the validation error returned by BatchDeleteRedemptionCodeRequest.Validate if the designated constraints aren't met.

func (BatchDeleteRedemptionCodeRequestValidationError) Cause

Cause function returns cause value.

func (BatchDeleteRedemptionCodeRequestValidationError) Error

Error satisfies the builtin error interface

func (BatchDeleteRedemptionCodeRequestValidationError) ErrorName

ErrorName returns error name.

func (BatchDeleteRedemptionCodeRequestValidationError) Field

Field function returns field value.

func (BatchDeleteRedemptionCodeRequestValidationError) Key

Key function returns key value.

func (BatchDeleteRedemptionCodeRequestValidationError) Reason

Reason function returns reason value.

type CreateRedemptionCodeData

type CreateRedemptionCodeData struct {
	CreatedCount int64 `protobuf:"varint,1,opt,name=created_count,json=createdCount,proto3" json:"created_count,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRedemptionCodeData) Descriptor deprecated

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

Deprecated: Use CreateRedemptionCodeData.ProtoReflect.Descriptor instead.

func (*CreateRedemptionCodeData) GetCreatedCount

func (x *CreateRedemptionCodeData) GetCreatedCount() int64

func (*CreateRedemptionCodeData) ProtoMessage

func (*CreateRedemptionCodeData) ProtoMessage()

func (*CreateRedemptionCodeData) ProtoReflect

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

func (*CreateRedemptionCodeData) Reset

func (x *CreateRedemptionCodeData) Reset()

func (*CreateRedemptionCodeData) String

func (x *CreateRedemptionCodeData) String() string

func (*CreateRedemptionCodeData) Validate

func (m *CreateRedemptionCodeData) Validate() error

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

func (m *CreateRedemptionCodeData) ValidateAll() error

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

type CreateRedemptionCodeDataMultiError

type CreateRedemptionCodeDataMultiError []error

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

func (CreateRedemptionCodeDataMultiError) AllErrors

func (m CreateRedemptionCodeDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateRedemptionCodeDataMultiError) Error

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

type CreateRedemptionCodeDataValidationError

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

CreateRedemptionCodeDataValidationError is the validation error returned by CreateRedemptionCodeData.Validate if the designated constraints aren't met.

func (CreateRedemptionCodeDataValidationError) Cause

Cause function returns cause value.

func (CreateRedemptionCodeDataValidationError) Error

Error satisfies the builtin error interface

func (CreateRedemptionCodeDataValidationError) ErrorName

ErrorName returns error name.

func (CreateRedemptionCodeDataValidationError) Field

Field function returns field value.

func (CreateRedemptionCodeDataValidationError) Key

Key function returns key value.

func (CreateRedemptionCodeDataValidationError) Reason

Reason function returns reason value.

type CreateRedemptionCodeReply

type CreateRedemptionCodeReply 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    *CreateRedemptionCodeData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRedemptionCodeReply) Descriptor deprecated

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

Deprecated: Use CreateRedemptionCodeReply.ProtoReflect.Descriptor instead.

func (*CreateRedemptionCodeReply) GetCode

func (x *CreateRedemptionCodeReply) GetCode() int32

func (*CreateRedemptionCodeReply) GetData

func (*CreateRedemptionCodeReply) GetMessage

func (x *CreateRedemptionCodeReply) GetMessage() string

func (*CreateRedemptionCodeReply) ProtoMessage

func (*CreateRedemptionCodeReply) ProtoMessage()

func (*CreateRedemptionCodeReply) ProtoReflect

func (*CreateRedemptionCodeReply) Reset

func (x *CreateRedemptionCodeReply) Reset()

func (*CreateRedemptionCodeReply) String

func (x *CreateRedemptionCodeReply) String() string

func (*CreateRedemptionCodeReply) Validate

func (m *CreateRedemptionCodeReply) Validate() error

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

func (m *CreateRedemptionCodeReply) ValidateAll() error

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

type CreateRedemptionCodeReplyMultiError

type CreateRedemptionCodeReplyMultiError []error

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

func (CreateRedemptionCodeReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateRedemptionCodeReplyMultiError) Error

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

type CreateRedemptionCodeReplyValidationError

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

CreateRedemptionCodeReplyValidationError is the validation error returned by CreateRedemptionCodeReply.Validate if the designated constraints aren't met.

func (CreateRedemptionCodeReplyValidationError) Cause

Cause function returns cause value.

func (CreateRedemptionCodeReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateRedemptionCodeReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateRedemptionCodeReplyValidationError) Field

Field function returns field value.

func (CreateRedemptionCodeReplyValidationError) Key

Key function returns key value.

func (CreateRedemptionCodeReplyValidationError) Reason

Reason function returns reason value.

type CreateRedemptionCodeRequest

type CreateRedemptionCodeRequest struct {
	TotalCount    int64  `protobuf:"varint,1,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	SubscribePlan int64  `protobuf:"varint,2,opt,name=subscribe_plan,json=subscribePlan,proto3" json:"subscribe_plan,omitempty"`
	UnitTime      string `protobuf:"bytes,3,opt,name=unit_time,json=unitTime,proto3" json:"unit_time,omitempty"`
	Quantity      int32  `protobuf:"varint,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
	BatchCount    int64  `protobuf:"varint,5,opt,name=batch_count,json=batchCount,proto3" json:"batch_count,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRedemptionCodeRequest) Descriptor deprecated

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

Deprecated: Use CreateRedemptionCodeRequest.ProtoReflect.Descriptor instead.

func (*CreateRedemptionCodeRequest) GetBatchCount

func (x *CreateRedemptionCodeRequest) GetBatchCount() int64

func (*CreateRedemptionCodeRequest) GetQuantity

func (x *CreateRedemptionCodeRequest) GetQuantity() int32

func (*CreateRedemptionCodeRequest) GetSubscribePlan

func (x *CreateRedemptionCodeRequest) GetSubscribePlan() int64

func (*CreateRedemptionCodeRequest) GetTotalCount

func (x *CreateRedemptionCodeRequest) GetTotalCount() int64

func (*CreateRedemptionCodeRequest) GetUnitTime

func (x *CreateRedemptionCodeRequest) GetUnitTime() string

func (*CreateRedemptionCodeRequest) ProtoMessage

func (*CreateRedemptionCodeRequest) ProtoMessage()

func (*CreateRedemptionCodeRequest) ProtoReflect

func (*CreateRedemptionCodeRequest) Reset

func (x *CreateRedemptionCodeRequest) Reset()

func (*CreateRedemptionCodeRequest) String

func (x *CreateRedemptionCodeRequest) String() string

func (*CreateRedemptionCodeRequest) Validate

func (m *CreateRedemptionCodeRequest) Validate() error

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

func (m *CreateRedemptionCodeRequest) ValidateAll() error

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

type CreateRedemptionCodeRequestMultiError

type CreateRedemptionCodeRequestMultiError []error

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

func (CreateRedemptionCodeRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateRedemptionCodeRequestMultiError) Error

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

type CreateRedemptionCodeRequestValidationError

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

CreateRedemptionCodeRequestValidationError is the validation error returned by CreateRedemptionCodeRequest.Validate if the designated constraints aren't met.

func (CreateRedemptionCodeRequestValidationError) Cause

Cause function returns cause value.

func (CreateRedemptionCodeRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateRedemptionCodeRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateRedemptionCodeRequestValidationError) Field

Field function returns field value.

func (CreateRedemptionCodeRequestValidationError) Key

Key function returns key value.

func (CreateRedemptionCodeRequestValidationError) Reason

Reason function returns reason value.

type DeleteRedemptionCodeData

type DeleteRedemptionCodeData struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRedemptionCodeData) Descriptor deprecated

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

Deprecated: Use DeleteRedemptionCodeData.ProtoReflect.Descriptor instead.

func (*DeleteRedemptionCodeData) GetSuccess

func (x *DeleteRedemptionCodeData) GetSuccess() bool

func (*DeleteRedemptionCodeData) ProtoMessage

func (*DeleteRedemptionCodeData) ProtoMessage()

func (*DeleteRedemptionCodeData) ProtoReflect

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

func (*DeleteRedemptionCodeData) Reset

func (x *DeleteRedemptionCodeData) Reset()

func (*DeleteRedemptionCodeData) String

func (x *DeleteRedemptionCodeData) String() string

func (*DeleteRedemptionCodeData) Validate

func (m *DeleteRedemptionCodeData) Validate() error

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

func (m *DeleteRedemptionCodeData) ValidateAll() error

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

type DeleteRedemptionCodeDataMultiError

type DeleteRedemptionCodeDataMultiError []error

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

func (DeleteRedemptionCodeDataMultiError) AllErrors

func (m DeleteRedemptionCodeDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeleteRedemptionCodeDataMultiError) Error

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

type DeleteRedemptionCodeDataValidationError

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

DeleteRedemptionCodeDataValidationError is the validation error returned by DeleteRedemptionCodeData.Validate if the designated constraints aren't met.

func (DeleteRedemptionCodeDataValidationError) Cause

Cause function returns cause value.

func (DeleteRedemptionCodeDataValidationError) Error

Error satisfies the builtin error interface

func (DeleteRedemptionCodeDataValidationError) ErrorName

ErrorName returns error name.

func (DeleteRedemptionCodeDataValidationError) Field

Field function returns field value.

func (DeleteRedemptionCodeDataValidationError) Key

Key function returns key value.

func (DeleteRedemptionCodeDataValidationError) Reason

Reason function returns reason value.

type DeleteRedemptionCodeReply

type DeleteRedemptionCodeReply 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    *DeleteRedemptionCodeData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteRedemptionCodeReply) Descriptor deprecated

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

Deprecated: Use DeleteRedemptionCodeReply.ProtoReflect.Descriptor instead.

func (*DeleteRedemptionCodeReply) GetCode

func (x *DeleteRedemptionCodeReply) GetCode() int32

func (*DeleteRedemptionCodeReply) GetData

func (*DeleteRedemptionCodeReply) GetMessage

func (x *DeleteRedemptionCodeReply) GetMessage() string

func (*DeleteRedemptionCodeReply) ProtoMessage

func (*DeleteRedemptionCodeReply) ProtoMessage()

func (*DeleteRedemptionCodeReply) ProtoReflect

func (*DeleteRedemptionCodeReply) Reset

func (x *DeleteRedemptionCodeReply) Reset()

func (*DeleteRedemptionCodeReply) String

func (x *DeleteRedemptionCodeReply) String() string

func (*DeleteRedemptionCodeReply) Validate

func (m *DeleteRedemptionCodeReply) Validate() error

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

func (m *DeleteRedemptionCodeReply) ValidateAll() error

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

type DeleteRedemptionCodeReplyMultiError

type DeleteRedemptionCodeReplyMultiError []error

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

func (DeleteRedemptionCodeReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteRedemptionCodeReplyMultiError) Error

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

type DeleteRedemptionCodeReplyValidationError

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

DeleteRedemptionCodeReplyValidationError is the validation error returned by DeleteRedemptionCodeReply.Validate if the designated constraints aren't met.

func (DeleteRedemptionCodeReplyValidationError) Cause

Cause function returns cause value.

func (DeleteRedemptionCodeReplyValidationError) Error

Error satisfies the builtin error interface

func (DeleteRedemptionCodeReplyValidationError) ErrorName

ErrorName returns error name.

func (DeleteRedemptionCodeReplyValidationError) Field

Field function returns field value.

func (DeleteRedemptionCodeReplyValidationError) Key

Key function returns key value.

func (DeleteRedemptionCodeReplyValidationError) Reason

Reason function returns reason value.

type DeleteRedemptionCodeRequest

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

func (*DeleteRedemptionCodeRequest) Descriptor deprecated

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

Deprecated: Use DeleteRedemptionCodeRequest.ProtoReflect.Descriptor instead.

func (*DeleteRedemptionCodeRequest) GetId

func (*DeleteRedemptionCodeRequest) ProtoMessage

func (*DeleteRedemptionCodeRequest) ProtoMessage()

func (*DeleteRedemptionCodeRequest) ProtoReflect

func (*DeleteRedemptionCodeRequest) Reset

func (x *DeleteRedemptionCodeRequest) Reset()

func (*DeleteRedemptionCodeRequest) String

func (x *DeleteRedemptionCodeRequest) String() string

func (*DeleteRedemptionCodeRequest) Validate

func (m *DeleteRedemptionCodeRequest) Validate() error

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

func (m *DeleteRedemptionCodeRequest) ValidateAll() error

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

type DeleteRedemptionCodeRequestMultiError

type DeleteRedemptionCodeRequestMultiError []error

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

func (DeleteRedemptionCodeRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DeleteRedemptionCodeRequestMultiError) Error

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

type DeleteRedemptionCodeRequestValidationError

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

DeleteRedemptionCodeRequestValidationError is the validation error returned by DeleteRedemptionCodeRequest.Validate if the designated constraints aren't met.

func (DeleteRedemptionCodeRequestValidationError) Cause

Cause function returns cause value.

func (DeleteRedemptionCodeRequestValidationError) Error

Error satisfies the builtin error interface

func (DeleteRedemptionCodeRequestValidationError) ErrorName

ErrorName returns error name.

func (DeleteRedemptionCodeRequestValidationError) Field

Field function returns field value.

func (DeleteRedemptionCodeRequestValidationError) Key

Key function returns key value.

func (DeleteRedemptionCodeRequestValidationError) Reason

Reason function returns reason value.

type GetRedemptionCodeListData

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

func (*GetRedemptionCodeListData) Descriptor deprecated

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

Deprecated: Use GetRedemptionCodeListData.ProtoReflect.Descriptor instead.

func (*GetRedemptionCodeListData) GetList

func (x *GetRedemptionCodeListData) GetList() []*RedemptionCode

func (*GetRedemptionCodeListData) GetTotal

func (x *GetRedemptionCodeListData) GetTotal() int32

func (*GetRedemptionCodeListData) ProtoMessage

func (*GetRedemptionCodeListData) ProtoMessage()

func (*GetRedemptionCodeListData) ProtoReflect

func (*GetRedemptionCodeListData) Reset

func (x *GetRedemptionCodeListData) Reset()

func (*GetRedemptionCodeListData) String

func (x *GetRedemptionCodeListData) String() string

func (*GetRedemptionCodeListData) Validate

func (m *GetRedemptionCodeListData) Validate() error

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

func (m *GetRedemptionCodeListData) ValidateAll() error

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

type GetRedemptionCodeListDataMultiError

type GetRedemptionCodeListDataMultiError []error

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

func (GetRedemptionCodeListDataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetRedemptionCodeListDataMultiError) Error

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

type GetRedemptionCodeListDataValidationError

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

GetRedemptionCodeListDataValidationError is the validation error returned by GetRedemptionCodeListData.Validate if the designated constraints aren't met.

func (GetRedemptionCodeListDataValidationError) Cause

Cause function returns cause value.

func (GetRedemptionCodeListDataValidationError) Error

Error satisfies the builtin error interface

func (GetRedemptionCodeListDataValidationError) ErrorName

ErrorName returns error name.

func (GetRedemptionCodeListDataValidationError) Field

Field function returns field value.

func (GetRedemptionCodeListDataValidationError) Key

Key function returns key value.

func (GetRedemptionCodeListDataValidationError) Reason

Reason function returns reason value.

type GetRedemptionCodeListReply

type GetRedemptionCodeListReply 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    *GetRedemptionCodeListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRedemptionCodeListReply) Descriptor deprecated

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

Deprecated: Use GetRedemptionCodeListReply.ProtoReflect.Descriptor instead.

func (*GetRedemptionCodeListReply) GetCode

func (x *GetRedemptionCodeListReply) GetCode() int32

func (*GetRedemptionCodeListReply) GetData

func (*GetRedemptionCodeListReply) GetMessage

func (x *GetRedemptionCodeListReply) GetMessage() string

func (*GetRedemptionCodeListReply) ProtoMessage

func (*GetRedemptionCodeListReply) ProtoMessage()

func (*GetRedemptionCodeListReply) ProtoReflect

func (*GetRedemptionCodeListReply) Reset

func (x *GetRedemptionCodeListReply) Reset()

func (*GetRedemptionCodeListReply) String

func (x *GetRedemptionCodeListReply) String() string

func (*GetRedemptionCodeListReply) Validate

func (m *GetRedemptionCodeListReply) Validate() error

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

func (m *GetRedemptionCodeListReply) ValidateAll() error

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

type GetRedemptionCodeListReplyMultiError

type GetRedemptionCodeListReplyMultiError []error

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

func (GetRedemptionCodeListReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetRedemptionCodeListReplyMultiError) Error

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

type GetRedemptionCodeListReplyValidationError

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

GetRedemptionCodeListReplyValidationError is the validation error returned by GetRedemptionCodeListReply.Validate if the designated constraints aren't met.

func (GetRedemptionCodeListReplyValidationError) Cause

Cause function returns cause value.

func (GetRedemptionCodeListReplyValidationError) Error

Error satisfies the builtin error interface

func (GetRedemptionCodeListReplyValidationError) ErrorName

ErrorName returns error name.

func (GetRedemptionCodeListReplyValidationError) Field

Field function returns field value.

func (GetRedemptionCodeListReplyValidationError) Key

Key function returns key value.

func (GetRedemptionCodeListReplyValidationError) Reason

Reason function returns reason value.

type GetRedemptionCodeListRequest

type GetRedemptionCodeListRequest struct {
	Page          int64  `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size          int64  `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	SubscribePlan int64  `protobuf:"varint,3,opt,name=subscribe_plan,json=subscribePlan,proto3" json:"subscribe_plan,omitempty"`
	UnitTime      string `protobuf:"bytes,4,opt,name=unit_time,json=unitTime,proto3" json:"unit_time,omitempty"`
	Code          string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRedemptionCodeListRequest) Descriptor deprecated

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

Deprecated: Use GetRedemptionCodeListRequest.ProtoReflect.Descriptor instead.

func (*GetRedemptionCodeListRequest) GetCode

func (x *GetRedemptionCodeListRequest) GetCode() string

func (*GetRedemptionCodeListRequest) GetPage

func (x *GetRedemptionCodeListRequest) GetPage() int64

func (*GetRedemptionCodeListRequest) GetSize

func (x *GetRedemptionCodeListRequest) GetSize() int64

func (*GetRedemptionCodeListRequest) GetSubscribePlan

func (x *GetRedemptionCodeListRequest) GetSubscribePlan() int64

func (*GetRedemptionCodeListRequest) GetUnitTime

func (x *GetRedemptionCodeListRequest) GetUnitTime() string

func (*GetRedemptionCodeListRequest) ProtoMessage

func (*GetRedemptionCodeListRequest) ProtoMessage()

func (*GetRedemptionCodeListRequest) ProtoReflect

func (*GetRedemptionCodeListRequest) Reset

func (x *GetRedemptionCodeListRequest) Reset()

func (*GetRedemptionCodeListRequest) String

func (*GetRedemptionCodeListRequest) Validate

func (m *GetRedemptionCodeListRequest) Validate() error

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

func (m *GetRedemptionCodeListRequest) ValidateAll() error

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

type GetRedemptionCodeListRequestMultiError

type GetRedemptionCodeListRequestMultiError []error

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

func (GetRedemptionCodeListRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetRedemptionCodeListRequestMultiError) Error

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

type GetRedemptionCodeListRequestValidationError

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

GetRedemptionCodeListRequestValidationError is the validation error returned by GetRedemptionCodeListRequest.Validate if the designated constraints aren't met.

func (GetRedemptionCodeListRequestValidationError) Cause

Cause function returns cause value.

func (GetRedemptionCodeListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRedemptionCodeListRequestValidationError) ErrorName

ErrorName returns error name.

func (GetRedemptionCodeListRequestValidationError) Field

Field function returns field value.

func (GetRedemptionCodeListRequestValidationError) Key

Key function returns key value.

func (GetRedemptionCodeListRequestValidationError) Reason

Reason function returns reason value.

type GetRedemptionRecordListData

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

func (*GetRedemptionRecordListData) Descriptor deprecated

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

Deprecated: Use GetRedemptionRecordListData.ProtoReflect.Descriptor instead.

func (*GetRedemptionRecordListData) GetList

func (*GetRedemptionRecordListData) GetTotal

func (x *GetRedemptionRecordListData) GetTotal() int32

func (*GetRedemptionRecordListData) ProtoMessage

func (*GetRedemptionRecordListData) ProtoMessage()

func (*GetRedemptionRecordListData) ProtoReflect

func (*GetRedemptionRecordListData) Reset

func (x *GetRedemptionRecordListData) Reset()

func (*GetRedemptionRecordListData) String

func (x *GetRedemptionRecordListData) String() string

func (*GetRedemptionRecordListData) Validate

func (m *GetRedemptionRecordListData) Validate() error

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

func (m *GetRedemptionRecordListData) ValidateAll() error

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

type GetRedemptionRecordListDataMultiError

type GetRedemptionRecordListDataMultiError []error

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

func (GetRedemptionRecordListDataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetRedemptionRecordListDataMultiError) Error

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

type GetRedemptionRecordListDataValidationError

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

GetRedemptionRecordListDataValidationError is the validation error returned by GetRedemptionRecordListData.Validate if the designated constraints aren't met.

func (GetRedemptionRecordListDataValidationError) Cause

Cause function returns cause value.

func (GetRedemptionRecordListDataValidationError) Error

Error satisfies the builtin error interface

func (GetRedemptionRecordListDataValidationError) ErrorName

ErrorName returns error name.

func (GetRedemptionRecordListDataValidationError) Field

Field function returns field value.

func (GetRedemptionRecordListDataValidationError) Key

Key function returns key value.

func (GetRedemptionRecordListDataValidationError) Reason

Reason function returns reason value.

type GetRedemptionRecordListReply

type GetRedemptionRecordListReply 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    *GetRedemptionRecordListData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRedemptionRecordListReply) Descriptor deprecated

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

Deprecated: Use GetRedemptionRecordListReply.ProtoReflect.Descriptor instead.

func (*GetRedemptionRecordListReply) GetCode

func (x *GetRedemptionRecordListReply) GetCode() int32

func (*GetRedemptionRecordListReply) GetData

func (*GetRedemptionRecordListReply) GetMessage

func (x *GetRedemptionRecordListReply) GetMessage() string

func (*GetRedemptionRecordListReply) ProtoMessage

func (*GetRedemptionRecordListReply) ProtoMessage()

func (*GetRedemptionRecordListReply) ProtoReflect

func (*GetRedemptionRecordListReply) Reset

func (x *GetRedemptionRecordListReply) Reset()

func (*GetRedemptionRecordListReply) String

func (*GetRedemptionRecordListReply) Validate

func (m *GetRedemptionRecordListReply) Validate() error

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

func (m *GetRedemptionRecordListReply) ValidateAll() error

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

type GetRedemptionRecordListReplyMultiError

type GetRedemptionRecordListReplyMultiError []error

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

func (GetRedemptionRecordListReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetRedemptionRecordListReplyMultiError) Error

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

type GetRedemptionRecordListReplyValidationError

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

GetRedemptionRecordListReplyValidationError is the validation error returned by GetRedemptionRecordListReply.Validate if the designated constraints aren't met.

func (GetRedemptionRecordListReplyValidationError) Cause

Cause function returns cause value.

func (GetRedemptionRecordListReplyValidationError) Error

Error satisfies the builtin error interface

func (GetRedemptionRecordListReplyValidationError) ErrorName

ErrorName returns error name.

func (GetRedemptionRecordListReplyValidationError) Field

Field function returns field value.

func (GetRedemptionRecordListReplyValidationError) Key

Key function returns key value.

func (GetRedemptionRecordListReplyValidationError) Reason

Reason function returns reason value.

type GetRedemptionRecordListRequest

type GetRedemptionRecordListRequest struct {
	Page   int64 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
	Size   int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
	UserId int64 `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	CodeId int64 `protobuf:"varint,4,opt,name=code_id,json=codeId,proto3" json:"code_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRedemptionRecordListRequest) Descriptor deprecated

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

Deprecated: Use GetRedemptionRecordListRequest.ProtoReflect.Descriptor instead.

func (*GetRedemptionRecordListRequest) GetCodeId

func (x *GetRedemptionRecordListRequest) GetCodeId() int64

func (*GetRedemptionRecordListRequest) GetPage

func (*GetRedemptionRecordListRequest) GetSize

func (*GetRedemptionRecordListRequest) GetUserId

func (x *GetRedemptionRecordListRequest) GetUserId() int64

func (*GetRedemptionRecordListRequest) ProtoMessage

func (*GetRedemptionRecordListRequest) ProtoMessage()

func (*GetRedemptionRecordListRequest) ProtoReflect

func (*GetRedemptionRecordListRequest) Reset

func (x *GetRedemptionRecordListRequest) Reset()

func (*GetRedemptionRecordListRequest) String

func (*GetRedemptionRecordListRequest) Validate

func (m *GetRedemptionRecordListRequest) Validate() error

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

func (m *GetRedemptionRecordListRequest) ValidateAll() error

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

type GetRedemptionRecordListRequestMultiError

type GetRedemptionRecordListRequestMultiError []error

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

func (GetRedemptionRecordListRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetRedemptionRecordListRequestMultiError) Error

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

type GetRedemptionRecordListRequestValidationError

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

GetRedemptionRecordListRequestValidationError is the validation error returned by GetRedemptionRecordListRequest.Validate if the designated constraints aren't met.

func (GetRedemptionRecordListRequestValidationError) Cause

Cause function returns cause value.

func (GetRedemptionRecordListRequestValidationError) Error

Error satisfies the builtin error interface

func (GetRedemptionRecordListRequestValidationError) ErrorName

ErrorName returns error name.

func (GetRedemptionRecordListRequestValidationError) Field

Field function returns field value.

func (GetRedemptionRecordListRequestValidationError) Key

Key function returns key value.

func (GetRedemptionRecordListRequestValidationError) Reason

Reason function returns reason value.

type RedemptionClient

RedemptionClient is the client API for Redemption service.

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

func NewRedemptionClient

func NewRedemptionClient(cc grpc.ClientConnInterface) RedemptionClient

type RedemptionCode

type RedemptionCode struct {
	Id            int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Code          string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	TotalCount    int32  `protobuf:"varint,3,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	UsedCount     int32  `protobuf:"varint,4,opt,name=used_count,json=usedCount,proto3" json:"used_count,omitempty"`
	SubscribePlan int64  `protobuf:"varint,5,opt,name=subscribe_plan,json=subscribePlan,proto3" json:"subscribe_plan,omitempty"`
	UnitTime      string `protobuf:"bytes,6,opt,name=unit_time,json=unitTime,proto3" json:"unit_time,omitempty"`
	Quantity      int32  `protobuf:"varint,7,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Status        int32  `protobuf:"varint,8,opt,name=status,proto3" json:"status,omitempty"`
	CreatedAt     int64  `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	UpdatedAt     int64  `protobuf:"varint,10,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"`
	// contains filtered or unexported fields
}

func (*RedemptionCode) Descriptor deprecated

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

Deprecated: Use RedemptionCode.ProtoReflect.Descriptor instead.

func (*RedemptionCode) GetCode

func (x *RedemptionCode) GetCode() string

func (*RedemptionCode) GetCreatedAt

func (x *RedemptionCode) GetCreatedAt() int64

func (*RedemptionCode) GetId

func (x *RedemptionCode) GetId() int64

func (*RedemptionCode) GetQuantity

func (x *RedemptionCode) GetQuantity() int32

func (*RedemptionCode) GetStatus

func (x *RedemptionCode) GetStatus() int32

func (*RedemptionCode) GetSubscribePlan

func (x *RedemptionCode) GetSubscribePlan() int64

func (*RedemptionCode) GetTotalCount

func (x *RedemptionCode) GetTotalCount() int32

func (*RedemptionCode) GetUnitTime

func (x *RedemptionCode) GetUnitTime() string

func (*RedemptionCode) GetUpdatedAt

func (x *RedemptionCode) GetUpdatedAt() int64

func (*RedemptionCode) GetUsedCount

func (x *RedemptionCode) GetUsedCount() int32

func (*RedemptionCode) ProtoMessage

func (*RedemptionCode) ProtoMessage()

func (*RedemptionCode) ProtoReflect

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

func (*RedemptionCode) Reset

func (x *RedemptionCode) Reset()

func (*RedemptionCode) String

func (x *RedemptionCode) String() string

func (*RedemptionCode) Validate

func (m *RedemptionCode) Validate() error

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

func (m *RedemptionCode) ValidateAll() error

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

type RedemptionCodeMultiError

type RedemptionCodeMultiError []error

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

func (RedemptionCodeMultiError) AllErrors

func (m RedemptionCodeMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RedemptionCodeMultiError) Error

func (m RedemptionCodeMultiError) Error() string

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

type RedemptionCodeValidationError

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

RedemptionCodeValidationError is the validation error returned by RedemptionCode.Validate if the designated constraints aren't met.

func (RedemptionCodeValidationError) Cause

Cause function returns cause value.

func (RedemptionCodeValidationError) Error

Error satisfies the builtin error interface

func (RedemptionCodeValidationError) ErrorName

func (e RedemptionCodeValidationError) ErrorName() string

ErrorName returns error name.

func (RedemptionCodeValidationError) Field

Field function returns field value.

func (RedemptionCodeValidationError) Key

Key function returns key value.

func (RedemptionCodeValidationError) Reason

Reason function returns reason value.

type RedemptionHTTPClient

type RedemptionHTTPClient interface {
	BatchDeleteRedemptionCode(ctx context.Context, req *BatchDeleteRedemptionCodeRequest, opts ...http.CallOption) (rsp *BatchDeleteRedemptionCodeReply, err error)
	CreateRedemptionCode(ctx context.Context, req *CreateRedemptionCodeRequest, opts ...http.CallOption) (rsp *CreateRedemptionCodeReply, err error)
	DeleteRedemptionCode(ctx context.Context, req *DeleteRedemptionCodeRequest, opts ...http.CallOption) (rsp *DeleteRedemptionCodeReply, err error)
	GetRedemptionCodeList(ctx context.Context, req *GetRedemptionCodeListRequest, opts ...http.CallOption) (rsp *GetRedemptionCodeListReply, err error)
	GetRedemptionRecordList(ctx context.Context, req *GetRedemptionRecordListRequest, opts ...http.CallOption) (rsp *GetRedemptionRecordListReply, err error)
	ToggleRedemptionCodeStatus(ctx context.Context, req *ToggleRedemptionCodeStatusRequest, opts ...http.CallOption) (rsp *ToggleRedemptionCodeStatusReply, err error)
	UpdateRedemptionCode(ctx context.Context, req *UpdateRedemptionCodeRequest, opts ...http.CallOption) (rsp *UpdateRedemptionCodeReply, err error)
}

func NewRedemptionHTTPClient

func NewRedemptionHTTPClient(client *http.Client) RedemptionHTTPClient

type RedemptionHTTPClientImpl

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

func (*RedemptionHTTPClientImpl) BatchDeleteRedemptionCode

func (*RedemptionHTTPClientImpl) CreateRedemptionCode

func (*RedemptionHTTPClientImpl) DeleteRedemptionCode

func (*RedemptionHTTPClientImpl) GetRedemptionCodeList

func (*RedemptionHTTPClientImpl) GetRedemptionRecordList

func (*RedemptionHTTPClientImpl) ToggleRedemptionCodeStatus

func (*RedemptionHTTPClientImpl) UpdateRedemptionCode

type RedemptionRecord

type RedemptionRecord struct {
	Id               int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	RedemptionCodeId int64  `protobuf:"varint,2,opt,name=redemption_code_id,json=redemptionCodeId,proto3" json:"redemption_code_id,omitempty"`
	UserId           int64  `protobuf:"varint,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	SubscribeId      int64  `protobuf:"varint,4,opt,name=subscribe_id,json=subscribeId,proto3" json:"subscribe_id,omitempty"`
	UnitTime         string `protobuf:"bytes,5,opt,name=unit_time,json=unitTime,proto3" json:"unit_time,omitempty"`
	Quantity         int32  `protobuf:"varint,6,opt,name=quantity,proto3" json:"quantity,omitempty"`
	RedeemedAt       int64  `protobuf:"varint,7,opt,name=redeemed_at,json=redeemedAt,proto3" json:"redeemed_at,omitempty"`
	CreatedAt        int64  `protobuf:"varint,8,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

func (*RedemptionRecord) Descriptor deprecated

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

Deprecated: Use RedemptionRecord.ProtoReflect.Descriptor instead.

func (*RedemptionRecord) GetCreatedAt

func (x *RedemptionRecord) GetCreatedAt() int64

func (*RedemptionRecord) GetId

func (x *RedemptionRecord) GetId() int64

func (*RedemptionRecord) GetQuantity

func (x *RedemptionRecord) GetQuantity() int32

func (*RedemptionRecord) GetRedeemedAt

func (x *RedemptionRecord) GetRedeemedAt() int64

func (*RedemptionRecord) GetRedemptionCodeId

func (x *RedemptionRecord) GetRedemptionCodeId() int64

func (*RedemptionRecord) GetSubscribeId

func (x *RedemptionRecord) GetSubscribeId() int64

func (*RedemptionRecord) GetUnitTime

func (x *RedemptionRecord) GetUnitTime() string

func (*RedemptionRecord) GetUserId

func (x *RedemptionRecord) GetUserId() int64

func (*RedemptionRecord) ProtoMessage

func (*RedemptionRecord) ProtoMessage()

func (*RedemptionRecord) ProtoReflect

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

func (*RedemptionRecord) Reset

func (x *RedemptionRecord) Reset()

func (*RedemptionRecord) String

func (x *RedemptionRecord) String() string

func (*RedemptionRecord) Validate

func (m *RedemptionRecord) Validate() error

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

func (m *RedemptionRecord) ValidateAll() error

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

type RedemptionRecordMultiError

type RedemptionRecordMultiError []error

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

func (RedemptionRecordMultiError) AllErrors

func (m RedemptionRecordMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RedemptionRecordMultiError) Error

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

type RedemptionRecordValidationError

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

RedemptionRecordValidationError is the validation error returned by RedemptionRecord.Validate if the designated constraints aren't met.

func (RedemptionRecordValidationError) Cause

Cause function returns cause value.

func (RedemptionRecordValidationError) Error

Error satisfies the builtin error interface

func (RedemptionRecordValidationError) ErrorName

ErrorName returns error name.

func (RedemptionRecordValidationError) Field

Field function returns field value.

func (RedemptionRecordValidationError) Key

Key function returns key value.

func (RedemptionRecordValidationError) Reason

Reason function returns reason value.

type RedemptionServer

RedemptionServer is the server API for Redemption service. All implementations must embed UnimplementedRedemptionServer for forward compatibility.

type ToggleRedemptionCodeStatusData

type ToggleRedemptionCodeStatusData struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*ToggleRedemptionCodeStatusData) Descriptor deprecated

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

Deprecated: Use ToggleRedemptionCodeStatusData.ProtoReflect.Descriptor instead.

func (*ToggleRedemptionCodeStatusData) GetSuccess

func (x *ToggleRedemptionCodeStatusData) GetSuccess() bool

func (*ToggleRedemptionCodeStatusData) ProtoMessage

func (*ToggleRedemptionCodeStatusData) ProtoMessage()

func (*ToggleRedemptionCodeStatusData) ProtoReflect

func (*ToggleRedemptionCodeStatusData) Reset

func (x *ToggleRedemptionCodeStatusData) Reset()

func (*ToggleRedemptionCodeStatusData) String

func (*ToggleRedemptionCodeStatusData) Validate

func (m *ToggleRedemptionCodeStatusData) Validate() error

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

func (m *ToggleRedemptionCodeStatusData) ValidateAll() error

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

type ToggleRedemptionCodeStatusDataMultiError

type ToggleRedemptionCodeStatusDataMultiError []error

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

func (ToggleRedemptionCodeStatusDataMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ToggleRedemptionCodeStatusDataMultiError) Error

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

type ToggleRedemptionCodeStatusDataValidationError

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

ToggleRedemptionCodeStatusDataValidationError is the validation error returned by ToggleRedemptionCodeStatusData.Validate if the designated constraints aren't met.

func (ToggleRedemptionCodeStatusDataValidationError) Cause

Cause function returns cause value.

func (ToggleRedemptionCodeStatusDataValidationError) Error

Error satisfies the builtin error interface

func (ToggleRedemptionCodeStatusDataValidationError) ErrorName

ErrorName returns error name.

func (ToggleRedemptionCodeStatusDataValidationError) Field

Field function returns field value.

func (ToggleRedemptionCodeStatusDataValidationError) Key

Key function returns key value.

func (ToggleRedemptionCodeStatusDataValidationError) Reason

Reason function returns reason value.

type ToggleRedemptionCodeStatusReply

type ToggleRedemptionCodeStatusReply 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    *ToggleRedemptionCodeStatusData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*ToggleRedemptionCodeStatusReply) Descriptor deprecated

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

Deprecated: Use ToggleRedemptionCodeStatusReply.ProtoReflect.Descriptor instead.

func (*ToggleRedemptionCodeStatusReply) GetCode

func (*ToggleRedemptionCodeStatusReply) GetData

func (*ToggleRedemptionCodeStatusReply) GetMessage

func (x *ToggleRedemptionCodeStatusReply) GetMessage() string

func (*ToggleRedemptionCodeStatusReply) ProtoMessage

func (*ToggleRedemptionCodeStatusReply) ProtoMessage()

func (*ToggleRedemptionCodeStatusReply) ProtoReflect

func (*ToggleRedemptionCodeStatusReply) Reset

func (*ToggleRedemptionCodeStatusReply) String

func (*ToggleRedemptionCodeStatusReply) Validate

func (m *ToggleRedemptionCodeStatusReply) Validate() error

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

func (m *ToggleRedemptionCodeStatusReply) ValidateAll() error

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

type ToggleRedemptionCodeStatusReplyMultiError

type ToggleRedemptionCodeStatusReplyMultiError []error

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

func (ToggleRedemptionCodeStatusReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ToggleRedemptionCodeStatusReplyMultiError) Error

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

type ToggleRedemptionCodeStatusReplyValidationError

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

ToggleRedemptionCodeStatusReplyValidationError is the validation error returned by ToggleRedemptionCodeStatusReply.Validate if the designated constraints aren't met.

func (ToggleRedemptionCodeStatusReplyValidationError) Cause

Cause function returns cause value.

func (ToggleRedemptionCodeStatusReplyValidationError) Error

Error satisfies the builtin error interface

func (ToggleRedemptionCodeStatusReplyValidationError) ErrorName

ErrorName returns error name.

func (ToggleRedemptionCodeStatusReplyValidationError) Field

Field function returns field value.

func (ToggleRedemptionCodeStatusReplyValidationError) Key

Key function returns key value.

func (ToggleRedemptionCodeStatusReplyValidationError) Reason

Reason function returns reason value.

type ToggleRedemptionCodeStatusRequest

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

func (*ToggleRedemptionCodeStatusRequest) Descriptor deprecated

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

Deprecated: Use ToggleRedemptionCodeStatusRequest.ProtoReflect.Descriptor instead.

func (*ToggleRedemptionCodeStatusRequest) GetId

func (*ToggleRedemptionCodeStatusRequest) GetStatus

func (*ToggleRedemptionCodeStatusRequest) ProtoMessage

func (*ToggleRedemptionCodeStatusRequest) ProtoMessage()

func (*ToggleRedemptionCodeStatusRequest) ProtoReflect

func (*ToggleRedemptionCodeStatusRequest) Reset

func (*ToggleRedemptionCodeStatusRequest) String

func (*ToggleRedemptionCodeStatusRequest) Validate

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

func (m *ToggleRedemptionCodeStatusRequest) ValidateAll() error

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

type ToggleRedemptionCodeStatusRequestMultiError

type ToggleRedemptionCodeStatusRequestMultiError []error

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

func (ToggleRedemptionCodeStatusRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ToggleRedemptionCodeStatusRequestMultiError) Error

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

type ToggleRedemptionCodeStatusRequestValidationError

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

ToggleRedemptionCodeStatusRequestValidationError is the validation error returned by ToggleRedemptionCodeStatusRequest.Validate if the designated constraints aren't met.

func (ToggleRedemptionCodeStatusRequestValidationError) Cause

Cause function returns cause value.

func (ToggleRedemptionCodeStatusRequestValidationError) Error

Error satisfies the builtin error interface

func (ToggleRedemptionCodeStatusRequestValidationError) ErrorName

ErrorName returns error name.

func (ToggleRedemptionCodeStatusRequestValidationError) Field

Field function returns field value.

func (ToggleRedemptionCodeStatusRequestValidationError) Key

Key function returns key value.

func (ToggleRedemptionCodeStatusRequestValidationError) Reason

Reason function returns reason value.

type UnimplementedRedemptionServer

type UnimplementedRedemptionServer struct{}

UnimplementedRedemptionServer must be embedded to have forward compatible implementations.

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

type UnsafeRedemptionServer

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

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

type UpdateRedemptionCodeData

type UpdateRedemptionCodeData struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRedemptionCodeData) Descriptor deprecated

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

Deprecated: Use UpdateRedemptionCodeData.ProtoReflect.Descriptor instead.

func (*UpdateRedemptionCodeData) GetSuccess

func (x *UpdateRedemptionCodeData) GetSuccess() bool

func (*UpdateRedemptionCodeData) ProtoMessage

func (*UpdateRedemptionCodeData) ProtoMessage()

func (*UpdateRedemptionCodeData) ProtoReflect

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

func (*UpdateRedemptionCodeData) Reset

func (x *UpdateRedemptionCodeData) Reset()

func (*UpdateRedemptionCodeData) String

func (x *UpdateRedemptionCodeData) String() string

func (*UpdateRedemptionCodeData) Validate

func (m *UpdateRedemptionCodeData) Validate() error

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

func (m *UpdateRedemptionCodeData) ValidateAll() error

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

type UpdateRedemptionCodeDataMultiError

type UpdateRedemptionCodeDataMultiError []error

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

func (UpdateRedemptionCodeDataMultiError) AllErrors

func (m UpdateRedemptionCodeDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UpdateRedemptionCodeDataMultiError) Error

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

type UpdateRedemptionCodeDataValidationError

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

UpdateRedemptionCodeDataValidationError is the validation error returned by UpdateRedemptionCodeData.Validate if the designated constraints aren't met.

func (UpdateRedemptionCodeDataValidationError) Cause

Cause function returns cause value.

func (UpdateRedemptionCodeDataValidationError) Error

Error satisfies the builtin error interface

func (UpdateRedemptionCodeDataValidationError) ErrorName

ErrorName returns error name.

func (UpdateRedemptionCodeDataValidationError) Field

Field function returns field value.

func (UpdateRedemptionCodeDataValidationError) Key

Key function returns key value.

func (UpdateRedemptionCodeDataValidationError) Reason

Reason function returns reason value.

type UpdateRedemptionCodeReply

type UpdateRedemptionCodeReply 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    *UpdateRedemptionCodeData `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRedemptionCodeReply) Descriptor deprecated

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

Deprecated: Use UpdateRedemptionCodeReply.ProtoReflect.Descriptor instead.

func (*UpdateRedemptionCodeReply) GetCode

func (x *UpdateRedemptionCodeReply) GetCode() int32

func (*UpdateRedemptionCodeReply) GetData

func (*UpdateRedemptionCodeReply) GetMessage

func (x *UpdateRedemptionCodeReply) GetMessage() string

func (*UpdateRedemptionCodeReply) ProtoMessage

func (*UpdateRedemptionCodeReply) ProtoMessage()

func (*UpdateRedemptionCodeReply) ProtoReflect

func (*UpdateRedemptionCodeReply) Reset

func (x *UpdateRedemptionCodeReply) Reset()

func (*UpdateRedemptionCodeReply) String

func (x *UpdateRedemptionCodeReply) String() string

func (*UpdateRedemptionCodeReply) Validate

func (m *UpdateRedemptionCodeReply) Validate() error

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

func (m *UpdateRedemptionCodeReply) ValidateAll() error

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

type UpdateRedemptionCodeReplyMultiError

type UpdateRedemptionCodeReplyMultiError []error

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

func (UpdateRedemptionCodeReplyMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateRedemptionCodeReplyMultiError) Error

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

type UpdateRedemptionCodeReplyValidationError

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

UpdateRedemptionCodeReplyValidationError is the validation error returned by UpdateRedemptionCodeReply.Validate if the designated constraints aren't met.

func (UpdateRedemptionCodeReplyValidationError) Cause

Cause function returns cause value.

func (UpdateRedemptionCodeReplyValidationError) Error

Error satisfies the builtin error interface

func (UpdateRedemptionCodeReplyValidationError) ErrorName

ErrorName returns error name.

func (UpdateRedemptionCodeReplyValidationError) Field

Field function returns field value.

func (UpdateRedemptionCodeReplyValidationError) Key

Key function returns key value.

func (UpdateRedemptionCodeReplyValidationError) Reason

Reason function returns reason value.

type UpdateRedemptionCodeRequest

type UpdateRedemptionCodeRequest struct {
	Id            int64  `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	TotalCount    int64  `protobuf:"varint,2,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
	SubscribePlan int64  `protobuf:"varint,3,opt,name=subscribe_plan,json=subscribePlan,proto3" json:"subscribe_plan,omitempty"`
	UnitTime      string `protobuf:"bytes,4,opt,name=unit_time,json=unitTime,proto3" json:"unit_time,omitempty"`
	Quantity      int32  `protobuf:"varint,5,opt,name=quantity,proto3" json:"quantity,omitempty"`
	Status        *int32 `protobuf:"varint,6,opt,name=status,proto3,oneof" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateRedemptionCodeRequest) Descriptor deprecated

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

Deprecated: Use UpdateRedemptionCodeRequest.ProtoReflect.Descriptor instead.

func (*UpdateRedemptionCodeRequest) GetId

func (*UpdateRedemptionCodeRequest) GetQuantity

func (x *UpdateRedemptionCodeRequest) GetQuantity() int32

func (*UpdateRedemptionCodeRequest) GetStatus

func (x *UpdateRedemptionCodeRequest) GetStatus() int32

func (*UpdateRedemptionCodeRequest) GetSubscribePlan

func (x *UpdateRedemptionCodeRequest) GetSubscribePlan() int64

func (*UpdateRedemptionCodeRequest) GetTotalCount

func (x *UpdateRedemptionCodeRequest) GetTotalCount() int64

func (*UpdateRedemptionCodeRequest) GetUnitTime

func (x *UpdateRedemptionCodeRequest) GetUnitTime() string

func (*UpdateRedemptionCodeRequest) ProtoMessage

func (*UpdateRedemptionCodeRequest) ProtoMessage()

func (*UpdateRedemptionCodeRequest) ProtoReflect

func (*UpdateRedemptionCodeRequest) Reset

func (x *UpdateRedemptionCodeRequest) Reset()

func (*UpdateRedemptionCodeRequest) String

func (x *UpdateRedemptionCodeRequest) String() string

func (*UpdateRedemptionCodeRequest) Validate

func (m *UpdateRedemptionCodeRequest) Validate() error

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

func (m *UpdateRedemptionCodeRequest) ValidateAll() error

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

type UpdateRedemptionCodeRequestMultiError

type UpdateRedemptionCodeRequestMultiError []error

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

func (UpdateRedemptionCodeRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (UpdateRedemptionCodeRequestMultiError) Error

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

type UpdateRedemptionCodeRequestValidationError

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

UpdateRedemptionCodeRequestValidationError is the validation error returned by UpdateRedemptionCodeRequest.Validate if the designated constraints aren't met.

func (UpdateRedemptionCodeRequestValidationError) Cause

Cause function returns cause value.

func (UpdateRedemptionCodeRequestValidationError) Error

Error satisfies the builtin error interface

func (UpdateRedemptionCodeRequestValidationError) ErrorName

ErrorName returns error name.

func (UpdateRedemptionCodeRequestValidationError) Field

Field function returns field value.

func (UpdateRedemptionCodeRequestValidationError) Key

Key function returns key value.

func (UpdateRedemptionCodeRequestValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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