Documentation ¶
Index ¶
- Variables
- func NewGiftPackEndpoints() []*api.Endpoint
- func RegisterGiftPackHandler(s server.Server, hdlr GiftPackHandler, opts ...server.HandlerOption) error
- type AddGiftReq
- func (*AddGiftReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddGiftReq) GetGiftId() int64
- func (x *AddGiftReq) GetGiftNum() int64
- func (x *AddGiftReq) GetUserId() int64
- func (*AddGiftReq) ProtoMessage()
- func (x *AddGiftReq) ProtoReflect() protoreflect.Message
- func (x *AddGiftReq) Reset()
- func (x *AddGiftReq) String() string
- func (m *AddGiftReq) Validate() error
- func (m *AddGiftReq) ValidateAll() error
- type AddGiftReqMultiError
- type AddGiftReqValidationError
- type AddGiftRes
- func (*AddGiftRes) Descriptor() ([]byte, []int)deprecated
- func (x *AddGiftRes) GetGiftId() int64
- func (x *AddGiftRes) GetGiftNum() int64
- func (x *AddGiftRes) GetUserId() int64
- func (*AddGiftRes) ProtoMessage()
- func (x *AddGiftRes) ProtoReflect() protoreflect.Message
- func (x *AddGiftRes) Reset()
- func (x *AddGiftRes) String() string
- func (m *AddGiftRes) Validate() error
- func (m *AddGiftRes) ValidateAll() error
- type AddGiftResMultiError
- type AddGiftResValidationError
- type GetAllGiftReq
- func (*GetAllGiftReq) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllGiftReq) GetUserId() int64
- func (*GetAllGiftReq) ProtoMessage()
- func (x *GetAllGiftReq) ProtoReflect() protoreflect.Message
- func (x *GetAllGiftReq) Reset()
- func (x *GetAllGiftReq) String() string
- func (m *GetAllGiftReq) Validate() error
- func (m *GetAllGiftReq) ValidateAll() error
- type GetAllGiftReqMultiError
- type GetAllGiftReqValidationError
- func (e GetAllGiftReqValidationError) Cause() error
- func (e GetAllGiftReqValidationError) Error() string
- func (e GetAllGiftReqValidationError) ErrorName() string
- func (e GetAllGiftReqValidationError) Field() string
- func (e GetAllGiftReqValidationError) Key() bool
- func (e GetAllGiftReqValidationError) Reason() string
- type GetAllGiftRes
- func (*GetAllGiftRes) Descriptor() ([]byte, []int)deprecated
- func (x *GetAllGiftRes) GetGiftMap() map[int64]int64
- func (x *GetAllGiftRes) GetGiftNum(giftId int64) int64
- func (*GetAllGiftRes) ProtoMessage()
- func (x *GetAllGiftRes) ProtoReflect() protoreflect.Message
- func (x *GetAllGiftRes) Reset()
- func (x *GetAllGiftRes) String() string
- func (m *GetAllGiftRes) Validate() error
- func (m *GetAllGiftRes) ValidateAll() error
- type GetAllGiftResMultiError
- type GetAllGiftResValidationError
- func (e GetAllGiftResValidationError) Cause() error
- func (e GetAllGiftResValidationError) Error() string
- func (e GetAllGiftResValidationError) ErrorName() string
- func (e GetAllGiftResValidationError) Field() string
- func (e GetAllGiftResValidationError) Key() bool
- func (e GetAllGiftResValidationError) Reason() string
- type GiftPackHandler
- type GiftPackService
- type ReduceGiftReq
- func (*ReduceGiftReq) Descriptor() ([]byte, []int)deprecated
- func (x *ReduceGiftReq) GetGiftId() int64
- func (x *ReduceGiftReq) GetGiftNum() int64
- func (x *ReduceGiftReq) GetUserId() int64
- func (*ReduceGiftReq) ProtoMessage()
- func (x *ReduceGiftReq) ProtoReflect() protoreflect.Message
- func (x *ReduceGiftReq) Reset()
- func (x *ReduceGiftReq) String() string
- func (m *ReduceGiftReq) Validate() error
- func (m *ReduceGiftReq) ValidateAll() error
- type ReduceGiftReqMultiError
- type ReduceGiftReqValidationError
- func (e ReduceGiftReqValidationError) Cause() error
- func (e ReduceGiftReqValidationError) Error() string
- func (e ReduceGiftReqValidationError) ErrorName() string
- func (e ReduceGiftReqValidationError) Field() string
- func (e ReduceGiftReqValidationError) Key() bool
- func (e ReduceGiftReqValidationError) Reason() string
- type ReduceGiftRes
- func (*ReduceGiftRes) Descriptor() ([]byte, []int)deprecated
- func (x *ReduceGiftRes) GetGiftId() int64
- func (x *ReduceGiftRes) GetGiftNum() int64
- func (x *ReduceGiftRes) GetUserId() int64
- func (*ReduceGiftRes) ProtoMessage()
- func (x *ReduceGiftRes) ProtoReflect() protoreflect.Message
- func (x *ReduceGiftRes) Reset()
- func (x *ReduceGiftRes) String() string
- func (m *ReduceGiftRes) Validate() error
- func (m *ReduceGiftRes) ValidateAll() error
- type ReduceGiftResMultiError
- type ReduceGiftResValidationError
- func (e ReduceGiftResValidationError) Cause() error
- func (e ReduceGiftResValidationError) Error() string
- func (e ReduceGiftResValidationError) ErrorName() string
- func (e ReduceGiftResValidationError) Field() string
- func (e ReduceGiftResValidationError) Key() bool
- func (e ReduceGiftResValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_proto_gift_pack_gift_pack_proto protoreflect.FileDescriptor
Functions ¶
func NewGiftPackEndpoints ¶
func RegisterGiftPackHandler ¶
func RegisterGiftPackHandler(s server.Server, hdlr GiftPackHandler, opts ...server.HandlerOption) error
Types ¶
type AddGiftReq ¶
type AddGiftReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` GiftId int64 `protobuf:"varint,2,opt,name=gift_id,json=giftId,proto3" json:"gift_id"` GiftNum int64 `protobuf:"varint,3,opt,name=gift_num,json=giftNum,proto3" json:"gift_num"` // contains filtered or unexported fields }
func (*AddGiftReq) Descriptor
deprecated
func (*AddGiftReq) Descriptor() ([]byte, []int)
Deprecated: Use AddGiftReq.ProtoReflect.Descriptor instead.
func (*AddGiftReq) GetGiftId ¶
func (x *AddGiftReq) GetGiftId() int64
func (*AddGiftReq) GetGiftNum ¶
func (x *AddGiftReq) GetGiftNum() int64
func (*AddGiftReq) GetUserId ¶
func (x *AddGiftReq) GetUserId() int64
func (*AddGiftReq) ProtoMessage ¶
func (*AddGiftReq) ProtoMessage()
func (*AddGiftReq) ProtoReflect ¶
func (x *AddGiftReq) ProtoReflect() protoreflect.Message
func (*AddGiftReq) Reset ¶
func (x *AddGiftReq) Reset()
func (*AddGiftReq) String ¶
func (x *AddGiftReq) String() string
func (*AddGiftReq) Validate ¶
func (m *AddGiftReq) Validate() error
Validate checks the field values on AddGiftReq 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 (*AddGiftReq) ValidateAll ¶
func (m *AddGiftReq) ValidateAll() error
ValidateAll checks the field values on AddGiftReq 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 AddGiftReqMultiError, or nil if none found.
type AddGiftReqMultiError ¶
type AddGiftReqMultiError []error
AddGiftReqMultiError is an error wrapping multiple validation errors returned by AddGiftReq.ValidateAll() if the designated constraints aren't met.
func (AddGiftReqMultiError) AllErrors ¶
func (m AddGiftReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddGiftReqMultiError) Error ¶
func (m AddGiftReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddGiftReqValidationError ¶
type AddGiftReqValidationError struct {
// contains filtered or unexported fields
}
AddGiftReqValidationError is the validation error returned by AddGiftReq.Validate if the designated constraints aren't met.
func (AddGiftReqValidationError) Cause ¶
func (e AddGiftReqValidationError) Cause() error
Cause function returns cause value.
func (AddGiftReqValidationError) Error ¶
func (e AddGiftReqValidationError) Error() string
Error satisfies the builtin error interface
func (AddGiftReqValidationError) ErrorName ¶
func (e AddGiftReqValidationError) ErrorName() string
ErrorName returns error name.
func (AddGiftReqValidationError) Field ¶
func (e AddGiftReqValidationError) Field() string
Field function returns field value.
func (AddGiftReqValidationError) Key ¶
func (e AddGiftReqValidationError) Key() bool
Key function returns key value.
func (AddGiftReqValidationError) Reason ¶
func (e AddGiftReqValidationError) Reason() string
Reason function returns reason value.
type AddGiftRes ¶
type AddGiftRes struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` GiftId int64 `protobuf:"varint,2,opt,name=gift_id,json=giftId,proto3" json:"gift_id"` GiftNum int64 `protobuf:"varint,3,opt,name=gift_num,json=giftNum,proto3" json:"gift_num"` // contains filtered or unexported fields }
func (*AddGiftRes) Descriptor
deprecated
func (*AddGiftRes) Descriptor() ([]byte, []int)
Deprecated: Use AddGiftRes.ProtoReflect.Descriptor instead.
func (*AddGiftRes) GetGiftId ¶
func (x *AddGiftRes) GetGiftId() int64
func (*AddGiftRes) GetGiftNum ¶
func (x *AddGiftRes) GetGiftNum() int64
func (*AddGiftRes) GetUserId ¶
func (x *AddGiftRes) GetUserId() int64
func (*AddGiftRes) ProtoMessage ¶
func (*AddGiftRes) ProtoMessage()
func (*AddGiftRes) ProtoReflect ¶
func (x *AddGiftRes) ProtoReflect() protoreflect.Message
func (*AddGiftRes) Reset ¶
func (x *AddGiftRes) Reset()
func (*AddGiftRes) String ¶
func (x *AddGiftRes) String() string
func (*AddGiftRes) Validate ¶
func (m *AddGiftRes) Validate() error
Validate checks the field values on AddGiftRes 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 (*AddGiftRes) ValidateAll ¶
func (m *AddGiftRes) ValidateAll() error
ValidateAll checks the field values on AddGiftRes 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 AddGiftResMultiError, or nil if none found.
type AddGiftResMultiError ¶
type AddGiftResMultiError []error
AddGiftResMultiError is an error wrapping multiple validation errors returned by AddGiftRes.ValidateAll() if the designated constraints aren't met.
func (AddGiftResMultiError) AllErrors ¶
func (m AddGiftResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddGiftResMultiError) Error ¶
func (m AddGiftResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddGiftResValidationError ¶
type AddGiftResValidationError struct {
// contains filtered or unexported fields
}
AddGiftResValidationError is the validation error returned by AddGiftRes.Validate if the designated constraints aren't met.
func (AddGiftResValidationError) Cause ¶
func (e AddGiftResValidationError) Cause() error
Cause function returns cause value.
func (AddGiftResValidationError) Error ¶
func (e AddGiftResValidationError) Error() string
Error satisfies the builtin error interface
func (AddGiftResValidationError) ErrorName ¶
func (e AddGiftResValidationError) ErrorName() string
ErrorName returns error name.
func (AddGiftResValidationError) Field ¶
func (e AddGiftResValidationError) Field() string
Field function returns field value.
func (AddGiftResValidationError) Key ¶
func (e AddGiftResValidationError) Key() bool
Key function returns key value.
func (AddGiftResValidationError) Reason ¶
func (e AddGiftResValidationError) Reason() string
Reason function returns reason value.
type GetAllGiftReq ¶
type GetAllGiftReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` // contains filtered or unexported fields }
func (*GetAllGiftReq) Descriptor
deprecated
func (*GetAllGiftReq) Descriptor() ([]byte, []int)
Deprecated: Use GetAllGiftReq.ProtoReflect.Descriptor instead.
func (*GetAllGiftReq) GetUserId ¶
func (x *GetAllGiftReq) GetUserId() int64
func (*GetAllGiftReq) ProtoMessage ¶
func (*GetAllGiftReq) ProtoMessage()
func (*GetAllGiftReq) ProtoReflect ¶
func (x *GetAllGiftReq) ProtoReflect() protoreflect.Message
func (*GetAllGiftReq) Reset ¶
func (x *GetAllGiftReq) Reset()
func (*GetAllGiftReq) String ¶
func (x *GetAllGiftReq) String() string
func (*GetAllGiftReq) Validate ¶
func (m *GetAllGiftReq) Validate() error
Validate checks the field values on GetAllGiftReq 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 (*GetAllGiftReq) ValidateAll ¶
func (m *GetAllGiftReq) ValidateAll() error
ValidateAll checks the field values on GetAllGiftReq 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 GetAllGiftReqMultiError, or nil if none found.
type GetAllGiftReqMultiError ¶
type GetAllGiftReqMultiError []error
GetAllGiftReqMultiError is an error wrapping multiple validation errors returned by GetAllGiftReq.ValidateAll() if the designated constraints aren't met.
func (GetAllGiftReqMultiError) AllErrors ¶
func (m GetAllGiftReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAllGiftReqMultiError) Error ¶
func (m GetAllGiftReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAllGiftReqValidationError ¶
type GetAllGiftReqValidationError struct {
// contains filtered or unexported fields
}
GetAllGiftReqValidationError is the validation error returned by GetAllGiftReq.Validate if the designated constraints aren't met.
func (GetAllGiftReqValidationError) Cause ¶
func (e GetAllGiftReqValidationError) Cause() error
Cause function returns cause value.
func (GetAllGiftReqValidationError) Error ¶
func (e GetAllGiftReqValidationError) Error() string
Error satisfies the builtin error interface
func (GetAllGiftReqValidationError) ErrorName ¶
func (e GetAllGiftReqValidationError) ErrorName() string
ErrorName returns error name.
func (GetAllGiftReqValidationError) Field ¶
func (e GetAllGiftReqValidationError) Field() string
Field function returns field value.
func (GetAllGiftReqValidationError) Key ¶
func (e GetAllGiftReqValidationError) Key() bool
Key function returns key value.
func (GetAllGiftReqValidationError) Reason ¶
func (e GetAllGiftReqValidationError) Reason() string
Reason function returns reason value.
type GetAllGiftRes ¶
type GetAllGiftRes struct { GiftMap map[int64]int64 `` /* 162-byte string literal not displayed */ // contains filtered or unexported fields }
func (*GetAllGiftRes) Descriptor
deprecated
func (*GetAllGiftRes) Descriptor() ([]byte, []int)
Deprecated: Use GetAllGiftRes.ProtoReflect.Descriptor instead.
func (*GetAllGiftRes) GetGiftMap ¶
func (x *GetAllGiftRes) GetGiftMap() map[int64]int64
func (*GetAllGiftRes) GetGiftNum ¶
func (x *GetAllGiftRes) GetGiftNum(giftId int64) int64
func (*GetAllGiftRes) ProtoMessage ¶
func (*GetAllGiftRes) ProtoMessage()
func (*GetAllGiftRes) ProtoReflect ¶
func (x *GetAllGiftRes) ProtoReflect() protoreflect.Message
func (*GetAllGiftRes) Reset ¶
func (x *GetAllGiftRes) Reset()
func (*GetAllGiftRes) String ¶
func (x *GetAllGiftRes) String() string
func (*GetAllGiftRes) Validate ¶
func (m *GetAllGiftRes) Validate() error
Validate checks the field values on GetAllGiftRes 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 (*GetAllGiftRes) ValidateAll ¶
func (m *GetAllGiftRes) ValidateAll() error
ValidateAll checks the field values on GetAllGiftRes 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 GetAllGiftResMultiError, or nil if none found.
type GetAllGiftResMultiError ¶
type GetAllGiftResMultiError []error
GetAllGiftResMultiError is an error wrapping multiple validation errors returned by GetAllGiftRes.ValidateAll() if the designated constraints aren't met.
func (GetAllGiftResMultiError) AllErrors ¶
func (m GetAllGiftResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetAllGiftResMultiError) Error ¶
func (m GetAllGiftResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetAllGiftResValidationError ¶
type GetAllGiftResValidationError struct {
// contains filtered or unexported fields
}
GetAllGiftResValidationError is the validation error returned by GetAllGiftRes.Validate if the designated constraints aren't met.
func (GetAllGiftResValidationError) Cause ¶
func (e GetAllGiftResValidationError) Cause() error
Cause function returns cause value.
func (GetAllGiftResValidationError) Error ¶
func (e GetAllGiftResValidationError) Error() string
Error satisfies the builtin error interface
func (GetAllGiftResValidationError) ErrorName ¶
func (e GetAllGiftResValidationError) ErrorName() string
ErrorName returns error name.
func (GetAllGiftResValidationError) Field ¶
func (e GetAllGiftResValidationError) Field() string
Field function returns field value.
func (GetAllGiftResValidationError) Key ¶
func (e GetAllGiftResValidationError) Key() bool
Key function returns key value.
func (GetAllGiftResValidationError) Reason ¶
func (e GetAllGiftResValidationError) Reason() string
Reason function returns reason value.
type GiftPackHandler ¶
type GiftPackHandler interface { AddGift(context.Context, *AddGiftReq, *AddGiftRes) error ReduceGift(context.Context, *ReduceGiftReq, *ReduceGiftRes) error GetAllGift(context.Context, *GetAllGiftReq, *GetAllGiftRes) error }
type GiftPackService ¶
type GiftPackService interface { AddGift(ctx context.Context, in *AddGiftReq, opts ...client.CallOption) (*AddGiftRes, error) ReduceGift(ctx context.Context, in *ReduceGiftReq, opts ...client.CallOption) (*ReduceGiftRes, error) GetAllGift(ctx context.Context, in *GetAllGiftReq, opts ...client.CallOption) (*GetAllGiftRes, error) }
func NewGiftPackService ¶
func NewGiftPackService(name string, c client.Client) GiftPackService
type ReduceGiftReq ¶
type ReduceGiftReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` GiftId int64 `protobuf:"varint,2,opt,name=gift_id,json=giftId,proto3" json:"gift_id"` GiftNum int64 `protobuf:"varint,3,opt,name=gift_num,json=giftNum,proto3" json:"gift_num"` // contains filtered or unexported fields }
func (*ReduceGiftReq) Descriptor
deprecated
func (*ReduceGiftReq) Descriptor() ([]byte, []int)
Deprecated: Use ReduceGiftReq.ProtoReflect.Descriptor instead.
func (*ReduceGiftReq) GetGiftId ¶
func (x *ReduceGiftReq) GetGiftId() int64
func (*ReduceGiftReq) GetGiftNum ¶
func (x *ReduceGiftReq) GetGiftNum() int64
func (*ReduceGiftReq) GetUserId ¶
func (x *ReduceGiftReq) GetUserId() int64
func (*ReduceGiftReq) ProtoMessage ¶
func (*ReduceGiftReq) ProtoMessage()
func (*ReduceGiftReq) ProtoReflect ¶
func (x *ReduceGiftReq) ProtoReflect() protoreflect.Message
func (*ReduceGiftReq) Reset ¶
func (x *ReduceGiftReq) Reset()
func (*ReduceGiftReq) String ¶
func (x *ReduceGiftReq) String() string
func (*ReduceGiftReq) Validate ¶
func (m *ReduceGiftReq) Validate() error
Validate checks the field values on ReduceGiftReq 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 (*ReduceGiftReq) ValidateAll ¶
func (m *ReduceGiftReq) ValidateAll() error
ValidateAll checks the field values on ReduceGiftReq 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 ReduceGiftReqMultiError, or nil if none found.
type ReduceGiftReqMultiError ¶
type ReduceGiftReqMultiError []error
ReduceGiftReqMultiError is an error wrapping multiple validation errors returned by ReduceGiftReq.ValidateAll() if the designated constraints aren't met.
func (ReduceGiftReqMultiError) AllErrors ¶
func (m ReduceGiftReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReduceGiftReqMultiError) Error ¶
func (m ReduceGiftReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReduceGiftReqValidationError ¶
type ReduceGiftReqValidationError struct {
// contains filtered or unexported fields
}
ReduceGiftReqValidationError is the validation error returned by ReduceGiftReq.Validate if the designated constraints aren't met.
func (ReduceGiftReqValidationError) Cause ¶
func (e ReduceGiftReqValidationError) Cause() error
Cause function returns cause value.
func (ReduceGiftReqValidationError) Error ¶
func (e ReduceGiftReqValidationError) Error() string
Error satisfies the builtin error interface
func (ReduceGiftReqValidationError) ErrorName ¶
func (e ReduceGiftReqValidationError) ErrorName() string
ErrorName returns error name.
func (ReduceGiftReqValidationError) Field ¶
func (e ReduceGiftReqValidationError) Field() string
Field function returns field value.
func (ReduceGiftReqValidationError) Key ¶
func (e ReduceGiftReqValidationError) Key() bool
Key function returns key value.
func (ReduceGiftReqValidationError) Reason ¶
func (e ReduceGiftReqValidationError) Reason() string
Reason function returns reason value.
type ReduceGiftRes ¶
type ReduceGiftRes struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id"` GiftId int64 `protobuf:"varint,2,opt,name=gift_id,json=giftId,proto3" json:"gift_id"` GiftNum int64 `protobuf:"varint,3,opt,name=gift_num,json=giftNum,proto3" json:"gift_num"` // contains filtered or unexported fields }
func (*ReduceGiftRes) Descriptor
deprecated
func (*ReduceGiftRes) Descriptor() ([]byte, []int)
Deprecated: Use ReduceGiftRes.ProtoReflect.Descriptor instead.
func (*ReduceGiftRes) GetGiftId ¶
func (x *ReduceGiftRes) GetGiftId() int64
func (*ReduceGiftRes) GetGiftNum ¶
func (x *ReduceGiftRes) GetGiftNum() int64
func (*ReduceGiftRes) GetUserId ¶
func (x *ReduceGiftRes) GetUserId() int64
func (*ReduceGiftRes) ProtoMessage ¶
func (*ReduceGiftRes) ProtoMessage()
func (*ReduceGiftRes) ProtoReflect ¶
func (x *ReduceGiftRes) ProtoReflect() protoreflect.Message
func (*ReduceGiftRes) Reset ¶
func (x *ReduceGiftRes) Reset()
func (*ReduceGiftRes) String ¶
func (x *ReduceGiftRes) String() string
func (*ReduceGiftRes) Validate ¶
func (m *ReduceGiftRes) Validate() error
Validate checks the field values on ReduceGiftRes 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 (*ReduceGiftRes) ValidateAll ¶
func (m *ReduceGiftRes) ValidateAll() error
ValidateAll checks the field values on ReduceGiftRes 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 ReduceGiftResMultiError, or nil if none found.
type ReduceGiftResMultiError ¶
type ReduceGiftResMultiError []error
ReduceGiftResMultiError is an error wrapping multiple validation errors returned by ReduceGiftRes.ValidateAll() if the designated constraints aren't met.
func (ReduceGiftResMultiError) AllErrors ¶
func (m ReduceGiftResMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReduceGiftResMultiError) Error ¶
func (m ReduceGiftResMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReduceGiftResValidationError ¶
type ReduceGiftResValidationError struct {
// contains filtered or unexported fields
}
ReduceGiftResValidationError is the validation error returned by ReduceGiftRes.Validate if the designated constraints aren't met.
func (ReduceGiftResValidationError) Cause ¶
func (e ReduceGiftResValidationError) Cause() error
Cause function returns cause value.
func (ReduceGiftResValidationError) Error ¶
func (e ReduceGiftResValidationError) Error() string
Error satisfies the builtin error interface
func (ReduceGiftResValidationError) ErrorName ¶
func (e ReduceGiftResValidationError) ErrorName() string
ErrorName returns error name.
func (ReduceGiftResValidationError) Field ¶
func (e ReduceGiftResValidationError) Field() string
Field function returns field value.
func (ReduceGiftResValidationError) Key ¶
func (e ReduceGiftResValidationError) Key() bool
Key function returns key value.
func (ReduceGiftResValidationError) Reason ¶
func (e ReduceGiftResValidationError) Reason() string
Reason function returns reason value.