Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterRedemptionHTTPServer(s *http.Server, srv RedemptionHTTPServer)
- func RegisterRedemptionServer(s grpc.ServiceRegistrar, srv RedemptionServer)
- type BatchDeleteRedemptionCodeData
- func (*BatchDeleteRedemptionCodeData) Descriptor() ([]byte, []int)deprecated
- func (x *BatchDeleteRedemptionCodeData) GetSuccess() bool
- func (*BatchDeleteRedemptionCodeData) ProtoMessage()
- func (x *BatchDeleteRedemptionCodeData) ProtoReflect() protoreflect.Message
- func (x *BatchDeleteRedemptionCodeData) Reset()
- func (x *BatchDeleteRedemptionCodeData) String() string
- func (m *BatchDeleteRedemptionCodeData) Validate() error
- func (m *BatchDeleteRedemptionCodeData) ValidateAll() error
- type BatchDeleteRedemptionCodeDataMultiError
- type BatchDeleteRedemptionCodeDataValidationError
- func (e BatchDeleteRedemptionCodeDataValidationError) Cause() error
- func (e BatchDeleteRedemptionCodeDataValidationError) Error() string
- func (e BatchDeleteRedemptionCodeDataValidationError) ErrorName() string
- func (e BatchDeleteRedemptionCodeDataValidationError) Field() string
- func (e BatchDeleteRedemptionCodeDataValidationError) Key() bool
- func (e BatchDeleteRedemptionCodeDataValidationError) Reason() string
- type BatchDeleteRedemptionCodeReply
- func (*BatchDeleteRedemptionCodeReply) Descriptor() ([]byte, []int)deprecated
- func (x *BatchDeleteRedemptionCodeReply) GetCode() int32
- func (x *BatchDeleteRedemptionCodeReply) GetData() *BatchDeleteRedemptionCodeData
- func (x *BatchDeleteRedemptionCodeReply) GetMessage() string
- func (*BatchDeleteRedemptionCodeReply) ProtoMessage()
- func (x *BatchDeleteRedemptionCodeReply) ProtoReflect() protoreflect.Message
- func (x *BatchDeleteRedemptionCodeReply) Reset()
- func (x *BatchDeleteRedemptionCodeReply) String() string
- func (m *BatchDeleteRedemptionCodeReply) Validate() error
- func (m *BatchDeleteRedemptionCodeReply) ValidateAll() error
- type BatchDeleteRedemptionCodeReplyMultiError
- type BatchDeleteRedemptionCodeReplyValidationError
- func (e BatchDeleteRedemptionCodeReplyValidationError) Cause() error
- func (e BatchDeleteRedemptionCodeReplyValidationError) Error() string
- func (e BatchDeleteRedemptionCodeReplyValidationError) ErrorName() string
- func (e BatchDeleteRedemptionCodeReplyValidationError) Field() string
- func (e BatchDeleteRedemptionCodeReplyValidationError) Key() bool
- func (e BatchDeleteRedemptionCodeReplyValidationError) Reason() string
- type BatchDeleteRedemptionCodeRequest
- func (*BatchDeleteRedemptionCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BatchDeleteRedemptionCodeRequest) GetIds() []int64
- func (*BatchDeleteRedemptionCodeRequest) ProtoMessage()
- func (x *BatchDeleteRedemptionCodeRequest) ProtoReflect() protoreflect.Message
- func (x *BatchDeleteRedemptionCodeRequest) Reset()
- func (x *BatchDeleteRedemptionCodeRequest) String() string
- func (m *BatchDeleteRedemptionCodeRequest) Validate() error
- func (m *BatchDeleteRedemptionCodeRequest) ValidateAll() error
- type BatchDeleteRedemptionCodeRequestMultiError
- type BatchDeleteRedemptionCodeRequestValidationError
- func (e BatchDeleteRedemptionCodeRequestValidationError) Cause() error
- func (e BatchDeleteRedemptionCodeRequestValidationError) Error() string
- func (e BatchDeleteRedemptionCodeRequestValidationError) ErrorName() string
- func (e BatchDeleteRedemptionCodeRequestValidationError) Field() string
- func (e BatchDeleteRedemptionCodeRequestValidationError) Key() bool
- func (e BatchDeleteRedemptionCodeRequestValidationError) Reason() string
- type CreateRedemptionCodeData
- func (*CreateRedemptionCodeData) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRedemptionCodeData) GetCreatedCount() int64
- func (*CreateRedemptionCodeData) ProtoMessage()
- func (x *CreateRedemptionCodeData) ProtoReflect() protoreflect.Message
- func (x *CreateRedemptionCodeData) Reset()
- func (x *CreateRedemptionCodeData) String() string
- func (m *CreateRedemptionCodeData) Validate() error
- func (m *CreateRedemptionCodeData) ValidateAll() error
- type CreateRedemptionCodeDataMultiError
- type CreateRedemptionCodeDataValidationError
- func (e CreateRedemptionCodeDataValidationError) Cause() error
- func (e CreateRedemptionCodeDataValidationError) Error() string
- func (e CreateRedemptionCodeDataValidationError) ErrorName() string
- func (e CreateRedemptionCodeDataValidationError) Field() string
- func (e CreateRedemptionCodeDataValidationError) Key() bool
- func (e CreateRedemptionCodeDataValidationError) Reason() string
- type CreateRedemptionCodeReply
- func (*CreateRedemptionCodeReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRedemptionCodeReply) GetCode() int32
- func (x *CreateRedemptionCodeReply) GetData() *CreateRedemptionCodeData
- func (x *CreateRedemptionCodeReply) GetMessage() string
- func (*CreateRedemptionCodeReply) ProtoMessage()
- func (x *CreateRedemptionCodeReply) ProtoReflect() protoreflect.Message
- func (x *CreateRedemptionCodeReply) Reset()
- func (x *CreateRedemptionCodeReply) String() string
- func (m *CreateRedemptionCodeReply) Validate() error
- func (m *CreateRedemptionCodeReply) ValidateAll() error
- type CreateRedemptionCodeReplyMultiError
- type CreateRedemptionCodeReplyValidationError
- func (e CreateRedemptionCodeReplyValidationError) Cause() error
- func (e CreateRedemptionCodeReplyValidationError) Error() string
- func (e CreateRedemptionCodeReplyValidationError) ErrorName() string
- func (e CreateRedemptionCodeReplyValidationError) Field() string
- func (e CreateRedemptionCodeReplyValidationError) Key() bool
- func (e CreateRedemptionCodeReplyValidationError) Reason() string
- type CreateRedemptionCodeRequest
- func (*CreateRedemptionCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRedemptionCodeRequest) GetBatchCount() int64
- func (x *CreateRedemptionCodeRequest) GetQuantity() int32
- func (x *CreateRedemptionCodeRequest) GetSubscribePlan() int64
- func (x *CreateRedemptionCodeRequest) GetTotalCount() int64
- func (x *CreateRedemptionCodeRequest) GetUnitTime() string
- func (*CreateRedemptionCodeRequest) ProtoMessage()
- func (x *CreateRedemptionCodeRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRedemptionCodeRequest) Reset()
- func (x *CreateRedemptionCodeRequest) String() string
- func (m *CreateRedemptionCodeRequest) Validate() error
- func (m *CreateRedemptionCodeRequest) ValidateAll() error
- type CreateRedemptionCodeRequestMultiError
- type CreateRedemptionCodeRequestValidationError
- func (e CreateRedemptionCodeRequestValidationError) Cause() error
- func (e CreateRedemptionCodeRequestValidationError) Error() string
- func (e CreateRedemptionCodeRequestValidationError) ErrorName() string
- func (e CreateRedemptionCodeRequestValidationError) Field() string
- func (e CreateRedemptionCodeRequestValidationError) Key() bool
- func (e CreateRedemptionCodeRequestValidationError) Reason() string
- type DeleteRedemptionCodeData
- func (*DeleteRedemptionCodeData) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRedemptionCodeData) GetSuccess() bool
- func (*DeleteRedemptionCodeData) ProtoMessage()
- func (x *DeleteRedemptionCodeData) ProtoReflect() protoreflect.Message
- func (x *DeleteRedemptionCodeData) Reset()
- func (x *DeleteRedemptionCodeData) String() string
- func (m *DeleteRedemptionCodeData) Validate() error
- func (m *DeleteRedemptionCodeData) ValidateAll() error
- type DeleteRedemptionCodeDataMultiError
- type DeleteRedemptionCodeDataValidationError
- func (e DeleteRedemptionCodeDataValidationError) Cause() error
- func (e DeleteRedemptionCodeDataValidationError) Error() string
- func (e DeleteRedemptionCodeDataValidationError) ErrorName() string
- func (e DeleteRedemptionCodeDataValidationError) Field() string
- func (e DeleteRedemptionCodeDataValidationError) Key() bool
- func (e DeleteRedemptionCodeDataValidationError) Reason() string
- type DeleteRedemptionCodeReply
- func (*DeleteRedemptionCodeReply) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRedemptionCodeReply) GetCode() int32
- func (x *DeleteRedemptionCodeReply) GetData() *DeleteRedemptionCodeData
- func (x *DeleteRedemptionCodeReply) GetMessage() string
- func (*DeleteRedemptionCodeReply) ProtoMessage()
- func (x *DeleteRedemptionCodeReply) ProtoReflect() protoreflect.Message
- func (x *DeleteRedemptionCodeReply) Reset()
- func (x *DeleteRedemptionCodeReply) String() string
- func (m *DeleteRedemptionCodeReply) Validate() error
- func (m *DeleteRedemptionCodeReply) ValidateAll() error
- type DeleteRedemptionCodeReplyMultiError
- type DeleteRedemptionCodeReplyValidationError
- func (e DeleteRedemptionCodeReplyValidationError) Cause() error
- func (e DeleteRedemptionCodeReplyValidationError) Error() string
- func (e DeleteRedemptionCodeReplyValidationError) ErrorName() string
- func (e DeleteRedemptionCodeReplyValidationError) Field() string
- func (e DeleteRedemptionCodeReplyValidationError) Key() bool
- func (e DeleteRedemptionCodeReplyValidationError) Reason() string
- type DeleteRedemptionCodeRequest
- func (*DeleteRedemptionCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRedemptionCodeRequest) GetId() int64
- func (*DeleteRedemptionCodeRequest) ProtoMessage()
- func (x *DeleteRedemptionCodeRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRedemptionCodeRequest) Reset()
- func (x *DeleteRedemptionCodeRequest) String() string
- func (m *DeleteRedemptionCodeRequest) Validate() error
- func (m *DeleteRedemptionCodeRequest) ValidateAll() error
- type DeleteRedemptionCodeRequestMultiError
- type DeleteRedemptionCodeRequestValidationError
- func (e DeleteRedemptionCodeRequestValidationError) Cause() error
- func (e DeleteRedemptionCodeRequestValidationError) Error() string
- func (e DeleteRedemptionCodeRequestValidationError) ErrorName() string
- func (e DeleteRedemptionCodeRequestValidationError) Field() string
- func (e DeleteRedemptionCodeRequestValidationError) Key() bool
- func (e DeleteRedemptionCodeRequestValidationError) Reason() string
- type GetRedemptionCodeListData
- func (*GetRedemptionCodeListData) Descriptor() ([]byte, []int)deprecated
- func (x *GetRedemptionCodeListData) GetList() []*RedemptionCode
- func (x *GetRedemptionCodeListData) GetTotal() int32
- func (*GetRedemptionCodeListData) ProtoMessage()
- func (x *GetRedemptionCodeListData) ProtoReflect() protoreflect.Message
- func (x *GetRedemptionCodeListData) Reset()
- func (x *GetRedemptionCodeListData) String() string
- func (m *GetRedemptionCodeListData) Validate() error
- func (m *GetRedemptionCodeListData) ValidateAll() error
- type GetRedemptionCodeListDataMultiError
- type GetRedemptionCodeListDataValidationError
- func (e GetRedemptionCodeListDataValidationError) Cause() error
- func (e GetRedemptionCodeListDataValidationError) Error() string
- func (e GetRedemptionCodeListDataValidationError) ErrorName() string
- func (e GetRedemptionCodeListDataValidationError) Field() string
- func (e GetRedemptionCodeListDataValidationError) Key() bool
- func (e GetRedemptionCodeListDataValidationError) Reason() string
- type GetRedemptionCodeListReply
- func (*GetRedemptionCodeListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetRedemptionCodeListReply) GetCode() int32
- func (x *GetRedemptionCodeListReply) GetData() *GetRedemptionCodeListData
- func (x *GetRedemptionCodeListReply) GetMessage() string
- func (*GetRedemptionCodeListReply) ProtoMessage()
- func (x *GetRedemptionCodeListReply) ProtoReflect() protoreflect.Message
- func (x *GetRedemptionCodeListReply) Reset()
- func (x *GetRedemptionCodeListReply) String() string
- func (m *GetRedemptionCodeListReply) Validate() error
- func (m *GetRedemptionCodeListReply) ValidateAll() error
- type GetRedemptionCodeListReplyMultiError
- type GetRedemptionCodeListReplyValidationError
- func (e GetRedemptionCodeListReplyValidationError) Cause() error
- func (e GetRedemptionCodeListReplyValidationError) Error() string
- func (e GetRedemptionCodeListReplyValidationError) ErrorName() string
- func (e GetRedemptionCodeListReplyValidationError) Field() string
- func (e GetRedemptionCodeListReplyValidationError) Key() bool
- func (e GetRedemptionCodeListReplyValidationError) Reason() string
- type GetRedemptionCodeListRequest
- func (*GetRedemptionCodeListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRedemptionCodeListRequest) GetCode() string
- func (x *GetRedemptionCodeListRequest) GetPage() int64
- func (x *GetRedemptionCodeListRequest) GetSize() int64
- func (x *GetRedemptionCodeListRequest) GetSubscribePlan() int64
- func (x *GetRedemptionCodeListRequest) GetUnitTime() string
- func (*GetRedemptionCodeListRequest) ProtoMessage()
- func (x *GetRedemptionCodeListRequest) ProtoReflect() protoreflect.Message
- func (x *GetRedemptionCodeListRequest) Reset()
- func (x *GetRedemptionCodeListRequest) String() string
- func (m *GetRedemptionCodeListRequest) Validate() error
- func (m *GetRedemptionCodeListRequest) ValidateAll() error
- type GetRedemptionCodeListRequestMultiError
- type GetRedemptionCodeListRequestValidationError
- func (e GetRedemptionCodeListRequestValidationError) Cause() error
- func (e GetRedemptionCodeListRequestValidationError) Error() string
- func (e GetRedemptionCodeListRequestValidationError) ErrorName() string
- func (e GetRedemptionCodeListRequestValidationError) Field() string
- func (e GetRedemptionCodeListRequestValidationError) Key() bool
- func (e GetRedemptionCodeListRequestValidationError) Reason() string
- type GetRedemptionRecordListData
- func (*GetRedemptionRecordListData) Descriptor() ([]byte, []int)deprecated
- func (x *GetRedemptionRecordListData) GetList() []*RedemptionRecord
- func (x *GetRedemptionRecordListData) GetTotal() int32
- func (*GetRedemptionRecordListData) ProtoMessage()
- func (x *GetRedemptionRecordListData) ProtoReflect() protoreflect.Message
- func (x *GetRedemptionRecordListData) Reset()
- func (x *GetRedemptionRecordListData) String() string
- func (m *GetRedemptionRecordListData) Validate() error
- func (m *GetRedemptionRecordListData) ValidateAll() error
- type GetRedemptionRecordListDataMultiError
- type GetRedemptionRecordListDataValidationError
- func (e GetRedemptionRecordListDataValidationError) Cause() error
- func (e GetRedemptionRecordListDataValidationError) Error() string
- func (e GetRedemptionRecordListDataValidationError) ErrorName() string
- func (e GetRedemptionRecordListDataValidationError) Field() string
- func (e GetRedemptionRecordListDataValidationError) Key() bool
- func (e GetRedemptionRecordListDataValidationError) Reason() string
- type GetRedemptionRecordListReply
- func (*GetRedemptionRecordListReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetRedemptionRecordListReply) GetCode() int32
- func (x *GetRedemptionRecordListReply) GetData() *GetRedemptionRecordListData
- func (x *GetRedemptionRecordListReply) GetMessage() string
- func (*GetRedemptionRecordListReply) ProtoMessage()
- func (x *GetRedemptionRecordListReply) ProtoReflect() protoreflect.Message
- func (x *GetRedemptionRecordListReply) Reset()
- func (x *GetRedemptionRecordListReply) String() string
- func (m *GetRedemptionRecordListReply) Validate() error
- func (m *GetRedemptionRecordListReply) ValidateAll() error
- type GetRedemptionRecordListReplyMultiError
- type GetRedemptionRecordListReplyValidationError
- func (e GetRedemptionRecordListReplyValidationError) Cause() error
- func (e GetRedemptionRecordListReplyValidationError) Error() string
- func (e GetRedemptionRecordListReplyValidationError) ErrorName() string
- func (e GetRedemptionRecordListReplyValidationError) Field() string
- func (e GetRedemptionRecordListReplyValidationError) Key() bool
- func (e GetRedemptionRecordListReplyValidationError) Reason() string
- type GetRedemptionRecordListRequest
- func (*GetRedemptionRecordListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRedemptionRecordListRequest) GetCodeId() int64
- func (x *GetRedemptionRecordListRequest) GetPage() int64
- func (x *GetRedemptionRecordListRequest) GetSize() int64
- func (x *GetRedemptionRecordListRequest) GetUserId() int64
- func (*GetRedemptionRecordListRequest) ProtoMessage()
- func (x *GetRedemptionRecordListRequest) ProtoReflect() protoreflect.Message
- func (x *GetRedemptionRecordListRequest) Reset()
- func (x *GetRedemptionRecordListRequest) String() string
- func (m *GetRedemptionRecordListRequest) Validate() error
- func (m *GetRedemptionRecordListRequest) ValidateAll() error
- type GetRedemptionRecordListRequestMultiError
- type GetRedemptionRecordListRequestValidationError
- func (e GetRedemptionRecordListRequestValidationError) Cause() error
- func (e GetRedemptionRecordListRequestValidationError) Error() string
- func (e GetRedemptionRecordListRequestValidationError) ErrorName() string
- func (e GetRedemptionRecordListRequestValidationError) Field() string
- func (e GetRedemptionRecordListRequestValidationError) Key() bool
- func (e GetRedemptionRecordListRequestValidationError) Reason() string
- type RedemptionClient
- type RedemptionCode
- func (*RedemptionCode) Descriptor() ([]byte, []int)deprecated
- func (x *RedemptionCode) GetCode() string
- func (x *RedemptionCode) GetCreatedAt() int64
- func (x *RedemptionCode) GetId() int64
- func (x *RedemptionCode) GetQuantity() int32
- func (x *RedemptionCode) GetStatus() int32
- func (x *RedemptionCode) GetSubscribePlan() int64
- func (x *RedemptionCode) GetTotalCount() int32
- func (x *RedemptionCode) GetUnitTime() string
- func (x *RedemptionCode) GetUpdatedAt() int64
- func (x *RedemptionCode) GetUsedCount() int32
- func (*RedemptionCode) ProtoMessage()
- func (x *RedemptionCode) ProtoReflect() protoreflect.Message
- func (x *RedemptionCode) Reset()
- func (x *RedemptionCode) String() string
- func (m *RedemptionCode) Validate() error
- func (m *RedemptionCode) ValidateAll() error
- type RedemptionCodeMultiError
- type RedemptionCodeValidationError
- func (e RedemptionCodeValidationError) Cause() error
- func (e RedemptionCodeValidationError) Error() string
- func (e RedemptionCodeValidationError) ErrorName() string
- func (e RedemptionCodeValidationError) Field() string
- func (e RedemptionCodeValidationError) Key() bool
- func (e RedemptionCodeValidationError) Reason() string
- type RedemptionHTTPClient
- type RedemptionHTTPClientImpl
- func (c *RedemptionHTTPClientImpl) BatchDeleteRedemptionCode(ctx context.Context, in *BatchDeleteRedemptionCodeRequest, ...) (*BatchDeleteRedemptionCodeReply, error)
- func (c *RedemptionHTTPClientImpl) CreateRedemptionCode(ctx context.Context, in *CreateRedemptionCodeRequest, opts ...http.CallOption) (*CreateRedemptionCodeReply, error)
- func (c *RedemptionHTTPClientImpl) DeleteRedemptionCode(ctx context.Context, in *DeleteRedemptionCodeRequest, opts ...http.CallOption) (*DeleteRedemptionCodeReply, error)
- func (c *RedemptionHTTPClientImpl) GetRedemptionCodeList(ctx context.Context, in *GetRedemptionCodeListRequest, opts ...http.CallOption) (*GetRedemptionCodeListReply, error)
- func (c *RedemptionHTTPClientImpl) GetRedemptionRecordList(ctx context.Context, in *GetRedemptionRecordListRequest, ...) (*GetRedemptionRecordListReply, error)
- func (c *RedemptionHTTPClientImpl) ToggleRedemptionCodeStatus(ctx context.Context, in *ToggleRedemptionCodeStatusRequest, ...) (*ToggleRedemptionCodeStatusReply, error)
- func (c *RedemptionHTTPClientImpl) UpdateRedemptionCode(ctx context.Context, in *UpdateRedemptionCodeRequest, opts ...http.CallOption) (*UpdateRedemptionCodeReply, error)
- type RedemptionHTTPServer
- type RedemptionRecord
- func (*RedemptionRecord) Descriptor() ([]byte, []int)deprecated
- func (x *RedemptionRecord) GetCreatedAt() int64
- func (x *RedemptionRecord) GetId() int64
- func (x *RedemptionRecord) GetQuantity() int32
- func (x *RedemptionRecord) GetRedeemedAt() int64
- func (x *RedemptionRecord) GetRedemptionCodeId() int64
- func (x *RedemptionRecord) GetSubscribeId() int64
- func (x *RedemptionRecord) GetUnitTime() string
- func (x *RedemptionRecord) GetUserId() int64
- func (*RedemptionRecord) ProtoMessage()
- func (x *RedemptionRecord) ProtoReflect() protoreflect.Message
- func (x *RedemptionRecord) Reset()
- func (x *RedemptionRecord) String() string
- func (m *RedemptionRecord) Validate() error
- func (m *RedemptionRecord) ValidateAll() error
- type RedemptionRecordMultiError
- type RedemptionRecordValidationError
- func (e RedemptionRecordValidationError) Cause() error
- func (e RedemptionRecordValidationError) Error() string
- func (e RedemptionRecordValidationError) ErrorName() string
- func (e RedemptionRecordValidationError) Field() string
- func (e RedemptionRecordValidationError) Key() bool
- func (e RedemptionRecordValidationError) Reason() string
- type RedemptionServer
- type ToggleRedemptionCodeStatusData
- func (*ToggleRedemptionCodeStatusData) Descriptor() ([]byte, []int)deprecated
- func (x *ToggleRedemptionCodeStatusData) GetSuccess() bool
- func (*ToggleRedemptionCodeStatusData) ProtoMessage()
- func (x *ToggleRedemptionCodeStatusData) ProtoReflect() protoreflect.Message
- func (x *ToggleRedemptionCodeStatusData) Reset()
- func (x *ToggleRedemptionCodeStatusData) String() string
- func (m *ToggleRedemptionCodeStatusData) Validate() error
- func (m *ToggleRedemptionCodeStatusData) ValidateAll() error
- type ToggleRedemptionCodeStatusDataMultiError
- type ToggleRedemptionCodeStatusDataValidationError
- func (e ToggleRedemptionCodeStatusDataValidationError) Cause() error
- func (e ToggleRedemptionCodeStatusDataValidationError) Error() string
- func (e ToggleRedemptionCodeStatusDataValidationError) ErrorName() string
- func (e ToggleRedemptionCodeStatusDataValidationError) Field() string
- func (e ToggleRedemptionCodeStatusDataValidationError) Key() bool
- func (e ToggleRedemptionCodeStatusDataValidationError) Reason() string
- type ToggleRedemptionCodeStatusReply
- func (*ToggleRedemptionCodeStatusReply) Descriptor() ([]byte, []int)deprecated
- func (x *ToggleRedemptionCodeStatusReply) GetCode() int32
- func (x *ToggleRedemptionCodeStatusReply) GetData() *ToggleRedemptionCodeStatusData
- func (x *ToggleRedemptionCodeStatusReply) GetMessage() string
- func (*ToggleRedemptionCodeStatusReply) ProtoMessage()
- func (x *ToggleRedemptionCodeStatusReply) ProtoReflect() protoreflect.Message
- func (x *ToggleRedemptionCodeStatusReply) Reset()
- func (x *ToggleRedemptionCodeStatusReply) String() string
- func (m *ToggleRedemptionCodeStatusReply) Validate() error
- func (m *ToggleRedemptionCodeStatusReply) ValidateAll() error
- type ToggleRedemptionCodeStatusReplyMultiError
- type ToggleRedemptionCodeStatusReplyValidationError
- func (e ToggleRedemptionCodeStatusReplyValidationError) Cause() error
- func (e ToggleRedemptionCodeStatusReplyValidationError) Error() string
- func (e ToggleRedemptionCodeStatusReplyValidationError) ErrorName() string
- func (e ToggleRedemptionCodeStatusReplyValidationError) Field() string
- func (e ToggleRedemptionCodeStatusReplyValidationError) Key() bool
- func (e ToggleRedemptionCodeStatusReplyValidationError) Reason() string
- type ToggleRedemptionCodeStatusRequest
- func (*ToggleRedemptionCodeStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ToggleRedemptionCodeStatusRequest) GetId() int64
- func (x *ToggleRedemptionCodeStatusRequest) GetStatus() int32
- func (*ToggleRedemptionCodeStatusRequest) ProtoMessage()
- func (x *ToggleRedemptionCodeStatusRequest) ProtoReflect() protoreflect.Message
- func (x *ToggleRedemptionCodeStatusRequest) Reset()
- func (x *ToggleRedemptionCodeStatusRequest) String() string
- func (m *ToggleRedemptionCodeStatusRequest) Validate() error
- func (m *ToggleRedemptionCodeStatusRequest) ValidateAll() error
- type ToggleRedemptionCodeStatusRequestMultiError
- type ToggleRedemptionCodeStatusRequestValidationError
- func (e ToggleRedemptionCodeStatusRequestValidationError) Cause() error
- func (e ToggleRedemptionCodeStatusRequestValidationError) Error() string
- func (e ToggleRedemptionCodeStatusRequestValidationError) ErrorName() string
- func (e ToggleRedemptionCodeStatusRequestValidationError) Field() string
- func (e ToggleRedemptionCodeStatusRequestValidationError) Key() bool
- func (e ToggleRedemptionCodeStatusRequestValidationError) Reason() string
- type UnimplementedRedemptionServer
- func (UnimplementedRedemptionServer) BatchDeleteRedemptionCode(context.Context, *BatchDeleteRedemptionCodeRequest) (*BatchDeleteRedemptionCodeReply, error)
- func (UnimplementedRedemptionServer) CreateRedemptionCode(context.Context, *CreateRedemptionCodeRequest) (*CreateRedemptionCodeReply, error)
- func (UnimplementedRedemptionServer) DeleteRedemptionCode(context.Context, *DeleteRedemptionCodeRequest) (*DeleteRedemptionCodeReply, error)
- func (UnimplementedRedemptionServer) GetRedemptionCodeList(context.Context, *GetRedemptionCodeListRequest) (*GetRedemptionCodeListReply, error)
- func (UnimplementedRedemptionServer) GetRedemptionRecordList(context.Context, *GetRedemptionRecordListRequest) (*GetRedemptionRecordListReply, error)
- func (UnimplementedRedemptionServer) ToggleRedemptionCodeStatus(context.Context, *ToggleRedemptionCodeStatusRequest) (*ToggleRedemptionCodeStatusReply, error)
- func (UnimplementedRedemptionServer) UpdateRedemptionCode(context.Context, *UpdateRedemptionCodeRequest) (*UpdateRedemptionCodeReply, error)
- type UnsafeRedemptionServer
- type UpdateRedemptionCodeData
- func (*UpdateRedemptionCodeData) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRedemptionCodeData) GetSuccess() bool
- func (*UpdateRedemptionCodeData) ProtoMessage()
- func (x *UpdateRedemptionCodeData) ProtoReflect() protoreflect.Message
- func (x *UpdateRedemptionCodeData) Reset()
- func (x *UpdateRedemptionCodeData) String() string
- func (m *UpdateRedemptionCodeData) Validate() error
- func (m *UpdateRedemptionCodeData) ValidateAll() error
- type UpdateRedemptionCodeDataMultiError
- type UpdateRedemptionCodeDataValidationError
- func (e UpdateRedemptionCodeDataValidationError) Cause() error
- func (e UpdateRedemptionCodeDataValidationError) Error() string
- func (e UpdateRedemptionCodeDataValidationError) ErrorName() string
- func (e UpdateRedemptionCodeDataValidationError) Field() string
- func (e UpdateRedemptionCodeDataValidationError) Key() bool
- func (e UpdateRedemptionCodeDataValidationError) Reason() string
- type UpdateRedemptionCodeReply
- func (*UpdateRedemptionCodeReply) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRedemptionCodeReply) GetCode() int32
- func (x *UpdateRedemptionCodeReply) GetData() *UpdateRedemptionCodeData
- func (x *UpdateRedemptionCodeReply) GetMessage() string
- func (*UpdateRedemptionCodeReply) ProtoMessage()
- func (x *UpdateRedemptionCodeReply) ProtoReflect() protoreflect.Message
- func (x *UpdateRedemptionCodeReply) Reset()
- func (x *UpdateRedemptionCodeReply) String() string
- func (m *UpdateRedemptionCodeReply) Validate() error
- func (m *UpdateRedemptionCodeReply) ValidateAll() error
- type UpdateRedemptionCodeReplyMultiError
- type UpdateRedemptionCodeReplyValidationError
- func (e UpdateRedemptionCodeReplyValidationError) Cause() error
- func (e UpdateRedemptionCodeReplyValidationError) Error() string
- func (e UpdateRedemptionCodeReplyValidationError) ErrorName() string
- func (e UpdateRedemptionCodeReplyValidationError) Field() string
- func (e UpdateRedemptionCodeReplyValidationError) Key() bool
- func (e UpdateRedemptionCodeReplyValidationError) Reason() string
- type UpdateRedemptionCodeRequest
- func (*UpdateRedemptionCodeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRedemptionCodeRequest) GetId() int64
- func (x *UpdateRedemptionCodeRequest) GetQuantity() int32
- func (x *UpdateRedemptionCodeRequest) GetStatus() int32
- func (x *UpdateRedemptionCodeRequest) GetSubscribePlan() int64
- func (x *UpdateRedemptionCodeRequest) GetTotalCount() int64
- func (x *UpdateRedemptionCodeRequest) GetUnitTime() string
- func (*UpdateRedemptionCodeRequest) ProtoMessage()
- func (x *UpdateRedemptionCodeRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRedemptionCodeRequest) Reset()
- func (x *UpdateRedemptionCodeRequest) String() string
- func (m *UpdateRedemptionCodeRequest) Validate() error
- func (m *UpdateRedemptionCodeRequest) ValidateAll() error
- type UpdateRedemptionCodeRequestMultiError
- type UpdateRedemptionCodeRequestValidationError
- func (e UpdateRedemptionCodeRequestValidationError) Cause() error
- func (e UpdateRedemptionCodeRequestValidationError) Error() string
- func (e UpdateRedemptionCodeRequestValidationError) ErrorName() string
- func (e UpdateRedemptionCodeRequestValidationError) Field() string
- func (e UpdateRedemptionCodeRequestValidationError) Key() bool
- func (e UpdateRedemptionCodeRequestValidationError) Reason() string
Constants ¶
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" )
const OperationRedemptionBatchDeleteRedemptionCode = "/api.admin.redemption.v1.Redemption/BatchDeleteRedemptionCode"
const OperationRedemptionCreateRedemptionCode = "/api.admin.redemption.v1.Redemption/CreateRedemptionCode"
const OperationRedemptionDeleteRedemptionCode = "/api.admin.redemption.v1.Redemption/DeleteRedemptionCode"
const OperationRedemptionGetRedemptionCodeList = "/api.admin.redemption.v1.Redemption/GetRedemptionCodeList"
const OperationRedemptionGetRedemptionRecordList = "/api.admin.redemption.v1.Redemption/GetRedemptionRecordList"
const OperationRedemptionToggleRedemptionCodeStatus = "/api.admin.redemption.v1.Redemption/ToggleRedemptionCodeStatus"
const OperationRedemptionUpdateRedemptionCode = "/api.admin.redemption.v1.Redemption/UpdateRedemptionCode"
Variables ¶
var File_admin_redemption_v1_redemption_proto protoreflect.FileDescriptor
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 (x *BatchDeleteRedemptionCodeData) ProtoReflect() protoreflect.Message
func (*BatchDeleteRedemptionCodeData) Reset ¶
func (x *BatchDeleteRedemptionCodeData) Reset()
func (*BatchDeleteRedemptionCodeData) String ¶
func (x *BatchDeleteRedemptionCodeData) String() 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 ¶
func (m BatchDeleteRedemptionCodeDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BatchDeleteRedemptionCodeDataMultiError) Error ¶
func (m BatchDeleteRedemptionCodeDataMultiError) Error() string
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 ¶
func (e BatchDeleteRedemptionCodeDataValidationError) Cause() error
Cause function returns cause value.
func (BatchDeleteRedemptionCodeDataValidationError) Error ¶
func (e BatchDeleteRedemptionCodeDataValidationError) Error() string
Error satisfies the builtin error interface
func (BatchDeleteRedemptionCodeDataValidationError) ErrorName ¶
func (e BatchDeleteRedemptionCodeDataValidationError) ErrorName() string
ErrorName returns error name.
func (BatchDeleteRedemptionCodeDataValidationError) Field ¶
func (e BatchDeleteRedemptionCodeDataValidationError) Field() string
Field function returns field value.
func (BatchDeleteRedemptionCodeDataValidationError) Key ¶
func (e BatchDeleteRedemptionCodeDataValidationError) Key() bool
Key function returns key value.
func (BatchDeleteRedemptionCodeDataValidationError) Reason ¶
func (e BatchDeleteRedemptionCodeDataValidationError) Reason() string
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 (x *BatchDeleteRedemptionCodeReply) GetCode() int32
func (*BatchDeleteRedemptionCodeReply) GetData ¶
func (x *BatchDeleteRedemptionCodeReply) GetData() *BatchDeleteRedemptionCodeData
func (*BatchDeleteRedemptionCodeReply) GetMessage ¶
func (x *BatchDeleteRedemptionCodeReply) GetMessage() string
func (*BatchDeleteRedemptionCodeReply) ProtoMessage ¶
func (*BatchDeleteRedemptionCodeReply) ProtoMessage()
func (*BatchDeleteRedemptionCodeReply) ProtoReflect ¶
func (x *BatchDeleteRedemptionCodeReply) ProtoReflect() protoreflect.Message
func (*BatchDeleteRedemptionCodeReply) Reset ¶
func (x *BatchDeleteRedemptionCodeReply) Reset()
func (*BatchDeleteRedemptionCodeReply) String ¶
func (x *BatchDeleteRedemptionCodeReply) String() 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 ¶
func (m BatchDeleteRedemptionCodeReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BatchDeleteRedemptionCodeReplyMultiError) Error ¶
func (m BatchDeleteRedemptionCodeReplyMultiError) Error() string
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 ¶
func (e BatchDeleteRedemptionCodeReplyValidationError) Cause() error
Cause function returns cause value.
func (BatchDeleteRedemptionCodeReplyValidationError) Error ¶
func (e BatchDeleteRedemptionCodeReplyValidationError) Error() string
Error satisfies the builtin error interface
func (BatchDeleteRedemptionCodeReplyValidationError) ErrorName ¶
func (e BatchDeleteRedemptionCodeReplyValidationError) ErrorName() string
ErrorName returns error name.
func (BatchDeleteRedemptionCodeReplyValidationError) Field ¶
func (e BatchDeleteRedemptionCodeReplyValidationError) Field() string
Field function returns field value.
func (BatchDeleteRedemptionCodeReplyValidationError) Key ¶
func (e BatchDeleteRedemptionCodeReplyValidationError) Key() bool
Key function returns key value.
func (BatchDeleteRedemptionCodeReplyValidationError) Reason ¶
func (e BatchDeleteRedemptionCodeReplyValidationError) Reason() string
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 (x *BatchDeleteRedemptionCodeRequest) GetIds() []int64
func (*BatchDeleteRedemptionCodeRequest) ProtoMessage ¶
func (*BatchDeleteRedemptionCodeRequest) ProtoMessage()
func (*BatchDeleteRedemptionCodeRequest) ProtoReflect ¶
func (x *BatchDeleteRedemptionCodeRequest) ProtoReflect() protoreflect.Message
func (*BatchDeleteRedemptionCodeRequest) Reset ¶
func (x *BatchDeleteRedemptionCodeRequest) Reset()
func (*BatchDeleteRedemptionCodeRequest) String ¶
func (x *BatchDeleteRedemptionCodeRequest) String() string
func (*BatchDeleteRedemptionCodeRequest) Validate ¶
func (m *BatchDeleteRedemptionCodeRequest) Validate() error
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 ¶
func (m BatchDeleteRedemptionCodeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BatchDeleteRedemptionCodeRequestMultiError) Error ¶
func (m BatchDeleteRedemptionCodeRequestMultiError) Error() string
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 ¶
func (e BatchDeleteRedemptionCodeRequestValidationError) Cause() error
Cause function returns cause value.
func (BatchDeleteRedemptionCodeRequestValidationError) Error ¶
func (e BatchDeleteRedemptionCodeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BatchDeleteRedemptionCodeRequestValidationError) ErrorName ¶
func (e BatchDeleteRedemptionCodeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BatchDeleteRedemptionCodeRequestValidationError) Field ¶
func (e BatchDeleteRedemptionCodeRequestValidationError) Field() string
Field function returns field value.
func (BatchDeleteRedemptionCodeRequestValidationError) Key ¶
func (e BatchDeleteRedemptionCodeRequestValidationError) Key() bool
Key function returns key value.
func (BatchDeleteRedemptionCodeRequestValidationError) Reason ¶
func (e BatchDeleteRedemptionCodeRequestValidationError) Reason() string
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 ¶
func (m CreateRedemptionCodeDataMultiError) Error() string
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 ¶
func (e CreateRedemptionCodeDataValidationError) Cause() error
Cause function returns cause value.
func (CreateRedemptionCodeDataValidationError) Error ¶
func (e CreateRedemptionCodeDataValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRedemptionCodeDataValidationError) ErrorName ¶
func (e CreateRedemptionCodeDataValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRedemptionCodeDataValidationError) Field ¶
func (e CreateRedemptionCodeDataValidationError) Field() string
Field function returns field value.
func (CreateRedemptionCodeDataValidationError) Key ¶
func (e CreateRedemptionCodeDataValidationError) Key() bool
Key function returns key value.
func (CreateRedemptionCodeDataValidationError) Reason ¶
func (e CreateRedemptionCodeDataValidationError) Reason() string
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 (x *CreateRedemptionCodeReply) GetData() *CreateRedemptionCodeData
func (*CreateRedemptionCodeReply) GetMessage ¶
func (x *CreateRedemptionCodeReply) GetMessage() string
func (*CreateRedemptionCodeReply) ProtoMessage ¶
func (*CreateRedemptionCodeReply) ProtoMessage()
func (*CreateRedemptionCodeReply) ProtoReflect ¶
func (x *CreateRedemptionCodeReply) ProtoReflect() protoreflect.Message
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 ¶
func (m CreateRedemptionCodeReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRedemptionCodeReplyMultiError) Error ¶
func (m CreateRedemptionCodeReplyMultiError) Error() string
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 ¶
func (e CreateRedemptionCodeReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateRedemptionCodeReplyValidationError) Error ¶
func (e CreateRedemptionCodeReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRedemptionCodeReplyValidationError) ErrorName ¶
func (e CreateRedemptionCodeReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRedemptionCodeReplyValidationError) Field ¶
func (e CreateRedemptionCodeReplyValidationError) Field() string
Field function returns field value.
func (CreateRedemptionCodeReplyValidationError) Key ¶
func (e CreateRedemptionCodeReplyValidationError) Key() bool
Key function returns key value.
func (CreateRedemptionCodeReplyValidationError) Reason ¶
func (e CreateRedemptionCodeReplyValidationError) Reason() string
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 (x *CreateRedemptionCodeRequest) ProtoReflect() protoreflect.Message
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 ¶
func (m CreateRedemptionCodeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateRedemptionCodeRequestMultiError) Error ¶
func (m CreateRedemptionCodeRequestMultiError) Error() string
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 ¶
func (e CreateRedemptionCodeRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateRedemptionCodeRequestValidationError) Error ¶
func (e CreateRedemptionCodeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateRedemptionCodeRequestValidationError) ErrorName ¶
func (e CreateRedemptionCodeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateRedemptionCodeRequestValidationError) Field ¶
func (e CreateRedemptionCodeRequestValidationError) Field() string
Field function returns field value.
func (CreateRedemptionCodeRequestValidationError) Key ¶
func (e CreateRedemptionCodeRequestValidationError) Key() bool
Key function returns key value.
func (CreateRedemptionCodeRequestValidationError) Reason ¶
func (e CreateRedemptionCodeRequestValidationError) Reason() string
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 ¶
func (m DeleteRedemptionCodeDataMultiError) Error() string
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 ¶
func (e DeleteRedemptionCodeDataValidationError) Cause() error
Cause function returns cause value.
func (DeleteRedemptionCodeDataValidationError) Error ¶
func (e DeleteRedemptionCodeDataValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRedemptionCodeDataValidationError) ErrorName ¶
func (e DeleteRedemptionCodeDataValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRedemptionCodeDataValidationError) Field ¶
func (e DeleteRedemptionCodeDataValidationError) Field() string
Field function returns field value.
func (DeleteRedemptionCodeDataValidationError) Key ¶
func (e DeleteRedemptionCodeDataValidationError) Key() bool
Key function returns key value.
func (DeleteRedemptionCodeDataValidationError) Reason ¶
func (e DeleteRedemptionCodeDataValidationError) Reason() string
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 (x *DeleteRedemptionCodeReply) GetData() *DeleteRedemptionCodeData
func (*DeleteRedemptionCodeReply) GetMessage ¶
func (x *DeleteRedemptionCodeReply) GetMessage() string
func (*DeleteRedemptionCodeReply) ProtoMessage ¶
func (*DeleteRedemptionCodeReply) ProtoMessage()
func (*DeleteRedemptionCodeReply) ProtoReflect ¶
func (x *DeleteRedemptionCodeReply) ProtoReflect() protoreflect.Message
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 ¶
func (m DeleteRedemptionCodeReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRedemptionCodeReplyMultiError) Error ¶
func (m DeleteRedemptionCodeReplyMultiError) Error() string
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 ¶
func (e DeleteRedemptionCodeReplyValidationError) Cause() error
Cause function returns cause value.
func (DeleteRedemptionCodeReplyValidationError) Error ¶
func (e DeleteRedemptionCodeReplyValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRedemptionCodeReplyValidationError) ErrorName ¶
func (e DeleteRedemptionCodeReplyValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRedemptionCodeReplyValidationError) Field ¶
func (e DeleteRedemptionCodeReplyValidationError) Field() string
Field function returns field value.
func (DeleteRedemptionCodeReplyValidationError) Key ¶
func (e DeleteRedemptionCodeReplyValidationError) Key() bool
Key function returns key value.
func (DeleteRedemptionCodeReplyValidationError) Reason ¶
func (e DeleteRedemptionCodeReplyValidationError) Reason() string
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 (x *DeleteRedemptionCodeRequest) GetId() int64
func (*DeleteRedemptionCodeRequest) ProtoMessage ¶
func (*DeleteRedemptionCodeRequest) ProtoMessage()
func (*DeleteRedemptionCodeRequest) ProtoReflect ¶
func (x *DeleteRedemptionCodeRequest) ProtoReflect() protoreflect.Message
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 ¶
func (m DeleteRedemptionCodeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DeleteRedemptionCodeRequestMultiError) Error ¶
func (m DeleteRedemptionCodeRequestMultiError) Error() string
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 ¶
func (e DeleteRedemptionCodeRequestValidationError) Cause() error
Cause function returns cause value.
func (DeleteRedemptionCodeRequestValidationError) Error ¶
func (e DeleteRedemptionCodeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (DeleteRedemptionCodeRequestValidationError) ErrorName ¶
func (e DeleteRedemptionCodeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (DeleteRedemptionCodeRequestValidationError) Field ¶
func (e DeleteRedemptionCodeRequestValidationError) Field() string
Field function returns field value.
func (DeleteRedemptionCodeRequestValidationError) Key ¶
func (e DeleteRedemptionCodeRequestValidationError) Key() bool
Key function returns key value.
func (DeleteRedemptionCodeRequestValidationError) Reason ¶
func (e DeleteRedemptionCodeRequestValidationError) Reason() string
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 (x *GetRedemptionCodeListData) ProtoReflect() protoreflect.Message
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 ¶
func (m GetRedemptionCodeListDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRedemptionCodeListDataMultiError) Error ¶
func (m GetRedemptionCodeListDataMultiError) Error() string
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 ¶
func (e GetRedemptionCodeListDataValidationError) Cause() error
Cause function returns cause value.
func (GetRedemptionCodeListDataValidationError) Error ¶
func (e GetRedemptionCodeListDataValidationError) Error() string
Error satisfies the builtin error interface
func (GetRedemptionCodeListDataValidationError) ErrorName ¶
func (e GetRedemptionCodeListDataValidationError) ErrorName() string
ErrorName returns error name.
func (GetRedemptionCodeListDataValidationError) Field ¶
func (e GetRedemptionCodeListDataValidationError) Field() string
Field function returns field value.
func (GetRedemptionCodeListDataValidationError) Key ¶
func (e GetRedemptionCodeListDataValidationError) Key() bool
Key function returns key value.
func (GetRedemptionCodeListDataValidationError) Reason ¶
func (e GetRedemptionCodeListDataValidationError) Reason() string
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 (x *GetRedemptionCodeListReply) GetData() *GetRedemptionCodeListData
func (*GetRedemptionCodeListReply) GetMessage ¶
func (x *GetRedemptionCodeListReply) GetMessage() string
func (*GetRedemptionCodeListReply) ProtoMessage ¶
func (*GetRedemptionCodeListReply) ProtoMessage()
func (*GetRedemptionCodeListReply) ProtoReflect ¶
func (x *GetRedemptionCodeListReply) ProtoReflect() protoreflect.Message
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 ¶
func (m GetRedemptionCodeListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRedemptionCodeListReplyMultiError) Error ¶
func (m GetRedemptionCodeListReplyMultiError) Error() string
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 ¶
func (e GetRedemptionCodeListReplyValidationError) Cause() error
Cause function returns cause value.
func (GetRedemptionCodeListReplyValidationError) Error ¶
func (e GetRedemptionCodeListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetRedemptionCodeListReplyValidationError) ErrorName ¶
func (e GetRedemptionCodeListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetRedemptionCodeListReplyValidationError) Field ¶
func (e GetRedemptionCodeListReplyValidationError) Field() string
Field function returns field value.
func (GetRedemptionCodeListReplyValidationError) Key ¶
func (e GetRedemptionCodeListReplyValidationError) Key() bool
Key function returns key value.
func (GetRedemptionCodeListReplyValidationError) Reason ¶
func (e GetRedemptionCodeListReplyValidationError) Reason() string
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 (x *GetRedemptionCodeListRequest) ProtoReflect() protoreflect.Message
func (*GetRedemptionCodeListRequest) Reset ¶
func (x *GetRedemptionCodeListRequest) Reset()
func (*GetRedemptionCodeListRequest) String ¶
func (x *GetRedemptionCodeListRequest) String() 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 ¶
func (m GetRedemptionCodeListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRedemptionCodeListRequestMultiError) Error ¶
func (m GetRedemptionCodeListRequestMultiError) Error() string
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 ¶
func (e GetRedemptionCodeListRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRedemptionCodeListRequestValidationError) Error ¶
func (e GetRedemptionCodeListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRedemptionCodeListRequestValidationError) ErrorName ¶
func (e GetRedemptionCodeListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRedemptionCodeListRequestValidationError) Field ¶
func (e GetRedemptionCodeListRequestValidationError) Field() string
Field function returns field value.
func (GetRedemptionCodeListRequestValidationError) Key ¶
func (e GetRedemptionCodeListRequestValidationError) Key() bool
Key function returns key value.
func (GetRedemptionCodeListRequestValidationError) Reason ¶
func (e GetRedemptionCodeListRequestValidationError) Reason() string
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 (x *GetRedemptionRecordListData) GetList() []*RedemptionRecord
func (*GetRedemptionRecordListData) GetTotal ¶
func (x *GetRedemptionRecordListData) GetTotal() int32
func (*GetRedemptionRecordListData) ProtoMessage ¶
func (*GetRedemptionRecordListData) ProtoMessage()
func (*GetRedemptionRecordListData) ProtoReflect ¶
func (x *GetRedemptionRecordListData) ProtoReflect() protoreflect.Message
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 ¶
func (m GetRedemptionRecordListDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRedemptionRecordListDataMultiError) Error ¶
func (m GetRedemptionRecordListDataMultiError) Error() string
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 ¶
func (e GetRedemptionRecordListDataValidationError) Cause() error
Cause function returns cause value.
func (GetRedemptionRecordListDataValidationError) Error ¶
func (e GetRedemptionRecordListDataValidationError) Error() string
Error satisfies the builtin error interface
func (GetRedemptionRecordListDataValidationError) ErrorName ¶
func (e GetRedemptionRecordListDataValidationError) ErrorName() string
ErrorName returns error name.
func (GetRedemptionRecordListDataValidationError) Field ¶
func (e GetRedemptionRecordListDataValidationError) Field() string
Field function returns field value.
func (GetRedemptionRecordListDataValidationError) Key ¶
func (e GetRedemptionRecordListDataValidationError) Key() bool
Key function returns key value.
func (GetRedemptionRecordListDataValidationError) Reason ¶
func (e GetRedemptionRecordListDataValidationError) Reason() string
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 (x *GetRedemptionRecordListReply) GetData() *GetRedemptionRecordListData
func (*GetRedemptionRecordListReply) GetMessage ¶
func (x *GetRedemptionRecordListReply) GetMessage() string
func (*GetRedemptionRecordListReply) ProtoMessage ¶
func (*GetRedemptionRecordListReply) ProtoMessage()
func (*GetRedemptionRecordListReply) ProtoReflect ¶
func (x *GetRedemptionRecordListReply) ProtoReflect() protoreflect.Message
func (*GetRedemptionRecordListReply) Reset ¶
func (x *GetRedemptionRecordListReply) Reset()
func (*GetRedemptionRecordListReply) String ¶
func (x *GetRedemptionRecordListReply) String() 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 ¶
func (m GetRedemptionRecordListReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRedemptionRecordListReplyMultiError) Error ¶
func (m GetRedemptionRecordListReplyMultiError) Error() string
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 ¶
func (e GetRedemptionRecordListReplyValidationError) Cause() error
Cause function returns cause value.
func (GetRedemptionRecordListReplyValidationError) Error ¶
func (e GetRedemptionRecordListReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetRedemptionRecordListReplyValidationError) ErrorName ¶
func (e GetRedemptionRecordListReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetRedemptionRecordListReplyValidationError) Field ¶
func (e GetRedemptionRecordListReplyValidationError) Field() string
Field function returns field value.
func (GetRedemptionRecordListReplyValidationError) Key ¶
func (e GetRedemptionRecordListReplyValidationError) Key() bool
Key function returns key value.
func (GetRedemptionRecordListReplyValidationError) Reason ¶
func (e GetRedemptionRecordListReplyValidationError) Reason() string
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 (x *GetRedemptionRecordListRequest) GetPage() int64
func (*GetRedemptionRecordListRequest) GetSize ¶
func (x *GetRedemptionRecordListRequest) GetSize() int64
func (*GetRedemptionRecordListRequest) GetUserId ¶
func (x *GetRedemptionRecordListRequest) GetUserId() int64
func (*GetRedemptionRecordListRequest) ProtoMessage ¶
func (*GetRedemptionRecordListRequest) ProtoMessage()
func (*GetRedemptionRecordListRequest) ProtoReflect ¶
func (x *GetRedemptionRecordListRequest) ProtoReflect() protoreflect.Message
func (*GetRedemptionRecordListRequest) Reset ¶
func (x *GetRedemptionRecordListRequest) Reset()
func (*GetRedemptionRecordListRequest) String ¶
func (x *GetRedemptionRecordListRequest) String() 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 ¶
func (m GetRedemptionRecordListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetRedemptionRecordListRequestMultiError) Error ¶
func (m GetRedemptionRecordListRequestMultiError) Error() string
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 ¶
func (e GetRedemptionRecordListRequestValidationError) Cause() error
Cause function returns cause value.
func (GetRedemptionRecordListRequestValidationError) Error ¶
func (e GetRedemptionRecordListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetRedemptionRecordListRequestValidationError) ErrorName ¶
func (e GetRedemptionRecordListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetRedemptionRecordListRequestValidationError) Field ¶
func (e GetRedemptionRecordListRequestValidationError) Field() string
Field function returns field value.
func (GetRedemptionRecordListRequestValidationError) Key ¶
func (e GetRedemptionRecordListRequestValidationError) Key() bool
Key function returns key value.
func (GetRedemptionRecordListRequestValidationError) Reason ¶
func (e GetRedemptionRecordListRequestValidationError) Reason() string
Reason function returns reason value.
type RedemptionClient ¶
type RedemptionClient interface {
CreateRedemptionCode(ctx context.Context, in *CreateRedemptionCodeRequest, opts ...grpc.CallOption) (*CreateRedemptionCodeReply, error)
UpdateRedemptionCode(ctx context.Context, in *UpdateRedemptionCodeRequest, opts ...grpc.CallOption) (*UpdateRedemptionCodeReply, error)
ToggleRedemptionCodeStatus(ctx context.Context, in *ToggleRedemptionCodeStatusRequest, opts ...grpc.CallOption) (*ToggleRedemptionCodeStatusReply, error)
DeleteRedemptionCode(ctx context.Context, in *DeleteRedemptionCodeRequest, opts ...grpc.CallOption) (*DeleteRedemptionCodeReply, error)
BatchDeleteRedemptionCode(ctx context.Context, in *BatchDeleteRedemptionCodeRequest, opts ...grpc.CallOption) (*BatchDeleteRedemptionCodeReply, error)
GetRedemptionCodeList(ctx context.Context, in *GetRedemptionCodeListRequest, opts ...grpc.CallOption) (*GetRedemptionCodeListReply, error)
GetRedemptionRecordList(ctx context.Context, in *GetRedemptionRecordListRequest, opts ...grpc.CallOption) (*GetRedemptionRecordListReply, error)
}
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 ¶
func (e RedemptionCodeValidationError) Cause() error
Cause function returns cause value.
func (RedemptionCodeValidationError) Error ¶
func (e RedemptionCodeValidationError) Error() string
Error satisfies the builtin error interface
func (RedemptionCodeValidationError) ErrorName ¶
func (e RedemptionCodeValidationError) ErrorName() string
ErrorName returns error name.
func (RedemptionCodeValidationError) Field ¶
func (e RedemptionCodeValidationError) Field() string
Field function returns field value.
func (RedemptionCodeValidationError) Key ¶
func (e RedemptionCodeValidationError) Key() bool
Key function returns key value.
func (RedemptionCodeValidationError) Reason ¶
func (e RedemptionCodeValidationError) Reason() string
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 (c *RedemptionHTTPClientImpl) BatchDeleteRedemptionCode(ctx context.Context, in *BatchDeleteRedemptionCodeRequest, opts ...http.CallOption) (*BatchDeleteRedemptionCodeReply, error)
func (*RedemptionHTTPClientImpl) CreateRedemptionCode ¶
func (c *RedemptionHTTPClientImpl) CreateRedemptionCode(ctx context.Context, in *CreateRedemptionCodeRequest, opts ...http.CallOption) (*CreateRedemptionCodeReply, error)
func (*RedemptionHTTPClientImpl) DeleteRedemptionCode ¶
func (c *RedemptionHTTPClientImpl) DeleteRedemptionCode(ctx context.Context, in *DeleteRedemptionCodeRequest, opts ...http.CallOption) (*DeleteRedemptionCodeReply, error)
func (*RedemptionHTTPClientImpl) GetRedemptionCodeList ¶
func (c *RedemptionHTTPClientImpl) GetRedemptionCodeList(ctx context.Context, in *GetRedemptionCodeListRequest, opts ...http.CallOption) (*GetRedemptionCodeListReply, error)
func (*RedemptionHTTPClientImpl) GetRedemptionRecordList ¶
func (c *RedemptionHTTPClientImpl) GetRedemptionRecordList(ctx context.Context, in *GetRedemptionRecordListRequest, opts ...http.CallOption) (*GetRedemptionRecordListReply, error)
func (*RedemptionHTTPClientImpl) ToggleRedemptionCodeStatus ¶
func (c *RedemptionHTTPClientImpl) ToggleRedemptionCodeStatus(ctx context.Context, in *ToggleRedemptionCodeStatusRequest, opts ...http.CallOption) (*ToggleRedemptionCodeStatusReply, error)
func (*RedemptionHTTPClientImpl) UpdateRedemptionCode ¶
func (c *RedemptionHTTPClientImpl) UpdateRedemptionCode(ctx context.Context, in *UpdateRedemptionCodeRequest, opts ...http.CallOption) (*UpdateRedemptionCodeReply, error)
type RedemptionHTTPServer ¶
type RedemptionHTTPServer interface {
BatchDeleteRedemptionCode(context.Context, *BatchDeleteRedemptionCodeRequest) (*BatchDeleteRedemptionCodeReply, error)
CreateRedemptionCode(context.Context, *CreateRedemptionCodeRequest) (*CreateRedemptionCodeReply, error)
DeleteRedemptionCode(context.Context, *DeleteRedemptionCodeRequest) (*DeleteRedemptionCodeReply, error)
GetRedemptionCodeList(context.Context, *GetRedemptionCodeListRequest) (*GetRedemptionCodeListReply, error)
GetRedemptionRecordList(context.Context, *GetRedemptionRecordListRequest) (*GetRedemptionRecordListReply, error)
ToggleRedemptionCodeStatus(context.Context, *ToggleRedemptionCodeStatusRequest) (*ToggleRedemptionCodeStatusReply, error)
UpdateRedemptionCode(context.Context, *UpdateRedemptionCodeRequest) (*UpdateRedemptionCodeReply, error)
}
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 ¶
func (m RedemptionRecordMultiError) Error() string
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 ¶
func (e RedemptionRecordValidationError) Cause() error
Cause function returns cause value.
func (RedemptionRecordValidationError) Error ¶
func (e RedemptionRecordValidationError) Error() string
Error satisfies the builtin error interface
func (RedemptionRecordValidationError) ErrorName ¶
func (e RedemptionRecordValidationError) ErrorName() string
ErrorName returns error name.
func (RedemptionRecordValidationError) Field ¶
func (e RedemptionRecordValidationError) Field() string
Field function returns field value.
func (RedemptionRecordValidationError) Key ¶
func (e RedemptionRecordValidationError) Key() bool
Key function returns key value.
func (RedemptionRecordValidationError) Reason ¶
func (e RedemptionRecordValidationError) Reason() string
Reason function returns reason value.
type RedemptionServer ¶
type RedemptionServer interface {
CreateRedemptionCode(context.Context, *CreateRedemptionCodeRequest) (*CreateRedemptionCodeReply, error)
UpdateRedemptionCode(context.Context, *UpdateRedemptionCodeRequest) (*UpdateRedemptionCodeReply, error)
ToggleRedemptionCodeStatus(context.Context, *ToggleRedemptionCodeStatusRequest) (*ToggleRedemptionCodeStatusReply, error)
DeleteRedemptionCode(context.Context, *DeleteRedemptionCodeRequest) (*DeleteRedemptionCodeReply, error)
BatchDeleteRedemptionCode(context.Context, *BatchDeleteRedemptionCodeRequest) (*BatchDeleteRedemptionCodeReply, error)
GetRedemptionCodeList(context.Context, *GetRedemptionCodeListRequest) (*GetRedemptionCodeListReply, error)
GetRedemptionRecordList(context.Context, *GetRedemptionRecordListRequest) (*GetRedemptionRecordListReply, error)
// contains filtered or unexported methods
}
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 (x *ToggleRedemptionCodeStatusData) ProtoReflect() protoreflect.Message
func (*ToggleRedemptionCodeStatusData) Reset ¶
func (x *ToggleRedemptionCodeStatusData) Reset()
func (*ToggleRedemptionCodeStatusData) String ¶
func (x *ToggleRedemptionCodeStatusData) String() 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 ¶
func (m ToggleRedemptionCodeStatusDataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ToggleRedemptionCodeStatusDataMultiError) Error ¶
func (m ToggleRedemptionCodeStatusDataMultiError) Error() string
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 ¶
func (e ToggleRedemptionCodeStatusDataValidationError) Cause() error
Cause function returns cause value.
func (ToggleRedemptionCodeStatusDataValidationError) Error ¶
func (e ToggleRedemptionCodeStatusDataValidationError) Error() string
Error satisfies the builtin error interface
func (ToggleRedemptionCodeStatusDataValidationError) ErrorName ¶
func (e ToggleRedemptionCodeStatusDataValidationError) ErrorName() string
ErrorName returns error name.
func (ToggleRedemptionCodeStatusDataValidationError) Field ¶
func (e ToggleRedemptionCodeStatusDataValidationError) Field() string
Field function returns field value.
func (ToggleRedemptionCodeStatusDataValidationError) Key ¶
func (e ToggleRedemptionCodeStatusDataValidationError) Key() bool
Key function returns key value.
func (ToggleRedemptionCodeStatusDataValidationError) Reason ¶
func (e ToggleRedemptionCodeStatusDataValidationError) Reason() string
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 (x *ToggleRedemptionCodeStatusReply) GetCode() int32
func (*ToggleRedemptionCodeStatusReply) GetData ¶
func (x *ToggleRedemptionCodeStatusReply) GetData() *ToggleRedemptionCodeStatusData
func (*ToggleRedemptionCodeStatusReply) GetMessage ¶
func (x *ToggleRedemptionCodeStatusReply) GetMessage() string
func (*ToggleRedemptionCodeStatusReply) ProtoMessage ¶
func (*ToggleRedemptionCodeStatusReply) ProtoMessage()
func (*ToggleRedemptionCodeStatusReply) ProtoReflect ¶
func (x *ToggleRedemptionCodeStatusReply) ProtoReflect() protoreflect.Message
func (*ToggleRedemptionCodeStatusReply) Reset ¶
func (x *ToggleRedemptionCodeStatusReply) Reset()
func (*ToggleRedemptionCodeStatusReply) String ¶
func (x *ToggleRedemptionCodeStatusReply) String() 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 ¶
func (m ToggleRedemptionCodeStatusReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ToggleRedemptionCodeStatusReplyMultiError) Error ¶
func (m ToggleRedemptionCodeStatusReplyMultiError) Error() string
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 ¶
func (e ToggleRedemptionCodeStatusReplyValidationError) Cause() error
Cause function returns cause value.
func (ToggleRedemptionCodeStatusReplyValidationError) Error ¶
func (e ToggleRedemptionCodeStatusReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ToggleRedemptionCodeStatusReplyValidationError) ErrorName ¶
func (e ToggleRedemptionCodeStatusReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ToggleRedemptionCodeStatusReplyValidationError) Field ¶
func (e ToggleRedemptionCodeStatusReplyValidationError) Field() string
Field function returns field value.
func (ToggleRedemptionCodeStatusReplyValidationError) Key ¶
func (e ToggleRedemptionCodeStatusReplyValidationError) Key() bool
Key function returns key value.
func (ToggleRedemptionCodeStatusReplyValidationError) Reason ¶
func (e ToggleRedemptionCodeStatusReplyValidationError) Reason() string
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 (x *ToggleRedemptionCodeStatusRequest) GetId() int64
func (*ToggleRedemptionCodeStatusRequest) GetStatus ¶
func (x *ToggleRedemptionCodeStatusRequest) GetStatus() int32
func (*ToggleRedemptionCodeStatusRequest) ProtoMessage ¶
func (*ToggleRedemptionCodeStatusRequest) ProtoMessage()
func (*ToggleRedemptionCodeStatusRequest) ProtoReflect ¶
func (x *ToggleRedemptionCodeStatusRequest) ProtoReflect() protoreflect.Message
func (*ToggleRedemptionCodeStatusRequest) Reset ¶
func (x *ToggleRedemptionCodeStatusRequest) Reset()
func (*ToggleRedemptionCodeStatusRequest) String ¶
func (x *ToggleRedemptionCodeStatusRequest) String() string
func (*ToggleRedemptionCodeStatusRequest) Validate ¶
func (m *ToggleRedemptionCodeStatusRequest) Validate() error
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 ¶
func (m ToggleRedemptionCodeStatusRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ToggleRedemptionCodeStatusRequestMultiError) Error ¶
func (m ToggleRedemptionCodeStatusRequestMultiError) Error() string
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 ¶
func (e ToggleRedemptionCodeStatusRequestValidationError) Cause() error
Cause function returns cause value.
func (ToggleRedemptionCodeStatusRequestValidationError) Error ¶
func (e ToggleRedemptionCodeStatusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ToggleRedemptionCodeStatusRequestValidationError) ErrorName ¶
func (e ToggleRedemptionCodeStatusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ToggleRedemptionCodeStatusRequestValidationError) Field ¶
func (e ToggleRedemptionCodeStatusRequestValidationError) Field() string
Field function returns field value.
func (ToggleRedemptionCodeStatusRequestValidationError) Key ¶
func (e ToggleRedemptionCodeStatusRequestValidationError) Key() bool
Key function returns key value.
func (ToggleRedemptionCodeStatusRequestValidationError) Reason ¶
func (e ToggleRedemptionCodeStatusRequestValidationError) Reason() string
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.
func (UnimplementedRedemptionServer) BatchDeleteRedemptionCode ¶
func (UnimplementedRedemptionServer) BatchDeleteRedemptionCode(context.Context, *BatchDeleteRedemptionCodeRequest) (*BatchDeleteRedemptionCodeReply, error)
func (UnimplementedRedemptionServer) CreateRedemptionCode ¶
func (UnimplementedRedemptionServer) CreateRedemptionCode(context.Context, *CreateRedemptionCodeRequest) (*CreateRedemptionCodeReply, error)
func (UnimplementedRedemptionServer) DeleteRedemptionCode ¶
func (UnimplementedRedemptionServer) DeleteRedemptionCode(context.Context, *DeleteRedemptionCodeRequest) (*DeleteRedemptionCodeReply, error)
func (UnimplementedRedemptionServer) GetRedemptionCodeList ¶
func (UnimplementedRedemptionServer) GetRedemptionCodeList(context.Context, *GetRedemptionCodeListRequest) (*GetRedemptionCodeListReply, error)
func (UnimplementedRedemptionServer) GetRedemptionRecordList ¶
func (UnimplementedRedemptionServer) GetRedemptionRecordList(context.Context, *GetRedemptionRecordListRequest) (*GetRedemptionRecordListReply, error)
func (UnimplementedRedemptionServer) ToggleRedemptionCodeStatus ¶
func (UnimplementedRedemptionServer) ToggleRedemptionCodeStatus(context.Context, *ToggleRedemptionCodeStatusRequest) (*ToggleRedemptionCodeStatusReply, error)
func (UnimplementedRedemptionServer) UpdateRedemptionCode ¶
func (UnimplementedRedemptionServer) UpdateRedemptionCode(context.Context, *UpdateRedemptionCodeRequest) (*UpdateRedemptionCodeReply, error)
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 ¶
func (m UpdateRedemptionCodeDataMultiError) Error() string
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 ¶
func (e UpdateRedemptionCodeDataValidationError) Cause() error
Cause function returns cause value.
func (UpdateRedemptionCodeDataValidationError) Error ¶
func (e UpdateRedemptionCodeDataValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRedemptionCodeDataValidationError) ErrorName ¶
func (e UpdateRedemptionCodeDataValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRedemptionCodeDataValidationError) Field ¶
func (e UpdateRedemptionCodeDataValidationError) Field() string
Field function returns field value.
func (UpdateRedemptionCodeDataValidationError) Key ¶
func (e UpdateRedemptionCodeDataValidationError) Key() bool
Key function returns key value.
func (UpdateRedemptionCodeDataValidationError) Reason ¶
func (e UpdateRedemptionCodeDataValidationError) Reason() string
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 (x *UpdateRedemptionCodeReply) GetData() *UpdateRedemptionCodeData
func (*UpdateRedemptionCodeReply) GetMessage ¶
func (x *UpdateRedemptionCodeReply) GetMessage() string
func (*UpdateRedemptionCodeReply) ProtoMessage ¶
func (*UpdateRedemptionCodeReply) ProtoMessage()
func (*UpdateRedemptionCodeReply) ProtoReflect ¶
func (x *UpdateRedemptionCodeReply) ProtoReflect() protoreflect.Message
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 ¶
func (m UpdateRedemptionCodeReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRedemptionCodeReplyMultiError) Error ¶
func (m UpdateRedemptionCodeReplyMultiError) Error() string
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 ¶
func (e UpdateRedemptionCodeReplyValidationError) Cause() error
Cause function returns cause value.
func (UpdateRedemptionCodeReplyValidationError) Error ¶
func (e UpdateRedemptionCodeReplyValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRedemptionCodeReplyValidationError) ErrorName ¶
func (e UpdateRedemptionCodeReplyValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRedemptionCodeReplyValidationError) Field ¶
func (e UpdateRedemptionCodeReplyValidationError) Field() string
Field function returns field value.
func (UpdateRedemptionCodeReplyValidationError) Key ¶
func (e UpdateRedemptionCodeReplyValidationError) Key() bool
Key function returns key value.
func (UpdateRedemptionCodeReplyValidationError) Reason ¶
func (e UpdateRedemptionCodeReplyValidationError) Reason() string
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 (x *UpdateRedemptionCodeRequest) GetId() int64
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 (x *UpdateRedemptionCodeRequest) ProtoReflect() protoreflect.Message
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 ¶
func (m UpdateRedemptionCodeRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateRedemptionCodeRequestMultiError) Error ¶
func (m UpdateRedemptionCodeRequestMultiError) Error() string
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 ¶
func (e UpdateRedemptionCodeRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateRedemptionCodeRequestValidationError) Error ¶
func (e UpdateRedemptionCodeRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateRedemptionCodeRequestValidationError) ErrorName ¶
func (e UpdateRedemptionCodeRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateRedemptionCodeRequestValidationError) Field ¶
func (e UpdateRedemptionCodeRequestValidationError) Field() string
Field function returns field value.
func (UpdateRedemptionCodeRequestValidationError) Key ¶
func (e UpdateRedemptionCodeRequestValidationError) Key() bool
Key function returns key value.
func (UpdateRedemptionCodeRequestValidationError) Reason ¶
func (e UpdateRedemptionCodeRequestValidationError) Reason() string
Reason function returns reason value.