Documentation ¶
Overview ¶
Package comments_business is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterCommentsBusinessServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCommentsBusinessServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterCommentsBusinessServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCommentsBusinessServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, ...) error
- func RegisterCommentsBusinessServiceServer(s *grpc.Server, srv CommentsBusinessServiceServer)
- type CommentsBusinessServiceClient
- type CommentsBusinessServiceServer
- type CommentsOrderRequest
- func (*CommentsOrderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommentsOrderRequest) GetAnonymity() bool
- func (x *CommentsOrderRequest) GetLogisticsInfo() *LogisticsCommentsInfo
- func (x *CommentsOrderRequest) GetOrderInfo() *OrderCommentsInfo
- func (x *CommentsOrderRequest) GetUid() int64
- func (*CommentsOrderRequest) ProtoMessage()
- func (x *CommentsOrderRequest) ProtoReflect() protoreflect.Message
- func (x *CommentsOrderRequest) Reset()
- func (x *CommentsOrderRequest) String() string
- type CommentsOrderResponse
- func (*CommentsOrderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommentsOrderResponse) GetCommon() *CommonResponse
- func (*CommentsOrderResponse) ProtoMessage()
- func (x *CommentsOrderResponse) ProtoReflect() protoreflect.Message
- func (x *CommentsOrderResponse) Reset()
- func (x *CommentsOrderResponse) String() string
- type CommentsTags
- func (*CommentsTags) Descriptor() ([]byte, []int)deprecated
- func (x *CommentsTags) GetClassificationMajor() string
- func (x *CommentsTags) GetClassificationMedium() string
- func (x *CommentsTags) GetClassificationMinor() string
- func (x *CommentsTags) GetContent() string
- func (x *CommentsTags) GetState() bool
- func (x *CommentsTags) GetTagCode() string
- func (*CommentsTags) ProtoMessage()
- func (x *CommentsTags) ProtoReflect() protoreflect.Message
- func (x *CommentsTags) Reset()
- func (x *CommentsTags) String() string
- type CommonResponse
- func (*CommonResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommonResponse) GetCode() RetCode
- func (x *CommonResponse) GetMsg() string
- func (*CommonResponse) ProtoMessage()
- func (x *CommonResponse) ProtoReflect() protoreflect.Message
- func (x *CommonResponse) Reset()
- func (x *CommonResponse) String() string
- type FiltrateTimeMeta
- func (*FiltrateTimeMeta) Descriptor() ([]byte, []int)deprecated
- func (x *FiltrateTimeMeta) GetEndTime() string
- func (x *FiltrateTimeMeta) GetStartTime() string
- func (*FiltrateTimeMeta) ProtoMessage()
- func (x *FiltrateTimeMeta) ProtoReflect() protoreflect.Message
- func (x *FiltrateTimeMeta) Reset()
- func (x *FiltrateTimeMeta) String() string
- type FindCommentsTagRequest
- func (*FindCommentsTagRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindCommentsTagRequest) GetClassificationMajor() string
- func (x *FindCommentsTagRequest) GetClassificationMedium() string
- func (x *FindCommentsTagRequest) GetTagCode() string
- func (*FindCommentsTagRequest) ProtoMessage()
- func (x *FindCommentsTagRequest) ProtoReflect() protoreflect.Message
- func (x *FindCommentsTagRequest) Reset()
- func (x *FindCommentsTagRequest) String() string
- type FindCommentsTagResponse
- func (*FindCommentsTagResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindCommentsTagResponse) GetCommon() *CommonResponse
- func (x *FindCommentsTagResponse) GetTags() []*CommentsTags
- func (*FindCommentsTagResponse) ProtoMessage()
- func (x *FindCommentsTagResponse) ProtoReflect() protoreflect.Message
- func (x *FindCommentsTagResponse) Reset()
- func (x *FindCommentsTagResponse) String() string
- type FindShopCommentsRequest
- func (*FindShopCommentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindShopCommentsRequest) GetShopId() int64
- func (x *FindShopCommentsRequest) GetUid() int64
- func (*FindShopCommentsRequest) ProtoMessage()
- func (x *FindShopCommentsRequest) ProtoReflect() protoreflect.Message
- func (x *FindShopCommentsRequest) Reset()
- func (x *FindShopCommentsRequest) String() string
- type FindShopCommentsResponse
- func (*FindShopCommentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindShopCommentsResponse) GetCommentsList() []*OrderCommentsInfo
- func (x *FindShopCommentsResponse) GetCommon() *CommonResponse
- func (*FindShopCommentsResponse) ProtoMessage()
- func (x *FindShopCommentsResponse) ProtoReflect() protoreflect.Message
- func (x *FindShopCommentsResponse) Reset()
- func (x *FindShopCommentsResponse) String() string
- type LogisticsCommentsInfo
- func (*LogisticsCommentsInfo) Descriptor() ([]byte, []int)deprecated
- func (x *LogisticsCommentsInfo) GetComment() string
- func (x *LogisticsCommentsInfo) GetDeliveryService() StarLevel
- func (x *LogisticsCommentsInfo) GetDeliveryServiceLabel() []string
- func (x *LogisticsCommentsInfo) GetDeliverySpeed() StarLevel
- func (x *LogisticsCommentsInfo) GetDeliverySpeedLabel() []string
- func (x *LogisticsCommentsInfo) GetFedexLabel() []string
- func (x *LogisticsCommentsInfo) GetFedexPack() StarLevel
- func (x *LogisticsCommentsInfo) GetLogisticsCode() string
- func (*LogisticsCommentsInfo) ProtoMessage()
- func (x *LogisticsCommentsInfo) ProtoReflect() protoreflect.Message
- func (x *LogisticsCommentsInfo) Reset()
- func (x *LogisticsCommentsInfo) String() string
- type ModifyCommentsTagsRequest
- func (*ModifyCommentsTagsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ModifyCommentsTagsRequest) GetOpType() OperationType
- func (x *ModifyCommentsTagsRequest) GetTag() *CommentsTags
- func (*ModifyCommentsTagsRequest) ProtoMessage()
- func (x *ModifyCommentsTagsRequest) ProtoReflect() protoreflect.Message
- func (x *ModifyCommentsTagsRequest) Reset()
- func (x *ModifyCommentsTagsRequest) String() string
- type ModifyCommentsTagsResponse
- func (*ModifyCommentsTagsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ModifyCommentsTagsResponse) GetCommon() *CommonResponse
- func (x *ModifyCommentsTagsResponse) GetTagCode() string
- func (*ModifyCommentsTagsResponse) ProtoMessage()
- func (x *ModifyCommentsTagsResponse) ProtoReflect() protoreflect.Message
- func (x *ModifyCommentsTagsResponse) Reset()
- func (x *ModifyCommentsTagsResponse) String() string
- type OperationMeta
- func (*OperationMeta) Descriptor() ([]byte, []int)deprecated
- func (x *OperationMeta) GetOpDevice() string
- func (x *OperationMeta) GetOpIp() string
- func (x *OperationMeta) GetOpPlatform() string
- func (x *OperationMeta) GetOpUid() int64
- func (*OperationMeta) ProtoMessage()
- func (x *OperationMeta) ProtoReflect() protoreflect.Message
- func (x *OperationMeta) Reset()
- func (x *OperationMeta) String() string
- type OperationType
- func (OperationType) Descriptor() protoreflect.EnumDescriptor
- func (x OperationType) Enum() *OperationType
- func (OperationType) EnumDescriptor() ([]byte, []int)deprecated
- func (x OperationType) Number() protoreflect.EnumNumber
- func (x OperationType) String() string
- func (OperationType) Type() protoreflect.EnumType
- type OrderCommentsInfo
- func (*OrderCommentsInfo) Descriptor() ([]byte, []int)deprecated
- func (x *OrderCommentsInfo) GetCommentId() string
- func (x *OrderCommentsInfo) GetContent() string
- func (x *OrderCommentsInfo) GetImgList() []string
- func (x *OrderCommentsInfo) GetOrderCode() string
- func (x *OrderCommentsInfo) GetShopId() int64
- func (x *OrderCommentsInfo) GetStarLevel() StarLevel
- func (*OrderCommentsInfo) ProtoMessage()
- func (x *OrderCommentsInfo) ProtoReflect() protoreflect.Message
- func (x *OrderCommentsInfo) Reset()
- func (x *OrderCommentsInfo) String() string
- type PageMeta
- type RetCode
- type StarLevel
- type UnimplementedCommentsBusinessServiceServer
- func (*UnimplementedCommentsBusinessServiceServer) CommentsOrder(context.Context, *CommentsOrderRequest) (*CommentsOrderResponse, error)
- func (*UnimplementedCommentsBusinessServiceServer) FindCommentsTags(context.Context, *FindCommentsTagRequest) (*FindCommentsTagResponse, error)
- func (*UnimplementedCommentsBusinessServiceServer) FindShopComments(context.Context, *FindShopCommentsRequest) (*FindShopCommentsResponse, error)
- func (*UnimplementedCommentsBusinessServiceServer) ModifyCommentsTags(context.Context, *ModifyCommentsTagsRequest) (*ModifyCommentsTagsResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( StarLevel_name = map[int32]string{ 0: "VERY_GOOD", 1: "GOOD", 2: "GENERAL", 3: "BAD", 4: "VERY_BAD", } StarLevel_value = map[string]int32{ "VERY_GOOD": 0, "GOOD": 1, "GENERAL": 2, "BAD": 3, "VERY_BAD": 4, } )
Enum value maps for StarLevel.
var ( RetCode_name = map[int32]string{ 0: "SUCCESS", 500: "ERROR", 500000: "USER_NOT_EXIST", 500001: "USER_EXIST", 600000: "USER_ORDER_NOT_EXIST", 600001: "USER_ORDER_STATE_INVALID", 700000: "COMMENT_NOT_EXIST", 700001: "COMMENT_EXIST", 700002: "TRANSACTION_FAILED", 700003: "COMMENT_TAG_NOT_EXIST", 700004: "COMMENT_TAG_EXIST", } RetCode_value = map[string]int32{ "SUCCESS": 0, "ERROR": 500, "USER_NOT_EXIST": 500000, "USER_EXIST": 500001, "USER_ORDER_NOT_EXIST": 600000, "USER_ORDER_STATE_INVALID": 600001, "COMMENT_NOT_EXIST": 700000, "COMMENT_EXIST": 700001, "TRANSACTION_FAILED": 700002, "COMMENT_TAG_NOT_EXIST": 700003, "COMMENT_TAG_EXIST": 700004, } )
Enum value maps for RetCode.
var ( OperationType_name = map[int32]string{ 0: "CREATE", 1: "UPDATE", 2: "DELETE", 3: "AUDIT", } OperationType_value = map[string]int32{ "CREATE": 0, "UPDATE": 1, "DELETE": 2, "AUDIT": 3, } )
Enum value maps for OperationType.
var File_proto_micro_mall_comments_proto_comments_business_comments_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCommentsBusinessServiceHandler ¶
func RegisterCommentsBusinessServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterCommentsBusinessServiceHandler registers the http handlers for service CommentsBusinessService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterCommentsBusinessServiceHandlerClient ¶
func RegisterCommentsBusinessServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client CommentsBusinessServiceClient) error
RegisterCommentsBusinessServiceHandlerClient registers the http handlers for service CommentsBusinessService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "CommentsBusinessServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "CommentsBusinessServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "CommentsBusinessServiceClient" to call the correct interceptors.
func RegisterCommentsBusinessServiceHandlerFromEndpoint ¶
func RegisterCommentsBusinessServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterCommentsBusinessServiceHandlerFromEndpoint is same as RegisterCommentsBusinessServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterCommentsBusinessServiceHandlerServer ¶
func RegisterCommentsBusinessServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server CommentsBusinessServiceServer) error
RegisterCommentsBusinessServiceHandlerServer registers the http handlers for service CommentsBusinessService to "mux". UnaryRPC :call CommentsBusinessServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterCommentsBusinessServiceHandlerFromEndpoint instead.
func RegisterCommentsBusinessServiceServer ¶
func RegisterCommentsBusinessServiceServer(s *grpc.Server, srv CommentsBusinessServiceServer)
Types ¶
type CommentsBusinessServiceClient ¶
type CommentsBusinessServiceClient interface { // 订单评价 CommentsOrder(ctx context.Context, in *CommentsOrderRequest, opts ...grpc.CallOption) (*CommentsOrderResponse, error) // 获取店铺评论列表 FindShopComments(ctx context.Context, in *FindShopCommentsRequest, opts ...grpc.CallOption) (*FindShopCommentsResponse, error) // 获取评论标签 FindCommentsTags(ctx context.Context, in *FindCommentsTagRequest, opts ...grpc.CallOption) (*FindCommentsTagResponse, error) // 修改评论标签 ModifyCommentsTags(ctx context.Context, in *ModifyCommentsTagsRequest, opts ...grpc.CallOption) (*ModifyCommentsTagsResponse, error) }
CommentsBusinessServiceClient is the client API for CommentsBusinessService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewCommentsBusinessServiceClient ¶
func NewCommentsBusinessServiceClient(cc grpc.ClientConnInterface) CommentsBusinessServiceClient
type CommentsBusinessServiceServer ¶
type CommentsBusinessServiceServer interface { // 订单评价 CommentsOrder(context.Context, *CommentsOrderRequest) (*CommentsOrderResponse, error) // 获取店铺评论列表 FindShopComments(context.Context, *FindShopCommentsRequest) (*FindShopCommentsResponse, error) // 获取评论标签 FindCommentsTags(context.Context, *FindCommentsTagRequest) (*FindCommentsTagResponse, error) // 修改评论标签 ModifyCommentsTags(context.Context, *ModifyCommentsTagsRequest) (*ModifyCommentsTagsResponse, error) }
CommentsBusinessServiceServer is the server API for CommentsBusinessService service.
type CommentsOrderRequest ¶
type CommentsOrderRequest struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` OrderInfo *OrderCommentsInfo `protobuf:"bytes,2,opt,name=order_info,json=orderInfo,proto3" json:"order_info,omitempty"` // 订单评价 LogisticsInfo *LogisticsCommentsInfo `protobuf:"bytes,3,opt,name=logistics_info,json=logisticsInfo,proto3" json:"logistics_info,omitempty"` // 物流评价 Anonymity bool `protobuf:"varint,4,opt,name=anonymity,proto3" json:"anonymity,omitempty"` // 是否匿名 // contains filtered or unexported fields }
func (*CommentsOrderRequest) Descriptor
deprecated
func (*CommentsOrderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommentsOrderRequest.ProtoReflect.Descriptor instead.
func (*CommentsOrderRequest) GetAnonymity ¶
func (x *CommentsOrderRequest) GetAnonymity() bool
func (*CommentsOrderRequest) GetLogisticsInfo ¶
func (x *CommentsOrderRequest) GetLogisticsInfo() *LogisticsCommentsInfo
func (*CommentsOrderRequest) GetOrderInfo ¶
func (x *CommentsOrderRequest) GetOrderInfo() *OrderCommentsInfo
func (*CommentsOrderRequest) GetUid ¶
func (x *CommentsOrderRequest) GetUid() int64
func (*CommentsOrderRequest) ProtoMessage ¶
func (*CommentsOrderRequest) ProtoMessage()
func (*CommentsOrderRequest) ProtoReflect ¶
func (x *CommentsOrderRequest) ProtoReflect() protoreflect.Message
func (*CommentsOrderRequest) Reset ¶
func (x *CommentsOrderRequest) Reset()
func (*CommentsOrderRequest) String ¶
func (x *CommentsOrderRequest) String() string
type CommentsOrderResponse ¶
type CommentsOrderResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` // contains filtered or unexported fields }
func (*CommentsOrderResponse) Descriptor
deprecated
func (*CommentsOrderResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommentsOrderResponse.ProtoReflect.Descriptor instead.
func (*CommentsOrderResponse) GetCommon ¶
func (x *CommentsOrderResponse) GetCommon() *CommonResponse
func (*CommentsOrderResponse) ProtoMessage ¶
func (*CommentsOrderResponse) ProtoMessage()
func (*CommentsOrderResponse) ProtoReflect ¶
func (x *CommentsOrderResponse) ProtoReflect() protoreflect.Message
func (*CommentsOrderResponse) Reset ¶
func (x *CommentsOrderResponse) Reset()
func (*CommentsOrderResponse) String ¶
func (x *CommentsOrderResponse) String() string
type CommentsTags ¶
type CommentsTags struct { TagCode string `protobuf:"bytes,1,opt,name=tag_code,json=tagCode,proto3" json:"tag_code,omitempty"` ClassificationMajor string `protobuf:"bytes,2,opt,name=classification_major,json=classificationMajor,proto3" json:"classification_major,omitempty"` ClassificationMedium string `protobuf:"bytes,3,opt,name=classification_medium,json=classificationMedium,proto3" json:"classification_medium,omitempty"` ClassificationMinor string `protobuf:"bytes,4,opt,name=classification_minor,json=classificationMinor,proto3" json:"classification_minor,omitempty"` Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"` State bool `protobuf:"varint,6,opt,name=state,proto3" json:"state,omitempty"` // contains filtered or unexported fields }
func (*CommentsTags) Descriptor
deprecated
func (*CommentsTags) Descriptor() ([]byte, []int)
Deprecated: Use CommentsTags.ProtoReflect.Descriptor instead.
func (*CommentsTags) GetClassificationMajor ¶
func (x *CommentsTags) GetClassificationMajor() string
func (*CommentsTags) GetClassificationMedium ¶
func (x *CommentsTags) GetClassificationMedium() string
func (*CommentsTags) GetClassificationMinor ¶
func (x *CommentsTags) GetClassificationMinor() string
func (*CommentsTags) GetContent ¶
func (x *CommentsTags) GetContent() string
func (*CommentsTags) GetState ¶
func (x *CommentsTags) GetState() bool
func (*CommentsTags) GetTagCode ¶
func (x *CommentsTags) GetTagCode() string
func (*CommentsTags) ProtoMessage ¶
func (*CommentsTags) ProtoMessage()
func (*CommentsTags) ProtoReflect ¶
func (x *CommentsTags) ProtoReflect() protoreflect.Message
func (*CommentsTags) Reset ¶
func (x *CommentsTags) Reset()
func (*CommentsTags) String ¶
func (x *CommentsTags) String() string
type CommonResponse ¶
type CommonResponse struct { Code RetCode `protobuf:"varint,1,opt,name=code,proto3,enum=comments_business.RetCode" json:"code,omitempty"` Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"` // contains filtered or unexported fields }
func (*CommonResponse) Descriptor
deprecated
func (*CommonResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommonResponse.ProtoReflect.Descriptor instead.
func (*CommonResponse) GetCode ¶
func (x *CommonResponse) GetCode() RetCode
func (*CommonResponse) GetMsg ¶
func (x *CommonResponse) GetMsg() string
func (*CommonResponse) ProtoMessage ¶
func (*CommonResponse) ProtoMessage()
func (*CommonResponse) ProtoReflect ¶
func (x *CommonResponse) ProtoReflect() protoreflect.Message
func (*CommonResponse) Reset ¶
func (x *CommonResponse) Reset()
func (*CommonResponse) String ¶
func (x *CommonResponse) String() string
type FiltrateTimeMeta ¶
type FiltrateTimeMeta struct { StartTime string `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` EndTime string `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // contains filtered or unexported fields }
func (*FiltrateTimeMeta) Descriptor
deprecated
func (*FiltrateTimeMeta) Descriptor() ([]byte, []int)
Deprecated: Use FiltrateTimeMeta.ProtoReflect.Descriptor instead.
func (*FiltrateTimeMeta) GetEndTime ¶
func (x *FiltrateTimeMeta) GetEndTime() string
func (*FiltrateTimeMeta) GetStartTime ¶
func (x *FiltrateTimeMeta) GetStartTime() string
func (*FiltrateTimeMeta) ProtoMessage ¶
func (*FiltrateTimeMeta) ProtoMessage()
func (*FiltrateTimeMeta) ProtoReflect ¶
func (x *FiltrateTimeMeta) ProtoReflect() protoreflect.Message
func (*FiltrateTimeMeta) Reset ¶
func (x *FiltrateTimeMeta) Reset()
func (*FiltrateTimeMeta) String ¶
func (x *FiltrateTimeMeta) String() string
type FindCommentsTagRequest ¶
type FindCommentsTagRequest struct { TagCode string `protobuf:"bytes,1,opt,name=tag_code,json=tagCode,proto3" json:"tag_code,omitempty"` ClassificationMajor string `protobuf:"bytes,2,opt,name=classification_major,json=classificationMajor,proto3" json:"classification_major,omitempty"` ClassificationMedium string `protobuf:"bytes,3,opt,name=classification_medium,json=classificationMedium,proto3" json:"classification_medium,omitempty"` // contains filtered or unexported fields }
func (*FindCommentsTagRequest) Descriptor
deprecated
func (*FindCommentsTagRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindCommentsTagRequest.ProtoReflect.Descriptor instead.
func (*FindCommentsTagRequest) GetClassificationMajor ¶
func (x *FindCommentsTagRequest) GetClassificationMajor() string
func (*FindCommentsTagRequest) GetClassificationMedium ¶
func (x *FindCommentsTagRequest) GetClassificationMedium() string
func (*FindCommentsTagRequest) GetTagCode ¶
func (x *FindCommentsTagRequest) GetTagCode() string
func (*FindCommentsTagRequest) ProtoMessage ¶
func (*FindCommentsTagRequest) ProtoMessage()
func (*FindCommentsTagRequest) ProtoReflect ¶
func (x *FindCommentsTagRequest) ProtoReflect() protoreflect.Message
func (*FindCommentsTagRequest) Reset ¶
func (x *FindCommentsTagRequest) Reset()
func (*FindCommentsTagRequest) String ¶
func (x *FindCommentsTagRequest) String() string
type FindCommentsTagResponse ¶
type FindCommentsTagResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` Tags []*CommentsTags `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"` // contains filtered or unexported fields }
func (*FindCommentsTagResponse) Descriptor
deprecated
func (*FindCommentsTagResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindCommentsTagResponse.ProtoReflect.Descriptor instead.
func (*FindCommentsTagResponse) GetCommon ¶
func (x *FindCommentsTagResponse) GetCommon() *CommonResponse
func (*FindCommentsTagResponse) GetTags ¶
func (x *FindCommentsTagResponse) GetTags() []*CommentsTags
func (*FindCommentsTagResponse) ProtoMessage ¶
func (*FindCommentsTagResponse) ProtoMessage()
func (*FindCommentsTagResponse) ProtoReflect ¶
func (x *FindCommentsTagResponse) ProtoReflect() protoreflect.Message
func (*FindCommentsTagResponse) Reset ¶
func (x *FindCommentsTagResponse) Reset()
func (*FindCommentsTagResponse) String ¶
func (x *FindCommentsTagResponse) String() string
type FindShopCommentsRequest ¶
type FindShopCommentsRequest struct { ShopId int64 `protobuf:"varint,1,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"` Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*FindShopCommentsRequest) Descriptor
deprecated
func (*FindShopCommentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindShopCommentsRequest.ProtoReflect.Descriptor instead.
func (*FindShopCommentsRequest) GetShopId ¶
func (x *FindShopCommentsRequest) GetShopId() int64
func (*FindShopCommentsRequest) GetUid ¶
func (x *FindShopCommentsRequest) GetUid() int64
func (*FindShopCommentsRequest) ProtoMessage ¶
func (*FindShopCommentsRequest) ProtoMessage()
func (*FindShopCommentsRequest) ProtoReflect ¶
func (x *FindShopCommentsRequest) ProtoReflect() protoreflect.Message
func (*FindShopCommentsRequest) Reset ¶
func (x *FindShopCommentsRequest) Reset()
func (*FindShopCommentsRequest) String ¶
func (x *FindShopCommentsRequest) String() string
type FindShopCommentsResponse ¶
type FindShopCommentsResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` CommentsList []*OrderCommentsInfo `protobuf:"bytes,2,rep,name=comments_list,json=commentsList,proto3" json:"comments_list,omitempty"` // contains filtered or unexported fields }
func (*FindShopCommentsResponse) Descriptor
deprecated
func (*FindShopCommentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use FindShopCommentsResponse.ProtoReflect.Descriptor instead.
func (*FindShopCommentsResponse) GetCommentsList ¶
func (x *FindShopCommentsResponse) GetCommentsList() []*OrderCommentsInfo
func (*FindShopCommentsResponse) GetCommon ¶
func (x *FindShopCommentsResponse) GetCommon() *CommonResponse
func (*FindShopCommentsResponse) ProtoMessage ¶
func (*FindShopCommentsResponse) ProtoMessage()
func (*FindShopCommentsResponse) ProtoReflect ¶
func (x *FindShopCommentsResponse) ProtoReflect() protoreflect.Message
func (*FindShopCommentsResponse) Reset ¶
func (x *FindShopCommentsResponse) Reset()
func (*FindShopCommentsResponse) String ¶
func (x *FindShopCommentsResponse) String() string
type LogisticsCommentsInfo ¶
type LogisticsCommentsInfo struct { LogisticsCode string `protobuf:"bytes,1,opt,name=logistics_code,json=logisticsCode,proto3" json:"logistics_code,omitempty"` // 订单关联的物流号 FedexPack StarLevel `protobuf:"varint,10,opt,name=fedex_pack,json=fedexPack,proto3,enum=comments_business.StarLevel" json:"fedex_pack,omitempty"` // 快递包装 FedexLabel []string `protobuf:"bytes,11,rep,name=fedex_label,json=fedexLabel,proto3" json:"fedex_label,omitempty"` DeliverySpeed StarLevel `` // 送货速度 /* 135-byte string literal not displayed */ DeliverySpeedLabel []string `protobuf:"bytes,21,rep,name=delivery_speed_label,json=deliverySpeedLabel,proto3" json:"delivery_speed_label,omitempty"` DeliveryService StarLevel `` // 配送员服务 /* 141-byte string literal not displayed */ DeliveryServiceLabel []string `protobuf:"bytes,31,rep,name=delivery_service_label,json=deliveryServiceLabel,proto3" json:"delivery_service_label,omitempty"` Comment string `protobuf:"bytes,100,opt,name=comment,proto3" json:"comment,omitempty"` // 总体描述 // contains filtered or unexported fields }
func (*LogisticsCommentsInfo) Descriptor
deprecated
func (*LogisticsCommentsInfo) Descriptor() ([]byte, []int)
Deprecated: Use LogisticsCommentsInfo.ProtoReflect.Descriptor instead.
func (*LogisticsCommentsInfo) GetComment ¶
func (x *LogisticsCommentsInfo) GetComment() string
func (*LogisticsCommentsInfo) GetDeliveryService ¶
func (x *LogisticsCommentsInfo) GetDeliveryService() StarLevel
func (*LogisticsCommentsInfo) GetDeliveryServiceLabel ¶
func (x *LogisticsCommentsInfo) GetDeliveryServiceLabel() []string
func (*LogisticsCommentsInfo) GetDeliverySpeed ¶
func (x *LogisticsCommentsInfo) GetDeliverySpeed() StarLevel
func (*LogisticsCommentsInfo) GetDeliverySpeedLabel ¶
func (x *LogisticsCommentsInfo) GetDeliverySpeedLabel() []string
func (*LogisticsCommentsInfo) GetFedexLabel ¶
func (x *LogisticsCommentsInfo) GetFedexLabel() []string
func (*LogisticsCommentsInfo) GetFedexPack ¶
func (x *LogisticsCommentsInfo) GetFedexPack() StarLevel
func (*LogisticsCommentsInfo) GetLogisticsCode ¶
func (x *LogisticsCommentsInfo) GetLogisticsCode() string
func (*LogisticsCommentsInfo) ProtoMessage ¶
func (*LogisticsCommentsInfo) ProtoMessage()
func (*LogisticsCommentsInfo) ProtoReflect ¶
func (x *LogisticsCommentsInfo) ProtoReflect() protoreflect.Message
func (*LogisticsCommentsInfo) Reset ¶
func (x *LogisticsCommentsInfo) Reset()
func (*LogisticsCommentsInfo) String ¶
func (x *LogisticsCommentsInfo) String() string
type ModifyCommentsTagsRequest ¶
type ModifyCommentsTagsRequest struct { OpType OperationType `protobuf:"varint,1,opt,name=op_type,json=opType,proto3,enum=comments_business.OperationType" json:"op_type,omitempty"` Tag *CommentsTags `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"` // contains filtered or unexported fields }
func (*ModifyCommentsTagsRequest) Descriptor
deprecated
func (*ModifyCommentsTagsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ModifyCommentsTagsRequest.ProtoReflect.Descriptor instead.
func (*ModifyCommentsTagsRequest) GetOpType ¶
func (x *ModifyCommentsTagsRequest) GetOpType() OperationType
func (*ModifyCommentsTagsRequest) GetTag ¶
func (x *ModifyCommentsTagsRequest) GetTag() *CommentsTags
func (*ModifyCommentsTagsRequest) ProtoMessage ¶
func (*ModifyCommentsTagsRequest) ProtoMessage()
func (*ModifyCommentsTagsRequest) ProtoReflect ¶
func (x *ModifyCommentsTagsRequest) ProtoReflect() protoreflect.Message
func (*ModifyCommentsTagsRequest) Reset ¶
func (x *ModifyCommentsTagsRequest) Reset()
func (*ModifyCommentsTagsRequest) String ¶
func (x *ModifyCommentsTagsRequest) String() string
type ModifyCommentsTagsResponse ¶
type ModifyCommentsTagsResponse struct { Common *CommonResponse `protobuf:"bytes,1,opt,name=common,proto3" json:"common,omitempty"` TagCode string `protobuf:"bytes,2,opt,name=tag_code,json=tagCode,proto3" json:"tag_code,omitempty"` // contains filtered or unexported fields }
func (*ModifyCommentsTagsResponse) Descriptor
deprecated
func (*ModifyCommentsTagsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ModifyCommentsTagsResponse.ProtoReflect.Descriptor instead.
func (*ModifyCommentsTagsResponse) GetCommon ¶
func (x *ModifyCommentsTagsResponse) GetCommon() *CommonResponse
func (*ModifyCommentsTagsResponse) GetTagCode ¶
func (x *ModifyCommentsTagsResponse) GetTagCode() string
func (*ModifyCommentsTagsResponse) ProtoMessage ¶
func (*ModifyCommentsTagsResponse) ProtoMessage()
func (*ModifyCommentsTagsResponse) ProtoReflect ¶
func (x *ModifyCommentsTagsResponse) ProtoReflect() protoreflect.Message
func (*ModifyCommentsTagsResponse) Reset ¶
func (x *ModifyCommentsTagsResponse) Reset()
func (*ModifyCommentsTagsResponse) String ¶
func (x *ModifyCommentsTagsResponse) String() string
type OperationMeta ¶
type OperationMeta struct { OpUid int64 `protobuf:"varint,1,opt,name=op_uid,json=opUid,proto3" json:"op_uid,omitempty"` OpIp string `protobuf:"bytes,2,opt,name=op_ip,json=opIp,proto3" json:"op_ip,omitempty"` OpPlatform string `protobuf:"bytes,3,opt,name=op_platform,json=opPlatform,proto3" json:"op_platform,omitempty"` // 操作平台 OpDevice string `protobuf:"bytes,4,opt,name=op_device,json=opDevice,proto3" json:"op_device,omitempty"` // 操作设备 // contains filtered or unexported fields }
func (*OperationMeta) Descriptor
deprecated
func (*OperationMeta) Descriptor() ([]byte, []int)
Deprecated: Use OperationMeta.ProtoReflect.Descriptor instead.
func (*OperationMeta) GetOpDevice ¶
func (x *OperationMeta) GetOpDevice() string
func (*OperationMeta) GetOpIp ¶
func (x *OperationMeta) GetOpIp() string
func (*OperationMeta) GetOpPlatform ¶
func (x *OperationMeta) GetOpPlatform() string
func (*OperationMeta) GetOpUid ¶
func (x *OperationMeta) GetOpUid() int64
func (*OperationMeta) ProtoMessage ¶
func (*OperationMeta) ProtoMessage()
func (*OperationMeta) ProtoReflect ¶
func (x *OperationMeta) ProtoReflect() protoreflect.Message
func (*OperationMeta) Reset ¶
func (x *OperationMeta) Reset()
func (*OperationMeta) String ¶
func (x *OperationMeta) String() string
type OperationType ¶
type OperationType int32
const ( OperationType_CREATE OperationType = 0 OperationType_UPDATE OperationType = 1 OperationType_DELETE OperationType = 2 OperationType_AUDIT OperationType = 3 )
func (OperationType) Descriptor ¶
func (OperationType) Descriptor() protoreflect.EnumDescriptor
func (OperationType) Enum ¶
func (x OperationType) Enum() *OperationType
func (OperationType) EnumDescriptor
deprecated
func (OperationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use OperationType.Descriptor instead.
func (OperationType) Number ¶
func (x OperationType) Number() protoreflect.EnumNumber
func (OperationType) String ¶
func (x OperationType) String() string
func (OperationType) Type ¶
func (OperationType) Type() protoreflect.EnumType
type OrderCommentsInfo ¶
type OrderCommentsInfo struct { ShopId int64 `protobuf:"varint,1,opt,name=shop_id,json=shopId,proto3" json:"shop_id,omitempty"` OrderCode string `protobuf:"bytes,2,opt,name=order_code,json=orderCode,proto3" json:"order_code,omitempty"` // 订单号 StarLevel StarLevel `protobuf:"varint,3,opt,name=star_level,json=starLevel,proto3,enum=comments_business.StarLevel" json:"star_level,omitempty"` // 星级 Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"` // 评价内容 ImgList []string `protobuf:"bytes,5,rep,name=img_list,json=imgList,proto3" json:"img_list,omitempty"` // 附加图片 CommentId string `protobuf:"bytes,199,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // 评论ID // contains filtered or unexported fields }
func (*OrderCommentsInfo) Descriptor
deprecated
func (*OrderCommentsInfo) Descriptor() ([]byte, []int)
Deprecated: Use OrderCommentsInfo.ProtoReflect.Descriptor instead.
func (*OrderCommentsInfo) GetCommentId ¶
func (x *OrderCommentsInfo) GetCommentId() string
func (*OrderCommentsInfo) GetContent ¶
func (x *OrderCommentsInfo) GetContent() string
func (*OrderCommentsInfo) GetImgList ¶
func (x *OrderCommentsInfo) GetImgList() []string
func (*OrderCommentsInfo) GetOrderCode ¶
func (x *OrderCommentsInfo) GetOrderCode() string
func (*OrderCommentsInfo) GetShopId ¶
func (x *OrderCommentsInfo) GetShopId() int64
func (*OrderCommentsInfo) GetStarLevel ¶
func (x *OrderCommentsInfo) GetStarLevel() StarLevel
func (*OrderCommentsInfo) ProtoMessage ¶
func (*OrderCommentsInfo) ProtoMessage()
func (*OrderCommentsInfo) ProtoReflect ¶
func (x *OrderCommentsInfo) ProtoReflect() protoreflect.Message
func (*OrderCommentsInfo) Reset ¶
func (x *OrderCommentsInfo) Reset()
func (*OrderCommentsInfo) String ¶
func (x *OrderCommentsInfo) String() string
type PageMeta ¶
type PageMeta struct { PageNum int32 `protobuf:"varint,1,opt,name=page_num,json=pageNum,proto3" json:"page_num,omitempty"` PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // contains filtered or unexported fields }
func (*PageMeta) Descriptor
deprecated
func (*PageMeta) GetPageNum ¶
func (*PageMeta) GetPageSize ¶
func (*PageMeta) ProtoMessage ¶
func (*PageMeta) ProtoMessage()
func (*PageMeta) ProtoReflect ¶
func (x *PageMeta) ProtoReflect() protoreflect.Message
type RetCode ¶
type RetCode int32
const ( RetCode_SUCCESS RetCode = 0 RetCode_ERROR RetCode = 500 RetCode_USER_NOT_EXIST RetCode = 500000 RetCode_USER_EXIST RetCode = 500001 RetCode_USER_ORDER_NOT_EXIST RetCode = 600000 RetCode_USER_ORDER_STATE_INVALID RetCode = 600001 RetCode_COMMENT_NOT_EXIST RetCode = 700000 RetCode_COMMENT_EXIST RetCode = 700001 RetCode_TRANSACTION_FAILED RetCode = 700002 RetCode_COMMENT_TAG_NOT_EXIST RetCode = 700003 RetCode_COMMENT_TAG_EXIST RetCode = 700004 )
func (RetCode) Descriptor ¶
func (RetCode) Descriptor() protoreflect.EnumDescriptor
func (RetCode) EnumDescriptor
deprecated
func (RetCode) Number ¶
func (x RetCode) Number() protoreflect.EnumNumber
func (RetCode) Type ¶
func (RetCode) Type() protoreflect.EnumType
type StarLevel ¶
type StarLevel int32
func (StarLevel) Descriptor ¶
func (StarLevel) Descriptor() protoreflect.EnumDescriptor
func (StarLevel) EnumDescriptor
deprecated
func (StarLevel) Number ¶
func (x StarLevel) Number() protoreflect.EnumNumber
func (StarLevel) Type ¶
func (StarLevel) Type() protoreflect.EnumType
type UnimplementedCommentsBusinessServiceServer ¶
type UnimplementedCommentsBusinessServiceServer struct { }
UnimplementedCommentsBusinessServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedCommentsBusinessServiceServer) CommentsOrder ¶
func (*UnimplementedCommentsBusinessServiceServer) CommentsOrder(context.Context, *CommentsOrderRequest) (*CommentsOrderResponse, error)
func (*UnimplementedCommentsBusinessServiceServer) FindCommentsTags ¶
func (*UnimplementedCommentsBusinessServiceServer) FindCommentsTags(context.Context, *FindCommentsTagRequest) (*FindCommentsTagResponse, error)
func (*UnimplementedCommentsBusinessServiceServer) FindShopComments ¶
func (*UnimplementedCommentsBusinessServiceServer) FindShopComments(context.Context, *FindShopCommentsRequest) (*FindShopCommentsResponse, error)
func (*UnimplementedCommentsBusinessServiceServer) ModifyCommentsTags ¶
func (*UnimplementedCommentsBusinessServiceServer) ModifyCommentsTags(context.Context, *ModifyCommentsTagsRequest) (*ModifyCommentsTagsResponse, error)