review

package
v0.0.0-...-d1a5c07 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Review_CreateReview_FullMethodName               = "/review.Review/CreateReview"
	Review_ListReview_FullMethodName                 = "/review.Review/ListReview"
	Review_ReviewInfo_FullMethodName                 = "/review.Review/ReviewInfo"
	Review_ReviewCount_FullMethodName                = "/review.Review/ReviewCount"
	Review_CreateFavorite_FullMethodName             = "/review.Review/CreateFavorite"
	Review_UpdateFavorite_FullMethodName             = "/review.Review/UpdateFavorite"
	Review_FindFavorite_FullMethodName               = "/review.Review/FindFavorite"
	Review_FindFavoriteList_FullMethodName           = "/review.Review/FindFavoriteList"
	Review_CountFavorite_FullMethodName              = "/review.Review/CountFavorite"
	Review_DeleteFavorite_FullMethodName             = "/review.Review/DeleteFavorite"
	Review_ArticleInfo_FullMethodName                = "/review.Review/ArticleInfo"
	Review_ArticleList_FullMethodName                = "/review.Review/ArticleList"
	Review_ArticleTouristVolumeUpdate_FullMethodName = "/review.Review/ArticleTouristVolumeUpdate"
)

Variables

View Source
var File_review_proto protoreflect.FileDescriptor
View Source
var Review_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "review.Review",
	HandlerType: (*ReviewServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateReview",
			Handler:    _Review_CreateReview_Handler,
		},
		{
			MethodName: "ListReview",
			Handler:    _Review_ListReview_Handler,
		},
		{
			MethodName: "ReviewInfo",
			Handler:    _Review_ReviewInfo_Handler,
		},
		{
			MethodName: "ReviewCount",
			Handler:    _Review_ReviewCount_Handler,
		},
		{
			MethodName: "CreateFavorite",
			Handler:    _Review_CreateFavorite_Handler,
		},
		{
			MethodName: "UpdateFavorite",
			Handler:    _Review_UpdateFavorite_Handler,
		},
		{
			MethodName: "FindFavorite",
			Handler:    _Review_FindFavorite_Handler,
		},
		{
			MethodName: "FindFavoriteList",
			Handler:    _Review_FindFavoriteList_Handler,
		},
		{
			MethodName: "CountFavorite",
			Handler:    _Review_CountFavorite_Handler,
		},
		{
			MethodName: "DeleteFavorite",
			Handler:    _Review_DeleteFavorite_Handler,
		},
		{
			MethodName: "ArticleInfo",
			Handler:    _Review_ArticleInfo_Handler,
		},
		{
			MethodName: "ArticleList",
			Handler:    _Review_ArticleList_Handler,
		},
		{
			MethodName: "ArticleTouristVolumeUpdate",
			Handler:    _Review_ArticleTouristVolumeUpdate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "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 RegisterReviewServer

func RegisterReviewServer(s grpc.ServiceRegistrar, srv ReviewServer)

Types

type ArticleImg

type ArticleImg struct {
	ArticleImg []string `protobuf:"bytes,5,rep,name=ArticleImg,proto3" json:"ArticleImg,omitempty"`
	// contains filtered or unexported fields
}

func (*ArticleImg) Descriptor deprecated

func (*ArticleImg) Descriptor() ([]byte, []int)

Deprecated: Use ArticleImg.ProtoReflect.Descriptor instead.

func (*ArticleImg) GetArticleImg

func (x *ArticleImg) GetArticleImg() []string

func (*ArticleImg) ProtoMessage

func (*ArticleImg) ProtoMessage()

func (*ArticleImg) ProtoReflect

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

func (*ArticleImg) Reset

func (x *ArticleImg) Reset()

func (*ArticleImg) String

func (x *ArticleImg) String() string

type ArticleInfo

type ArticleInfo struct {
	ID             int64       `protobuf:"varint,5,opt,name=ID,proto3" json:"ID,omitempty"`
	ArticleTitle   string      `protobuf:"bytes,10,opt,name=ArticleTitle,proto3" json:"ArticleTitle,omitempty"`
	TouristVolume  int64       `protobuf:"varint,15,opt,name=TouristVolume,proto3" json:"TouristVolume,omitempty"`
	ArticleInter   string      `protobuf:"bytes,20,opt,name=ArticleInter,proto3" json:"ArticleInter,omitempty"`
	ArticleContent string      `protobuf:"bytes,25,opt,name=ArticleContent,proto3" json:"ArticleContent,omitempty"`
	ArticleImg     *ArticleImg `protobuf:"bytes,30,opt,name=ArticleImg,proto3" json:"ArticleImg,omitempty"`
	// contains filtered or unexported fields
}

func (*ArticleInfo) Descriptor deprecated

func (*ArticleInfo) Descriptor() ([]byte, []int)

Deprecated: Use ArticleInfo.ProtoReflect.Descriptor instead.

func (*ArticleInfo) GetArticleContent

func (x *ArticleInfo) GetArticleContent() string

func (*ArticleInfo) GetArticleImg

func (x *ArticleInfo) GetArticleImg() *ArticleImg

func (*ArticleInfo) GetArticleInter

func (x *ArticleInfo) GetArticleInter() string

func (*ArticleInfo) GetArticleTitle

func (x *ArticleInfo) GetArticleTitle() string

func (*ArticleInfo) GetID

func (x *ArticleInfo) GetID() int64

func (*ArticleInfo) GetTouristVolume

func (x *ArticleInfo) GetTouristVolume() int64

func (*ArticleInfo) ProtoMessage

func (*ArticleInfo) ProtoMessage()

func (*ArticleInfo) ProtoReflect

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

func (*ArticleInfo) Reset

func (x *ArticleInfo) Reset()

func (*ArticleInfo) String

func (x *ArticleInfo) String() string

type ArticleInfoRequest

type ArticleInfoRequest struct {
	ID int64 `protobuf:"varint,5,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

文章详情

func (*ArticleInfoRequest) Descriptor deprecated

func (*ArticleInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use ArticleInfoRequest.ProtoReflect.Descriptor instead.

func (*ArticleInfoRequest) GetID

func (x *ArticleInfoRequest) GetID() int64

func (*ArticleInfoRequest) ProtoMessage

func (*ArticleInfoRequest) ProtoMessage()

func (*ArticleInfoRequest) ProtoReflect

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

func (*ArticleInfoRequest) Reset

func (x *ArticleInfoRequest) Reset()

func (*ArticleInfoRequest) String

func (x *ArticleInfoRequest) String() string

type ArticleInfoResponse

type ArticleInfoResponse struct {
	Info *ArticleInfo `protobuf:"bytes,5,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*ArticleInfoResponse) Descriptor deprecated

func (*ArticleInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use ArticleInfoResponse.ProtoReflect.Descriptor instead.

func (*ArticleInfoResponse) GetInfo

func (x *ArticleInfoResponse) GetInfo() *ArticleInfo

func (*ArticleInfoResponse) ProtoMessage

func (*ArticleInfoResponse) ProtoMessage()

func (*ArticleInfoResponse) ProtoReflect

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

func (*ArticleInfoResponse) Reset

func (x *ArticleInfoResponse) Reset()

func (*ArticleInfoResponse) String

func (x *ArticleInfoResponse) String() string

type ArticleListRequest

type ArticleListRequest struct {
	// contains filtered or unexported fields
}

文章列表

func (*ArticleListRequest) Descriptor deprecated

func (*ArticleListRequest) Descriptor() ([]byte, []int)

Deprecated: Use ArticleListRequest.ProtoReflect.Descriptor instead.

func (*ArticleListRequest) ProtoMessage

func (*ArticleListRequest) ProtoMessage()

func (*ArticleListRequest) ProtoReflect

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

func (*ArticleListRequest) Reset

func (x *ArticleListRequest) Reset()

func (*ArticleListRequest) String

func (x *ArticleListRequest) String() string

type ArticleListResponse

type ArticleListResponse struct {
	Info []*ArticleInfo `protobuf:"bytes,5,rep,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*ArticleListResponse) Descriptor deprecated

func (*ArticleListResponse) Descriptor() ([]byte, []int)

Deprecated: Use ArticleListResponse.ProtoReflect.Descriptor instead.

func (*ArticleListResponse) GetInfo

func (x *ArticleListResponse) GetInfo() []*ArticleInfo

func (*ArticleListResponse) ProtoMessage

func (*ArticleListResponse) ProtoMessage()

func (*ArticleListResponse) ProtoReflect

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

func (*ArticleListResponse) Reset

func (x *ArticleListResponse) Reset()

func (*ArticleListResponse) String

func (x *ArticleListResponse) String() string

type ArticleTouristVolumeUpdateRequest

type ArticleTouristVolumeUpdateRequest struct {
	ID            int64 `protobuf:"varint,5,opt,name=ID,proto3" json:"ID,omitempty"`
	TouristVolume int64 `protobuf:"varint,10,opt,name=TouristVolume,proto3" json:"TouristVolume,omitempty"`
	// contains filtered or unexported fields
}

文章游览量修改

func (*ArticleTouristVolumeUpdateRequest) Descriptor deprecated

func (*ArticleTouristVolumeUpdateRequest) Descriptor() ([]byte, []int)

Deprecated: Use ArticleTouristVolumeUpdateRequest.ProtoReflect.Descriptor instead.

func (*ArticleTouristVolumeUpdateRequest) GetID

func (*ArticleTouristVolumeUpdateRequest) GetTouristVolume

func (x *ArticleTouristVolumeUpdateRequest) GetTouristVolume() int64

func (*ArticleTouristVolumeUpdateRequest) ProtoMessage

func (*ArticleTouristVolumeUpdateRequest) ProtoMessage()

func (*ArticleTouristVolumeUpdateRequest) ProtoReflect

func (*ArticleTouristVolumeUpdateRequest) Reset

func (*ArticleTouristVolumeUpdateRequest) String

type ArticleTouristVolumeUpdateResponse

type ArticleTouristVolumeUpdateResponse struct {
	// contains filtered or unexported fields
}

func (*ArticleTouristVolumeUpdateResponse) Descriptor deprecated

func (*ArticleTouristVolumeUpdateResponse) Descriptor() ([]byte, []int)

Deprecated: Use ArticleTouristVolumeUpdateResponse.ProtoReflect.Descriptor instead.

func (*ArticleTouristVolumeUpdateResponse) ProtoMessage

func (*ArticleTouristVolumeUpdateResponse) ProtoMessage()

func (*ArticleTouristVolumeUpdateResponse) ProtoReflect

func (*ArticleTouristVolumeUpdateResponse) Reset

func (*ArticleTouristVolumeUpdateResponse) String

type CountFavorite

type CountFavorite struct {
	Count    int64 `protobuf:"varint,1,opt,name=Count,proto3" json:"Count,omitempty"`
	ObjectId int64 `protobuf:"varint,2,opt,name=ObjectId,proto3" json:"ObjectId,omitempty"`
	// contains filtered or unexported fields
}

func (*CountFavorite) Descriptor deprecated

func (*CountFavorite) Descriptor() ([]byte, []int)

Deprecated: Use CountFavorite.ProtoReflect.Descriptor instead.

func (*CountFavorite) GetCount

func (x *CountFavorite) GetCount() int64

func (*CountFavorite) GetObjectId

func (x *CountFavorite) GetObjectId() int64

func (*CountFavorite) ProtoMessage

func (*CountFavorite) ProtoMessage()

func (*CountFavorite) ProtoReflect

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

func (*CountFavorite) Reset

func (x *CountFavorite) Reset()

func (*CountFavorite) String

func (x *CountFavorite) String() string

type CountFavoriteRequest

type CountFavoriteRequest struct {
	ObjectType   int64   `protobuf:"varint,5,opt,name=ObjectType,proto3" json:"ObjectType,omitempty"`
	FavoriteType []int64 `protobuf:"varint,10,rep,packed,name=FavoriteType,proto3" json:"FavoriteType,omitempty"`
	// contains filtered or unexported fields
}

点赞、收藏计数

func (*CountFavoriteRequest) Descriptor deprecated

func (*CountFavoriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use CountFavoriteRequest.ProtoReflect.Descriptor instead.

func (*CountFavoriteRequest) GetFavoriteType

func (x *CountFavoriteRequest) GetFavoriteType() []int64

func (*CountFavoriteRequest) GetObjectType

func (x *CountFavoriteRequest) GetObjectType() int64

func (*CountFavoriteRequest) ProtoMessage

func (*CountFavoriteRequest) ProtoMessage()

func (*CountFavoriteRequest) ProtoReflect

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

func (*CountFavoriteRequest) Reset

func (x *CountFavoriteRequest) Reset()

func (*CountFavoriteRequest) String

func (x *CountFavoriteRequest) String() string

type CountFavoriteResponse

type CountFavoriteResponse struct {
	CountInfo []*CountFavorite `protobuf:"bytes,2,rep,name=CountInfo,proto3" json:"CountInfo,omitempty"`
	// contains filtered or unexported fields
}

func (*CountFavoriteResponse) Descriptor deprecated

func (*CountFavoriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use CountFavoriteResponse.ProtoReflect.Descriptor instead.

func (*CountFavoriteResponse) GetCountInfo

func (x *CountFavoriteResponse) GetCountInfo() []*CountFavorite

func (*CountFavoriteResponse) ProtoMessage

func (*CountFavoriteResponse) ProtoMessage()

func (*CountFavoriteResponse) ProtoReflect

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

func (*CountFavoriteResponse) Reset

func (x *CountFavoriteResponse) Reset()

func (*CountFavoriteResponse) String

func (x *CountFavoriteResponse) String() string

type CreateFavoriteRequest

type CreateFavoriteRequest struct {
	Info *FavoriteInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

点赞、收藏添加

func (*CreateFavoriteRequest) Descriptor deprecated

func (*CreateFavoriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateFavoriteRequest.ProtoReflect.Descriptor instead.

func (*CreateFavoriteRequest) GetInfo

func (x *CreateFavoriteRequest) GetInfo() *FavoriteInfo

func (*CreateFavoriteRequest) ProtoMessage

func (*CreateFavoriteRequest) ProtoMessage()

func (*CreateFavoriteRequest) ProtoReflect

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

func (*CreateFavoriteRequest) Reset

func (x *CreateFavoriteRequest) Reset()

func (*CreateFavoriteRequest) String

func (x *CreateFavoriteRequest) String() string

type CreateFavoriteResponse

type CreateFavoriteResponse struct {
	// contains filtered or unexported fields
}

func (*CreateFavoriteResponse) Descriptor deprecated

func (*CreateFavoriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateFavoriteResponse.ProtoReflect.Descriptor instead.

func (*CreateFavoriteResponse) ProtoMessage

func (*CreateFavoriteResponse) ProtoMessage()

func (*CreateFavoriteResponse) ProtoReflect

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

func (*CreateFavoriteResponse) Reset

func (x *CreateFavoriteResponse) Reset()

func (*CreateFavoriteResponse) String

func (x *CreateFavoriteResponse) String() string

type CreateReviewRequest

type CreateReviewRequest struct {
	Info *ReviewInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

添加评论

func (*CreateReviewRequest) Descriptor deprecated

func (*CreateReviewRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateReviewRequest.ProtoReflect.Descriptor instead.

func (*CreateReviewRequest) GetInfo

func (x *CreateReviewRequest) GetInfo() *ReviewInfo

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

type CreateReviewResponse

type CreateReviewResponse struct {
	// contains filtered or unexported fields
}

func (*CreateReviewResponse) Descriptor deprecated

func (*CreateReviewResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateReviewResponse.ProtoReflect.Descriptor instead.

func (*CreateReviewResponse) ProtoMessage

func (*CreateReviewResponse) ProtoMessage()

func (*CreateReviewResponse) ProtoReflect

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

func (*CreateReviewResponse) Reset

func (x *CreateReviewResponse) Reset()

func (*CreateReviewResponse) String

func (x *CreateReviewResponse) String() string

type DeleteFavoriteRequest

type DeleteFavoriteRequest struct {
	ID int64 `protobuf:"varint,5,opt,name=ID,proto3" json:"ID,omitempty"`
	// contains filtered or unexported fields
}

点赞、收藏删除

func (*DeleteFavoriteRequest) Descriptor deprecated

func (*DeleteFavoriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFavoriteRequest.ProtoReflect.Descriptor instead.

func (*DeleteFavoriteRequest) GetID

func (x *DeleteFavoriteRequest) GetID() int64

func (*DeleteFavoriteRequest) ProtoMessage

func (*DeleteFavoriteRequest) ProtoMessage()

func (*DeleteFavoriteRequest) ProtoReflect

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

func (*DeleteFavoriteRequest) Reset

func (x *DeleteFavoriteRequest) Reset()

func (*DeleteFavoriteRequest) String

func (x *DeleteFavoriteRequest) String() string

type DeleteFavoriteResponse

type DeleteFavoriteResponse struct {
	// contains filtered or unexported fields
}

func (*DeleteFavoriteResponse) Descriptor deprecated

func (*DeleteFavoriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use DeleteFavoriteResponse.ProtoReflect.Descriptor instead.

func (*DeleteFavoriteResponse) ProtoMessage

func (*DeleteFavoriteResponse) ProtoMessage()

func (*DeleteFavoriteResponse) ProtoReflect

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

func (*DeleteFavoriteResponse) Reset

func (x *DeleteFavoriteResponse) Reset()

func (*DeleteFavoriteResponse) String

func (x *DeleteFavoriteResponse) String() string

type FavoriteInfo

type FavoriteInfo struct {
	ID           int64 `protobuf:"varint,2,opt,name=ID,proto3" json:"ID,omitempty"`
	UserId       int64 `protobuf:"varint,5,opt,name=UserId,proto3" json:"UserId,omitempty"`
	ObjectId     int64 `protobuf:"varint,10,opt,name=ObjectId,proto3" json:"ObjectId,omitempty"`
	FavoriteType int64 `protobuf:"varint,15,opt,name=FavoriteType,proto3" json:"FavoriteType,omitempty"`
	ObjectType   int64 `protobuf:"varint,20,opt,name=ObjectType,proto3" json:"ObjectType,omitempty"`
	// contains filtered or unexported fields
}

点赞、收藏

func (*FavoriteInfo) Descriptor deprecated

func (*FavoriteInfo) Descriptor() ([]byte, []int)

Deprecated: Use FavoriteInfo.ProtoReflect.Descriptor instead.

func (*FavoriteInfo) GetFavoriteType

func (x *FavoriteInfo) GetFavoriteType() int64

func (*FavoriteInfo) GetID

func (x *FavoriteInfo) GetID() int64

func (*FavoriteInfo) GetObjectId

func (x *FavoriteInfo) GetObjectId() int64

func (*FavoriteInfo) GetObjectType

func (x *FavoriteInfo) GetObjectType() int64

func (*FavoriteInfo) GetUserId

func (x *FavoriteInfo) GetUserId() int64

func (*FavoriteInfo) ProtoMessage

func (*FavoriteInfo) ProtoMessage()

func (*FavoriteInfo) ProtoReflect

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

func (*FavoriteInfo) Reset

func (x *FavoriteInfo) Reset()

func (*FavoriteInfo) String

func (x *FavoriteInfo) String() string

type FindFavoriteListRequest

type FindFavoriteListRequest struct {
	UserId       int64   `protobuf:"varint,5,opt,name=UserId,proto3" json:"UserId,omitempty"`
	FavoriteType []int64 `protobuf:"varint,10,rep,packed,name=FavoriteType,proto3" json:"FavoriteType,omitempty"`
	// contains filtered or unexported fields
}

点赞、收藏列表

func (*FindFavoriteListRequest) Descriptor deprecated

func (*FindFavoriteListRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindFavoriteListRequest.ProtoReflect.Descriptor instead.

func (*FindFavoriteListRequest) GetFavoriteType

func (x *FindFavoriteListRequest) GetFavoriteType() []int64

func (*FindFavoriteListRequest) GetUserId

func (x *FindFavoriteListRequest) GetUserId() int64

func (*FindFavoriteListRequest) ProtoMessage

func (*FindFavoriteListRequest) ProtoMessage()

func (*FindFavoriteListRequest) ProtoReflect

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

func (*FindFavoriteListRequest) Reset

func (x *FindFavoriteListRequest) Reset()

func (*FindFavoriteListRequest) String

func (x *FindFavoriteListRequest) String() string

type FindFavoriteListResponse

type FindFavoriteListResponse struct {
	Info []*FavoriteInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*FindFavoriteListResponse) Descriptor deprecated

func (*FindFavoriteListResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindFavoriteListResponse.ProtoReflect.Descriptor instead.

func (*FindFavoriteListResponse) GetInfo

func (x *FindFavoriteListResponse) GetInfo() []*FavoriteInfo

func (*FindFavoriteListResponse) ProtoMessage

func (*FindFavoriteListResponse) ProtoMessage()

func (*FindFavoriteListResponse) ProtoReflect

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

func (*FindFavoriteListResponse) Reset

func (x *FindFavoriteListResponse) Reset()

func (*FindFavoriteListResponse) String

func (x *FindFavoriteListResponse) String() string

type FindFavoriteRequest

type FindFavoriteRequest struct {
	UserId     int64 `protobuf:"varint,5,opt,name=UserId,proto3" json:"UserId,omitempty"`
	ObjectId   int64 `protobuf:"varint,10,opt,name=ObjectId,proto3" json:"ObjectId,omitempty"`
	ObjectType int64 `protobuf:"varint,15,opt,name=ObjectType,proto3" json:"ObjectType,omitempty"`
	// contains filtered or unexported fields
}

点赞、收藏详情

func (*FindFavoriteRequest) Descriptor deprecated

func (*FindFavoriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use FindFavoriteRequest.ProtoReflect.Descriptor instead.

func (*FindFavoriteRequest) GetObjectId

func (x *FindFavoriteRequest) GetObjectId() int64

func (*FindFavoriteRequest) GetObjectType

func (x *FindFavoriteRequest) GetObjectType() int64

func (*FindFavoriteRequest) GetUserId

func (x *FindFavoriteRequest) GetUserId() int64

func (*FindFavoriteRequest) ProtoMessage

func (*FindFavoriteRequest) ProtoMessage()

func (*FindFavoriteRequest) ProtoReflect

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

func (*FindFavoriteRequest) Reset

func (x *FindFavoriteRequest) Reset()

func (*FindFavoriteRequest) String

func (x *FindFavoriteRequest) String() string

type FindFavoriteResponse

type FindFavoriteResponse struct {
	Info *FavoriteInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*FindFavoriteResponse) Descriptor deprecated

func (*FindFavoriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use FindFavoriteResponse.ProtoReflect.Descriptor instead.

func (*FindFavoriteResponse) GetInfo

func (x *FindFavoriteResponse) GetInfo() *FavoriteInfo

func (*FindFavoriteResponse) ProtoMessage

func (*FindFavoriteResponse) ProtoMessage()

func (*FindFavoriteResponse) ProtoReflect

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

func (*FindFavoriteResponse) Reset

func (x *FindFavoriteResponse) Reset()

func (*FindFavoriteResponse) String

func (x *FindFavoriteResponse) String() string

type ListReviewRequest

type ListReviewRequest struct {
	ObjectId   int64 `protobuf:"varint,5,opt,name=ObjectId,proto3" json:"ObjectId,omitempty"`
	ReviewType int64 `protobuf:"varint,10,opt,name=ReviewType,proto3" json:"ReviewType,omitempty"`
	// contains filtered or unexported fields
}

展示评论列表

func (*ListReviewRequest) Descriptor deprecated

func (*ListReviewRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListReviewRequest.ProtoReflect.Descriptor instead.

func (*ListReviewRequest) GetObjectId

func (x *ListReviewRequest) GetObjectId() int64

func (*ListReviewRequest) GetReviewType

func (x *ListReviewRequest) GetReviewType() int64

func (*ListReviewRequest) ProtoMessage

func (*ListReviewRequest) ProtoMessage()

func (*ListReviewRequest) ProtoReflect

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

func (*ListReviewRequest) Reset

func (x *ListReviewRequest) Reset()

func (*ListReviewRequest) String

func (x *ListReviewRequest) String() string

type ListReviewResponse

type ListReviewResponse struct {
	Info []*ReviewInfo `protobuf:"bytes,1,rep,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*ListReviewResponse) Descriptor deprecated

func (*ListReviewResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListReviewResponse.ProtoReflect.Descriptor instead.

func (*ListReviewResponse) GetInfo

func (x *ListReviewResponse) GetInfo() []*ReviewInfo

func (*ListReviewResponse) ProtoMessage

func (*ListReviewResponse) ProtoMessage()

func (*ListReviewResponse) ProtoReflect

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

func (*ListReviewResponse) Reset

func (x *ListReviewResponse) Reset()

func (*ListReviewResponse) String

func (x *ListReviewResponse) String() string

type ReviewClient

type ReviewClient interface {
	// 评论
	CreateReview(ctx context.Context, in *CreateReviewRequest, opts ...grpc.CallOption) (*CreateReviewResponse, error)
	ListReview(ctx context.Context, in *ListReviewRequest, opts ...grpc.CallOption) (*ListReviewResponse, error)
	ReviewInfo(ctx context.Context, in *ReviewInfoRequest, opts ...grpc.CallOption) (*ReviewInfoResponse, error)
	ReviewCount(ctx context.Context, in *ReviewCountRequest, opts ...grpc.CallOption) (*ReviewCountResponse, error)
	// 点赞、收藏
	CreateFavorite(ctx context.Context, in *CreateFavoriteRequest, opts ...grpc.CallOption) (*CreateFavoriteResponse, error)
	UpdateFavorite(ctx context.Context, in *UpdateFavoriteRequest, opts ...grpc.CallOption) (*UpdateFavoriteResponse, error)
	FindFavorite(ctx context.Context, in *FindFavoriteRequest, opts ...grpc.CallOption) (*FindFavoriteResponse, error)
	FindFavoriteList(ctx context.Context, in *FindFavoriteListRequest, opts ...grpc.CallOption) (*FindFavoriteListResponse, error)
	CountFavorite(ctx context.Context, in *CountFavoriteRequest, opts ...grpc.CallOption) (*CountFavoriteResponse, error)
	DeleteFavorite(ctx context.Context, in *DeleteFavoriteRequest, opts ...grpc.CallOption) (*DeleteFavoriteResponse, error)
	// 文章
	ArticleInfo(ctx context.Context, in *ArticleInfoRequest, opts ...grpc.CallOption) (*ArticleInfoResponse, error)
	ArticleList(ctx context.Context, in *ArticleListRequest, opts ...grpc.CallOption) (*ArticleListResponse, error)
	ArticleTouristVolumeUpdate(ctx context.Context, in *ArticleTouristVolumeUpdateRequest, opts ...grpc.CallOption) (*ArticleTouristVolumeUpdateResponse, 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 ReviewCountRequest

type ReviewCountRequest struct {
	ObjectId   int64 `protobuf:"varint,5,opt,name=ObjectId,proto3" json:"ObjectId,omitempty"`
	ReviewType int64 `protobuf:"varint,10,opt,name=ReviewType,proto3" json:"ReviewType,omitempty"`
	// contains filtered or unexported fields
}

评论统计

func (*ReviewCountRequest) Descriptor deprecated

func (*ReviewCountRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReviewCountRequest.ProtoReflect.Descriptor instead.

func (*ReviewCountRequest) GetObjectId

func (x *ReviewCountRequest) GetObjectId() int64

func (*ReviewCountRequest) GetReviewType

func (x *ReviewCountRequest) GetReviewType() int64

func (*ReviewCountRequest) ProtoMessage

func (*ReviewCountRequest) ProtoMessage()

func (*ReviewCountRequest) ProtoReflect

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

func (*ReviewCountRequest) Reset

func (x *ReviewCountRequest) Reset()

func (*ReviewCountRequest) String

func (x *ReviewCountRequest) String() string

type ReviewCountResponse

type ReviewCountResponse struct {
	Count    int64 `protobuf:"varint,5,opt,name=Count,proto3" json:"Count,omitempty"`
	ObjectId int64 `protobuf:"varint,10,opt,name=ObjectId,proto3" json:"ObjectId,omitempty"`
	// contains filtered or unexported fields
}

func (*ReviewCountResponse) Descriptor deprecated

func (*ReviewCountResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReviewCountResponse.ProtoReflect.Descriptor instead.

func (*ReviewCountResponse) GetCount

func (x *ReviewCountResponse) GetCount() int64

func (*ReviewCountResponse) GetObjectId

func (x *ReviewCountResponse) GetObjectId() int64

func (*ReviewCountResponse) ProtoMessage

func (*ReviewCountResponse) ProtoMessage()

func (*ReviewCountResponse) ProtoReflect

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

func (*ReviewCountResponse) Reset

func (x *ReviewCountResponse) Reset()

func (*ReviewCountResponse) String

func (x *ReviewCountResponse) String() string

type ReviewInfo

type ReviewInfo struct {
	ID         int64    `protobuf:"varint,5,opt,name=ID,proto3" json:"ID,omitempty"`
	UserId     int64    `protobuf:"varint,10,opt,name=UserId,proto3" json:"UserId,omitempty"`
	ReviewType int64    `protobuf:"varint,15,opt,name=ReviewType,proto3" json:"ReviewType,omitempty"`
	ObjectId   int64    `protobuf:"varint,20,opt,name=ObjectId,proto3" json:"ObjectId,omitempty"`
	StarLevel  int64    `protobuf:"varint,23,opt,name=StarLevel,proto3" json:"StarLevel,omitempty"`
	Content    string   `protobuf:"bytes,25,opt,name=Content,proto3" json:"Content,omitempty"`
	CreatedAt  string   `protobuf:"bytes,30,opt,name=CreatedAt,proto3" json:"CreatedAt,omitempty"`
	Nickname   string   `protobuf:"bytes,35,opt,name=Nickname,proto3" json:"Nickname,omitempty"`
	Avatar     string   `protobuf:"bytes,40,opt,name=Avatar,proto3" json:"Avatar,omitempty"`
	ReviewImg  *Reviews `protobuf:"bytes,45,opt,name=ReviewImg,proto3" json:"ReviewImg,omitempty"`
	// contains filtered or unexported fields
}

func (*ReviewInfo) Descriptor deprecated

func (*ReviewInfo) Descriptor() ([]byte, []int)

Deprecated: Use ReviewInfo.ProtoReflect.Descriptor instead.

func (*ReviewInfo) GetAvatar

func (x *ReviewInfo) GetAvatar() string

func (*ReviewInfo) GetContent

func (x *ReviewInfo) GetContent() string

func (*ReviewInfo) GetCreatedAt

func (x *ReviewInfo) GetCreatedAt() string

func (*ReviewInfo) GetID

func (x *ReviewInfo) GetID() int64

func (*ReviewInfo) GetNickname

func (x *ReviewInfo) GetNickname() string

func (*ReviewInfo) GetObjectId

func (x *ReviewInfo) GetObjectId() int64

func (*ReviewInfo) GetReviewImg

func (x *ReviewInfo) GetReviewImg() *Reviews

func (*ReviewInfo) GetReviewType

func (x *ReviewInfo) GetReviewType() int64

func (*ReviewInfo) GetStarLevel

func (x *ReviewInfo) GetStarLevel() int64

func (*ReviewInfo) GetUserId

func (x *ReviewInfo) GetUserId() int64

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

type ReviewInfoRequest

type ReviewInfoRequest struct {
	UserId     int64 `protobuf:"varint,2,opt,name=UserId,proto3" json:"UserId,omitempty"`
	ObjectId   int64 `protobuf:"varint,5,opt,name=ObjectId,proto3" json:"ObjectId,omitempty"`
	ReviewType int64 `protobuf:"varint,10,opt,name=ReviewType,proto3" json:"ReviewType,omitempty"`
	// contains filtered or unexported fields
}

展示评论详情

func (*ReviewInfoRequest) Descriptor deprecated

func (*ReviewInfoRequest) Descriptor() ([]byte, []int)

Deprecated: Use ReviewInfoRequest.ProtoReflect.Descriptor instead.

func (*ReviewInfoRequest) GetObjectId

func (x *ReviewInfoRequest) GetObjectId() int64

func (*ReviewInfoRequest) GetReviewType

func (x *ReviewInfoRequest) GetReviewType() int64

func (*ReviewInfoRequest) GetUserId

func (x *ReviewInfoRequest) GetUserId() int64

func (*ReviewInfoRequest) ProtoMessage

func (*ReviewInfoRequest) ProtoMessage()

func (*ReviewInfoRequest) ProtoReflect

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

func (*ReviewInfoRequest) Reset

func (x *ReviewInfoRequest) Reset()

func (*ReviewInfoRequest) String

func (x *ReviewInfoRequest) String() string

type ReviewInfoResponse

type ReviewInfoResponse struct {
	Info *ReviewInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*ReviewInfoResponse) Descriptor deprecated

func (*ReviewInfoResponse) Descriptor() ([]byte, []int)

Deprecated: Use ReviewInfoResponse.ProtoReflect.Descriptor instead.

func (*ReviewInfoResponse) GetInfo

func (x *ReviewInfoResponse) GetInfo() *ReviewInfo

func (*ReviewInfoResponse) ProtoMessage

func (*ReviewInfoResponse) ProtoMessage()

func (*ReviewInfoResponse) ProtoReflect

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

func (*ReviewInfoResponse) Reset

func (x *ReviewInfoResponse) Reset()

func (*ReviewInfoResponse) String

func (x *ReviewInfoResponse) String() string

type ReviewServer

ReviewServer is the server API for Review service. All implementations must embed UnimplementedReviewServer for forward compatibility.

type Reviews

type Reviews struct {
	ReviewImg []string `protobuf:"bytes,1,rep,name=ReviewImg,proto3" json:"ReviewImg,omitempty"`
	// contains filtered or unexported fields
}

func (*Reviews) Descriptor deprecated

func (*Reviews) Descriptor() ([]byte, []int)

Deprecated: Use Reviews.ProtoReflect.Descriptor instead.

func (*Reviews) GetReviewImg

func (x *Reviews) GetReviewImg() []string

func (*Reviews) ProtoMessage

func (*Reviews) ProtoMessage()

func (*Reviews) ProtoReflect

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

func (*Reviews) Reset

func (x *Reviews) Reset()

func (*Reviews) String

func (x *Reviews) String() string

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

func (UnimplementedReviewServer) ArticleList

func (UnimplementedReviewServer) CountFavorite

func (UnimplementedReviewServer) CreateFavorite

func (UnimplementedReviewServer) CreateReview

func (UnimplementedReviewServer) DeleteFavorite

func (UnimplementedReviewServer) FindFavorite

func (UnimplementedReviewServer) FindFavoriteList

func (UnimplementedReviewServer) ListReview

func (UnimplementedReviewServer) ReviewCount

func (UnimplementedReviewServer) ReviewInfo

func (UnimplementedReviewServer) UpdateFavorite

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.

type UpdateFavoriteRequest

type UpdateFavoriteRequest struct {
	Info *FavoriteInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

点赞、收藏修改

func (*UpdateFavoriteRequest) Descriptor deprecated

func (*UpdateFavoriteRequest) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFavoriteRequest.ProtoReflect.Descriptor instead.

func (*UpdateFavoriteRequest) GetInfo

func (x *UpdateFavoriteRequest) GetInfo() *FavoriteInfo

func (*UpdateFavoriteRequest) ProtoMessage

func (*UpdateFavoriteRequest) ProtoMessage()

func (*UpdateFavoriteRequest) ProtoReflect

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

func (*UpdateFavoriteRequest) Reset

func (x *UpdateFavoriteRequest) Reset()

func (*UpdateFavoriteRequest) String

func (x *UpdateFavoriteRequest) String() string

type UpdateFavoriteResponse

type UpdateFavoriteResponse struct {
	Info *FavoriteInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

func (*UpdateFavoriteResponse) Descriptor deprecated

func (*UpdateFavoriteResponse) Descriptor() ([]byte, []int)

Deprecated: Use UpdateFavoriteResponse.ProtoReflect.Descriptor instead.

func (*UpdateFavoriteResponse) GetInfo

func (x *UpdateFavoriteResponse) GetInfo() *FavoriteInfo

func (*UpdateFavoriteResponse) ProtoMessage

func (*UpdateFavoriteResponse) ProtoMessage()

func (*UpdateFavoriteResponse) ProtoReflect

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

func (*UpdateFavoriteResponse) Reset

func (x *UpdateFavoriteResponse) Reset()

func (*UpdateFavoriteResponse) String

func (x *UpdateFavoriteResponse) String() string

Jump to

Keyboard shortcuts

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