Documentation
¶
Index ¶
- Constants
- Variables
- func ErrorIvalidParam(format string, args ...interface{}) *errors.Error
- func ErrorOrderExsisted(format string, args ...interface{}) *errors.Error
- func ErrorOrderReviewed(format string, args ...interface{}) *errors.Error
- func IsIvalidParam(err error) bool
- func IsOrderExsisted(err error) bool
- func IsOrderReviewed(err error) bool
- func RegisterReviewHTTPServer(s *http.Server, srv ReviewHTTPServer)
- func RegisterReviewServer(s grpc.ServiceRegistrar, srv ReviewServer)
- type CreateAppealReply
- func (*CreateAppealReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAppealReply) GetAppealID() int64
- func (*CreateAppealReply) ProtoMessage()
- func (x *CreateAppealReply) ProtoReflect() protoreflect.Message
- func (x *CreateAppealReply) Reset()
- func (x *CreateAppealReply) String() string
- func (m *CreateAppealReply) Validate() error
- func (m *CreateAppealReply) ValidateAll() error
- type CreateAppealReplyMultiError
- type CreateAppealReplyValidationError
- func (e CreateAppealReplyValidationError) Cause() error
- func (e CreateAppealReplyValidationError) Error() string
- func (e CreateAppealReplyValidationError) ErrorName() string
- func (e CreateAppealReplyValidationError) Field() string
- func (e CreateAppealReplyValidationError) Key() bool
- func (e CreateAppealReplyValidationError) Reason() string
- type CreateAppealRequest
- func (*CreateAppealRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAppealRequest) GetContent() string
- func (x *CreateAppealRequest) GetPicInfo() string
- func (x *CreateAppealRequest) GetReason() string
- func (x *CreateAppealRequest) GetReviewID() int64
- func (x *CreateAppealRequest) GetStoreID() int64
- func (x *CreateAppealRequest) GetVideoInfo() string
- func (*CreateAppealRequest) ProtoMessage()
- func (x *CreateAppealRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAppealRequest) Reset()
- func (x *CreateAppealRequest) String() string
- func (m *CreateAppealRequest) Validate() error
- func (m *CreateAppealRequest) ValidateAll() error
- type CreateAppealRequestMultiError
- type CreateAppealRequestValidationError
- func (e CreateAppealRequestValidationError) Cause() error
- func (e CreateAppealRequestValidationError) Error() string
- func (e CreateAppealRequestValidationError) ErrorName() string
- func (e CreateAppealRequestValidationError) Field() string
- func (e CreateAppealRequestValidationError) Key() bool
- func (e CreateAppealRequestValidationError) Reason() string
- type CreateReviewReply
- func (*CreateReviewReply) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReviewReply) GetReviewID() int64
- func (*CreateReviewReply) ProtoMessage()
- func (x *CreateReviewReply) ProtoReflect() protoreflect.Message
- func (x *CreateReviewReply) Reset()
- func (x *CreateReviewReply) String() string
- func (m *CreateReviewReply) Validate() error
- func (m *CreateReviewReply) ValidateAll() error
- type CreateReviewReplyMultiError
- type CreateReviewReplyValidationError
- func (e CreateReviewReplyValidationError) Cause() error
- func (e CreateReviewReplyValidationError) Error() string
- func (e CreateReviewReplyValidationError) ErrorName() string
- func (e CreateReviewReplyValidationError) Field() string
- func (e CreateReviewReplyValidationError) Key() bool
- func (e CreateReviewReplyValidationError) Reason() string
- type CreateReviewRequest
- func (*CreateReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReviewRequest) GetAnonymous() bool
- func (x *CreateReviewRequest) GetContent() string
- func (x *CreateReviewRequest) GetExpressScore() int32
- func (x *CreateReviewRequest) GetOrderID() int64
- func (x *CreateReviewRequest) GetPicInfo() string
- func (x *CreateReviewRequest) GetScore() int32
- func (x *CreateReviewRequest) GetServiceScore() int32
- func (x *CreateReviewRequest) GetStoreID() int64
- func (x *CreateReviewRequest) GetUserID() int64
- func (x *CreateReviewRequest) GetVideoInfo() string
- func (*CreateReviewRequest) ProtoMessage()
- func (x *CreateReviewRequest) ProtoReflect() protoreflect.Message
- func (x *CreateReviewRequest) Reset()
- func (x *CreateReviewRequest) String() string
- func (m *CreateReviewRequest) Validate() error
- func (m *CreateReviewRequest) ValidateAll() error
- type CreateReviewRequestMultiError
- type CreateReviewRequestValidationError
- func (e CreateReviewRequestValidationError) Cause() error
- func (e CreateReviewRequestValidationError) Error() string
- func (e CreateReviewRequestValidationError) ErrorName() string
- func (e CreateReviewRequestValidationError) Field() string
- func (e CreateReviewRequestValidationError) Key() bool
- func (e CreateReviewRequestValidationError) Reason() string
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type GetReviewReply
- func (*GetReviewReply) Descriptor() ([]byte, []int)deprecated
- func (x *GetReviewReply) GetAnonymous() bool
- func (x *GetReviewReply) GetContent() string
- func (x *GetReviewReply) GetExpressScore() int32
- func (x *GetReviewReply) GetOrderID() int64
- func (x *GetReviewReply) GetPicInfo() string
- func (x *GetReviewReply) GetReviewID() int64
- func (x *GetReviewReply) GetScore() int32
- func (x *GetReviewReply) GetServiceScore() int32
- func (x *GetReviewReply) GetStoreID() int64
- func (x *GetReviewReply) GetUserID() int64
- func (x *GetReviewReply) GetVideoInfo() string
- func (*GetReviewReply) ProtoMessage()
- func (x *GetReviewReply) ProtoReflect() protoreflect.Message
- func (x *GetReviewReply) Reset()
- func (x *GetReviewReply) String() string
- func (m *GetReviewReply) Validate() error
- func (m *GetReviewReply) ValidateAll() error
- type GetReviewReplyMultiError
- type GetReviewReplyValidationError
- func (e GetReviewReplyValidationError) Cause() error
- func (e GetReviewReplyValidationError) Error() string
- func (e GetReviewReplyValidationError) ErrorName() string
- func (e GetReviewReplyValidationError) Field() string
- func (e GetReviewReplyValidationError) Key() bool
- func (e GetReviewReplyValidationError) Reason() string
- type GetReviewRequest
- func (*GetReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetReviewRequest) GetReviewID() int64
- func (*GetReviewRequest) ProtoMessage()
- func (x *GetReviewRequest) ProtoReflect() protoreflect.Message
- func (x *GetReviewRequest) Reset()
- func (x *GetReviewRequest) String() string
- func (m *GetReviewRequest) Validate() error
- func (m *GetReviewRequest) ValidateAll() error
- type GetReviewRequestMultiError
- type GetReviewRequestValidationError
- func (e GetReviewRequestValidationError) Cause() error
- func (e GetReviewRequestValidationError) Error() string
- func (e GetReviewRequestValidationError) ErrorName() string
- func (e GetReviewRequestValidationError) Field() string
- func (e GetReviewRequestValidationError) Key() bool
- func (e GetReviewRequestValidationError) Reason() string
- type ListReviewByStoreIDReply
- func (*ListReviewByStoreIDReply) Descriptor() ([]byte, []int)deprecated
- func (x *ListReviewByStoreIDReply) GetReviews() []*ReviewInfo
- func (*ListReviewByStoreIDReply) ProtoMessage()
- func (x *ListReviewByStoreIDReply) ProtoReflect() protoreflect.Message
- func (x *ListReviewByStoreIDReply) Reset()
- func (x *ListReviewByStoreIDReply) String() string
- func (m *ListReviewByStoreIDReply) Validate() error
- func (m *ListReviewByStoreIDReply) ValidateAll() error
- type ListReviewByStoreIDReplyMultiError
- type ListReviewByStoreIDReplyValidationError
- func (e ListReviewByStoreIDReplyValidationError) Cause() error
- func (e ListReviewByStoreIDReplyValidationError) Error() string
- func (e ListReviewByStoreIDReplyValidationError) ErrorName() string
- func (e ListReviewByStoreIDReplyValidationError) Field() string
- func (e ListReviewByStoreIDReplyValidationError) Key() bool
- func (e ListReviewByStoreIDReplyValidationError) Reason() string
- type ListReviewByStoreIDRequest
- func (*ListReviewByStoreIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListReviewByStoreIDRequest) GetPage() int32
- func (x *ListReviewByStoreIDRequest) GetSize() int32
- func (x *ListReviewByStoreIDRequest) GetStoreID() int64
- func (*ListReviewByStoreIDRequest) ProtoMessage()
- func (x *ListReviewByStoreIDRequest) ProtoReflect() protoreflect.Message
- func (x *ListReviewByStoreIDRequest) Reset()
- func (x *ListReviewByStoreIDRequest) String() string
- func (m *ListReviewByStoreIDRequest) Validate() error
- func (m *ListReviewByStoreIDRequest) ValidateAll() error
- type ListReviewByStoreIDRequestMultiError
- type ListReviewByStoreIDRequestValidationError
- func (e ListReviewByStoreIDRequestValidationError) Cause() error
- func (e ListReviewByStoreIDRequestValidationError) Error() string
- func (e ListReviewByStoreIDRequestValidationError) ErrorName() string
- func (e ListReviewByStoreIDRequestValidationError) Field() string
- func (e ListReviewByStoreIDRequestValidationError) Key() bool
- func (e ListReviewByStoreIDRequestValidationError) Reason() string
- type OperateAppealReply
- func (*OperateAppealReply) Descriptor() ([]byte, []int)deprecated
- func (x *OperateAppealReply) GetAppealID() int64
- func (*OperateAppealReply) ProtoMessage()
- func (x *OperateAppealReply) ProtoReflect() protoreflect.Message
- func (x *OperateAppealReply) Reset()
- func (x *OperateAppealReply) String() string
- func (m *OperateAppealReply) Validate() error
- func (m *OperateAppealReply) ValidateAll() error
- type OperateAppealReplyMultiError
- type OperateAppealReplyValidationError
- func (e OperateAppealReplyValidationError) Cause() error
- func (e OperateAppealReplyValidationError) Error() string
- func (e OperateAppealReplyValidationError) ErrorName() string
- func (e OperateAppealReplyValidationError) Field() string
- func (e OperateAppealReplyValidationError) Key() bool
- func (e OperateAppealReplyValidationError) Reason() string
- type OperateAppealRequest
- func (*OperateAppealRequest) Descriptor() ([]byte, []int)deprecated
- func (x *OperateAppealRequest) GetAppealID() int64
- func (x *OperateAppealRequest) GetOpRemark() string
- func (x *OperateAppealRequest) GetOpUser() string
- func (x *OperateAppealRequest) GetReviewID() int64
- func (x *OperateAppealRequest) GetStatus() int32
- func (x *OperateAppealRequest) GetStoreID() int64
- func (*OperateAppealRequest) ProtoMessage()
- func (x *OperateAppealRequest) ProtoReflect() protoreflect.Message
- func (x *OperateAppealRequest) Reset()
- func (x *OperateAppealRequest) String() string
- func (m *OperateAppealRequest) Validate() error
- func (m *OperateAppealRequest) ValidateAll() error
- type OperateAppealRequestMultiError
- type OperateAppealRequestValidationError
- func (e OperateAppealRequestValidationError) Cause() error
- func (e OperateAppealRequestValidationError) Error() string
- func (e OperateAppealRequestValidationError) ErrorName() string
- func (e OperateAppealRequestValidationError) Field() string
- func (e OperateAppealRequestValidationError) Key() bool
- func (e OperateAppealRequestValidationError) Reason() string
- type ReplyReviewReply
- func (*ReplyReviewReply) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyReviewReply) GetReplyID() int64
- func (*ReplyReviewReply) ProtoMessage()
- func (x *ReplyReviewReply) ProtoReflect() protoreflect.Message
- func (x *ReplyReviewReply) Reset()
- func (x *ReplyReviewReply) String() string
- func (m *ReplyReviewReply) Validate() error
- func (m *ReplyReviewReply) ValidateAll() error
- type ReplyReviewReplyMultiError
- type ReplyReviewReplyValidationError
- func (e ReplyReviewReplyValidationError) Cause() error
- func (e ReplyReviewReplyValidationError) Error() string
- func (e ReplyReviewReplyValidationError) ErrorName() string
- func (e ReplyReviewReplyValidationError) Field() string
- func (e ReplyReviewReplyValidationError) Key() bool
- func (e ReplyReviewReplyValidationError) Reason() string
- type ReplyReviewRequest
- func (*ReplyReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReplyReviewRequest) GetContent() string
- func (x *ReplyReviewRequest) GetPicInfo() string
- func (x *ReplyReviewRequest) GetReviewID() int64
- func (x *ReplyReviewRequest) GetStoreID() int64
- func (x *ReplyReviewRequest) GetVideoInfo() string
- func (*ReplyReviewRequest) ProtoMessage()
- func (x *ReplyReviewRequest) ProtoReflect() protoreflect.Message
- func (x *ReplyReviewRequest) Reset()
- func (x *ReplyReviewRequest) String() string
- func (m *ReplyReviewRequest) Validate() error
- func (m *ReplyReviewRequest) ValidateAll() error
- type ReplyReviewRequestMultiError
- type ReplyReviewRequestValidationError
- func (e ReplyReviewRequestValidationError) Cause() error
- func (e ReplyReviewRequestValidationError) Error() string
- func (e ReplyReviewRequestValidationError) ErrorName() string
- func (e ReplyReviewRequestValidationError) Field() string
- func (e ReplyReviewRequestValidationError) Key() bool
- func (e ReplyReviewRequestValidationError) Reason() string
- type ReviewClient
- type ReviewHTTPClient
- type ReviewHTTPClientImpl
- func (c *ReviewHTTPClientImpl) CreateReview(ctx context.Context, in *CreateReviewRequest, opts ...http.CallOption) (*CreateReviewReply, error)
- func (c *ReviewHTTPClientImpl) GetReviewByRID(ctx context.Context, in *GetReviewRequest, opts ...http.CallOption) (*GetReviewReply, error)
- func (c *ReviewHTTPClientImpl) ReplyReview(ctx context.Context, in *ReplyReviewRequest, opts ...http.CallOption) (*ReplyReviewReply, error)
- type ReviewHTTPServer
- type ReviewInfo
- func (*ReviewInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ReviewInfo) GetAnonymous() bool
- func (x *ReviewInfo) GetContent() string
- func (x *ReviewInfo) GetExpressScore() int32
- func (x *ReviewInfo) GetOrderID() int64
- func (x *ReviewInfo) GetPicInfo() string
- func (x *ReviewInfo) GetReviewID() int64
- func (x *ReviewInfo) GetScore() int32
- func (x *ReviewInfo) GetServiceScore() int32
- func (x *ReviewInfo) GetStoreID() int64
- func (x *ReviewInfo) GetUserID() int64
- func (x *ReviewInfo) GetVideoInfo() string
- func (*ReviewInfo) ProtoMessage()
- func (x *ReviewInfo) ProtoReflect() protoreflect.Message
- func (x *ReviewInfo) Reset()
- func (x *ReviewInfo) String() string
- func (m *ReviewInfo) Validate() error
- func (m *ReviewInfo) ValidateAll() error
- type ReviewInfoMultiError
- type ReviewInfoValidationError
- type ReviewServer
- type UnimplementedReviewServer
- func (UnimplementedReviewServer) CreateAppeal(context.Context, *CreateAppealRequest) (*CreateAppealReply, error)
- func (UnimplementedReviewServer) CreateReview(context.Context, *CreateReviewRequest) (*CreateReviewReply, error)
- func (UnimplementedReviewServer) GetReviewByRID(context.Context, *GetReviewRequest) (*GetReviewReply, error)
- func (UnimplementedReviewServer) ListReviewByStoreID(context.Context, *ListReviewByStoreIDRequest) (*ListReviewByStoreIDReply, error)
- func (UnimplementedReviewServer) OperateAppeal(context.Context, *OperateAppealRequest) (*OperateAppealReply, error)
- func (UnimplementedReviewServer) ReplyReview(context.Context, *ReplyReviewRequest) (*ReplyReviewReply, error)
- type UnsafeReviewServer
Constants ¶
const ( Review_CreateReview_FullMethodName = "/api.review.v1.Review/CreateReview" Review_GetReviewByRID_FullMethodName = "/api.review.v1.Review/GetReviewByRID" Review_ListReviewByStoreID_FullMethodName = "/api.review.v1.Review/ListReviewByStoreID" Review_ReplyReview_FullMethodName = "/api.review.v1.Review/ReplyReview" Review_CreateAppeal_FullMethodName = "/api.review.v1.Review/CreateAppeal" Review_OperateAppeal_FullMethodName = "/api.review.v1.Review/OperateAppeal" )
const OperationReviewCreateReview = "/api.review.v1.Review/CreateReview"
const OperationReviewGetReviewByRID = "/api.review.v1.Review/GetReviewByRID"
const OperationReviewReplyReview = "/api.review.v1.Review/ReplyReview"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "IVALID_PARAM", 100: "ORDER_REVIEWED", 101: "ORDER_EXSISTED", } ErrorReason_value = map[string]int32{ "IVALID_PARAM": 0, "ORDER_REVIEWED": 100, "ORDER_EXSISTED": 101, } )
Enum value maps for ErrorReason.
var File_api_review_v1_review_proto protoreflect.FileDescriptor
var File_review_v1_review_errors_proto protoreflect.FileDescriptor
var Review_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.review.v1.Review", HandlerType: (*ReviewServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateReview", Handler: _Review_CreateReview_Handler, }, { MethodName: "GetReviewByRID", Handler: _Review_GetReviewByRID_Handler, }, { MethodName: "ListReviewByStoreID", Handler: _Review_ListReviewByStoreID_Handler, }, { MethodName: "ReplyReview", Handler: _Review_ReplyReview_Handler, }, { MethodName: "CreateAppeal", Handler: _Review_CreateAppeal_Handler, }, { MethodName: "OperateAppeal", Handler: _Review_OperateAppeal_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/review/v1/review.proto", }
Review_ServiceDesc is the grpc.ServiceDesc for Review service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorIvalidParam ¶
为某个枚举单独设置错误码
func ErrorOrderExsisted ¶
func ErrorOrderReviewed ¶
func IsOrderExsisted ¶
func IsOrderReviewed ¶
func RegisterReviewHTTPServer ¶
func RegisterReviewHTTPServer(s *http.Server, srv ReviewHTTPServer)
func RegisterReviewServer ¶
func RegisterReviewServer(s grpc.ServiceRegistrar, srv ReviewServer)
Types ¶
type CreateAppealReply ¶
type CreateAppealReply struct {
AppealID int64 `protobuf:"varint,1,opt,name=appealID,proto3" json:"appealID,omitempty"`
// contains filtered or unexported fields
}
func (*CreateAppealReply) Descriptor
deprecated
func (*CreateAppealReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateAppealReply.ProtoReflect.Descriptor instead.
func (*CreateAppealReply) GetAppealID ¶
func (x *CreateAppealReply) GetAppealID() int64
func (*CreateAppealReply) ProtoMessage ¶
func (*CreateAppealReply) ProtoMessage()
func (*CreateAppealReply) ProtoReflect ¶
func (x *CreateAppealReply) ProtoReflect() protoreflect.Message
func (*CreateAppealReply) Reset ¶
func (x *CreateAppealReply) Reset()
func (*CreateAppealReply) String ¶
func (x *CreateAppealReply) String() string
func (*CreateAppealReply) Validate ¶
func (m *CreateAppealReply) Validate() error
Validate checks the field values on CreateAppealReply 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 (*CreateAppealReply) ValidateAll ¶
func (m *CreateAppealReply) ValidateAll() error
ValidateAll checks the field values on CreateAppealReply 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 CreateAppealReplyMultiError, or nil if none found.
type CreateAppealReplyMultiError ¶
type CreateAppealReplyMultiError []error
CreateAppealReplyMultiError is an error wrapping multiple validation errors returned by CreateAppealReply.ValidateAll() if the designated constraints aren't met.
func (CreateAppealReplyMultiError) AllErrors ¶
func (m CreateAppealReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAppealReplyMultiError) Error ¶
func (m CreateAppealReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAppealReplyValidationError ¶
type CreateAppealReplyValidationError struct {
// contains filtered or unexported fields
}
CreateAppealReplyValidationError is the validation error returned by CreateAppealReply.Validate if the designated constraints aren't met.
func (CreateAppealReplyValidationError) Cause ¶
func (e CreateAppealReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateAppealReplyValidationError) Error ¶
func (e CreateAppealReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAppealReplyValidationError) ErrorName ¶
func (e CreateAppealReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAppealReplyValidationError) Field ¶
func (e CreateAppealReplyValidationError) Field() string
Field function returns field value.
func (CreateAppealReplyValidationError) Key ¶
func (e CreateAppealReplyValidationError) Key() bool
Key function returns key value.
func (CreateAppealReplyValidationError) Reason ¶
func (e CreateAppealReplyValidationError) Reason() string
Reason function returns reason value.
type CreateAppealRequest ¶
type CreateAppealRequest struct {
ReviewID int64 `protobuf:"varint,1,opt,name=reviewID,proto3" json:"reviewID,omitempty"`
StoreID int64 `protobuf:"varint,2,opt,name=storeID,proto3" json:"storeID,omitempty"`
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
PicInfo string `protobuf:"bytes,5,opt,name=picInfo,proto3" json:"picInfo,omitempty"`
VideoInfo string `protobuf:"bytes,6,opt,name=videoInfo,proto3" json:"videoInfo,omitempty"`
// contains filtered or unexported fields
}
func (*CreateAppealRequest) Descriptor
deprecated
func (*CreateAppealRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAppealRequest.ProtoReflect.Descriptor instead.
func (*CreateAppealRequest) GetContent ¶
func (x *CreateAppealRequest) GetContent() string
func (*CreateAppealRequest) GetPicInfo ¶
func (x *CreateAppealRequest) GetPicInfo() string
func (*CreateAppealRequest) GetReason ¶
func (x *CreateAppealRequest) GetReason() string
func (*CreateAppealRequest) GetReviewID ¶
func (x *CreateAppealRequest) GetReviewID() int64
func (*CreateAppealRequest) GetStoreID ¶
func (x *CreateAppealRequest) GetStoreID() int64
func (*CreateAppealRequest) GetVideoInfo ¶
func (x *CreateAppealRequest) GetVideoInfo() string
func (*CreateAppealRequest) ProtoMessage ¶
func (*CreateAppealRequest) ProtoMessage()
func (*CreateAppealRequest) ProtoReflect ¶
func (x *CreateAppealRequest) ProtoReflect() protoreflect.Message
func (*CreateAppealRequest) Reset ¶
func (x *CreateAppealRequest) Reset()
func (*CreateAppealRequest) String ¶
func (x *CreateAppealRequest) String() string
func (*CreateAppealRequest) Validate ¶
func (m *CreateAppealRequest) Validate() error
Validate checks the field values on CreateAppealRequest 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 (*CreateAppealRequest) ValidateAll ¶
func (m *CreateAppealRequest) ValidateAll() error
ValidateAll checks the field values on CreateAppealRequest 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 CreateAppealRequestMultiError, or nil if none found.
type CreateAppealRequestMultiError ¶
type CreateAppealRequestMultiError []error
CreateAppealRequestMultiError is an error wrapping multiple validation errors returned by CreateAppealRequest.ValidateAll() if the designated constraints aren't met.
func (CreateAppealRequestMultiError) AllErrors ¶
func (m CreateAppealRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateAppealRequestMultiError) Error ¶
func (m CreateAppealRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateAppealRequestValidationError ¶
type CreateAppealRequestValidationError struct {
// contains filtered or unexported fields
}
CreateAppealRequestValidationError is the validation error returned by CreateAppealRequest.Validate if the designated constraints aren't met.
func (CreateAppealRequestValidationError) Cause ¶
func (e CreateAppealRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateAppealRequestValidationError) Error ¶
func (e CreateAppealRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateAppealRequestValidationError) ErrorName ¶
func (e CreateAppealRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateAppealRequestValidationError) Field ¶
func (e CreateAppealRequestValidationError) Field() string
Field function returns field value.
func (CreateAppealRequestValidationError) Key ¶
func (e CreateAppealRequestValidationError) Key() bool
Key function returns key value.
func (CreateAppealRequestValidationError) Reason ¶
func (e CreateAppealRequestValidationError) Reason() string
Reason function returns reason value.
type CreateReviewReply ¶
type CreateReviewReply struct {
ReviewID int64 `protobuf:"varint,1,opt,name=reviewID,proto3" json:"reviewID,omitempty"`
// contains filtered or unexported fields
}
func (*CreateReviewReply) Descriptor
deprecated
func (*CreateReviewReply) Descriptor() ([]byte, []int)
Deprecated: Use CreateReviewReply.ProtoReflect.Descriptor instead.
func (*CreateReviewReply) GetReviewID ¶
func (x *CreateReviewReply) GetReviewID() int64
func (*CreateReviewReply) ProtoMessage ¶
func (*CreateReviewReply) ProtoMessage()
func (*CreateReviewReply) ProtoReflect ¶
func (x *CreateReviewReply) ProtoReflect() protoreflect.Message
func (*CreateReviewReply) Reset ¶
func (x *CreateReviewReply) Reset()
func (*CreateReviewReply) String ¶
func (x *CreateReviewReply) String() string
func (*CreateReviewReply) Validate ¶
func (m *CreateReviewReply) Validate() error
Validate checks the field values on CreateReviewReply 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 (*CreateReviewReply) ValidateAll ¶
func (m *CreateReviewReply) ValidateAll() error
ValidateAll checks the field values on CreateReviewReply 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 CreateReviewReplyMultiError, or nil if none found.
type CreateReviewReplyMultiError ¶
type CreateReviewReplyMultiError []error
CreateReviewReplyMultiError is an error wrapping multiple validation errors returned by CreateReviewReply.ValidateAll() if the designated constraints aren't met.
func (CreateReviewReplyMultiError) AllErrors ¶
func (m CreateReviewReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateReviewReplyMultiError) Error ¶
func (m CreateReviewReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateReviewReplyValidationError ¶
type CreateReviewReplyValidationError struct {
// contains filtered or unexported fields
}
CreateReviewReplyValidationError is the validation error returned by CreateReviewReply.Validate if the designated constraints aren't met.
func (CreateReviewReplyValidationError) Cause ¶
func (e CreateReviewReplyValidationError) Cause() error
Cause function returns cause value.
func (CreateReviewReplyValidationError) Error ¶
func (e CreateReviewReplyValidationError) Error() string
Error satisfies the builtin error interface
func (CreateReviewReplyValidationError) ErrorName ¶
func (e CreateReviewReplyValidationError) ErrorName() string
ErrorName returns error name.
func (CreateReviewReplyValidationError) Field ¶
func (e CreateReviewReplyValidationError) Field() string
Field function returns field value.
func (CreateReviewReplyValidationError) Key ¶
func (e CreateReviewReplyValidationError) Key() bool
Key function returns key value.
func (CreateReviewReplyValidationError) Reason ¶
func (e CreateReviewReplyValidationError) Reason() string
Reason function returns reason value.
type CreateReviewRequest ¶
type CreateReviewRequest struct {
UserID int64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"`
OrderID int64 `protobuf:"varint,2,opt,name=orderID,proto3" json:"orderID,omitempty"`
StoreID int64 `protobuf:"varint,10,opt,name=storeID,proto3" json:"storeID,omitempty"`
Score int32 `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"`
ServiceScore int32 `protobuf:"varint,4,opt,name=serviceScore,proto3" json:"serviceScore,omitempty"`
ExpressScore int32 `protobuf:"varint,5,opt,name=expressScore,proto3" json:"expressScore,omitempty"`
Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
PicInfo string `protobuf:"bytes,7,opt,name=picInfo,proto3" json:"picInfo,omitempty"`
VideoInfo string `protobuf:"bytes,8,opt,name=videoInfo,proto3" json:"videoInfo,omitempty"`
Anonymous bool `protobuf:"varint,9,opt,name=anonymous,proto3" json:"anonymous,omitempty"`
// contains filtered or unexported fields
}
func (*CreateReviewRequest) Descriptor
deprecated
func (*CreateReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateReviewRequest.ProtoReflect.Descriptor instead.
func (*CreateReviewRequest) GetAnonymous ¶
func (x *CreateReviewRequest) GetAnonymous() bool
func (*CreateReviewRequest) GetContent ¶
func (x *CreateReviewRequest) GetContent() string
func (*CreateReviewRequest) GetExpressScore ¶
func (x *CreateReviewRequest) GetExpressScore() int32
func (*CreateReviewRequest) GetOrderID ¶
func (x *CreateReviewRequest) GetOrderID() int64
func (*CreateReviewRequest) GetPicInfo ¶
func (x *CreateReviewRequest) GetPicInfo() string
func (*CreateReviewRequest) GetScore ¶
func (x *CreateReviewRequest) GetScore() int32
func (*CreateReviewRequest) GetServiceScore ¶
func (x *CreateReviewRequest) GetServiceScore() int32
func (*CreateReviewRequest) GetStoreID ¶
func (x *CreateReviewRequest) GetStoreID() int64
func (*CreateReviewRequest) GetUserID ¶
func (x *CreateReviewRequest) GetUserID() int64
func (*CreateReviewRequest) GetVideoInfo ¶
func (x *CreateReviewRequest) GetVideoInfo() string
func (*CreateReviewRequest) ProtoMessage ¶
func (*CreateReviewRequest) ProtoMessage()
func (*CreateReviewRequest) ProtoReflect ¶
func (x *CreateReviewRequest) ProtoReflect() protoreflect.Message
func (*CreateReviewRequest) Reset ¶
func (x *CreateReviewRequest) Reset()
func (*CreateReviewRequest) String ¶
func (x *CreateReviewRequest) String() string
func (*CreateReviewRequest) Validate ¶
func (m *CreateReviewRequest) Validate() error
Validate checks the field values on CreateReviewRequest 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 (*CreateReviewRequest) ValidateAll ¶
func (m *CreateReviewRequest) ValidateAll() error
ValidateAll checks the field values on CreateReviewRequest 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 CreateReviewRequestMultiError, or nil if none found.
type CreateReviewRequestMultiError ¶
type CreateReviewRequestMultiError []error
CreateReviewRequestMultiError is an error wrapping multiple validation errors returned by CreateReviewRequest.ValidateAll() if the designated constraints aren't met.
func (CreateReviewRequestMultiError) AllErrors ¶
func (m CreateReviewRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateReviewRequestMultiError) Error ¶
func (m CreateReviewRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateReviewRequestValidationError ¶
type CreateReviewRequestValidationError struct {
// contains filtered or unexported fields
}
CreateReviewRequestValidationError is the validation error returned by CreateReviewRequest.Validate if the designated constraints aren't met.
func (CreateReviewRequestValidationError) Cause ¶
func (e CreateReviewRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateReviewRequestValidationError) Error ¶
func (e CreateReviewRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateReviewRequestValidationError) ErrorName ¶
func (e CreateReviewRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateReviewRequestValidationError) Field ¶
func (e CreateReviewRequestValidationError) Field() string
Field function returns field value.
func (CreateReviewRequestValidationError) Key ¶
func (e CreateReviewRequestValidationError) Key() bool
Key function returns key value.
func (CreateReviewRequestValidationError) Reason ¶
func (e CreateReviewRequestValidationError) Reason() string
Reason function returns reason value.
type ErrorReason ¶
type ErrorReason int32
const ( // 为某个枚举单独设置错误码 ErrorReason_IVALID_PARAM ErrorReason = 0 ErrorReason_ORDER_REVIEWED ErrorReason = 100 ErrorReason_ORDER_EXSISTED ErrorReason = 101 )
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type GetReviewReply ¶
type GetReviewReply struct {
ReviewID int64 `protobuf:"varint,11,opt,name=reviewID,proto3" json:"reviewID,omitempty"`
UserID int64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"`
OrderID int64 `protobuf:"varint,2,opt,name=orderID,proto3" json:"orderID,omitempty"`
StoreID int64 `protobuf:"varint,10,opt,name=storeID,proto3" json:"storeID,omitempty"`
Score int32 `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"`
ServiceScore int32 `protobuf:"varint,4,opt,name=serviceScore,proto3" json:"serviceScore,omitempty"`
ExpressScore int32 `protobuf:"varint,5,opt,name=expressScore,proto3" json:"expressScore,omitempty"`
Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
PicInfo string `protobuf:"bytes,7,opt,name=picInfo,proto3" json:"picInfo,omitempty"`
VideoInfo string `protobuf:"bytes,8,opt,name=videoInfo,proto3" json:"videoInfo,omitempty"`
Anonymous bool `protobuf:"varint,9,opt,name=anonymous,proto3" json:"anonymous,omitempty"`
// contains filtered or unexported fields
}
func (*GetReviewReply) Descriptor
deprecated
func (*GetReviewReply) Descriptor() ([]byte, []int)
Deprecated: Use GetReviewReply.ProtoReflect.Descriptor instead.
func (*GetReviewReply) GetAnonymous ¶
func (x *GetReviewReply) GetAnonymous() bool
func (*GetReviewReply) GetContent ¶
func (x *GetReviewReply) GetContent() string
func (*GetReviewReply) GetExpressScore ¶
func (x *GetReviewReply) GetExpressScore() int32
func (*GetReviewReply) GetOrderID ¶
func (x *GetReviewReply) GetOrderID() int64
func (*GetReviewReply) GetPicInfo ¶
func (x *GetReviewReply) GetPicInfo() string
func (*GetReviewReply) GetReviewID ¶
func (x *GetReviewReply) GetReviewID() int64
func (*GetReviewReply) GetScore ¶
func (x *GetReviewReply) GetScore() int32
func (*GetReviewReply) GetServiceScore ¶
func (x *GetReviewReply) GetServiceScore() int32
func (*GetReviewReply) GetStoreID ¶
func (x *GetReviewReply) GetStoreID() int64
func (*GetReviewReply) GetUserID ¶
func (x *GetReviewReply) GetUserID() int64
func (*GetReviewReply) GetVideoInfo ¶
func (x *GetReviewReply) GetVideoInfo() string
func (*GetReviewReply) ProtoMessage ¶
func (*GetReviewReply) ProtoMessage()
func (*GetReviewReply) ProtoReflect ¶
func (x *GetReviewReply) ProtoReflect() protoreflect.Message
func (*GetReviewReply) Reset ¶
func (x *GetReviewReply) Reset()
func (*GetReviewReply) String ¶
func (x *GetReviewReply) String() string
func (*GetReviewReply) Validate ¶
func (m *GetReviewReply) Validate() error
Validate checks the field values on GetReviewReply 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 (*GetReviewReply) ValidateAll ¶
func (m *GetReviewReply) ValidateAll() error
ValidateAll checks the field values on GetReviewReply 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 GetReviewReplyMultiError, or nil if none found.
type GetReviewReplyMultiError ¶
type GetReviewReplyMultiError []error
GetReviewReplyMultiError is an error wrapping multiple validation errors returned by GetReviewReply.ValidateAll() if the designated constraints aren't met.
func (GetReviewReplyMultiError) AllErrors ¶
func (m GetReviewReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetReviewReplyMultiError) Error ¶
func (m GetReviewReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetReviewReplyValidationError ¶
type GetReviewReplyValidationError struct {
// contains filtered or unexported fields
}
GetReviewReplyValidationError is the validation error returned by GetReviewReply.Validate if the designated constraints aren't met.
func (GetReviewReplyValidationError) Cause ¶
func (e GetReviewReplyValidationError) Cause() error
Cause function returns cause value.
func (GetReviewReplyValidationError) Error ¶
func (e GetReviewReplyValidationError) Error() string
Error satisfies the builtin error interface
func (GetReviewReplyValidationError) ErrorName ¶
func (e GetReviewReplyValidationError) ErrorName() string
ErrorName returns error name.
func (GetReviewReplyValidationError) Field ¶
func (e GetReviewReplyValidationError) Field() string
Field function returns field value.
func (GetReviewReplyValidationError) Key ¶
func (e GetReviewReplyValidationError) Key() bool
Key function returns key value.
func (GetReviewReplyValidationError) Reason ¶
func (e GetReviewReplyValidationError) Reason() string
Reason function returns reason value.
type GetReviewRequest ¶
type GetReviewRequest struct {
ReviewID int64 `protobuf:"varint,1,opt,name=reviewID,proto3" json:"reviewID,omitempty"`
// contains filtered or unexported fields
}
func (*GetReviewRequest) Descriptor
deprecated
func (*GetReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetReviewRequest.ProtoReflect.Descriptor instead.
func (*GetReviewRequest) GetReviewID ¶
func (x *GetReviewRequest) GetReviewID() int64
func (*GetReviewRequest) ProtoMessage ¶
func (*GetReviewRequest) ProtoMessage()
func (*GetReviewRequest) ProtoReflect ¶
func (x *GetReviewRequest) ProtoReflect() protoreflect.Message
func (*GetReviewRequest) Reset ¶
func (x *GetReviewRequest) Reset()
func (*GetReviewRequest) String ¶
func (x *GetReviewRequest) String() string
func (*GetReviewRequest) Validate ¶
func (m *GetReviewRequest) Validate() error
Validate checks the field values on GetReviewRequest 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 (*GetReviewRequest) ValidateAll ¶
func (m *GetReviewRequest) ValidateAll() error
ValidateAll checks the field values on GetReviewRequest 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 GetReviewRequestMultiError, or nil if none found.
type GetReviewRequestMultiError ¶
type GetReviewRequestMultiError []error
GetReviewRequestMultiError is an error wrapping multiple validation errors returned by GetReviewRequest.ValidateAll() if the designated constraints aren't met.
func (GetReviewRequestMultiError) AllErrors ¶
func (m GetReviewRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetReviewRequestMultiError) Error ¶
func (m GetReviewRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetReviewRequestValidationError ¶
type GetReviewRequestValidationError struct {
// contains filtered or unexported fields
}
GetReviewRequestValidationError is the validation error returned by GetReviewRequest.Validate if the designated constraints aren't met.
func (GetReviewRequestValidationError) Cause ¶
func (e GetReviewRequestValidationError) Cause() error
Cause function returns cause value.
func (GetReviewRequestValidationError) Error ¶
func (e GetReviewRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetReviewRequestValidationError) ErrorName ¶
func (e GetReviewRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetReviewRequestValidationError) Field ¶
func (e GetReviewRequestValidationError) Field() string
Field function returns field value.
func (GetReviewRequestValidationError) Key ¶
func (e GetReviewRequestValidationError) Key() bool
Key function returns key value.
func (GetReviewRequestValidationError) Reason ¶
func (e GetReviewRequestValidationError) Reason() string
Reason function returns reason value.
type ListReviewByStoreIDReply ¶
type ListReviewByStoreIDReply struct {
Reviews []*ReviewInfo `protobuf:"bytes,1,rep,name=reviews,proto3" json:"reviews,omitempty"`
// contains filtered or unexported fields
}
func (*ListReviewByStoreIDReply) Descriptor
deprecated
func (*ListReviewByStoreIDReply) Descriptor() ([]byte, []int)
Deprecated: Use ListReviewByStoreIDReply.ProtoReflect.Descriptor instead.
func (*ListReviewByStoreIDReply) GetReviews ¶
func (x *ListReviewByStoreIDReply) GetReviews() []*ReviewInfo
func (*ListReviewByStoreIDReply) ProtoMessage ¶
func (*ListReviewByStoreIDReply) ProtoMessage()
func (*ListReviewByStoreIDReply) ProtoReflect ¶
func (x *ListReviewByStoreIDReply) ProtoReflect() protoreflect.Message
func (*ListReviewByStoreIDReply) Reset ¶
func (x *ListReviewByStoreIDReply) Reset()
func (*ListReviewByStoreIDReply) String ¶
func (x *ListReviewByStoreIDReply) String() string
func (*ListReviewByStoreIDReply) Validate ¶
func (m *ListReviewByStoreIDReply) Validate() error
Validate checks the field values on ListReviewByStoreIDReply 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 (*ListReviewByStoreIDReply) ValidateAll ¶
func (m *ListReviewByStoreIDReply) ValidateAll() error
ValidateAll checks the field values on ListReviewByStoreIDReply 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 ListReviewByStoreIDReplyMultiError, or nil if none found.
type ListReviewByStoreIDReplyMultiError ¶
type ListReviewByStoreIDReplyMultiError []error
ListReviewByStoreIDReplyMultiError is an error wrapping multiple validation errors returned by ListReviewByStoreIDReply.ValidateAll() if the designated constraints aren't met.
func (ListReviewByStoreIDReplyMultiError) AllErrors ¶
func (m ListReviewByStoreIDReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListReviewByStoreIDReplyMultiError) Error ¶
func (m ListReviewByStoreIDReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListReviewByStoreIDReplyValidationError ¶
type ListReviewByStoreIDReplyValidationError struct {
// contains filtered or unexported fields
}
ListReviewByStoreIDReplyValidationError is the validation error returned by ListReviewByStoreIDReply.Validate if the designated constraints aren't met.
func (ListReviewByStoreIDReplyValidationError) Cause ¶
func (e ListReviewByStoreIDReplyValidationError) Cause() error
Cause function returns cause value.
func (ListReviewByStoreIDReplyValidationError) Error ¶
func (e ListReviewByStoreIDReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ListReviewByStoreIDReplyValidationError) ErrorName ¶
func (e ListReviewByStoreIDReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ListReviewByStoreIDReplyValidationError) Field ¶
func (e ListReviewByStoreIDReplyValidationError) Field() string
Field function returns field value.
func (ListReviewByStoreIDReplyValidationError) Key ¶
func (e ListReviewByStoreIDReplyValidationError) Key() bool
Key function returns key value.
func (ListReviewByStoreIDReplyValidationError) Reason ¶
func (e ListReviewByStoreIDReplyValidationError) Reason() string
Reason function returns reason value.
type ListReviewByStoreIDRequest ¶
type ListReviewByStoreIDRequest struct {
StoreID int64 `protobuf:"varint,1,opt,name=storeID,proto3" json:"storeID,omitempty"`
Page int32 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"`
Size int32 `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
// contains filtered or unexported fields
}
func (*ListReviewByStoreIDRequest) Descriptor
deprecated
func (*ListReviewByStoreIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListReviewByStoreIDRequest.ProtoReflect.Descriptor instead.
func (*ListReviewByStoreIDRequest) GetPage ¶
func (x *ListReviewByStoreIDRequest) GetPage() int32
func (*ListReviewByStoreIDRequest) GetSize ¶
func (x *ListReviewByStoreIDRequest) GetSize() int32
func (*ListReviewByStoreIDRequest) GetStoreID ¶
func (x *ListReviewByStoreIDRequest) GetStoreID() int64
func (*ListReviewByStoreIDRequest) ProtoMessage ¶
func (*ListReviewByStoreIDRequest) ProtoMessage()
func (*ListReviewByStoreIDRequest) ProtoReflect ¶
func (x *ListReviewByStoreIDRequest) ProtoReflect() protoreflect.Message
func (*ListReviewByStoreIDRequest) Reset ¶
func (x *ListReviewByStoreIDRequest) Reset()
func (*ListReviewByStoreIDRequest) String ¶
func (x *ListReviewByStoreIDRequest) String() string
func (*ListReviewByStoreIDRequest) Validate ¶
func (m *ListReviewByStoreIDRequest) Validate() error
Validate checks the field values on ListReviewByStoreIDRequest 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 (*ListReviewByStoreIDRequest) ValidateAll ¶
func (m *ListReviewByStoreIDRequest) ValidateAll() error
ValidateAll checks the field values on ListReviewByStoreIDRequest 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 ListReviewByStoreIDRequestMultiError, or nil if none found.
type ListReviewByStoreIDRequestMultiError ¶
type ListReviewByStoreIDRequestMultiError []error
ListReviewByStoreIDRequestMultiError is an error wrapping multiple validation errors returned by ListReviewByStoreIDRequest.ValidateAll() if the designated constraints aren't met.
func (ListReviewByStoreIDRequestMultiError) AllErrors ¶
func (m ListReviewByStoreIDRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListReviewByStoreIDRequestMultiError) Error ¶
func (m ListReviewByStoreIDRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListReviewByStoreIDRequestValidationError ¶
type ListReviewByStoreIDRequestValidationError struct {
// contains filtered or unexported fields
}
ListReviewByStoreIDRequestValidationError is the validation error returned by ListReviewByStoreIDRequest.Validate if the designated constraints aren't met.
func (ListReviewByStoreIDRequestValidationError) Cause ¶
func (e ListReviewByStoreIDRequestValidationError) Cause() error
Cause function returns cause value.
func (ListReviewByStoreIDRequestValidationError) Error ¶
func (e ListReviewByStoreIDRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListReviewByStoreIDRequestValidationError) ErrorName ¶
func (e ListReviewByStoreIDRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListReviewByStoreIDRequestValidationError) Field ¶
func (e ListReviewByStoreIDRequestValidationError) Field() string
Field function returns field value.
func (ListReviewByStoreIDRequestValidationError) Key ¶
func (e ListReviewByStoreIDRequestValidationError) Key() bool
Key function returns key value.
func (ListReviewByStoreIDRequestValidationError) Reason ¶
func (e ListReviewByStoreIDRequestValidationError) Reason() string
Reason function returns reason value.
type OperateAppealReply ¶
type OperateAppealReply struct {
AppealID int64 `protobuf:"varint,1,opt,name=appealID,proto3" json:"appealID,omitempty"`
// contains filtered or unexported fields
}
func (*OperateAppealReply) Descriptor
deprecated
func (*OperateAppealReply) Descriptor() ([]byte, []int)
Deprecated: Use OperateAppealReply.ProtoReflect.Descriptor instead.
func (*OperateAppealReply) GetAppealID ¶
func (x *OperateAppealReply) GetAppealID() int64
func (*OperateAppealReply) ProtoMessage ¶
func (*OperateAppealReply) ProtoMessage()
func (*OperateAppealReply) ProtoReflect ¶
func (x *OperateAppealReply) ProtoReflect() protoreflect.Message
func (*OperateAppealReply) Reset ¶
func (x *OperateAppealReply) Reset()
func (*OperateAppealReply) String ¶
func (x *OperateAppealReply) String() string
func (*OperateAppealReply) Validate ¶
func (m *OperateAppealReply) Validate() error
Validate checks the field values on OperateAppealReply 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 (*OperateAppealReply) ValidateAll ¶
func (m *OperateAppealReply) ValidateAll() error
ValidateAll checks the field values on OperateAppealReply 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 OperateAppealReplyMultiError, or nil if none found.
type OperateAppealReplyMultiError ¶
type OperateAppealReplyMultiError []error
OperateAppealReplyMultiError is an error wrapping multiple validation errors returned by OperateAppealReply.ValidateAll() if the designated constraints aren't met.
func (OperateAppealReplyMultiError) AllErrors ¶
func (m OperateAppealReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OperateAppealReplyMultiError) Error ¶
func (m OperateAppealReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OperateAppealReplyValidationError ¶
type OperateAppealReplyValidationError struct {
// contains filtered or unexported fields
}
OperateAppealReplyValidationError is the validation error returned by OperateAppealReply.Validate if the designated constraints aren't met.
func (OperateAppealReplyValidationError) Cause ¶
func (e OperateAppealReplyValidationError) Cause() error
Cause function returns cause value.
func (OperateAppealReplyValidationError) Error ¶
func (e OperateAppealReplyValidationError) Error() string
Error satisfies the builtin error interface
func (OperateAppealReplyValidationError) ErrorName ¶
func (e OperateAppealReplyValidationError) ErrorName() string
ErrorName returns error name.
func (OperateAppealReplyValidationError) Field ¶
func (e OperateAppealReplyValidationError) Field() string
Field function returns field value.
func (OperateAppealReplyValidationError) Key ¶
func (e OperateAppealReplyValidationError) Key() bool
Key function returns key value.
func (OperateAppealReplyValidationError) Reason ¶
func (e OperateAppealReplyValidationError) Reason() string
Reason function returns reason value.
type OperateAppealRequest ¶
type OperateAppealRequest struct {
AppealID int64 `protobuf:"varint,1,opt,name=appealID,proto3" json:"appealID,omitempty"`
StoreID int64 `protobuf:"varint,2,opt,name=storeID,proto3" json:"storeID,omitempty"`
ReviewID int64 `protobuf:"varint,3,opt,name=reviewID,proto3" json:"reviewID,omitempty"`
Status int32 `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
OpRemark string `protobuf:"bytes,5,opt,name=opRemark,proto3" json:"opRemark,omitempty"`
OpUser string `protobuf:"bytes,6,opt,name=opUser,proto3" json:"opUser,omitempty"`
// contains filtered or unexported fields
}
func (*OperateAppealRequest) Descriptor
deprecated
func (*OperateAppealRequest) Descriptor() ([]byte, []int)
Deprecated: Use OperateAppealRequest.ProtoReflect.Descriptor instead.
func (*OperateAppealRequest) GetAppealID ¶
func (x *OperateAppealRequest) GetAppealID() int64
func (*OperateAppealRequest) GetOpRemark ¶
func (x *OperateAppealRequest) GetOpRemark() string
func (*OperateAppealRequest) GetOpUser ¶
func (x *OperateAppealRequest) GetOpUser() string
func (*OperateAppealRequest) GetReviewID ¶
func (x *OperateAppealRequest) GetReviewID() int64
func (*OperateAppealRequest) GetStatus ¶
func (x *OperateAppealRequest) GetStatus() int32
func (*OperateAppealRequest) GetStoreID ¶
func (x *OperateAppealRequest) GetStoreID() int64
func (*OperateAppealRequest) ProtoMessage ¶
func (*OperateAppealRequest) ProtoMessage()
func (*OperateAppealRequest) ProtoReflect ¶
func (x *OperateAppealRequest) ProtoReflect() protoreflect.Message
func (*OperateAppealRequest) Reset ¶
func (x *OperateAppealRequest) Reset()
func (*OperateAppealRequest) String ¶
func (x *OperateAppealRequest) String() string
func (*OperateAppealRequest) Validate ¶
func (m *OperateAppealRequest) Validate() error
Validate checks the field values on OperateAppealRequest 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 (*OperateAppealRequest) ValidateAll ¶
func (m *OperateAppealRequest) ValidateAll() error
ValidateAll checks the field values on OperateAppealRequest 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 OperateAppealRequestMultiError, or nil if none found.
type OperateAppealRequestMultiError ¶
type OperateAppealRequestMultiError []error
OperateAppealRequestMultiError is an error wrapping multiple validation errors returned by OperateAppealRequest.ValidateAll() if the designated constraints aren't met.
func (OperateAppealRequestMultiError) AllErrors ¶
func (m OperateAppealRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OperateAppealRequestMultiError) Error ¶
func (m OperateAppealRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OperateAppealRequestValidationError ¶
type OperateAppealRequestValidationError struct {
// contains filtered or unexported fields
}
OperateAppealRequestValidationError is the validation error returned by OperateAppealRequest.Validate if the designated constraints aren't met.
func (OperateAppealRequestValidationError) Cause ¶
func (e OperateAppealRequestValidationError) Cause() error
Cause function returns cause value.
func (OperateAppealRequestValidationError) Error ¶
func (e OperateAppealRequestValidationError) Error() string
Error satisfies the builtin error interface
func (OperateAppealRequestValidationError) ErrorName ¶
func (e OperateAppealRequestValidationError) ErrorName() string
ErrorName returns error name.
func (OperateAppealRequestValidationError) Field ¶
func (e OperateAppealRequestValidationError) Field() string
Field function returns field value.
func (OperateAppealRequestValidationError) Key ¶
func (e OperateAppealRequestValidationError) Key() bool
Key function returns key value.
func (OperateAppealRequestValidationError) Reason ¶
func (e OperateAppealRequestValidationError) Reason() string
Reason function returns reason value.
type ReplyReviewReply ¶
type ReplyReviewReply struct {
ReplyID int64 `protobuf:"varint,1,opt,name=replyID,proto3" json:"replyID,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyReviewReply) Descriptor
deprecated
func (*ReplyReviewReply) Descriptor() ([]byte, []int)
Deprecated: Use ReplyReviewReply.ProtoReflect.Descriptor instead.
func (*ReplyReviewReply) GetReplyID ¶
func (x *ReplyReviewReply) GetReplyID() int64
func (*ReplyReviewReply) ProtoMessage ¶
func (*ReplyReviewReply) ProtoMessage()
func (*ReplyReviewReply) ProtoReflect ¶
func (x *ReplyReviewReply) ProtoReflect() protoreflect.Message
func (*ReplyReviewReply) Reset ¶
func (x *ReplyReviewReply) Reset()
func (*ReplyReviewReply) String ¶
func (x *ReplyReviewReply) String() string
func (*ReplyReviewReply) Validate ¶
func (m *ReplyReviewReply) Validate() error
Validate checks the field values on ReplyReviewReply 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 (*ReplyReviewReply) ValidateAll ¶
func (m *ReplyReviewReply) ValidateAll() error
ValidateAll checks the field values on ReplyReviewReply 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 ReplyReviewReplyMultiError, or nil if none found.
type ReplyReviewReplyMultiError ¶
type ReplyReviewReplyMultiError []error
ReplyReviewReplyMultiError is an error wrapping multiple validation errors returned by ReplyReviewReply.ValidateAll() if the designated constraints aren't met.
func (ReplyReviewReplyMultiError) AllErrors ¶
func (m ReplyReviewReplyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReplyReviewReplyMultiError) Error ¶
func (m ReplyReviewReplyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReplyReviewReplyValidationError ¶
type ReplyReviewReplyValidationError struct {
// contains filtered or unexported fields
}
ReplyReviewReplyValidationError is the validation error returned by ReplyReviewReply.Validate if the designated constraints aren't met.
func (ReplyReviewReplyValidationError) Cause ¶
func (e ReplyReviewReplyValidationError) Cause() error
Cause function returns cause value.
func (ReplyReviewReplyValidationError) Error ¶
func (e ReplyReviewReplyValidationError) Error() string
Error satisfies the builtin error interface
func (ReplyReviewReplyValidationError) ErrorName ¶
func (e ReplyReviewReplyValidationError) ErrorName() string
ErrorName returns error name.
func (ReplyReviewReplyValidationError) Field ¶
func (e ReplyReviewReplyValidationError) Field() string
Field function returns field value.
func (ReplyReviewReplyValidationError) Key ¶
func (e ReplyReviewReplyValidationError) Key() bool
Key function returns key value.
func (ReplyReviewReplyValidationError) Reason ¶
func (e ReplyReviewReplyValidationError) Reason() string
Reason function returns reason value.
type ReplyReviewRequest ¶
type ReplyReviewRequest struct {
ReviewID int64 `protobuf:"varint,1,opt,name=reviewID,proto3" json:"reviewID,omitempty"`
StoreID int64 `protobuf:"varint,2,opt,name=storeID,proto3" json:"storeID,omitempty"`
Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"`
PicInfo string `protobuf:"bytes,4,opt,name=picInfo,proto3" json:"picInfo,omitempty"`
VideoInfo string `protobuf:"bytes,5,opt,name=videoInfo,proto3" json:"videoInfo,omitempty"`
// contains filtered or unexported fields
}
func (*ReplyReviewRequest) Descriptor
deprecated
func (*ReplyReviewRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReplyReviewRequest.ProtoReflect.Descriptor instead.
func (*ReplyReviewRequest) GetContent ¶
func (x *ReplyReviewRequest) GetContent() string
func (*ReplyReviewRequest) GetPicInfo ¶
func (x *ReplyReviewRequest) GetPicInfo() string
func (*ReplyReviewRequest) GetReviewID ¶
func (x *ReplyReviewRequest) GetReviewID() int64
func (*ReplyReviewRequest) GetStoreID ¶
func (x *ReplyReviewRequest) GetStoreID() int64
func (*ReplyReviewRequest) GetVideoInfo ¶
func (x *ReplyReviewRequest) GetVideoInfo() string
func (*ReplyReviewRequest) ProtoMessage ¶
func (*ReplyReviewRequest) ProtoMessage()
func (*ReplyReviewRequest) ProtoReflect ¶
func (x *ReplyReviewRequest) ProtoReflect() protoreflect.Message
func (*ReplyReviewRequest) Reset ¶
func (x *ReplyReviewRequest) Reset()
func (*ReplyReviewRequest) String ¶
func (x *ReplyReviewRequest) String() string
func (*ReplyReviewRequest) Validate ¶
func (m *ReplyReviewRequest) Validate() error
Validate checks the field values on ReplyReviewRequest 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 (*ReplyReviewRequest) ValidateAll ¶
func (m *ReplyReviewRequest) ValidateAll() error
ValidateAll checks the field values on ReplyReviewRequest 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 ReplyReviewRequestMultiError, or nil if none found.
type ReplyReviewRequestMultiError ¶
type ReplyReviewRequestMultiError []error
ReplyReviewRequestMultiError is an error wrapping multiple validation errors returned by ReplyReviewRequest.ValidateAll() if the designated constraints aren't met.
func (ReplyReviewRequestMultiError) AllErrors ¶
func (m ReplyReviewRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReplyReviewRequestMultiError) Error ¶
func (m ReplyReviewRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReplyReviewRequestValidationError ¶
type ReplyReviewRequestValidationError struct {
// contains filtered or unexported fields
}
ReplyReviewRequestValidationError is the validation error returned by ReplyReviewRequest.Validate if the designated constraints aren't met.
func (ReplyReviewRequestValidationError) Cause ¶
func (e ReplyReviewRequestValidationError) Cause() error
Cause function returns cause value.
func (ReplyReviewRequestValidationError) Error ¶
func (e ReplyReviewRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ReplyReviewRequestValidationError) ErrorName ¶
func (e ReplyReviewRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ReplyReviewRequestValidationError) Field ¶
func (e ReplyReviewRequestValidationError) Field() string
Field function returns field value.
func (ReplyReviewRequestValidationError) Key ¶
func (e ReplyReviewRequestValidationError) Key() bool
Key function returns key value.
func (ReplyReviewRequestValidationError) Reason ¶
func (e ReplyReviewRequestValidationError) Reason() string
Reason function returns reason value.
type ReviewClient ¶
type ReviewClient interface {
// C端
CreateReview(ctx context.Context, in *CreateReviewRequest, opts ...grpc.CallOption) (*CreateReviewReply, error)
GetReviewByRID(ctx context.Context, in *GetReviewRequest, opts ...grpc.CallOption) (*GetReviewReply, error)
ListReviewByStoreID(ctx context.Context, in *ListReviewByStoreIDRequest, opts ...grpc.CallOption) (*ListReviewByStoreIDReply, error)
// B端
ReplyReview(ctx context.Context, in *ReplyReviewRequest, opts ...grpc.CallOption) (*ReplyReviewReply, error)
CreateAppeal(ctx context.Context, in *CreateAppealRequest, opts ...grpc.CallOption) (*CreateAppealReply, error)
// o端
OperateAppeal(ctx context.Context, in *OperateAppealRequest, opts ...grpc.CallOption) (*OperateAppealReply, error)
}
ReviewClient is the client API for Review 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 NewReviewClient ¶
func NewReviewClient(cc grpc.ClientConnInterface) ReviewClient
type ReviewHTTPClient ¶
type ReviewHTTPClient interface {
CreateReview(ctx context.Context, req *CreateReviewRequest, opts ...http.CallOption) (rsp *CreateReviewReply, err error)
GetReviewByRID(ctx context.Context, req *GetReviewRequest, opts ...http.CallOption) (rsp *GetReviewReply, err error)
ReplyReview(ctx context.Context, req *ReplyReviewRequest, opts ...http.CallOption) (rsp *ReplyReviewReply, err error)
}
func NewReviewHTTPClient ¶
func NewReviewHTTPClient(client *http.Client) ReviewHTTPClient
type ReviewHTTPClientImpl ¶
type ReviewHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*ReviewHTTPClientImpl) CreateReview ¶
func (c *ReviewHTTPClientImpl) CreateReview(ctx context.Context, in *CreateReviewRequest, opts ...http.CallOption) (*CreateReviewReply, error)
func (*ReviewHTTPClientImpl) GetReviewByRID ¶
func (c *ReviewHTTPClientImpl) GetReviewByRID(ctx context.Context, in *GetReviewRequest, opts ...http.CallOption) (*GetReviewReply, error)
func (*ReviewHTTPClientImpl) ReplyReview ¶
func (c *ReviewHTTPClientImpl) ReplyReview(ctx context.Context, in *ReplyReviewRequest, opts ...http.CallOption) (*ReplyReviewReply, error)
type ReviewHTTPServer ¶
type ReviewHTTPServer interface {
// CreateReview C端
CreateReview(context.Context, *CreateReviewRequest) (*CreateReviewReply, error)
GetReviewByRID(context.Context, *GetReviewRequest) (*GetReviewReply, error)
// ReplyReview B端
ReplyReview(context.Context, *ReplyReviewRequest) (*ReplyReviewReply, error)
}
type ReviewInfo ¶
type ReviewInfo struct {
ReviewID int64 `protobuf:"varint,1,opt,name=reviewID,proto3" json:"reviewID,omitempty"`
UserID int64 `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"`
OrderID int64 `protobuf:"varint,3,opt,name=orderID,proto3" json:"orderID,omitempty"`
StoreID int64 `protobuf:"varint,4,opt,name=storeID,proto3" json:"storeID,omitempty"`
Score int32 `protobuf:"varint,5,opt,name=score,proto3" json:"score,omitempty"`
ServiceScore int32 `protobuf:"varint,6,opt,name=serviceScore,proto3" json:"serviceScore,omitempty"`
ExpressScore int32 `protobuf:"varint,7,opt,name=expressScore,proto3" json:"expressScore,omitempty"`
Content string `protobuf:"bytes,8,opt,name=content,proto3" json:"content,omitempty"`
PicInfo string `protobuf:"bytes,9,opt,name=picInfo,proto3" json:"picInfo,omitempty"`
VideoInfo string `protobuf:"bytes,10,opt,name=videoInfo,proto3" json:"videoInfo,omitempty"`
Anonymous bool `protobuf:"varint,11,opt,name=anonymous,proto3" json:"anonymous,omitempty"`
// contains filtered or unexported fields
}
func (*ReviewInfo) Descriptor
deprecated
func (*ReviewInfo) Descriptor() ([]byte, []int)
Deprecated: Use ReviewInfo.ProtoReflect.Descriptor instead.
func (*ReviewInfo) GetAnonymous ¶
func (x *ReviewInfo) GetAnonymous() bool
func (*ReviewInfo) GetContent ¶
func (x *ReviewInfo) GetContent() string
func (*ReviewInfo) GetExpressScore ¶
func (x *ReviewInfo) GetExpressScore() int32
func (*ReviewInfo) GetOrderID ¶
func (x *ReviewInfo) GetOrderID() int64
func (*ReviewInfo) GetPicInfo ¶
func (x *ReviewInfo) GetPicInfo() string
func (*ReviewInfo) GetReviewID ¶
func (x *ReviewInfo) GetReviewID() int64
func (*ReviewInfo) GetScore ¶
func (x *ReviewInfo) GetScore() int32
func (*ReviewInfo) GetServiceScore ¶
func (x *ReviewInfo) GetServiceScore() int32
func (*ReviewInfo) GetStoreID ¶
func (x *ReviewInfo) GetStoreID() int64
func (*ReviewInfo) GetUserID ¶
func (x *ReviewInfo) GetUserID() int64
func (*ReviewInfo) GetVideoInfo ¶
func (x *ReviewInfo) GetVideoInfo() string
func (*ReviewInfo) ProtoMessage ¶
func (*ReviewInfo) ProtoMessage()
func (*ReviewInfo) ProtoReflect ¶
func (x *ReviewInfo) ProtoReflect() protoreflect.Message
func (*ReviewInfo) Reset ¶
func (x *ReviewInfo) Reset()
func (*ReviewInfo) String ¶
func (x *ReviewInfo) String() string
func (*ReviewInfo) Validate ¶
func (m *ReviewInfo) Validate() error
Validate checks the field values on ReviewInfo 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 (*ReviewInfo) ValidateAll ¶
func (m *ReviewInfo) ValidateAll() error
ValidateAll checks the field values on ReviewInfo 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 ReviewInfoMultiError, or nil if none found.
type ReviewInfoMultiError ¶
type ReviewInfoMultiError []error
ReviewInfoMultiError is an error wrapping multiple validation errors returned by ReviewInfo.ValidateAll() if the designated constraints aren't met.
func (ReviewInfoMultiError) AllErrors ¶
func (m ReviewInfoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ReviewInfoMultiError) Error ¶
func (m ReviewInfoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ReviewInfoValidationError ¶
type ReviewInfoValidationError struct {
// contains filtered or unexported fields
}
ReviewInfoValidationError is the validation error returned by ReviewInfo.Validate if the designated constraints aren't met.
func (ReviewInfoValidationError) Cause ¶
func (e ReviewInfoValidationError) Cause() error
Cause function returns cause value.
func (ReviewInfoValidationError) Error ¶
func (e ReviewInfoValidationError) Error() string
Error satisfies the builtin error interface
func (ReviewInfoValidationError) ErrorName ¶
func (e ReviewInfoValidationError) ErrorName() string
ErrorName returns error name.
func (ReviewInfoValidationError) Field ¶
func (e ReviewInfoValidationError) Field() string
Field function returns field value.
func (ReviewInfoValidationError) Key ¶
func (e ReviewInfoValidationError) Key() bool
Key function returns key value.
func (ReviewInfoValidationError) Reason ¶
func (e ReviewInfoValidationError) Reason() string
Reason function returns reason value.
type ReviewServer ¶
type ReviewServer interface {
// C端
CreateReview(context.Context, *CreateReviewRequest) (*CreateReviewReply, error)
GetReviewByRID(context.Context, *GetReviewRequest) (*GetReviewReply, error)
ListReviewByStoreID(context.Context, *ListReviewByStoreIDRequest) (*ListReviewByStoreIDReply, error)
// B端
ReplyReview(context.Context, *ReplyReviewRequest) (*ReplyReviewReply, error)
CreateAppeal(context.Context, *CreateAppealRequest) (*CreateAppealReply, error)
// o端
OperateAppeal(context.Context, *OperateAppealRequest) (*OperateAppealReply, error)
// contains filtered or unexported methods
}
ReviewServer is the server API for Review service. All implementations must embed UnimplementedReviewServer for forward compatibility.
type UnimplementedReviewServer ¶
type UnimplementedReviewServer struct{}
UnimplementedReviewServer 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 (UnimplementedReviewServer) CreateAppeal ¶
func (UnimplementedReviewServer) CreateAppeal(context.Context, *CreateAppealRequest) (*CreateAppealReply, error)
func (UnimplementedReviewServer) CreateReview ¶
func (UnimplementedReviewServer) CreateReview(context.Context, *CreateReviewRequest) (*CreateReviewReply, error)
func (UnimplementedReviewServer) GetReviewByRID ¶
func (UnimplementedReviewServer) GetReviewByRID(context.Context, *GetReviewRequest) (*GetReviewReply, error)
func (UnimplementedReviewServer) ListReviewByStoreID ¶
func (UnimplementedReviewServer) ListReviewByStoreID(context.Context, *ListReviewByStoreIDRequest) (*ListReviewByStoreIDReply, error)
func (UnimplementedReviewServer) OperateAppeal ¶
func (UnimplementedReviewServer) OperateAppeal(context.Context, *OperateAppealRequest) (*OperateAppealReply, error)
func (UnimplementedReviewServer) ReplyReview ¶
func (UnimplementedReviewServer) ReplyReview(context.Context, *ReplyReviewRequest) (*ReplyReviewReply, error)
type UnsafeReviewServer ¶
type UnsafeReviewServer interface {
// contains filtered or unexported methods
}
UnsafeReviewServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReviewServer will result in compilation errors.