v1

package
v0.0.0-...-8e7c8ee Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
const OperationReviewCreateReview = "/api.review.v1.Review/CreateReview"
View Source
const OperationReviewGetReviewByRID = "/api.review.v1.Review/GetReviewByRID"
View Source
const OperationReviewReplyReview = "/api.review.v1.Review/ReplyReview"

Variables

View Source
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.

View Source
var File_api_review_v1_review_proto protoreflect.FileDescriptor
View Source
var File_review_v1_review_errors_proto protoreflect.FileDescriptor
View Source
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 ErrorIvalidParam(format string, args ...interface{}) *errors.Error

为某个枚举单独设置错误码

func ErrorOrderExsisted

func ErrorOrderExsisted(format string, args ...interface{}) *errors.Error

func ErrorOrderReviewed

func ErrorOrderReviewed(format string, args ...interface{}) *errors.Error

func IsIvalidParam

func IsIvalidParam(err error) bool

为某个枚举单独设置错误码

func IsOrderExsisted

func IsOrderExsisted(err error) bool

func IsOrderReviewed

func IsOrderReviewed(err error) bool

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

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

Cause function returns cause value.

func (CreateAppealReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateAppealReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateAppealReplyValidationError) Field

Field function returns field value.

func (CreateAppealReplyValidationError) Key

Key function returns key value.

func (CreateAppealReplyValidationError) Reason

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

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

Cause function returns cause value.

func (CreateAppealRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateAppealRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateAppealRequestValidationError) Field

Field function returns field value.

func (CreateAppealRequestValidationError) Key

Key function returns key value.

func (CreateAppealRequestValidationError) Reason

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

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

Cause function returns cause value.

func (CreateReviewReplyValidationError) Error

Error satisfies the builtin error interface

func (CreateReviewReplyValidationError) ErrorName

ErrorName returns error name.

func (CreateReviewReplyValidationError) Field

Field function returns field value.

func (CreateReviewReplyValidationError) Key

Key function returns key value.

func (CreateReviewReplyValidationError) Reason

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

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

Cause function returns cause value.

func (CreateReviewRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateReviewRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateReviewRequestValidationError) Field

Field function returns field value.

func (CreateReviewRequestValidationError) Key

Key function returns key value.

func (CreateReviewRequestValidationError) Reason

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) 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

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

Cause function returns cause value.

func (GetReviewReplyValidationError) Error

Error satisfies the builtin error interface

func (GetReviewReplyValidationError) ErrorName

func (e GetReviewReplyValidationError) ErrorName() string

ErrorName returns error name.

func (GetReviewReplyValidationError) Field

Field function returns field value.

func (GetReviewReplyValidationError) Key

Key function returns key value.

func (GetReviewReplyValidationError) Reason

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

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

Cause function returns cause value.

func (GetReviewRequestValidationError) Error

Error satisfies the builtin error interface

func (GetReviewRequestValidationError) ErrorName

ErrorName returns error name.

func (GetReviewRequestValidationError) Field

Field function returns field value.

func (GetReviewRequestValidationError) Key

Key function returns key value.

func (GetReviewRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ListReviewByStoreIDReplyValidationError) Error

Error satisfies the builtin error interface

func (ListReviewByStoreIDReplyValidationError) ErrorName

ErrorName returns error name.

func (ListReviewByStoreIDReplyValidationError) Field

Field function returns field value.

func (ListReviewByStoreIDReplyValidationError) Key

Key function returns key value.

func (ListReviewByStoreIDReplyValidationError) Reason

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 (*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

AllErrors returns a list of validation violation errors.

func (ListReviewByStoreIDRequestMultiError) Error

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

Cause function returns cause value.

func (ListReviewByStoreIDRequestValidationError) Error

Error satisfies the builtin error interface

func (ListReviewByStoreIDRequestValidationError) ErrorName

ErrorName returns error name.

func (ListReviewByStoreIDRequestValidationError) Field

Field function returns field value.

func (ListReviewByStoreIDRequestValidationError) Key

Key function returns key value.

func (ListReviewByStoreIDRequestValidationError) Reason

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

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

Cause function returns cause value.

func (OperateAppealReplyValidationError) Error

Error satisfies the builtin error interface

func (OperateAppealReplyValidationError) ErrorName

ErrorName returns error name.

func (OperateAppealReplyValidationError) Field

Field function returns field value.

func (OperateAppealReplyValidationError) Key

Key function returns key value.

func (OperateAppealReplyValidationError) Reason

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

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

Cause function returns cause value.

func (OperateAppealRequestValidationError) Error

Error satisfies the builtin error interface

func (OperateAppealRequestValidationError) ErrorName

ErrorName returns error name.

func (OperateAppealRequestValidationError) Field

Field function returns field value.

func (OperateAppealRequestValidationError) Key

Key function returns key value.

func (OperateAppealRequestValidationError) Reason

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

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

Cause function returns cause value.

func (ReplyReviewReplyValidationError) Error

Error satisfies the builtin error interface

func (ReplyReviewReplyValidationError) ErrorName

ErrorName returns error name.

func (ReplyReviewReplyValidationError) Field

Field function returns field value.

func (ReplyReviewReplyValidationError) Key

Key function returns key value.

func (ReplyReviewReplyValidationError) Reason

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

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

Cause function returns cause value.

func (ReplyReviewRequestValidationError) Error

Error satisfies the builtin error interface

func (ReplyReviewRequestValidationError) ErrorName

ErrorName returns error name.

func (ReplyReviewRequestValidationError) Field

Field function returns field value.

func (ReplyReviewRequestValidationError) Key

Key function returns key value.

func (ReplyReviewRequestValidationError) Reason

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 (*ReviewHTTPClientImpl) GetReviewByRID

func (c *ReviewHTTPClientImpl) GetReviewByRID(ctx context.Context, in *GetReviewRequest, opts ...http.CallOption) (*GetReviewReply, error)

func (*ReviewHTTPClientImpl) ReplyReview

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

Error satisfies the builtin error interface

func (ReviewInfoValidationError) ErrorName

func (e ReviewInfoValidationError) ErrorName() string

ErrorName returns error name.

func (ReviewInfoValidationError) Field

Field function returns field value.

func (ReviewInfoValidationError) Key

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) CreateReview

func (UnimplementedReviewServer) GetReviewByRID

func (UnimplementedReviewServer) OperateAppeal

func (UnimplementedReviewServer) ReplyReview

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.

Jump to

Keyboard shortcuts

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