comments_business

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package comments_business is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

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

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

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

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

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 (*ModifyCommentsTagsRequest) GetTag

func (*ModifyCommentsTagsRequest) ProtoMessage

func (*ModifyCommentsTagsRequest) ProtoMessage()

func (*ModifyCommentsTagsRequest) ProtoReflect

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 (*ModifyCommentsTagsResponse) GetTagCode

func (x *ModifyCommentsTagsResponse) GetTagCode() string

func (*ModifyCommentsTagsResponse) ProtoMessage

func (*ModifyCommentsTagsResponse) ProtoMessage()

func (*ModifyCommentsTagsResponse) ProtoReflect

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

func (x OperationType) Enum() *OperationType

func (OperationType) EnumDescriptor deprecated

func (OperationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use OperationType.Descriptor instead.

func (OperationType) Number

func (OperationType) String

func (x OperationType) String() string

func (OperationType) Type

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) Descriptor() ([]byte, []int)

Deprecated: Use PageMeta.ProtoReflect.Descriptor instead.

func (*PageMeta) GetPageNum

func (x *PageMeta) GetPageNum() int32

func (*PageMeta) GetPageSize

func (x *PageMeta) GetPageSize() int32

func (*PageMeta) ProtoMessage

func (*PageMeta) ProtoMessage()

func (*PageMeta) ProtoReflect

func (x *PageMeta) ProtoReflect() protoreflect.Message

func (*PageMeta) Reset

func (x *PageMeta) Reset()

func (*PageMeta) String

func (x *PageMeta) String() string

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

func (x RetCode) Enum() *RetCode

func (RetCode) EnumDescriptor deprecated

func (RetCode) EnumDescriptor() ([]byte, []int)

Deprecated: Use RetCode.Descriptor instead.

func (RetCode) Number

func (x RetCode) Number() protoreflect.EnumNumber

func (RetCode) String

func (x RetCode) String() string

func (RetCode) Type

func (RetCode) Type() protoreflect.EnumType

type StarLevel

type StarLevel int32
const (
	StarLevel_VERY_GOOD StarLevel = 0 // 非常好
	StarLevel_GOOD      StarLevel = 1 // 好
	StarLevel_GENERAL   StarLevel = 2 // 一般
	StarLevel_BAD       StarLevel = 3 // 差
	StarLevel_VERY_BAD  StarLevel = 4 //非常差
)

func (StarLevel) Descriptor

func (StarLevel) Descriptor() protoreflect.EnumDescriptor

func (StarLevel) Enum

func (x StarLevel) Enum() *StarLevel

func (StarLevel) EnumDescriptor deprecated

func (StarLevel) EnumDescriptor() ([]byte, []int)

Deprecated: Use StarLevel.Descriptor instead.

func (StarLevel) Number

func (x StarLevel) Number() protoreflect.EnumNumber

func (StarLevel) String

func (x StarLevel) String() string

func (StarLevel) Type

type UnimplementedCommentsBusinessServiceServer

type UnimplementedCommentsBusinessServiceServer struct {
}

UnimplementedCommentsBusinessServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedCommentsBusinessServiceServer) CommentsOrder

func (*UnimplementedCommentsBusinessServiceServer) FindCommentsTags

func (*UnimplementedCommentsBusinessServiceServer) FindShopComments

func (*UnimplementedCommentsBusinessServiceServer) ModifyCommentsTags

Jump to

Keyboard shortcuts

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