Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterReviewServer(s grpc.ServiceRegistrar, srv ReviewServer)
- type ArticleImg
- type ArticleInfo
- func (*ArticleInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ArticleInfo) GetArticleContent() string
- func (x *ArticleInfo) GetArticleImg() *ArticleImg
- func (x *ArticleInfo) GetArticleInter() string
- func (x *ArticleInfo) GetArticleTitle() string
- func (x *ArticleInfo) GetID() int64
- func (x *ArticleInfo) GetTouristVolume() int64
- func (*ArticleInfo) ProtoMessage()
- func (x *ArticleInfo) ProtoReflect() protoreflect.Message
- func (x *ArticleInfo) Reset()
- func (x *ArticleInfo) String() string
- type ArticleInfoRequest
- type ArticleInfoResponse
- func (*ArticleInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ArticleInfoResponse) GetInfo() *ArticleInfo
- func (*ArticleInfoResponse) ProtoMessage()
- func (x *ArticleInfoResponse) ProtoReflect() protoreflect.Message
- func (x *ArticleInfoResponse) Reset()
- func (x *ArticleInfoResponse) String() string
- type ArticleListRequest
- type ArticleListResponse
- func (*ArticleListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ArticleListResponse) GetInfo() []*ArticleInfo
- func (*ArticleListResponse) ProtoMessage()
- func (x *ArticleListResponse) ProtoReflect() protoreflect.Message
- func (x *ArticleListResponse) Reset()
- func (x *ArticleListResponse) String() string
- type ArticleTouristVolumeUpdateRequest
- func (*ArticleTouristVolumeUpdateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ArticleTouristVolumeUpdateRequest) GetID() int64
- func (x *ArticleTouristVolumeUpdateRequest) GetTouristVolume() int64
- func (*ArticleTouristVolumeUpdateRequest) ProtoMessage()
- func (x *ArticleTouristVolumeUpdateRequest) ProtoReflect() protoreflect.Message
- func (x *ArticleTouristVolumeUpdateRequest) Reset()
- func (x *ArticleTouristVolumeUpdateRequest) String() string
- type ArticleTouristVolumeUpdateResponse
- func (*ArticleTouristVolumeUpdateResponse) Descriptor() ([]byte, []int)deprecated
- func (*ArticleTouristVolumeUpdateResponse) ProtoMessage()
- func (x *ArticleTouristVolumeUpdateResponse) ProtoReflect() protoreflect.Message
- func (x *ArticleTouristVolumeUpdateResponse) Reset()
- func (x *ArticleTouristVolumeUpdateResponse) String() string
- type CountFavorite
- func (*CountFavorite) Descriptor() ([]byte, []int)deprecated
- func (x *CountFavorite) GetCount() int64
- func (x *CountFavorite) GetObjectId() int64
- func (*CountFavorite) ProtoMessage()
- func (x *CountFavorite) ProtoReflect() protoreflect.Message
- func (x *CountFavorite) Reset()
- func (x *CountFavorite) String() string
- type CountFavoriteRequest
- func (*CountFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CountFavoriteRequest) GetFavoriteType() []int64
- func (x *CountFavoriteRequest) GetObjectType() int64
- func (*CountFavoriteRequest) ProtoMessage()
- func (x *CountFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *CountFavoriteRequest) Reset()
- func (x *CountFavoriteRequest) String() string
- type CountFavoriteResponse
- func (*CountFavoriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CountFavoriteResponse) GetCountInfo() []*CountFavorite
- func (*CountFavoriteResponse) ProtoMessage()
- func (x *CountFavoriteResponse) ProtoReflect() protoreflect.Message
- func (x *CountFavoriteResponse) Reset()
- func (x *CountFavoriteResponse) String() string
- type CreateFavoriteRequest
- func (*CreateFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateFavoriteRequest) GetInfo() *FavoriteInfo
- func (*CreateFavoriteRequest) ProtoMessage()
- func (x *CreateFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *CreateFavoriteRequest) Reset()
- func (x *CreateFavoriteRequest) String() string
- type CreateFavoriteResponse
- type CreateReviewRequest
- func (*CreateReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateReviewRequest) GetInfo() *ReviewInfo
- func (*CreateReviewRequest) ProtoMessage()
- func (x *CreateReviewRequest) ProtoReflect() protoreflect.Message
- func (x *CreateReviewRequest) Reset()
- func (x *CreateReviewRequest) String() string
- type CreateReviewResponse
- type DeleteFavoriteRequest
- func (*DeleteFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteFavoriteRequest) GetID() int64
- func (*DeleteFavoriteRequest) ProtoMessage()
- func (x *DeleteFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteFavoriteRequest) Reset()
- func (x *DeleteFavoriteRequest) String() string
- type DeleteFavoriteResponse
- type FavoriteInfo
- func (*FavoriteInfo) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteInfo) GetFavoriteType() int64
- func (x *FavoriteInfo) GetID() int64
- func (x *FavoriteInfo) GetObjectId() int64
- func (x *FavoriteInfo) GetObjectType() int64
- func (x *FavoriteInfo) GetUserId() int64
- func (*FavoriteInfo) ProtoMessage()
- func (x *FavoriteInfo) ProtoReflect() protoreflect.Message
- func (x *FavoriteInfo) Reset()
- func (x *FavoriteInfo) String() string
- type FindFavoriteListRequest
- func (*FindFavoriteListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindFavoriteListRequest) GetFavoriteType() []int64
- func (x *FindFavoriteListRequest) GetUserId() int64
- func (*FindFavoriteListRequest) ProtoMessage()
- func (x *FindFavoriteListRequest) ProtoReflect() protoreflect.Message
- func (x *FindFavoriteListRequest) Reset()
- func (x *FindFavoriteListRequest) String() string
- type FindFavoriteListResponse
- func (*FindFavoriteListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindFavoriteListResponse) GetInfo() []*FavoriteInfo
- func (*FindFavoriteListResponse) ProtoMessage()
- func (x *FindFavoriteListResponse) ProtoReflect() protoreflect.Message
- func (x *FindFavoriteListResponse) Reset()
- func (x *FindFavoriteListResponse) String() string
- type FindFavoriteRequest
- func (*FindFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindFavoriteRequest) GetObjectId() int64
- func (x *FindFavoriteRequest) GetObjectType() int64
- func (x *FindFavoriteRequest) GetUserId() int64
- func (*FindFavoriteRequest) ProtoMessage()
- func (x *FindFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *FindFavoriteRequest) Reset()
- func (x *FindFavoriteRequest) String() string
- type FindFavoriteResponse
- func (*FindFavoriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FindFavoriteResponse) GetInfo() *FavoriteInfo
- func (*FindFavoriteResponse) ProtoMessage()
- func (x *FindFavoriteResponse) ProtoReflect() protoreflect.Message
- func (x *FindFavoriteResponse) Reset()
- func (x *FindFavoriteResponse) String() string
- type ListReviewRequest
- func (*ListReviewRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListReviewRequest) GetObjectId() int64
- func (x *ListReviewRequest) GetReviewType() int64
- func (*ListReviewRequest) ProtoMessage()
- func (x *ListReviewRequest) ProtoReflect() protoreflect.Message
- func (x *ListReviewRequest) Reset()
- func (x *ListReviewRequest) String() string
- type ListReviewResponse
- func (*ListReviewResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListReviewResponse) GetInfo() []*ReviewInfo
- func (*ListReviewResponse) ProtoMessage()
- func (x *ListReviewResponse) ProtoReflect() protoreflect.Message
- func (x *ListReviewResponse) Reset()
- func (x *ListReviewResponse) String() string
- type ReviewClient
- type ReviewCountRequest
- func (*ReviewCountRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReviewCountRequest) GetObjectId() int64
- func (x *ReviewCountRequest) GetReviewType() int64
- func (*ReviewCountRequest) ProtoMessage()
- func (x *ReviewCountRequest) ProtoReflect() protoreflect.Message
- func (x *ReviewCountRequest) Reset()
- func (x *ReviewCountRequest) String() string
- type ReviewCountResponse
- func (*ReviewCountResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReviewCountResponse) GetCount() int64
- func (x *ReviewCountResponse) GetObjectId() int64
- func (*ReviewCountResponse) ProtoMessage()
- func (x *ReviewCountResponse) ProtoReflect() protoreflect.Message
- func (x *ReviewCountResponse) Reset()
- func (x *ReviewCountResponse) String() string
- type ReviewInfo
- func (*ReviewInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ReviewInfo) GetAvatar() string
- func (x *ReviewInfo) GetContent() string
- func (x *ReviewInfo) GetCreatedAt() string
- func (x *ReviewInfo) GetID() int64
- func (x *ReviewInfo) GetNickname() string
- func (x *ReviewInfo) GetObjectId() int64
- func (x *ReviewInfo) GetReviewImg() *Reviews
- func (x *ReviewInfo) GetReviewType() int64
- func (x *ReviewInfo) GetStarLevel() int64
- func (x *ReviewInfo) GetUserId() int64
- func (*ReviewInfo) ProtoMessage()
- func (x *ReviewInfo) ProtoReflect() protoreflect.Message
- func (x *ReviewInfo) Reset()
- func (x *ReviewInfo) String() string
- type ReviewInfoRequest
- func (*ReviewInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReviewInfoRequest) GetObjectId() int64
- func (x *ReviewInfoRequest) GetReviewType() int64
- func (x *ReviewInfoRequest) GetUserId() int64
- func (*ReviewInfoRequest) ProtoMessage()
- func (x *ReviewInfoRequest) ProtoReflect() protoreflect.Message
- func (x *ReviewInfoRequest) Reset()
- func (x *ReviewInfoRequest) String() string
- type ReviewInfoResponse
- func (*ReviewInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReviewInfoResponse) GetInfo() *ReviewInfo
- func (*ReviewInfoResponse) ProtoMessage()
- func (x *ReviewInfoResponse) ProtoReflect() protoreflect.Message
- func (x *ReviewInfoResponse) Reset()
- func (x *ReviewInfoResponse) String() string
- type ReviewServer
- type Reviews
- type UnimplementedReviewServer
- func (UnimplementedReviewServer) ArticleInfo(context.Context, *ArticleInfoRequest) (*ArticleInfoResponse, error)
- func (UnimplementedReviewServer) ArticleList(context.Context, *ArticleListRequest) (*ArticleListResponse, error)
- func (UnimplementedReviewServer) ArticleTouristVolumeUpdate(context.Context, *ArticleTouristVolumeUpdateRequest) (*ArticleTouristVolumeUpdateResponse, error)
- func (UnimplementedReviewServer) CountFavorite(context.Context, *CountFavoriteRequest) (*CountFavoriteResponse, error)
- func (UnimplementedReviewServer) CreateFavorite(context.Context, *CreateFavoriteRequest) (*CreateFavoriteResponse, error)
- func (UnimplementedReviewServer) CreateReview(context.Context, *CreateReviewRequest) (*CreateReviewResponse, error)
- func (UnimplementedReviewServer) DeleteFavorite(context.Context, *DeleteFavoriteRequest) (*DeleteFavoriteResponse, error)
- func (UnimplementedReviewServer) FindFavorite(context.Context, *FindFavoriteRequest) (*FindFavoriteResponse, error)
- func (UnimplementedReviewServer) FindFavoriteList(context.Context, *FindFavoriteListRequest) (*FindFavoriteListResponse, error)
- func (UnimplementedReviewServer) ListReview(context.Context, *ListReviewRequest) (*ListReviewResponse, error)
- func (UnimplementedReviewServer) ReviewCount(context.Context, *ReviewCountRequest) (*ReviewCountResponse, error)
- func (UnimplementedReviewServer) ReviewInfo(context.Context, *ReviewInfoRequest) (*ReviewInfoResponse, error)
- func (UnimplementedReviewServer) UpdateFavorite(context.Context, *UpdateFavoriteRequest) (*UpdateFavoriteResponse, error)
- type UnsafeReviewServer
- type UpdateFavoriteRequest
- func (*UpdateFavoriteRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateFavoriteRequest) GetInfo() *FavoriteInfo
- func (*UpdateFavoriteRequest) ProtoMessage()
- func (x *UpdateFavoriteRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateFavoriteRequest) Reset()
- func (x *UpdateFavoriteRequest) String() string
- type UpdateFavoriteResponse
- func (*UpdateFavoriteResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateFavoriteResponse) GetInfo() *FavoriteInfo
- func (*UpdateFavoriteResponse) ProtoMessage()
- func (x *UpdateFavoriteResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateFavoriteResponse) Reset()
- func (x *UpdateFavoriteResponse) String() string
Constants ¶
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 ¶
var File_review_proto protoreflect.FileDescriptor
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 (x *ArticleTouristVolumeUpdateRequest) GetID() int64
func (*ArticleTouristVolumeUpdateRequest) GetTouristVolume ¶
func (x *ArticleTouristVolumeUpdateRequest) GetTouristVolume() int64
func (*ArticleTouristVolumeUpdateRequest) ProtoMessage ¶
func (*ArticleTouristVolumeUpdateRequest) ProtoMessage()
func (*ArticleTouristVolumeUpdateRequest) ProtoReflect ¶
func (x *ArticleTouristVolumeUpdateRequest) ProtoReflect() protoreflect.Message
func (*ArticleTouristVolumeUpdateRequest) Reset ¶
func (x *ArticleTouristVolumeUpdateRequest) Reset()
func (*ArticleTouristVolumeUpdateRequest) String ¶
func (x *ArticleTouristVolumeUpdateRequest) String() 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 (x *ArticleTouristVolumeUpdateResponse) ProtoReflect() protoreflect.Message
func (*ArticleTouristVolumeUpdateResponse) Reset ¶
func (x *ArticleTouristVolumeUpdateResponse) Reset()
func (*ArticleTouristVolumeUpdateResponse) String ¶
func (x *ArticleTouristVolumeUpdateResponse) String() 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 ¶
type ReviewServer interface { // 评论 CreateReview(context.Context, *CreateReviewRequest) (*CreateReviewResponse, error) ListReview(context.Context, *ListReviewRequest) (*ListReviewResponse, error) ReviewInfo(context.Context, *ReviewInfoRequest) (*ReviewInfoResponse, error) ReviewCount(context.Context, *ReviewCountRequest) (*ReviewCountResponse, error) // 点赞、收藏 CreateFavorite(context.Context, *CreateFavoriteRequest) (*CreateFavoriteResponse, error) UpdateFavorite(context.Context, *UpdateFavoriteRequest) (*UpdateFavoriteResponse, error) FindFavorite(context.Context, *FindFavoriteRequest) (*FindFavoriteResponse, error) FindFavoriteList(context.Context, *FindFavoriteListRequest) (*FindFavoriteListResponse, error) CountFavorite(context.Context, *CountFavoriteRequest) (*CountFavoriteResponse, error) DeleteFavorite(context.Context, *DeleteFavoriteRequest) (*DeleteFavoriteResponse, error) // 文章 ArticleInfo(context.Context, *ArticleInfoRequest) (*ArticleInfoResponse, error) ArticleList(context.Context, *ArticleListRequest) (*ArticleListResponse, error) ArticleTouristVolumeUpdate(context.Context, *ArticleTouristVolumeUpdateRequest) (*ArticleTouristVolumeUpdateResponse, error) // contains filtered or unexported methods }
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) GetReviewImg ¶
func (*Reviews) ProtoMessage ¶
func (*Reviews) ProtoMessage()
func (*Reviews) ProtoReflect ¶
func (x *Reviews) ProtoReflect() protoreflect.Message
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) ArticleInfo(context.Context, *ArticleInfoRequest) (*ArticleInfoResponse, error)
func (UnimplementedReviewServer) ArticleList ¶
func (UnimplementedReviewServer) ArticleList(context.Context, *ArticleListRequest) (*ArticleListResponse, error)
func (UnimplementedReviewServer) ArticleTouristVolumeUpdate ¶
func (UnimplementedReviewServer) ArticleTouristVolumeUpdate(context.Context, *ArticleTouristVolumeUpdateRequest) (*ArticleTouristVolumeUpdateResponse, error)
func (UnimplementedReviewServer) CountFavorite ¶
func (UnimplementedReviewServer) CountFavorite(context.Context, *CountFavoriteRequest) (*CountFavoriteResponse, error)
func (UnimplementedReviewServer) CreateFavorite ¶
func (UnimplementedReviewServer) CreateFavorite(context.Context, *CreateFavoriteRequest) (*CreateFavoriteResponse, error)
func (UnimplementedReviewServer) CreateReview ¶
func (UnimplementedReviewServer) CreateReview(context.Context, *CreateReviewRequest) (*CreateReviewResponse, error)
func (UnimplementedReviewServer) DeleteFavorite ¶
func (UnimplementedReviewServer) DeleteFavorite(context.Context, *DeleteFavoriteRequest) (*DeleteFavoriteResponse, error)
func (UnimplementedReviewServer) FindFavorite ¶
func (UnimplementedReviewServer) FindFavorite(context.Context, *FindFavoriteRequest) (*FindFavoriteResponse, error)
func (UnimplementedReviewServer) FindFavoriteList ¶
func (UnimplementedReviewServer) FindFavoriteList(context.Context, *FindFavoriteListRequest) (*FindFavoriteListResponse, error)
func (UnimplementedReviewServer) ListReview ¶
func (UnimplementedReviewServer) ListReview(context.Context, *ListReviewRequest) (*ListReviewResponse, error)
func (UnimplementedReviewServer) ReviewCount ¶
func (UnimplementedReviewServer) ReviewCount(context.Context, *ReviewCountRequest) (*ReviewCountResponse, error)
func (UnimplementedReviewServer) ReviewInfo ¶
func (UnimplementedReviewServer) ReviewInfo(context.Context, *ReviewInfoRequest) (*ReviewInfoResponse, error)
func (UnimplementedReviewServer) UpdateFavorite ¶
func (UnimplementedReviewServer) UpdateFavorite(context.Context, *UpdateFavoriteRequest) (*UpdateFavoriteResponse, error)
type UnsafeReviewServer ¶
type UnsafeReviewServer interface {
// contains filtered or unexported methods
}
UnsafeReviewServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReviewServer will result in compilation errors.
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