Documentation ¶
Overview ¶
Package content is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package content is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package content is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package content is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package content is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Package content is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterActionServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error
- func RegisterActionServiceHandlerClient(ctx context.Context, mux *gin.Engine, client ActionServiceClient) error
- func RegisterActionServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
- func RegisterActionServiceHandlerServer(mux *gin.Engine, server ActionServiceServer) error
- func RegisterActionServiceServer(s grpc.ServiceRegistrar, srv ActionServiceServer)
- func RegisterContentServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error
- func RegisterContentServiceHandlerClient(ctx context.Context, mux *gin.Engine, client ContentServiceClient) error
- func RegisterContentServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
- func RegisterContentServiceHandlerServer(mux *gin.Engine, server ContentServiceServer) error
- func RegisterContentServiceServer(s grpc.ServiceRegistrar, srv ContentServiceServer)
- func RegisterDiaryServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error
- func RegisterDiaryServiceHandlerClient(ctx context.Context, mux *gin.Engine, client DiaryServiceClient) error
- func RegisterDiaryServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
- func RegisterDiaryServiceHandlerServer(mux *gin.Engine, server DiaryServiceServer) error
- func RegisterDiaryServiceServer(s grpc.ServiceRegistrar, srv DiaryServiceServer)
- func RegisterMomentServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error
- func RegisterMomentServiceHandlerClient(ctx context.Context, mux *gin.Engine, client MomentServiceClient) error
- func RegisterMomentServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
- func RegisterMomentServiceHandlerServer(mux *gin.Engine, server MomentServiceServer) error
- func RegisterMomentServiceServer(s grpc.ServiceRegistrar, srv MomentServiceServer)
- func RegisterNoteServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error
- func RegisterNoteServiceHandlerClient(ctx context.Context, mux *gin.Engine, client NoteServiceClient) error
- func RegisterNoteServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
- func RegisterNoteServiceHandlerServer(mux *gin.Engine, server NoteServiceServer) error
- func RegisterNoteServiceServer(s grpc.ServiceRegistrar, srv NoteServiceServer)
- func RegisterTestServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error
- func RegisterTestServiceHandlerClient(ctx context.Context, mux *gin.Engine, client TestServiceClient) error
- func RegisterTestServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
- func RegisterTestServiceHandlerServer(mux *gin.Engine, server TestServiceServer) error
- func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
- type ActionServiceClient
- type ActionServiceServer
- type ActionType
- func (ActionType) Descriptor() protoreflect.EnumDescriptor
- func (x ActionType) Enum() *ActionType
- func (ActionType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ActionType) MarshalGQL(w io.Writer)
- func (x ActionType) Number() protoreflect.EnumNumber
- func (x ActionType) OrigString() string
- func (x ActionType) String() string
- func (ActionType) Type() protoreflect.EnumType
- func (x *ActionType) UnmarshalGQL(v interface{}) error
- type AddAttrReq
- func (*AddAttrReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddAttrReq) GetDescription() string
- func (x *AddAttrReq) GetExpressionURL() string
- func (x *AddAttrReq) GetName() string
- func (x *AddAttrReq) GetType() AttrType
- func (*AddAttrReq) ProtoMessage()
- func (x *AddAttrReq) ProtoReflect() protoreflect.Message
- func (x *AddAttrReq) Reset()
- func (x *AddAttrReq) String() string
- func (this *AddAttrReq) Validate() error
- type AddContainerReq
- func (*AddContainerReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddContainerReq) GetAnonymous() uint32
- func (x *AddContainerReq) GetCover() string
- func (x *AddContainerReq) GetDescription() string
- func (x *AddContainerReq) GetId() uint64
- func (x *AddContainerReq) GetSequence() uint32
- func (x *AddContainerReq) GetTitle() string
- func (x *AddContainerReq) GetType() ContainerType
- func (x *AddContainerReq) GetUserId() uint64
- func (*AddContainerReq) ProtoMessage()
- func (x *AddContainerReq) ProtoReflect() protoreflect.Message
- func (x *AddContainerReq) Reset()
- func (x *AddContainerReq) String() string
- func (this *AddContainerReq) Validate() error
- type AddDiaryBookReq
- func (*AddDiaryBookReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddDiaryBookReq) GetAnonymous() uint32
- func (x *AddDiaryBookReq) GetCover() string
- func (x *AddDiaryBookReq) GetDescription() string
- func (x *AddDiaryBookReq) GetId() uint64
- func (x *AddDiaryBookReq) GetSequence() uint32
- func (x *AddDiaryBookReq) GetTitle() string
- func (x *AddDiaryBookReq) GetUserId() uint64
- func (*AddDiaryBookReq) ProtoMessage()
- func (x *AddDiaryBookReq) ProtoReflect() protoreflect.Message
- func (x *AddDiaryBookReq) Reset()
- func (x *AddDiaryBookReq) String() string
- func (this *AddDiaryBookReq) Validate() error
- type AddDiaryReq
- func (*AddDiaryReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddDiaryReq) GetAnonymous() uint32
- func (x *AddDiaryReq) GetAreaId() uint64
- func (x *AddDiaryReq) GetAreaVisibility() uint32
- func (x *AddDiaryReq) GetBookId() uint64
- func (x *AddDiaryReq) GetContent() string
- func (x *AddDiaryReq) GetId() uint64
- func (x *AddDiaryReq) GetLocation() string
- func (x *AddDiaryReq) GetMood() string
- func (x *AddDiaryReq) GetPermission() ViewPermission
- func (x *AddDiaryReq) GetSequence() uint32
- func (x *AddDiaryReq) GetTags() []string
- func (x *AddDiaryReq) GetUserId() uint64
- func (x *AddDiaryReq) GetWeather() string
- func (*AddDiaryReq) ProtoMessage()
- func (x *AddDiaryReq) ProtoReflect() protoreflect.Message
- func (x *AddDiaryReq) Reset()
- func (x *AddDiaryReq) String() string
- func (this *AddDiaryReq) Validate() error
- type AddFavReq
- func (*AddFavReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddFavReq) GetAnonymous() uint32
- func (x *AddFavReq) GetCover() string
- func (x *AddFavReq) GetDescription() string
- func (x *AddFavReq) GetId() uint64
- func (x *AddFavReq) GetSequence() uint32
- func (x *AddFavReq) GetTitle() string
- func (x *AddFavReq) GetUserId() uint64
- func (*AddFavReq) ProtoMessage()
- func (x *AddFavReq) ProtoReflect() protoreflect.Message
- func (x *AddFavReq) Reset()
- func (x *AddFavReq) String() string
- func (this *AddFavReq) Validate() error
- type AddMomentReq
- func (*AddMomentReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddMomentReq) GetAnonymous() uint32
- func (x *AddMomentReq) GetAreaId() uint64
- func (x *AddMomentReq) GetAreaVisibility() uint32
- func (x *AddMomentReq) GetBookId() uint64
- func (x *AddMomentReq) GetContent() string
- func (x *AddMomentReq) GetId() uint64
- func (x *AddMomentReq) GetImages() string
- func (x *AddMomentReq) GetLocation() string
- func (x *AddMomentReq) GetMood() string
- func (x *AddMomentReq) GetPermission() ViewPermission
- func (x *AddMomentReq) GetSequence() uint32
- func (x *AddMomentReq) GetTags() []string
- func (x *AddMomentReq) GetType() MomentType
- func (x *AddMomentReq) GetUserId() uint64
- func (x *AddMomentReq) GetWeather() string
- func (*AddMomentReq) ProtoMessage()
- func (x *AddMomentReq) ProtoReflect() protoreflect.Message
- func (x *AddMomentReq) Reset()
- func (x *AddMomentReq) String() string
- func (this *AddMomentReq) Validate() error
- type AddTagReq
- func (*AddTagReq) Descriptor() ([]byte, []int)deprecated
- func (x *AddTagReq) GetDescription() string
- func (x *AddTagReq) GetExpressionURL() string
- func (x *AddTagReq) GetName() string
- func (x *AddTagReq) GetUserId() uint64
- func (*AddTagReq) ProtoMessage()
- func (x *AddTagReq) ProtoReflect() protoreflect.Message
- func (x *AddTagReq) Reset()
- func (x *AddTagReq) String() string
- func (this *AddTagReq) Validate() error
- type ArrayReq
- type Article
- func (*Article) Descriptor() ([]byte, []int)deprecated
- func (x *Article) GetAbstract() string
- func (x *Article) GetAnonymous() uint32
- func (x *Article) GetApproveUsers() []*user.UserBaseInfo
- func (x *Article) GetArea() *area.Area
- func (x *Article) GetAreaId() uint64
- func (x *Article) GetCollectUsers() []*user.UserBaseInfo
- func (x *Article) GetComments() []*Comment
- func (x *Article) GetContent() string
- func (x *Article) GetContentType() uint32
- func (x *Article) GetCreatedAt() string
- func (x *Article) GetDeletedAt() string
- func (x *Article) GetId() uint64
- func (x *Article) GetIntro() string
- func (x *Article) GetLikeUsers() []*user.UserBaseInfo
- func (x *Article) GetLocation() string
- func (x *Article) GetMood() *TinyTag
- func (x *Article) GetPermission() ViewPermission
- func (x *Article) GetSequence() uint32
- func (x *Article) GetStatus() uint32
- func (x *Article) GetTags() []*Tag
- func (x *Article) GetTitle() string
- func (x *Article) GetUser() *user.UserBaseInfo
- func (x *Article) GetUserId() uint64
- func (x *Article) GetWeather() *TinyTag
- func (*Article) ProtoMessage()
- func (x *Article) ProtoReflect() protoreflect.Message
- func (x *Article) Reset()
- func (x *Article) String() string
- type AttrGroup
- func (*AttrGroup) Descriptor() ([]byte, []int)deprecated
- func (x *AttrGroup) GetCreatedAt() string
- func (x *AttrGroup) GetId() uint64
- func (x *AttrGroup) GetName() string
- func (x *AttrGroup) GetParentId() uint64
- func (x *AttrGroup) GetStatus() uint32
- func (*AttrGroup) ProtoMessage()
- func (x *AttrGroup) ProtoReflect() protoreflect.Message
- func (x *AttrGroup) Reset()
- func (x *AttrGroup) String() string
- type AttrListRep
- func (*AttrListRep) Descriptor() ([]byte, []int)deprecated
- func (x *AttrListRep) GetList() []*Attributes
- func (x *AttrListRep) GetTotal() int64
- func (*AttrListRep) ProtoMessage()
- func (x *AttrListRep) ProtoReflect() protoreflect.Message
- func (x *AttrListRep) Reset()
- func (x *AttrListRep) String() string
- func (this *AttrListRep) Validate() error
- type AttrListReq
- func (*AttrListReq) Descriptor() ([]byte, []int)deprecated
- func (x *AttrListReq) GetName() string
- func (x *AttrListReq) GetType() AttrType
- func (*AttrListReq) ProtoMessage()
- func (x *AttrListReq) ProtoReflect() protoreflect.Message
- func (x *AttrListReq) Reset()
- func (x *AttrListReq) String() string
- func (this *AttrListReq) Validate() error
- type AttrType
- func (AttrType) Descriptor() protoreflect.EnumDescriptor
- func (x AttrType) Enum() *AttrType
- func (AttrType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AttrType) MarshalGQL(w io.Writer)
- func (x AttrType) Number() protoreflect.EnumNumber
- func (x AttrType) OrigString() string
- func (x AttrType) String() string
- func (AttrType) Type() protoreflect.EnumType
- func (x *AttrType) UnmarshalGQL(v interface{}) error
- type Attributes
- func (*Attributes) Descriptor() ([]byte, []int)deprecated
- func (x *Attributes) GetCreatedAt() string
- func (x *Attributes) GetDescribe() string
- func (x *Attributes) GetId() uint64
- func (x *Attributes) GetName() string
- func (x *Attributes) GetRange() uint32
- func (x *Attributes) GetStatus() uint32
- func (x *Attributes) GetStyle() uint32
- func (*Attributes) ProtoMessage()
- func (x *Attributes) ProtoReflect() protoreflect.Message
- func (x *Attributes) Reset()
- func (x *Attributes) String() string
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetCreatedAt() string
- func (x *Category) GetId() uint64
- func (x *Category) GetName() string
- func (x *Category) GetParentId() uint64
- func (x *Category) GetSequence() uint32
- func (x *Category) GetStatus() uint32
- func (x *Category) GetUserId() uint64
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- type CollectReq
- func (*CollectReq) Descriptor() ([]byte, []int)deprecated
- func (x *CollectReq) GetFavIds() []uint64
- func (x *CollectReq) GetId() uint64
- func (x *CollectReq) GetRefId() uint64
- func (x *CollectReq) GetType() ContentType
- func (x *CollectReq) GetUserId() uint64
- func (*CollectReq) ProtoMessage()
- func (x *CollectReq) ProtoReflect() protoreflect.Message
- func (x *CollectReq) Reset()
- func (x *CollectReq) String() string
- func (this *CollectReq) Validate() error
- type Collection
- func (*Collection) Descriptor() ([]byte, []int)deprecated
- func (x *Collection) GetCreatedAt() string
- func (x *Collection) GetDeletedAt() string
- func (x *Collection) GetFavId() uint64
- func (x *Collection) GetId() uint64
- func (x *Collection) GetRefId() uint64
- func (x *Collection) GetType() ContentType
- func (x *Collection) GetUser() *user.UserBaseInfo
- func (x *Collection) GetUserId() uint64
- func (*Collection) ProtoMessage()
- func (x *Collection) ProtoReflect() protoreflect.Message
- func (x *Collection) Reset()
- func (x *Collection) String() string
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetCollects() []uint64
- func (x *Comment) GetContent() string
- func (x *Comment) GetCreatedAt() string
- func (x *Comment) GetDeletedAt() string
- func (x *Comment) GetExt() *ContentExt
- func (x *Comment) GetId() uint64
- func (x *Comment) GetImage() string
- func (x *Comment) GetLikeId() uint64
- func (x *Comment) GetRecvId() uint64
- func (x *Comment) GetRecvUser() *user.UserBaseInfo
- func (x *Comment) GetRefId() uint64
- func (x *Comment) GetReplyId() uint64
- func (x *Comment) GetRootId() uint64
- func (x *Comment) GetSequence() uint32
- func (x *Comment) GetStatus() uint32
- func (x *Comment) GetSubComments() []*Comment
- func (x *Comment) GetType() ContentType
- func (x *Comment) GetUnlikeId() uint64
- func (x *Comment) GetUser() *user.UserBaseInfo
- func (x *Comment) GetUserId() uint64
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- type CommentListRep
- func (*CommentListRep) Descriptor() ([]byte, []int)deprecated
- func (x *CommentListRep) GetList() []*Comment
- func (x *CommentListRep) GetTotal() int64
- func (x *CommentListRep) GetUsers() []*user.UserBaseInfo
- func (*CommentListRep) ProtoMessage()
- func (x *CommentListRep) ProtoReflect() protoreflect.Message
- func (x *CommentListRep) Reset()
- func (x *CommentListRep) String() string
- func (this *CommentListRep) Validate() error
- type CommentListReq
- func (*CommentListReq) Descriptor() ([]byte, []int)deprecated
- func (x *CommentListReq) GetPageNo() uint32
- func (x *CommentListReq) GetPageSize() uint32
- func (x *CommentListReq) GetRefId() uint64
- func (x *CommentListReq) GetRootId() uint64
- func (x *CommentListReq) GetType() ContentType
- func (*CommentListReq) ProtoMessage()
- func (x *CommentListReq) ProtoReflect() protoreflect.Message
- func (x *CommentListReq) Reset()
- func (x *CommentListReq) String() string
- func (this *CommentListReq) Validate() error
- type CommentReq
- func (*CommentReq) Descriptor() ([]byte, []int)deprecated
- func (x *CommentReq) GetContent() string
- func (x *CommentReq) GetId() uint64
- func (x *CommentReq) GetImage() string
- func (x *CommentReq) GetRecvId() uint64
- func (x *CommentReq) GetRefId() uint64
- func (x *CommentReq) GetReplyId() uint64
- func (x *CommentReq) GetRootId() uint64
- func (x *CommentReq) GetSequence() uint32
- func (x *CommentReq) GetType() ContentType
- func (x *CommentReq) GetUser() *user.UserBaseInfo
- func (x *CommentReq) GetUserId() uint64
- func (*CommentReq) ProtoMessage()
- func (x *CommentReq) ProtoReflect() protoreflect.Message
- func (x *CommentReq) Reset()
- func (x *CommentReq) String() string
- func (this *CommentReq) Validate() error
- type CommentType
- func (CommentType) Descriptor() protoreflect.EnumDescriptor
- func (x CommentType) Enum() *CommentType
- func (CommentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CommentType) MarshalGQL(w io.Writer)
- func (x CommentType) Number() protoreflect.EnumNumber
- func (x CommentType) OrigString() string
- func (x CommentType) String() string
- func (CommentType) Type() protoreflect.EnumType
- func (x *CommentType) UnmarshalGQL(v interface{}) error
- type Container
- func (*Container) Descriptor() ([]byte, []int)deprecated
- func (x *Container) GetAnonymous() uint32
- func (x *Container) GetCover() string
- func (x *Container) GetCreatedAt() string
- func (x *Container) GetDeletedAt() string
- func (x *Container) GetDescription() string
- func (x *Container) GetId() uint64
- func (x *Container) GetPermission() ViewPermission
- func (x *Container) GetSequence() uint32
- func (x *Container) GetStatus() uint32
- func (x *Container) GetTitle() string
- func (x *Container) GetType() ContainerType
- func (x *Container) GetUserId() uint64
- func (*Container) ProtoMessage()
- func (x *Container) ProtoReflect() protoreflect.Message
- func (x *Container) Reset()
- func (x *Container) String() string
- type ContainerType
- func (ContainerType) Descriptor() protoreflect.EnumDescriptor
- func (x ContainerType) Enum() *ContainerType
- func (ContainerType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ContainerType) MarshalGQL(w io.Writer)
- func (x ContainerType) Number() protoreflect.EnumNumber
- func (x ContainerType) OrigString() string
- func (x ContainerType) String() string
- func (ContainerType) Type() protoreflect.EnumType
- func (x *ContainerType) UnmarshalGQL(v interface{}) error
- type Content
- func (*Content) Descriptor() ([]byte, []int)deprecated
- func (x *Content) GetAbstract() string
- func (x *Content) GetAnonymous() uint32
- func (x *Content) GetApproveUsers() []*user.UserBaseInfo
- func (x *Content) GetArea() *area.Area
- func (x *Content) GetAreaId() uint64
- func (x *Content) GetCollectUsers() []*user.UserBaseInfo
- func (x *Content) GetComments() []*Comment
- func (x *Content) GetContent() string
- func (x *Content) GetCreatedAt() string
- func (x *Content) GetId() uint64
- func (x *Content) GetIntro() string
- func (x *Content) GetLikeUsers() []*user.UserBaseInfo
- func (x *Content) GetLocation() string
- func (x *Content) GetMood() *Tag
- func (x *Content) GetPermission() ViewPermission
- func (x *Content) GetSequence() uint32
- func (x *Content) GetStatus() uint32
- func (x *Content) GetTags() []*Tag
- func (x *Content) GetTitle() string
- func (x *Content) GetType() ContentType
- func (x *Content) GetUser() *user.UserBaseInfo
- func (x *Content) GetUserId() uint64
- func (x *Content) GetWeather() *Tag
- func (*Content) ProtoMessage()
- func (x *Content) ProtoReflect() protoreflect.Message
- func (x *Content) Reset()
- func (x *Content) String() string
- type ContentAttr
- func (*ContentAttr) Descriptor() ([]byte, []int)deprecated
- func (x *ContentAttr) GetAttrValue() string
- func (x *ContentAttr) GetContentId() uint64
- func (x *ContentAttr) GetContentType() ContentType
- func (x *ContentAttr) GetRefId() uint64
- func (x *ContentAttr) GetRelativity() uint32
- func (x *ContentAttr) GetSequence() uint32
- func (x *ContentAttr) GetStatus() uint32
- func (x *ContentAttr) GetType() AttrType
- func (x *ContentAttr) GetUserId() uint64
- func (x *ContentAttr) GetVisibility() uint32
- func (*ContentAttr) ProtoMessage()
- func (x *ContentAttr) ProtoReflect() protoreflect.Message
- func (x *ContentAttr) Reset()
- func (x *ContentAttr) String() string
- type ContentDel
- func (*ContentDel) Descriptor() ([]byte, []int)deprecated
- func (x *ContentDel) GetCreatedAt() string
- func (x *ContentDel) GetDelReason() DelReason
- func (x *ContentDel) GetRefId() uint64
- func (x *ContentDel) GetRemark() string
- func (x *ContentDel) GetType() ContentType
- func (*ContentDel) ProtoMessage()
- func (x *ContentDel) ProtoReflect() protoreflect.Message
- func (x *ContentDel) Reset()
- func (x *ContentDel) String() string
- type ContentExt
- func (*ContentExt) Descriptor() ([]byte, []int)deprecated
- func (x *ContentExt) GetBrowseCount() uint64
- func (x *ContentExt) GetCollectCount() uint64
- func (x *ContentExt) GetCommentCount() uint64
- func (x *ContentExt) GetLikeCount() uint64
- func (x *ContentExt) GetRefId() uint64
- func (x *ContentExt) GetReportCount() uint64
- func (x *ContentExt) GetType() ContentType
- func (x *ContentExt) GetUnlikeCount() uint64
- func (*ContentExt) ProtoMessage()
- func (x *ContentExt) ProtoReflect() protoreflect.Message
- func (x *ContentExt) Reset()
- func (x *ContentExt) String() string
- type ContentServiceClient
- type ContentServiceServer
- type ContentTag
- func (*ContentTag) Descriptor() ([]byte, []int)deprecated
- func (x *ContentTag) GetRefId() uint64
- func (x *ContentTag) GetRelativity() uint32
- func (x *ContentTag) GetTagId() uint64
- func (x *ContentTag) GetType() ContentType
- func (*ContentTag) ProtoMessage()
- func (x *ContentTag) ProtoReflect() protoreflect.Message
- func (x *ContentTag) Reset()
- func (x *ContentTag) String() string
- type ContentType
- func (ContentType) Descriptor() protoreflect.EnumDescriptor
- func (x ContentType) Enum() *ContentType
- func (ContentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x ContentType) MarshalGQL(w io.Writer)
- func (x ContentType) Number() protoreflect.EnumNumber
- func (x ContentType) OrigString() string
- func (x ContentType) String() string
- func (ContentType) Type() protoreflect.EnumType
- func (x *ContentType) UnmarshalGQL(v interface{}) error
- type CreateNoteReq
- func (*CreateNoteReq) Descriptor() ([]byte, []int)deprecated
- func (x *CreateNoteReq) GetContent() string
- func (x *CreateNoteReq) GetPublicName() string
- func (x *CreateNoteReq) GetTitle() string
- func (*CreateNoteReq) ProtoMessage()
- func (x *CreateNoteReq) ProtoReflect() protoreflect.Message
- func (x *CreateNoteReq) Reset()
- func (x *CreateNoteReq) String() string
- func (this *CreateNoteReq) Validate() error
- type DelReason
- func (DelReason) Descriptor() protoreflect.EnumDescriptor
- func (x DelReason) Enum() *DelReason
- func (DelReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x DelReason) MarshalGQL(w io.Writer)
- func (x DelReason) Number() protoreflect.EnumNumber
- func (x DelReason) OrigString() string
- func (x DelReason) String() string
- func (DelReason) Type() protoreflect.EnumType
- func (x *DelReason) UnmarshalGQL(v interface{}) error
- type Diary
- func (*Diary) Descriptor() ([]byte, []int)deprecated
- func (x *Diary) GetAnonymous() uint32
- func (x *Diary) GetApproveUsers() []*user.UserBaseInfo
- func (x *Diary) GetArea() *area.Area
- func (x *Diary) GetAreaId() uint64
- func (x *Diary) GetAreaVisibility() uint32
- func (x *Diary) GetBook() *DiaryBook
- func (x *Diary) GetBookId() uint64
- func (x *Diary) GetCollectUsers() []*user.UserBaseInfo
- func (x *Diary) GetComments() []*Comment
- func (x *Diary) GetContent() string
- func (x *Diary) GetCreatedAt() string
- func (x *Diary) GetDeletedAt() string
- func (x *Diary) GetId() uint64
- func (x *Diary) GetLikeUsers() []*user.UserBaseInfo
- func (x *Diary) GetLocation() string
- func (x *Diary) GetMood() *TinyTag
- func (x *Diary) GetPermission() ViewPermission
- func (x *Diary) GetSequence() uint32
- func (x *Diary) GetStatus() uint32
- func (x *Diary) GetTags() []*TinyTag
- func (x *Diary) GetUser() *user.UserBaseInfo
- func (x *Diary) GetUserId() uint64
- func (x *Diary) GetWeather() *TinyTag
- func (*Diary) ProtoMessage()
- func (x *Diary) ProtoReflect() protoreflect.Message
- func (x *Diary) Reset()
- func (x *Diary) String() string
- type DiaryBook
- func (*DiaryBook) Descriptor() ([]byte, []int)deprecated
- func (x *DiaryBook) GetAnonymous() uint32
- func (x *DiaryBook) GetCover() string
- func (x *DiaryBook) GetCreatedAt() string
- func (x *DiaryBook) GetDeletedAt() string
- func (x *DiaryBook) GetDescription() string
- func (x *DiaryBook) GetId() uint64
- func (x *DiaryBook) GetPermission() ViewPermission
- func (x *DiaryBook) GetSequence() uint32
- func (x *DiaryBook) GetStatus() uint32
- func (x *DiaryBook) GetTitle() string
- func (x *DiaryBook) GetUserId() uint64
- func (*DiaryBook) ProtoMessage()
- func (x *DiaryBook) ProtoReflect() protoreflect.Message
- func (x *DiaryBook) Reset()
- func (x *DiaryBook) String() string
- type DiaryBookListRep
- func (*DiaryBookListRep) Descriptor() ([]byte, []int)deprecated
- func (x *DiaryBookListRep) GetCount() uint32
- func (x *DiaryBookListRep) GetList() []*DiaryBook
- func (*DiaryBookListRep) ProtoMessage()
- func (x *DiaryBookListRep) ProtoReflect() protoreflect.Message
- func (x *DiaryBookListRep) Reset()
- func (x *DiaryBookListRep) String() string
- func (this *DiaryBookListRep) Validate() error
- type DiaryBookListReq
- type DiaryBookRep
- func (*DiaryBookRep) Descriptor() ([]byte, []int)deprecated
- func (x *DiaryBookRep) GetBook() *DiaryBook
- func (x *DiaryBookRep) GetList() []*Diary
- func (*DiaryBookRep) ProtoMessage()
- func (x *DiaryBookRep) ProtoReflect() protoreflect.Message
- func (x *DiaryBookRep) Reset()
- func (x *DiaryBookRep) String() string
- func (this *DiaryBookRep) Validate() error
- type DiaryBookReq
- func (*DiaryBookReq) Descriptor() ([]byte, []int)deprecated
- func (x *DiaryBookReq) GetId() uint64
- func (x *DiaryBookReq) GetPageNo() uint32
- func (x *DiaryBookReq) GetPageSize() uint32
- func (*DiaryBookReq) ProtoMessage()
- func (x *DiaryBookReq) ProtoReflect() protoreflect.Message
- func (x *DiaryBookReq) Reset()
- func (x *DiaryBookReq) String() string
- func (this *DiaryBookReq) Validate() error
- type DiaryListRep
- func (*DiaryListRep) Descriptor() ([]byte, []int)deprecated
- func (x *DiaryListRep) GetList() []*Diary
- func (x *DiaryListRep) GetTotal() int64
- func (*DiaryListRep) ProtoMessage()
- func (x *DiaryListRep) ProtoReflect() protoreflect.Message
- func (x *DiaryListRep) Reset()
- func (x *DiaryListRep) String() string
- func (this *DiaryListRep) Validate() error
- type DiaryListReq
- func (*DiaryListReq) Descriptor() ([]byte, []int)deprecated
- func (x *DiaryListReq) GetPageNo() uint32
- func (x *DiaryListReq) GetPageSize() uint32
- func (*DiaryListReq) ProtoMessage()
- func (x *DiaryListReq) ProtoReflect() protoreflect.Message
- func (x *DiaryListReq) Reset()
- func (x *DiaryListReq) String() string
- func (this *DiaryListReq) Validate() error
- type DiaryServiceClient
- type DiaryServiceServer
- type EditAttrReq
- func (*EditAttrReq) Descriptor() ([]byte, []int)deprecated
- func (x *EditAttrReq) GetDescription() string
- func (x *EditAttrReq) GetExpressionURL() string
- func (x *EditAttrReq) GetId() uint64
- func (x *EditAttrReq) GetName() string
- func (*EditAttrReq) ProtoMessage()
- func (x *EditAttrReq) ProtoReflect() protoreflect.Message
- func (x *EditAttrReq) Reset()
- func (x *EditAttrReq) String() string
- func (this *EditAttrReq) Validate() error
- type EditTagReq
- func (*EditTagReq) Descriptor() ([]byte, []int)deprecated
- func (x *EditTagReq) GetDescription() string
- func (x *EditTagReq) GetExpressionURL() string
- func (x *EditTagReq) GetId() uint64
- func (x *EditTagReq) GetName() string
- func (*EditTagReq) ProtoMessage()
- func (x *EditTagReq) ProtoReflect() protoreflect.Message
- func (x *EditTagReq) Reset()
- func (x *EditTagReq) String() string
- func (this *EditTagReq) Validate() error
- type FavFollow
- func (*FavFollow) Descriptor() ([]byte, []int)deprecated
- func (x *FavFollow) GetCreatedAt() string
- func (x *FavFollow) GetDeletedAt() string
- func (x *FavFollow) GetFavId() uint64
- func (x *FavFollow) GetUserId() uint64
- func (*FavFollow) ProtoMessage()
- func (x *FavFollow) ProtoReflect() protoreflect.Message
- func (x *FavFollow) Reset()
- func (x *FavFollow) String() string
- type FavListRep
- func (*FavListRep) Descriptor() ([]byte, []int)deprecated
- func (x *FavListRep) GetList() []*Favorites
- func (x *FavListRep) GetTotal() int64
- func (*FavListRep) ProtoMessage()
- func (x *FavListRep) ProtoReflect() protoreflect.Message
- func (x *FavListRep) Reset()
- func (x *FavListRep) String() string
- func (this *FavListRep) Validate() error
- type FavListReq
- type Favorites
- func (*Favorites) Descriptor() ([]byte, []int)deprecated
- func (x *Favorites) GetAnonymous() uint32
- func (x *Favorites) GetCollections() []*Collection
- func (x *Favorites) GetCover() string
- func (x *Favorites) GetCreatedAt() string
- func (x *Favorites) GetDeletedAt() string
- func (x *Favorites) GetDescription() string
- func (x *Favorites) GetFollowUsers() []*user.UserBaseInfo
- func (x *Favorites) GetId() uint64
- func (x *Favorites) GetSequence() uint32
- func (x *Favorites) GetTitle() string
- func (x *Favorites) GetUser() *user.UserBaseInfo
- func (x *Favorites) GetUserId() uint64
- func (*Favorites) ProtoMessage()
- func (x *Favorites) ProtoReflect() protoreflect.Message
- func (x *Favorites) Reset()
- func (x *Favorites) String() string
- type GCReq
- type Gift
- func (*Gift) Descriptor() ([]byte, []int)deprecated
- func (x *Gift) GetDescription() string
- func (x *Gift) GetExpressionURL() string
- func (x *Gift) GetId() uint64
- func (x *Gift) GetName() string
- func (x *Gift) GetPrice() uint64
- func (*Gift) ProtoMessage()
- func (x *Gift) ProtoReflect() protoreflect.Message
- func (x *Gift) Reset()
- func (x *Gift) String() string
- type ID
- type Like
- func (*Like) Descriptor() ([]byte, []int)deprecated
- func (x *Like) GetAction() ActionType
- func (x *Like) GetCreatedAt() string
- func (x *Like) GetDeletedAt() string
- func (x *Like) GetId() uint64
- func (x *Like) GetRefId() uint64
- func (x *Like) GetType() ContentType
- func (x *Like) GetUser() *user.UserBaseInfo
- func (x *Like) GetUserId() uint64
- func (*Like) ProtoMessage()
- func (x *Like) ProtoReflect() protoreflect.Message
- func (x *Like) Reset()
- func (x *Like) String() string
- type LikeReq
- func (*LikeReq) Descriptor() ([]byte, []int)deprecated
- func (x *LikeReq) GetAction() ActionType
- func (x *LikeReq) GetId() uint64
- func (x *LikeReq) GetRefId() uint64
- func (x *LikeReq) GetType() ContentType
- func (x *LikeReq) GetUserId() uint64
- func (*LikeReq) ProtoMessage()
- func (x *LikeReq) ProtoReflect() protoreflect.Message
- func (x *LikeReq) Reset()
- func (x *LikeReq) String() string
- func (this *LikeReq) Validate() error
- type Media
- type Moment
- func (*Moment) Descriptor() ([]byte, []int)deprecated
- func (x *Moment) GetAnonymous() uint32
- func (x *Moment) GetApproveUsers() []uint64
- func (x *Moment) GetArea() *area.Area
- func (x *Moment) GetAreaId() uint64
- func (x *Moment) GetAreaVisibility() uint32
- func (x *Moment) GetBook() *DiaryBook
- func (x *Moment) GetBookId() uint64
- func (x *Moment) GetCollectUsers() []uint64
- func (x *Moment) GetCollects() []uint64
- func (x *Moment) GetComments() []*Comment
- func (x *Moment) GetContent() string
- func (x *Moment) GetCreatedAt() string
- func (x *Moment) GetDeletedAt() string
- func (x *Moment) GetExt() *ContentExt
- func (x *Moment) GetId() uint64
- func (x *Moment) GetImages() string
- func (x *Moment) GetLikeId() uint64
- func (x *Moment) GetLikeUsers() []uint64
- func (x *Moment) GetLocation() string
- func (x *Moment) GetMood() *TinyTag
- func (x *Moment) GetPermission() ViewPermission
- func (x *Moment) GetSequence() uint32
- func (x *Moment) GetStatus() uint32
- func (x *Moment) GetTags() []*TinyTag
- func (x *Moment) GetType() MomentType
- func (x *Moment) GetUnlikeId() uint64
- func (x *Moment) GetUser() *user.UserBaseInfo
- func (x *Moment) GetUserId() uint64
- func (x *Moment) GetUsers() []*user.UserBaseInfo
- func (x *Moment) GetWeather() *TinyTag
- func (*Moment) ProtoMessage()
- func (x *Moment) ProtoReflect() protoreflect.Message
- func (x *Moment) Reset()
- func (x *Moment) String() string
- type MomentListRep
- func (*MomentListRep) Descriptor() ([]byte, []int)deprecated
- func (x *MomentListRep) GetList() []*Moment
- func (x *MomentListRep) GetTotal() int64
- func (x *MomentListRep) GetUsers() []*user.UserBaseInfo
- func (*MomentListRep) ProtoMessage()
- func (x *MomentListRep) ProtoReflect() protoreflect.Message
- func (x *MomentListRep) Reset()
- func (x *MomentListRep) String() string
- func (this *MomentListRep) Validate() error
- type MomentListReq
- func (*MomentListReq) Descriptor() ([]byte, []int)deprecated
- func (x *MomentListReq) GetPageNo() uint32
- func (x *MomentListReq) GetPageSize() uint32
- func (*MomentListReq) ProtoMessage()
- func (x *MomentListReq) ProtoReflect() protoreflect.Message
- func (x *MomentListReq) Reset()
- func (x *MomentListReq) String() string
- func (this *MomentListReq) Validate() error
- type MomentRep
- func (*MomentRep) Descriptor() ([]byte, []int)deprecated
- func (x *MomentRep) GetAnonymous() uint32
- func (x *MomentRep) GetApproveUsers() []uint64
- func (x *MomentRep) GetArea() *area.Area
- func (x *MomentRep) GetAreaId() uint64
- func (x *MomentRep) GetAreaVisibility() uint32
- func (x *MomentRep) GetBook() *DiaryBook
- func (x *MomentRep) GetBookId() uint64
- func (x *MomentRep) GetCollect() bool
- func (x *MomentRep) GetCollectUsers() []uint64
- func (x *MomentRep) GetComments() []*Comment
- func (x *MomentRep) GetContent() string
- func (x *MomentRep) GetCreatedAt() string
- func (x *MomentRep) GetDeletedAt() string
- func (x *MomentRep) GetExt() *ContentExt
- func (x *MomentRep) GetId() uint64
- func (x *MomentRep) GetImages() string
- func (x *MomentRep) GetLikeId() uint64
- func (x *MomentRep) GetLikeUsers() []uint64
- func (x *MomentRep) GetLocation() string
- func (x *MomentRep) GetMood() *TinyTag
- func (x *MomentRep) GetPermission() ViewPermission
- func (x *MomentRep) GetSequence() uint32
- func (x *MomentRep) GetStatus() uint32
- func (x *MomentRep) GetTags() []*TinyTag
- func (x *MomentRep) GetType() MomentType
- func (x *MomentRep) GetUnlikeId() uint64
- func (x *MomentRep) GetUser() *user.UserBaseInfo
- func (x *MomentRep) GetUserId() uint64
- func (x *MomentRep) GetUsers() []*user.UserBaseInfo
- func (x *MomentRep) GetWeather() *TinyTag
- func (*MomentRep) ProtoMessage()
- func (x *MomentRep) ProtoReflect() protoreflect.Message
- func (x *MomentRep) Reset()
- func (x *MomentRep) String() string
- func (this *MomentRep) Validate() error
- type MomentServiceClient
- type MomentServiceServer
- type MomentType
- func (MomentType) Descriptor() protoreflect.EnumDescriptor
- func (x MomentType) Enum() *MomentType
- func (MomentType) EnumDescriptor() ([]byte, []int)deprecated
- func (x MomentType) MarshalGQL(w io.Writer)
- func (x MomentType) Number() protoreflect.EnumNumber
- func (x MomentType) OrigString() string
- func (x MomentType) String() string
- func (MomentType) Type() protoreflect.EnumType
- func (x *MomentType) UnmarshalGQL(v interface{}) error
- type Note
- func (*Note) Descriptor() ([]byte, []int)deprecated
- func (x *Note) GetContent() string
- func (x *Note) GetCreatedAt() string
- func (x *Note) GetDeletedAt() string
- func (x *Note) GetId() uint64
- func (x *Note) GetStatus() uint32
- func (x *Note) GetTitle() string
- func (*Note) ProtoMessage()
- func (x *Note) ProtoReflect() protoreflect.Message
- func (x *Note) Reset()
- func (x *Note) String() string
- type NoteServiceClient
- type NoteServiceServer
- type OneOf
- func (*OneOf) Descriptor() ([]byte, []int)deprecated
- func (x *OneOf) GetId() uint64
- func (x *OneOf) GetName() string
- func (m *OneOf) GetReq() isOneOf_Req
- func (*OneOf) ProtoMessage()
- func (x *OneOf) ProtoReflect() protoreflect.Message
- func (x *OneOf) Reset()
- func (x *OneOf) String() string
- func (this *OneOf) Validate() error
- type OneOf_Id
- type OneOf_Name
- type Report
- func (*Report) Descriptor() ([]byte, []int)deprecated
- func (x *Report) GetCreatedAt() string
- func (x *Report) GetDelReason() DelReason
- func (x *Report) GetId() uint64
- func (x *Report) GetRefId() uint64
- func (x *Report) GetRemark() string
- func (x *Report) GetType() ContentType
- func (x *Report) GetUser() *user.UserBaseInfo
- func (x *Report) GetUserId() uint64
- func (*Report) ProtoMessage()
- func (x *Report) ProtoReflect() protoreflect.Message
- func (x *Report) Reset()
- func (x *Report) String() string
- type ReportReq
- func (*ReportReq) Descriptor() ([]byte, []int)deprecated
- func (x *ReportReq) GetDelReason() DelReason
- func (x *ReportReq) GetId() uint64
- func (x *ReportReq) GetRefId() uint64
- func (x *ReportReq) GetType() ContentType
- func (x *ReportReq) GetUserId() uint64
- func (*ReportReq) ProtoMessage()
- func (x *ReportReq) ProtoReflect() protoreflect.Message
- func (x *ReportReq) Reset()
- func (x *ReportReq) String() string
- func (this *ReportReq) Validate() error
- type Serial
- type Tag
- func (*Tag) Descriptor() ([]byte, []int)deprecated
- func (x *Tag) GetCreatedAt() string
- func (x *Tag) GetDeletedAt() string
- func (x *Tag) GetDescription() string
- func (x *Tag) GetExpressionURL() string
- func (x *Tag) GetId() uint64
- func (x *Tag) GetName() string
- func (x *Tag) GetStatus() uint32
- func (x *Tag) GetType() TagType
- func (x *Tag) GetUserId() uint64
- func (*Tag) ProtoMessage()
- func (x *Tag) ProtoReflect() protoreflect.Message
- func (x *Tag) Reset()
- func (x *Tag) String() string
- type TagGroup
- func (*TagGroup) Descriptor() ([]byte, []int)deprecated
- func (x *TagGroup) GetCreatedAt() string
- func (x *TagGroup) GetDeletedAt() string
- func (x *TagGroup) GetId() uint64
- func (x *TagGroup) GetName() string
- func (x *TagGroup) GetParentId() uint64
- func (x *TagGroup) GetStatus() uint32
- func (*TagGroup) ProtoMessage()
- func (x *TagGroup) ProtoReflect() protoreflect.Message
- func (x *TagGroup) Reset()
- func (x *TagGroup) String() string
- type TagGroupListRep
- func (*TagGroupListRep) Descriptor() ([]byte, []int)deprecated
- func (x *TagGroupListRep) GetData() map[int32]*TagListRep
- func (x *TagGroupListRep) GetTotal() int64
- func (*TagGroupListRep) ProtoMessage()
- func (x *TagGroupListRep) ProtoReflect() protoreflect.Message
- func (x *TagGroupListRep) Reset()
- func (x *TagGroupListRep) String() string
- func (this *TagGroupListRep) Validate() error
- type TagGroupListReq
- func (*TagGroupListReq) Descriptor() ([]byte, []int)deprecated
- func (x *TagGroupListReq) GetName() string
- func (x *TagGroupListReq) GetPageNo() uint32
- func (x *TagGroupListReq) GetPageSize() uint32
- func (x *TagGroupListReq) GetType() TagType
- func (*TagGroupListReq) ProtoMessage()
- func (x *TagGroupListReq) ProtoReflect() protoreflect.Message
- func (x *TagGroupListReq) Reset()
- func (x *TagGroupListReq) String() string
- func (this *TagGroupListReq) Validate() error
- type TagGroupRel
- func (*TagGroupRel) Descriptor() ([]byte, []int)deprecated
- func (x *TagGroupRel) GetCreatedAt() string
- func (x *TagGroupRel) GetGroupId() uint64
- func (x *TagGroupRel) GetStatus() uint32
- func (x *TagGroupRel) GetTagId() uint64
- func (*TagGroupRel) ProtoMessage()
- func (x *TagGroupRel) ProtoReflect() protoreflect.Message
- func (x *TagGroupRel) Reset()
- func (x *TagGroupRel) String() string
- type TagListRep
- func (*TagListRep) Descriptor() ([]byte, []int)deprecated
- func (x *TagListRep) GetList() []*Tag
- func (x *TagListRep) GetTotal() uint32
- func (*TagListRep) ProtoMessage()
- func (x *TagListRep) ProtoReflect() protoreflect.Message
- func (x *TagListRep) Reset()
- func (x *TagListRep) String() string
- func (this *TagListRep) Validate() error
- type TagListReq
- func (*TagListReq) Descriptor() ([]byte, []int)deprecated
- func (x *TagListReq) GetName() string
- func (x *TagListReq) GetPageNo() uint32
- func (x *TagListReq) GetPageSize() uint32
- func (x *TagListReq) GetType() TagType
- func (*TagListReq) ProtoMessage()
- func (x *TagListReq) ProtoReflect() protoreflect.Message
- func (x *TagListReq) Reset()
- func (x *TagListReq) String() string
- func (this *TagListReq) Validate() error
- type TagType
- func (TagType) Descriptor() protoreflect.EnumDescriptor
- func (x TagType) Enum() *TagType
- func (TagType) EnumDescriptor() ([]byte, []int)deprecated
- func (x TagType) MarshalGQL(w io.Writer)
- func (x TagType) Number() protoreflect.EnumNumber
- func (x TagType) OrigString() string
- func (x TagType) String() string
- func (TagType) Type() protoreflect.EnumType
- func (x *TagType) UnmarshalGQL(v interface{}) error
- type TestServiceClient
- type TestServiceServer
- type TinyFavListRep
- func (*TinyFavListRep) Descriptor() ([]byte, []int)deprecated
- func (x *TinyFavListRep) GetList() []*TinyFavorites
- func (x *TinyFavListRep) GetTotal() int64
- func (*TinyFavListRep) ProtoMessage()
- func (x *TinyFavListRep) ProtoReflect() protoreflect.Message
- func (x *TinyFavListRep) Reset()
- func (x *TinyFavListRep) String() string
- func (this *TinyFavListRep) Validate() error
- type TinyFavorites
- func (*TinyFavorites) Descriptor() ([]byte, []int)deprecated
- func (x *TinyFavorites) GetId() uint64
- func (x *TinyFavorites) GetTitle() string
- func (*TinyFavorites) ProtoMessage()
- func (x *TinyFavorites) ProtoReflect() protoreflect.Message
- func (x *TinyFavorites) Reset()
- func (x *TinyFavorites) String() string
- func (this *TinyFavorites) Validate() error
- type TinyTag
- func (*TinyTag) Descriptor() ([]byte, []int)deprecated
- func (x *TinyTag) GetId() uint64
- func (x *TinyTag) GetName() string
- func (x *TinyTag) GetType() TagType
- func (*TinyTag) ProtoMessage()
- func (x *TinyTag) ProtoReflect() protoreflect.Message
- func (x *TinyTag) Reset()
- func (x *TinyTag) String() string
- type UnimplementedActionServiceServer
- func (UnimplementedActionServiceServer) Collect(context.Context, *CollectReq) (*empty.Empty, error)
- func (UnimplementedActionServiceServer) Comment(context.Context, *CommentReq) (*request.Object, error)
- func (UnimplementedActionServiceServer) CommentList(context.Context, *CommentListReq) (*CommentListRep, error)
- func (UnimplementedActionServiceServer) DelComment(context.Context, *request.Object) (*empty.Empty, error)
- func (UnimplementedActionServiceServer) DelLike(context.Context, *request.Object) (*empty.Empty, error)
- func (UnimplementedActionServiceServer) Like(context.Context, *LikeReq) (*request.Object, error)
- func (UnimplementedActionServiceServer) Report(context.Context, *ReportReq) (*empty.Empty, error)
- type UnimplementedContentServiceServer
- func (UnimplementedContentServiceServer) AddAttr(context.Context, *AddAttrReq) (*request.Object, error)
- func (UnimplementedContentServiceServer) AddContainer(context.Context, *AddContainerReq) (*empty.Empty, error)
- func (UnimplementedContentServiceServer) AddFav(context.Context, *AddFavReq) (*request.Object, error)
- func (UnimplementedContentServiceServer) AddTag(context.Context, *AddTagReq) (*empty.Empty, error)
- func (UnimplementedContentServiceServer) AttrInfo(context.Context, *request.Object) (*Attributes, error)
- func (UnimplementedContentServiceServer) AttrList(context.Context, *AttrListReq) (*AttrListRep, error)
- func (UnimplementedContentServiceServer) EditAttr(context.Context, *EditAttrReq) (*empty.Empty, error)
- func (UnimplementedContentServiceServer) EditDiaryContainer(context.Context, *AddContainerReq) (*empty.Empty, error)
- func (UnimplementedContentServiceServer) EditFav(context.Context, *AddFavReq) (*empty.Empty, error)
- func (UnimplementedContentServiceServer) EditTag(context.Context, *EditTagReq) (*empty.Empty, error)
- func (UnimplementedContentServiceServer) FavList(context.Context, *FavListReq) (*FavListRep, error)
- func (UnimplementedContentServiceServer) TagGroupList(context.Context, *TagGroupListReq) (*TagGroupListRep, error)
- func (UnimplementedContentServiceServer) TagInfo(context.Context, *request.Object) (*Tag, error)
- func (UnimplementedContentServiceServer) TagList(context.Context, *TagListReq) (*TagListRep, error)
- func (UnimplementedContentServiceServer) TinyFavList(context.Context, *FavListReq) (*TinyFavListRep, error)
- func (UnimplementedContentServiceServer) UserContentCount(context.Context, *request.Object) (*user.UserContent, error)
- type UnimplementedDiaryServiceServer
- func (UnimplementedDiaryServiceServer) Add(context.Context, *AddDiaryReq) (*request.Object, error)
- func (UnimplementedDiaryServiceServer) AddDiaryBook(context.Context, *AddDiaryBookReq) (*request.Object, error)
- func (UnimplementedDiaryServiceServer) Delete(context.Context, *request.Object) (*empty.Empty, error)
- func (UnimplementedDiaryServiceServer) DiaryBook(context.Context, *DiaryBookReq) (*DiaryBookRep, error)
- func (UnimplementedDiaryServiceServer) DiaryBookList(context.Context, *DiaryBookListReq) (*DiaryBookListRep, error)
- func (UnimplementedDiaryServiceServer) Edit(context.Context, *AddDiaryReq) (*empty.Empty, error)
- func (UnimplementedDiaryServiceServer) EditDiaryBook(context.Context, *AddDiaryBookReq) (*empty.Empty, error)
- func (UnimplementedDiaryServiceServer) Info(context.Context, *request.Object) (*Diary, error)
- func (UnimplementedDiaryServiceServer) List(context.Context, *DiaryListReq) (*DiaryListRep, error)
- type UnimplementedMomentServiceServer
- func (UnimplementedMomentServiceServer) Add(context.Context, *AddMomentReq) (*request.Object, error)
- func (UnimplementedMomentServiceServer) Delete(context.Context, *request.Object) (*empty.Empty, error)
- func (UnimplementedMomentServiceServer) Edit(context.Context, *AddMomentReq) (*empty.Empty, error)
- func (UnimplementedMomentServiceServer) Info(context.Context, *request.Object) (*Moment, error)
- func (UnimplementedMomentServiceServer) List(context.Context, *MomentListReq) (*MomentListRep, error)
- type UnimplementedNoteServiceServer
- type UnimplementedTestServiceServer
- func (UnimplementedTestServiceServer) Array(context.Context, *ArrayReq) (*empty.Empty, error)
- func (UnimplementedTestServiceServer) GC(context.Context, *GCReq) (*empty.Empty, error)
- func (UnimplementedTestServiceServer) Register(context.Context, *empty.Empty) (*empty.Empty, error)
- func (UnimplementedTestServiceServer) Restart(context.Context, *empty.Empty) (*empty.Empty, error)
- type UnsafeActionServiceServer
- type UnsafeContentServiceServer
- type UnsafeDiaryServiceServer
- type UnsafeMomentServiceServer
- type UnsafeNoteServiceServer
- type UnsafeTestServiceServer
- type ViewPermission
- func (ViewPermission) Descriptor() protoreflect.EnumDescriptor
- func (x ViewPermission) Enum() *ViewPermission
- func (ViewPermission) EnumDescriptor() ([]byte, []int)deprecated
- func (x ViewPermission) MarshalGQL(w io.Writer)
- func (x ViewPermission) Number() protoreflect.EnumNumber
- func (x ViewPermission) OrigString() string
- func (x ViewPermission) String() string
- func (ViewPermission) Type() protoreflect.EnumType
- func (x *ViewPermission) UnmarshalGQL(v interface{}) error
Constants ¶
This section is empty.
Variables ¶
var ( ActionType_name = map[int32]string{ 0: "ActionPlaceholder", 1: "ActionBrowse", 2: "ActionLike", 3: "ActionUnlike", 4: "ActionComment", 5: "ActionCollect", 6: "ActionReport", 7: "ActionGiveAction", 8: "ActionApprove", 9: "ActionDelete", } ActionType_value = map[string]int32{ "ActionPlaceholder": 0, "ActionBrowse": 1, "ActionLike": 2, "ActionUnlike": 3, "ActionComment": 4, "ActionCollect": 5, "ActionReport": 6, "ActionGiveAction": 7, "ActionApprove": 8, "ActionDelete": 9, } )
Enum value maps for ActionType.
var ( DelReason_name = map[int32]string{ 0: "DelReasonPlaceholder", 1: "DelReasonViolationOfLawsAndRegulations", 3: "DelReasonEroticViolence", 255: "DelReasonOther", } DelReason_value = map[string]int32{ "DelReasonPlaceholder": 0, "DelReasonViolationOfLawsAndRegulations": 1, "DelReasonEroticViolence": 3, "DelReasonOther": 255, } )
Enum value maps for DelReason.
var ( CommentType_name = map[int32]string{ 0: "CommentPlaceholder", 1: "CommentMoment", 2: "CommentDiary", 3: "CommentDiaryBook", 4: "CommentArticle", } CommentType_value = map[string]int32{ "CommentPlaceholder": 0, "CommentMoment": 1, "CommentDiary": 2, "CommentDiaryBook": 3, "CommentArticle": 4, } )
Enum value maps for CommentType.
var ( ContentType_name = map[int32]string{ 0: "ContentPlaceholder", 1: "ContentMoment", 2: "ContentNote", 3: "ContentDairy", 4: "ContentDairyBook", 5: "ContentFavorites", 6: "ContentCollection", 7: "ContentComment", } ContentType_value = map[string]int32{ "ContentPlaceholder": 0, "ContentMoment": 1, "ContentNote": 2, "ContentDairy": 3, "ContentDairyBook": 4, "ContentFavorites": 5, "ContentCollection": 6, "ContentComment": 7, } )
Enum value maps for ContentType.
var ( AttrType_name = map[int32]string{ 0: "AttrPlaceholder", 1: "AttrImage", 2: "AttrVideo", 3: "AttrAudio", 4: "AttrCover", 5: "AttrCategory", 6: "AttrTitle", 7: "AttrAbstract", 8: "AttrIntro", 9: "AttrContentType", 10: "AttrModifyTimes", } AttrType_value = map[string]int32{ "AttrPlaceholder": 0, "AttrImage": 1, "AttrVideo": 2, "AttrAudio": 3, "AttrCover": 4, "AttrCategory": 5, "AttrTitle": 6, "AttrAbstract": 7, "AttrIntro": 8, "AttrContentType": 9, "AttrModifyTimes": 10, } )
Enum value maps for AttrType.
var ( TagType_name = map[int32]string{ 0: "TagPlaceholder", 1: "TagContent", 2: "TagMood", 3: "TagWeather", 4: "TagLocation", 5: "TagCategory", 6: "TagNotice", } TagType_value = map[string]int32{ "TagPlaceholder": 0, "TagContent": 1, "TagMood": 2, "TagWeather": 3, "TagLocation": 4, "TagCategory": 5, "TagNotice": 6, } )
Enum value maps for TagType.
var ( ViewPermission_name = map[int32]string{ 0: "ViewPermissionPlaceholder", 1: "ViewPermissionAll", 2: "ViewPermissionSelf", 3: "ViewPermissionHomePage", 4: "ViewPermissionStranger", 5: "ViewPermissionShield", 6: "ViewPermissionOpen", } ViewPermission_value = map[string]int32{ "ViewPermissionPlaceholder": 0, "ViewPermissionAll": 1, "ViewPermissionSelf": 2, "ViewPermissionHomePage": 3, "ViewPermissionStranger": 4, "ViewPermissionShield": 5, "ViewPermissionOpen": 6, } )
Enum value maps for ViewPermission.
var ( MomentType_name = map[int32]string{ 0: "MomentTypePlaceholder", 1: "MomentTypeImage", 2: "MomentTypeVideo", 4: "MomentTypeAudio", } MomentType_value = map[string]int32{ "MomentTypePlaceholder": 0, "MomentTypeImage": 1, "MomentTypeVideo": 2, "MomentTypeAudio": 4, } )
Enum value maps for MomentType.
var ( ContainerType_name = map[int32]string{ 0: "ContainerTypePlaceholder", 1: "ContainerTypeFavorites", 2: "ContainerTypeDiaryBook", 3: "ContainerTypeAlbum", 4: "ContainerTypeCollection", } ContainerType_value = map[string]int32{ "ContainerTypePlaceholder": 0, "ContainerTypeFavorites": 1, "ContainerTypeDiaryBook": 2, "ContainerTypeAlbum": 3, "ContainerTypeCollection": 4, } )
Enum value maps for ContainerType.
var ActionService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "content.ActionService", HandlerType: (*ActionServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Like", Handler: _ActionService_Like_Handler, }, { MethodName: "DelLike", Handler: _ActionService_DelLike_Handler, }, { MethodName: "Comment", Handler: _ActionService_Comment_Handler, }, { MethodName: "CommentList", Handler: _ActionService_CommentList_Handler, }, { MethodName: "DelComment", Handler: _ActionService_DelComment_Handler, }, { MethodName: "Collect", Handler: _ActionService_Collect_Handler, }, { MethodName: "Report", Handler: _ActionService_Report_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "content/action.service.proto", }
ActionService_ServiceDesc is the grpc.ServiceDesc for ActionService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var ContentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "content.ContentService", HandlerType: (*ContentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "TagInfo", Handler: _ContentService_TagInfo_Handler, }, { MethodName: "AddTag", Handler: _ContentService_AddTag_Handler, }, { MethodName: "EditTag", Handler: _ContentService_EditTag_Handler, }, { MethodName: "TagList", Handler: _ContentService_TagList_Handler, }, { MethodName: "TagGroupList", Handler: _ContentService_TagGroupList_Handler, }, { MethodName: "AttrInfo", Handler: _ContentService_AttrInfo_Handler, }, { MethodName: "AddAttr", Handler: _ContentService_AddAttr_Handler, }, { MethodName: "EditAttr", Handler: _ContentService_EditAttr_Handler, }, { MethodName: "AttrList", Handler: _ContentService_AttrList_Handler, }, { MethodName: "FavList", Handler: _ContentService_FavList_Handler, }, { MethodName: "TinyFavList", Handler: _ContentService_TinyFavList_Handler, }, { MethodName: "AddFav", Handler: _ContentService_AddFav_Handler, }, { MethodName: "EditFav", Handler: _ContentService_EditFav_Handler, }, { MethodName: "AddContainer", Handler: _ContentService_AddContainer_Handler, }, { MethodName: "EditDiaryContainer", Handler: _ContentService_EditDiaryContainer_Handler, }, { MethodName: "UserContentCount", Handler: _ContentService_UserContentCount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "content/content.service.proto", }
ContentService_ServiceDesc is the grpc.ServiceDesc for ContentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var DiaryService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "content.DiaryService", HandlerType: (*DiaryServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "DiaryBook", Handler: _DiaryService_DiaryBook_Handler, }, { MethodName: "DiaryBookList", Handler: _DiaryService_DiaryBookList_Handler, }, { MethodName: "AddDiaryBook", Handler: _DiaryService_AddDiaryBook_Handler, }, { MethodName: "EditDiaryBook", Handler: _DiaryService_EditDiaryBook_Handler, }, { MethodName: "Info", Handler: _DiaryService_Info_Handler, }, { MethodName: "Add", Handler: _DiaryService_Add_Handler, }, { MethodName: "Edit", Handler: _DiaryService_Edit_Handler, }, { MethodName: "List", Handler: _DiaryService_List_Handler, }, { MethodName: "Delete", Handler: _DiaryService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "content/diary.service.proto", }
DiaryService_ServiceDesc is the grpc.ServiceDesc for DiaryService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_content_action_enum_proto protoreflect.FileDescriptor
var File_content_action_model_proto protoreflect.FileDescriptor
var File_content_action_service_proto protoreflect.FileDescriptor
var File_content_content_enum_proto protoreflect.FileDescriptor
var File_content_content_model_proto protoreflect.FileDescriptor
var File_content_content_service_proto protoreflect.FileDescriptor
var File_content_diary_service_proto protoreflect.FileDescriptor
var File_content_gift_model_proto protoreflect.FileDescriptor
var File_content_moment_service_proto protoreflect.FileDescriptor
var File_content_note_service_proto protoreflect.FileDescriptor
var File_content_test_service_proto protoreflect.FileDescriptor
var MomentService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "content.MomentService", HandlerType: (*MomentServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Info", Handler: _MomentService_Info_Handler, }, { MethodName: "Add", Handler: _MomentService_Add_Handler, }, { MethodName: "Edit", Handler: _MomentService_Edit_Handler, }, { MethodName: "List", Handler: _MomentService_List_Handler, }, { MethodName: "Delete", Handler: _MomentService_Delete_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "content/moment.service.proto", }
MomentService_ServiceDesc is the grpc.ServiceDesc for MomentService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var NoteService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "content.NoteService", HandlerType: (*NoteServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Create", Handler: _NoteService_Create_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "content/note.service.proto", }
NoteService_ServiceDesc is the grpc.ServiceDesc for NoteService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var TestService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "content.TestService", HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GC", Handler: _TestService_GC_Handler, }, { MethodName: "Register", Handler: _TestService_Register_Handler, }, { MethodName: "Restart", Handler: _TestService_Restart_Handler, }, { MethodName: "Array", Handler: _TestService_Array_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "content/test.service.proto", }
TestService_ServiceDesc is the grpc.ServiceDesc for TestService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterActionServiceHandler ¶
func RegisterActionServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error
RegisterActionServiceHandler registers the http handlers for service ActionService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterActionServiceHandlerClient ¶
func RegisterActionServiceHandlerClient(ctx context.Context, mux *gin.Engine, client ActionServiceClient) error
RegisterActionServiceHandlerClient registers the http handlers for service ActionService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ActionServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ActionServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ActionServiceClient" to call the correct interceptors.
func RegisterActionServiceHandlerFromEndpoint ¶
func RegisterActionServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
RegisterActionServiceHandlerFromEndpoint is same as RegisterActionServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterActionServiceHandlerServer ¶
func RegisterActionServiceHandlerServer(mux *gin.Engine, server ActionServiceServer) error
RegisterActionServiceHandlerServer registers the http handlers for service ActionService to "mux". UnaryRPC :call ActionServiceServer 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 to stop working. Consider using RegisterActionServiceHandlerFromEndpoint instead.
func RegisterActionServiceServer ¶
func RegisterActionServiceServer(s grpc.ServiceRegistrar, srv ActionServiceServer)
func RegisterContentServiceHandler ¶
func RegisterContentServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error
RegisterContentServiceHandler registers the http handlers for service ContentService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterContentServiceHandlerClient ¶
func RegisterContentServiceHandlerClient(ctx context.Context, mux *gin.Engine, client ContentServiceClient) error
RegisterContentServiceHandlerClient registers the http handlers for service ContentService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ContentServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ContentServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ContentServiceClient" to call the correct interceptors.
func RegisterContentServiceHandlerFromEndpoint ¶
func RegisterContentServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
RegisterContentServiceHandlerFromEndpoint is same as RegisterContentServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterContentServiceHandlerServer ¶
func RegisterContentServiceHandlerServer(mux *gin.Engine, server ContentServiceServer) error
RegisterContentServiceHandlerServer registers the http handlers for service ContentService to "mux". UnaryRPC :call ContentServiceServer 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 to stop working. Consider using RegisterContentServiceHandlerFromEndpoint instead.
func RegisterContentServiceServer ¶
func RegisterContentServiceServer(s grpc.ServiceRegistrar, srv ContentServiceServer)
func RegisterDiaryServiceHandler ¶
RegisterDiaryServiceHandler registers the http handlers for service DiaryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterDiaryServiceHandlerClient ¶
func RegisterDiaryServiceHandlerClient(ctx context.Context, mux *gin.Engine, client DiaryServiceClient) error
RegisterDiaryServiceHandlerClient registers the http handlers for service DiaryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "DiaryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "DiaryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "DiaryServiceClient" to call the correct interceptors.
func RegisterDiaryServiceHandlerFromEndpoint ¶
func RegisterDiaryServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
RegisterDiaryServiceHandlerFromEndpoint is same as RegisterDiaryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterDiaryServiceHandlerServer ¶
func RegisterDiaryServiceHandlerServer(mux *gin.Engine, server DiaryServiceServer) error
RegisterDiaryServiceHandlerServer registers the http handlers for service DiaryService to "mux". UnaryRPC :call DiaryServiceServer 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 to stop working. Consider using RegisterDiaryServiceHandlerFromEndpoint instead.
func RegisterDiaryServiceServer ¶
func RegisterDiaryServiceServer(s grpc.ServiceRegistrar, srv DiaryServiceServer)
func RegisterMomentServiceHandler ¶
func RegisterMomentServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error
RegisterMomentServiceHandler registers the http handlers for service MomentService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterMomentServiceHandlerClient ¶
func RegisterMomentServiceHandlerClient(ctx context.Context, mux *gin.Engine, client MomentServiceClient) error
RegisterMomentServiceHandlerClient registers the http handlers for service MomentService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "MomentServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "MomentServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "MomentServiceClient" to call the correct interceptors.
func RegisterMomentServiceHandlerFromEndpoint ¶
func RegisterMomentServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
RegisterMomentServiceHandlerFromEndpoint is same as RegisterMomentServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterMomentServiceHandlerServer ¶
func RegisterMomentServiceHandlerServer(mux *gin.Engine, server MomentServiceServer) error
RegisterMomentServiceHandlerServer registers the http handlers for service MomentService to "mux". UnaryRPC :call MomentServiceServer 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 to stop working. Consider using RegisterMomentServiceHandlerFromEndpoint instead.
func RegisterMomentServiceServer ¶
func RegisterMomentServiceServer(s grpc.ServiceRegistrar, srv MomentServiceServer)
func RegisterNoteServiceHandler ¶
RegisterNoteServiceHandler registers the http handlers for service NoteService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterNoteServiceHandlerClient ¶
func RegisterNoteServiceHandlerClient(ctx context.Context, mux *gin.Engine, client NoteServiceClient) error
RegisterNoteServiceHandlerClient registers the http handlers for service NoteService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "NoteServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "NoteServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "NoteServiceClient" to call the correct interceptors.
func RegisterNoteServiceHandlerFromEndpoint ¶
func RegisterNoteServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
RegisterNoteServiceHandlerFromEndpoint is same as RegisterNoteServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterNoteServiceHandlerServer ¶
func RegisterNoteServiceHandlerServer(mux *gin.Engine, server NoteServiceServer) error
RegisterNoteServiceHandlerServer registers the http handlers for service NoteService to "mux". UnaryRPC :call NoteServiceServer 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 to stop working. Consider using RegisterNoteServiceHandlerFromEndpoint instead.
func RegisterNoteServiceServer ¶
func RegisterNoteServiceServer(s grpc.ServiceRegistrar, srv NoteServiceServer)
func RegisterTestServiceHandler ¶
RegisterTestServiceHandler registers the http handlers for service TestService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterTestServiceHandlerClient ¶
func RegisterTestServiceHandlerClient(ctx context.Context, mux *gin.Engine, client TestServiceClient) error
RegisterTestServiceHandlerClient registers the http handlers for service TestService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TestServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TestServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "TestServiceClient" to call the correct interceptors.
func RegisterTestServiceHandlerFromEndpoint ¶
func RegisterTestServiceHandlerFromEndpoint(ctx context.Context, mux *gin.Engine, endpoint string, opts []grpc.DialOption) (err error)
RegisterTestServiceHandlerFromEndpoint is same as RegisterTestServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterTestServiceHandlerServer ¶
func RegisterTestServiceHandlerServer(mux *gin.Engine, server TestServiceServer) error
RegisterTestServiceHandlerServer registers the http handlers for service TestService to "mux". UnaryRPC :call TestServiceServer 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 to stop working. Consider using RegisterTestServiceHandlerFromEndpoint instead.
func RegisterTestServiceServer ¶
func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer)
Types ¶
type ActionServiceClient ¶
type ActionServiceClient interface { // 动作 Like Unlike Like(ctx context.Context, in *LikeReq, opts ...grpc.CallOption) (*request.Object, error) // 动作 Like Unlike DelLike(ctx context.Context, in *request.Object, opts ...grpc.CallOption) (*empty.Empty, error) // 评论 Comment(ctx context.Context, in *CommentReq, opts ...grpc.CallOption) (*request.Object, error) // 评论列表 CommentList(ctx context.Context, in *CommentListReq, opts ...grpc.CallOption) (*CommentListRep, error) // 评论 DelComment(ctx context.Context, in *request.Object, opts ...grpc.CallOption) (*empty.Empty, error) // 收藏 Collect(ctx context.Context, in *CollectReq, opts ...grpc.CallOption) (*empty.Empty, error) // 举报 Report(ctx context.Context, in *ReportReq, opts ...grpc.CallOption) (*empty.Empty, error) }
ActionServiceClient is the client API for ActionService 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 NewActionServiceClient ¶
func NewActionServiceClient(cc grpc.ClientConnInterface) ActionServiceClient
type ActionServiceServer ¶
type ActionServiceServer interface { // 动作 Like Unlike Like(context.Context, *LikeReq) (*request.Object, error) // 动作 Like Unlike DelLike(context.Context, *request.Object) (*empty.Empty, error) // 评论 Comment(context.Context, *CommentReq) (*request.Object, error) // 评论列表 CommentList(context.Context, *CommentListReq) (*CommentListRep, error) // 评论 DelComment(context.Context, *request.Object) (*empty.Empty, error) // 收藏 Collect(context.Context, *CollectReq) (*empty.Empty, error) // 举报 Report(context.Context, *ReportReq) (*empty.Empty, error) // contains filtered or unexported methods }
ActionServiceServer is the server API for ActionService service. All implementations must embed UnimplementedActionServiceServer for forward compatibility
type ActionType ¶
type ActionType int32
操作类型
const ( ActionPlaceholder ActionType = 0 ActionBrowse ActionType = 1 ActionLike ActionType = 2 ActionUnlike ActionType = 3 ActionComment ActionType = 4 ActionCollect ActionType = 5 ActionReport ActionType = 6 ActionGiveAction ActionType = 7 ActionApprove ActionType = 8 ActionDelete ActionType = 9 )
func (ActionType) Descriptor ¶
func (ActionType) Descriptor() protoreflect.EnumDescriptor
func (ActionType) Enum ¶
func (x ActionType) Enum() *ActionType
func (ActionType) EnumDescriptor
deprecated
func (ActionType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ActionType.Descriptor instead.
func (ActionType) MarshalGQL ¶
func (x ActionType) MarshalGQL(w io.Writer)
func (ActionType) Number ¶
func (x ActionType) Number() protoreflect.EnumNumber
func (ActionType) OrigString ¶
func (x ActionType) OrigString() string
func (ActionType) String ¶
func (x ActionType) String() string
func (ActionType) Type ¶
func (ActionType) Type() protoreflect.EnumType
func (*ActionType) UnmarshalGQL ¶
func (x *ActionType) UnmarshalGQL(v interface{}) error
type AddAttrReq ¶
type AddAttrReq struct { Type AttrType `protobuf:"varint,4,opt,name=type,proto3,enum=content.AttrType" json:"type,omitempty" annotation:"属性相关类型"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" annotation:"名称"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty" annotation:"描述"` ExpressionURL string `protobuf:"bytes,3,opt,name=expressionURL,proto3" json:"expressionURL,omitempty" annotation:"表情url"` // contains filtered or unexported fields }
func (*AddAttrReq) Descriptor
deprecated
func (*AddAttrReq) Descriptor() ([]byte, []int)
Deprecated: Use AddAttrReq.ProtoReflect.Descriptor instead.
func (*AddAttrReq) GetDescription ¶
func (x *AddAttrReq) GetDescription() string
func (*AddAttrReq) GetExpressionURL ¶
func (x *AddAttrReq) GetExpressionURL() string
func (*AddAttrReq) GetName ¶
func (x *AddAttrReq) GetName() string
func (*AddAttrReq) GetType ¶
func (x *AddAttrReq) GetType() AttrType
func (*AddAttrReq) ProtoMessage ¶
func (*AddAttrReq) ProtoMessage()
func (*AddAttrReq) ProtoReflect ¶
func (x *AddAttrReq) ProtoReflect() protoreflect.Message
func (*AddAttrReq) Reset ¶
func (x *AddAttrReq) Reset()
func (*AddAttrReq) String ¶
func (x *AddAttrReq) String() string
func (*AddAttrReq) Validate ¶
func (this *AddAttrReq) Validate() error
type AddContainerReq ¶
type AddContainerReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" validate:"required"` UserId uint64 `protobuf:"varint,17,opt,name=userId,proto3" json:"userId,omitempty" annotation:"用户id"` Type ContainerType `` /* 135-byte string literal not displayed */ Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty" gorm:"size:10;not null" annotation:"标题"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" gorm:"type:text;not null" annotation:"描述"` Cover string `protobuf:"bytes,4,opt,name=cover,proto3" json:"cover,omitempty" gorm:"size:255;not null" annotation:"封面"` Sequence uint32 `` /* 171-byte string literal not displayed */ Anonymous uint32 `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AddContainerReq) Descriptor
deprecated
func (*AddContainerReq) Descriptor() ([]byte, []int)
Deprecated: Use AddContainerReq.ProtoReflect.Descriptor instead.
func (*AddContainerReq) GetAnonymous ¶
func (x *AddContainerReq) GetAnonymous() uint32
func (*AddContainerReq) GetCover ¶
func (x *AddContainerReq) GetCover() string
func (*AddContainerReq) GetDescription ¶
func (x *AddContainerReq) GetDescription() string
func (*AddContainerReq) GetId ¶
func (x *AddContainerReq) GetId() uint64
func (*AddContainerReq) GetSequence ¶
func (x *AddContainerReq) GetSequence() uint32
func (*AddContainerReq) GetTitle ¶
func (x *AddContainerReq) GetTitle() string
func (*AddContainerReq) GetType ¶
func (x *AddContainerReq) GetType() ContainerType
func (*AddContainerReq) GetUserId ¶
func (x *AddContainerReq) GetUserId() uint64
func (*AddContainerReq) ProtoMessage ¶
func (*AddContainerReq) ProtoMessage()
func (*AddContainerReq) ProtoReflect ¶
func (x *AddContainerReq) ProtoReflect() protoreflect.Message
func (*AddContainerReq) Reset ¶
func (x *AddContainerReq) Reset()
func (*AddContainerReq) String ¶
func (x *AddContainerReq) String() string
func (*AddContainerReq) Validate ¶
func (this *AddContainerReq) Validate() error
type AddDiaryBookReq ¶
type AddDiaryBookReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" validate:"required"` UserId uint64 `protobuf:"varint,17,opt,name=userId,proto3" json:"userId,omitempty" annotation:"用户id"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty" gorm:"size:10;not null" annotation:"标题"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" gorm:"type:text;not null" annotation:"描述"` Cover string `protobuf:"bytes,4,opt,name=cover,proto3" json:"cover,omitempty" gorm:"size:255;not null" annotation:"封面"` Sequence uint32 `` /* 171-byte string literal not displayed */ Anonymous uint32 `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AddDiaryBookReq) Descriptor
deprecated
func (*AddDiaryBookReq) Descriptor() ([]byte, []int)
Deprecated: Use AddDiaryBookReq.ProtoReflect.Descriptor instead.
func (*AddDiaryBookReq) GetAnonymous ¶
func (x *AddDiaryBookReq) GetAnonymous() uint32
func (*AddDiaryBookReq) GetCover ¶
func (x *AddDiaryBookReq) GetCover() string
func (*AddDiaryBookReq) GetDescription ¶
func (x *AddDiaryBookReq) GetDescription() string
func (*AddDiaryBookReq) GetId ¶
func (x *AddDiaryBookReq) GetId() uint64
func (*AddDiaryBookReq) GetSequence ¶
func (x *AddDiaryBookReq) GetSequence() uint32
func (*AddDiaryBookReq) GetTitle ¶
func (x *AddDiaryBookReq) GetTitle() string
func (*AddDiaryBookReq) GetUserId ¶
func (x *AddDiaryBookReq) GetUserId() uint64
func (*AddDiaryBookReq) ProtoMessage ¶
func (*AddDiaryBookReq) ProtoMessage()
func (*AddDiaryBookReq) ProtoReflect ¶
func (x *AddDiaryBookReq) ProtoReflect() protoreflect.Message
func (*AddDiaryBookReq) Reset ¶
func (x *AddDiaryBookReq) Reset()
func (*AddDiaryBookReq) String ¶
func (x *AddDiaryBookReq) String() string
func (*AddDiaryBookReq) Validate ¶
func (this *AddDiaryBookReq) Validate() error
type AddDiaryReq ¶
type AddDiaryReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" validate:"required"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty" annotation:"内容"` BookId uint64 `protobuf:"varint,4,opt,name=bookId,proto3" json:"bookId,omitempty" annotation:"日记本Id"` Mood string `protobuf:"bytes,5,opt,name=mood,proto3" json:"mood,omitempty" gorm:"-" annotation:"心情"` Weather string `protobuf:"bytes,7,opt,name=weather,proto3" json:"weather,omitempty" gorm:"-" annotation:"心情"` AreaId uint64 `protobuf:"varint,10,opt,name=areaId,proto3" json:"areaId,omitempty" annotation:"地区"` AreaVisibility uint32 `protobuf:"varint,11,opt,name=areaVisibility,proto3" json:"areaVisibility,omitempty" annotation:"地区可见性,1-可见"` Location string `protobuf:"bytes,12,opt,name=location,proto3" json:"location,omitempty" annotation:"位置"` Tags []string `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty" gorm:"-" annotation:"标签"` UserId uint64 `protobuf:"varint,17,opt,name=userId,proto3" json:"userId,omitempty" annotation:"用户id"` Sequence uint32 `` /* 144-byte string literal not displayed */ Anonymous uint32 `protobuf:"varint,20,opt,name=anonymous,proto3" json:"anonymous,omitempty" annotation:"是否匿名,0-是,1否"` Permission ViewPermission `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AddDiaryReq) Descriptor
deprecated
func (*AddDiaryReq) Descriptor() ([]byte, []int)
Deprecated: Use AddDiaryReq.ProtoReflect.Descriptor instead.
func (*AddDiaryReq) GetAnonymous ¶
func (x *AddDiaryReq) GetAnonymous() uint32
func (*AddDiaryReq) GetAreaId ¶
func (x *AddDiaryReq) GetAreaId() uint64
func (*AddDiaryReq) GetAreaVisibility ¶
func (x *AddDiaryReq) GetAreaVisibility() uint32
func (*AddDiaryReq) GetBookId ¶
func (x *AddDiaryReq) GetBookId() uint64
func (*AddDiaryReq) GetContent ¶
func (x *AddDiaryReq) GetContent() string
func (*AddDiaryReq) GetId ¶
func (x *AddDiaryReq) GetId() uint64
func (*AddDiaryReq) GetLocation ¶
func (x *AddDiaryReq) GetLocation() string
func (*AddDiaryReq) GetMood ¶
func (x *AddDiaryReq) GetMood() string
func (*AddDiaryReq) GetPermission ¶
func (x *AddDiaryReq) GetPermission() ViewPermission
func (*AddDiaryReq) GetSequence ¶
func (x *AddDiaryReq) GetSequence() uint32
func (*AddDiaryReq) GetTags ¶
func (x *AddDiaryReq) GetTags() []string
func (*AddDiaryReq) GetUserId ¶
func (x *AddDiaryReq) GetUserId() uint64
func (*AddDiaryReq) GetWeather ¶
func (x *AddDiaryReq) GetWeather() string
func (*AddDiaryReq) ProtoMessage ¶
func (*AddDiaryReq) ProtoMessage()
func (*AddDiaryReq) ProtoReflect ¶
func (x *AddDiaryReq) ProtoReflect() protoreflect.Message
func (*AddDiaryReq) Reset ¶
func (x *AddDiaryReq) Reset()
func (*AddDiaryReq) String ¶
func (x *AddDiaryReq) String() string
func (*AddDiaryReq) Validate ¶
func (this *AddDiaryReq) Validate() error
type AddFavReq ¶
type AddFavReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" validate:"required"` UserId uint64 `protobuf:"varint,17,opt,name=userId,proto3" json:"userId,omitempty" annotation:"用户id"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty" gorm:"size:10;not null" annotation:"标题"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" gorm:"type:text;not null" annotation:"描述"` Cover string `protobuf:"bytes,4,opt,name=cover,proto3" json:"cover,omitempty" gorm:"size:255;not null" annotation:"封面"` Sequence uint32 `` /* 171-byte string literal not displayed */ Anonymous uint32 `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AddFavReq) Descriptor
deprecated
func (*AddFavReq) GetAnonymous ¶
func (*AddFavReq) GetDescription ¶
func (*AddFavReq) GetSequence ¶
func (*AddFavReq) ProtoMessage ¶
func (*AddFavReq) ProtoMessage()
func (*AddFavReq) ProtoReflect ¶
func (x *AddFavReq) ProtoReflect() protoreflect.Message
type AddMomentReq ¶
type AddMomentReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty" annotation:"内容"` BookId uint64 `protobuf:"varint,4,opt,name=bookId,proto3" json:"bookId,omitempty" annotation:"日记本Id"` Type MomentType `protobuf:"varint,3,opt,name=type,proto3,enum=content.MomentType" json:"type,omitempty" annotation:"瞬间类型"` Mood string `protobuf:"bytes,5,opt,name=mood,proto3" json:"mood,omitempty" gorm:"-" annotation:"心情"` Weather string `protobuf:"bytes,7,opt,name=weather,proto3" json:"weather,omitempty" gorm:"-" annotation:"心情"` AreaId uint64 `protobuf:"varint,10,opt,name=areaId,proto3" json:"areaId,omitempty" annotation:"地区"` AreaVisibility uint32 `protobuf:"varint,11,opt,name=areaVisibility,proto3" json:"areaVisibility,omitempty" annotation:"地区可见性,1-可见"` Location string `protobuf:"bytes,12,opt,name=location,proto3" json:"location,omitempty" annotation:"位置"` Tags []string `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty" gorm:"-" annotation:"标签"` Images string `protobuf:"bytes,14,opt,name=images,proto3" json:"images,omitempty" annotation:"图片"` UserId uint64 `protobuf:"varint,17,opt,name=userId,proto3" json:"userId,omitempty" annotation:"用户id"` Sequence uint32 `` /* 144-byte string literal not displayed */ Anonymous uint32 `protobuf:"varint,20,opt,name=anonymous,proto3" json:"anonymous,omitempty" annotation:"是否匿名,0-是,1否"` Permission ViewPermission `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
新增瞬间
func (*AddMomentReq) Descriptor
deprecated
func (*AddMomentReq) Descriptor() ([]byte, []int)
Deprecated: Use AddMomentReq.ProtoReflect.Descriptor instead.
func (*AddMomentReq) GetAnonymous ¶
func (x *AddMomentReq) GetAnonymous() uint32
func (*AddMomentReq) GetAreaId ¶
func (x *AddMomentReq) GetAreaId() uint64
func (*AddMomentReq) GetAreaVisibility ¶
func (x *AddMomentReq) GetAreaVisibility() uint32
func (*AddMomentReq) GetBookId ¶
func (x *AddMomentReq) GetBookId() uint64
func (*AddMomentReq) GetContent ¶
func (x *AddMomentReq) GetContent() string
func (*AddMomentReq) GetId ¶
func (x *AddMomentReq) GetId() uint64
func (*AddMomentReq) GetImages ¶
func (x *AddMomentReq) GetImages() string
func (*AddMomentReq) GetLocation ¶
func (x *AddMomentReq) GetLocation() string
func (*AddMomentReq) GetMood ¶
func (x *AddMomentReq) GetMood() string
func (*AddMomentReq) GetPermission ¶
func (x *AddMomentReq) GetPermission() ViewPermission
func (*AddMomentReq) GetSequence ¶
func (x *AddMomentReq) GetSequence() uint32
func (*AddMomentReq) GetTags ¶
func (x *AddMomentReq) GetTags() []string
func (*AddMomentReq) GetType ¶
func (x *AddMomentReq) GetType() MomentType
func (*AddMomentReq) GetUserId ¶
func (x *AddMomentReq) GetUserId() uint64
func (*AddMomentReq) GetWeather ¶
func (x *AddMomentReq) GetWeather() string
func (*AddMomentReq) ProtoMessage ¶
func (*AddMomentReq) ProtoMessage()
func (*AddMomentReq) ProtoReflect ¶
func (x *AddMomentReq) ProtoReflect() protoreflect.Message
func (*AddMomentReq) Reset ¶
func (x *AddMomentReq) Reset()
func (*AddMomentReq) String ¶
func (x *AddMomentReq) String() string
func (*AddMomentReq) Validate ¶
func (this *AddMomentReq) Validate() error
type AddTagReq ¶
type AddTagReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" annotation:"名称"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" annotation:"描述"` ExpressionURL string `protobuf:"bytes,4,opt,name=expressionURL,proto3" json:"expressionURL,omitempty" annotation:"表情url"` UserId uint64 `protobuf:"varint,5,opt,name=userId,proto3" json:"userId,omitempty" annotation:"用户id"` // contains filtered or unexported fields }
func (*AddTagReq) Descriptor
deprecated
func (*AddTagReq) GetDescription ¶
func (*AddTagReq) GetExpressionURL ¶
func (*AddTagReq) ProtoMessage ¶
func (*AddTagReq) ProtoMessage()
func (*AddTagReq) ProtoReflect ¶
func (x *AddTagReq) ProtoReflect() protoreflect.Message
type ArrayReq ¶
type ArrayReq struct { Ids []*ID `protobuf:"bytes,1,rep,name=Ids,proto3" json:"Ids,omitempty"` // contains filtered or unexported fields }
func (*ArrayReq) Descriptor
deprecated
func (*ArrayReq) ProtoMessage ¶
func (*ArrayReq) ProtoMessage()
func (*ArrayReq) ProtoReflect ¶
func (x *ArrayReq) ProtoReflect() protoreflect.Message
type Article ¶
type Article struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` Title string `protobuf:"bytes,24,opt,name=title,proto3" json:"title,omitempty" gorm:"size:50;default:''" annotation:"标题"` Intro string `protobuf:"bytes,25,opt,name=intro,proto3" json:"intro,omitempty" gorm:"size:100;default:''" annotation:"介绍"` Abstract string `protobuf:"bytes,26,opt,name=abstract,proto3" json:"abstract,omitempty" gorm:"size:100;default:''" annotation:"摘要"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty" gorm:"text;not null" annotation:"内容"` ContentType uint32 `` /* 130-byte string literal not displayed */ Mood *TinyTag `protobuf:"bytes,4,opt,name=mood,proto3" json:"mood,omitempty" gorm:"-" annotation:"心情"` Weather *TinyTag `protobuf:"bytes,21,opt,name=weather,proto3" json:"weather,omitempty" gorm:"-" annotation:"天气"` Area *area.Area `protobuf:"bytes,19,opt,name=area,proto3" json:"area,omitempty" gorm:"-" annotation:"地区"` AreaId uint64 `protobuf:"varint,20,opt,name=areaId,proto3" json:"areaId,omitempty" gorm:"size:10;default:0" annotation:"地区"` Location string `protobuf:"bytes,14,opt,name=location,proto3" json:"location,omitempty" gorm:"size:20;default:''" annotation:"位置"` Tags []*Tag `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty" gorm:"-" annotation:"标签"` User *user.UserBaseInfo `protobuf:"bytes,8,opt,name=user,proto3" json:"user,omitempty" gorm:"-" annotation:"用户"` UserId uint64 `protobuf:"varint,17,opt,name=userId,proto3" json:"userId,omitempty" gorm:"size:20;default:0;index" annotation:"用户id"` ApproveUsers []*user.UserBaseInfo `protobuf:"bytes,9,rep,name=approveUsers,proto3" json:"approveUsers,omitempty" gorm:"-" annotation:"点赞用户"` CollectUsers []*user.UserBaseInfo `protobuf:"bytes,10,rep,name=collectUsers,proto3" json:"collectUsers,omitempty" gorm:"-" annotation:"收藏用户"` LikeUsers []*user.UserBaseInfo `protobuf:"bytes,11,rep,name=likeUsers,proto3" json:"likeUsers,omitempty" gorm:"-" annotation:"喜欢用户"` Comments []*Comment `protobuf:"bytes,7,rep,name=comments,proto3" json:"comments,omitempty" gorm:"-" annotation:"评论"` Sequence uint32 `` /* 171-byte string literal not displayed */ Anonymous uint32 `` /* 137-byte string literal not displayed */ Permission ViewPermission `` /* 156-byte string literal not displayed */ CreatedAt string `protobuf:"bytes,16,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ Status uint32 `protobuf:"varint,18,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
func (*Article) Descriptor
deprecated
func (*Article) GetAbstract ¶
func (*Article) GetAnonymous ¶
func (*Article) GetApproveUsers ¶
func (x *Article) GetApproveUsers() []*user.UserBaseInfo
func (*Article) GetCollectUsers ¶
func (x *Article) GetCollectUsers() []*user.UserBaseInfo
func (*Article) GetComments ¶
func (*Article) GetContent ¶
func (*Article) GetContentType ¶
func (*Article) GetCreatedAt ¶
func (*Article) GetDeletedAt ¶
func (*Article) GetLikeUsers ¶
func (x *Article) GetLikeUsers() []*user.UserBaseInfo
func (*Article) GetLocation ¶
func (*Article) GetPermission ¶
func (x *Article) GetPermission() ViewPermission
func (*Article) GetSequence ¶
func (*Article) GetUser ¶
func (x *Article) GetUser() *user.UserBaseInfo
func (*Article) GetWeather ¶
func (*Article) ProtoMessage ¶
func (*Article) ProtoMessage()
func (*Article) ProtoReflect ¶
func (x *Article) ProtoReflect() protoreflect.Message
type AttrGroup ¶
type AttrGroup struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"` Name string `` /* 138-byte string literal not displayed */ ParentId uint64 `` /* 127-byte string literal not displayed */ CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` Status uint32 `protobuf:"varint,28,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
func (*AttrGroup) Descriptor
deprecated
func (*AttrGroup) GetCreatedAt ¶
func (*AttrGroup) GetParentId ¶
func (*AttrGroup) ProtoMessage ¶
func (*AttrGroup) ProtoMessage()
func (*AttrGroup) ProtoReflect ¶
func (x *AttrGroup) ProtoReflect() protoreflect.Message
type AttrListRep ¶
type AttrListRep struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Attributes `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*AttrListRep) Descriptor
deprecated
func (*AttrListRep) Descriptor() ([]byte, []int)
Deprecated: Use AttrListRep.ProtoReflect.Descriptor instead.
func (*AttrListRep) GetList ¶
func (x *AttrListRep) GetList() []*Attributes
func (*AttrListRep) GetTotal ¶
func (x *AttrListRep) GetTotal() int64
func (*AttrListRep) ProtoMessage ¶
func (*AttrListRep) ProtoMessage()
func (*AttrListRep) ProtoReflect ¶
func (x *AttrListRep) ProtoReflect() protoreflect.Message
func (*AttrListRep) Reset ¶
func (x *AttrListRep) Reset()
func (*AttrListRep) String ¶
func (x *AttrListRep) String() string
func (*AttrListRep) Validate ¶
func (this *AttrListRep) Validate() error
type AttrListReq ¶
type AttrListReq struct { Type AttrType `protobuf:"varint,2,opt,name=type,proto3,enum=content.AttrType" json:"type,omitempty" annotation:"属性相关类型"` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" annotation:"名称"` // contains filtered or unexported fields }
func (*AttrListReq) Descriptor
deprecated
func (*AttrListReq) Descriptor() ([]byte, []int)
Deprecated: Use AttrListReq.ProtoReflect.Descriptor instead.
func (*AttrListReq) GetName ¶
func (x *AttrListReq) GetName() string
func (*AttrListReq) GetType ¶
func (x *AttrListReq) GetType() AttrType
func (*AttrListReq) ProtoMessage ¶
func (*AttrListReq) ProtoMessage()
func (*AttrListReq) ProtoReflect ¶
func (x *AttrListReq) ProtoReflect() protoreflect.Message
func (*AttrListReq) Reset ¶
func (x *AttrListReq) Reset()
func (*AttrListReq) String ¶
func (x *AttrListReq) String() string
func (*AttrListReq) Validate ¶
func (this *AttrListReq) Validate() error
type AttrType ¶
type AttrType int32
func (AttrType) Descriptor ¶
func (AttrType) Descriptor() protoreflect.EnumDescriptor
func (AttrType) EnumDescriptor
deprecated
func (AttrType) MarshalGQL ¶
func (AttrType) Number ¶
func (x AttrType) Number() protoreflect.EnumNumber
func (AttrType) OrigString ¶
func (AttrType) Type ¶
func (AttrType) Type() protoreflect.EnumType
func (*AttrType) UnmarshalGQL ¶
type Attributes ¶
type Attributes struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"` Name string `` /* 138-byte string literal not displayed */ Describe string `protobuf:"bytes,3,opt,name=describe,proto3" json:"describe,omitempty" gorm:"size:255;default:''" annotation:"描述"` Range uint32 `protobuf:"varint,4,opt,name=range,proto3" json:"range,omitempty" gorm:"type:int2" annotation:"属性使用范围"` Style uint32 `protobuf:"varint,5,opt,name=style,proto3" json:"style,omitempty" gorm:"type:int2" annotation:"属性的值输入风格"` CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` Status uint32 `protobuf:"varint,28,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
func (*Attributes) Descriptor
deprecated
func (*Attributes) Descriptor() ([]byte, []int)
Deprecated: Use Attributes.ProtoReflect.Descriptor instead.
func (*Attributes) GetCreatedAt ¶
func (x *Attributes) GetCreatedAt() string
func (*Attributes) GetDescribe ¶
func (x *Attributes) GetDescribe() string
func (*Attributes) GetId ¶
func (x *Attributes) GetId() uint64
func (*Attributes) GetName ¶
func (x *Attributes) GetName() string
func (*Attributes) GetRange ¶
func (x *Attributes) GetRange() uint32
func (*Attributes) GetStatus ¶
func (x *Attributes) GetStatus() uint32
func (*Attributes) GetStyle ¶
func (x *Attributes) GetStyle() uint32
func (*Attributes) ProtoMessage ¶
func (*Attributes) ProtoMessage()
func (*Attributes) ProtoReflect ¶
func (x *Attributes) ProtoReflect() protoreflect.Message
func (*Attributes) Reset ¶
func (x *Attributes) Reset()
func (*Attributes) String ¶
func (x *Attributes) String() string
type Category ¶
type Category struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"` Name string `` /* 138-byte string literal not displayed */ ParentId uint64 `` /* 127-byte string literal not displayed */ Sequence uint32 `` /* 170-byte string literal not displayed */ UserId uint64 `protobuf:"varint,5,opt,name=userId,proto3" json:"userId,omitempty" gorm:"size:20" annotation:"用户id"` CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` Status uint32 `protobuf:"varint,28,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
func (*Category) Descriptor
deprecated
func (*Category) GetCreatedAt ¶
func (*Category) GetParentId ¶
func (*Category) GetSequence ¶
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
type CollectReq ¶
type CollectReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type ContentType `` /* 160-byte string literal not displayed */ RefId uint64 `` /* 136-byte string literal not displayed */ UserId uint64 `protobuf:"varint,5,opt,name=userId,proto3" json:"userId,omitempty" annotation:"用户id"` FavIds []uint64 `` /* 145-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CollectReq) Descriptor
deprecated
func (*CollectReq) Descriptor() ([]byte, []int)
Deprecated: Use CollectReq.ProtoReflect.Descriptor instead.
func (*CollectReq) GetFavIds ¶
func (x *CollectReq) GetFavIds() []uint64
func (*CollectReq) GetId ¶
func (x *CollectReq) GetId() uint64
func (*CollectReq) GetRefId ¶
func (x *CollectReq) GetRefId() uint64
func (*CollectReq) GetType ¶
func (x *CollectReq) GetType() ContentType
func (*CollectReq) GetUserId ¶
func (x *CollectReq) GetUserId() uint64
func (*CollectReq) ProtoMessage ¶
func (*CollectReq) ProtoMessage()
func (*CollectReq) ProtoReflect ¶
func (x *CollectReq) ProtoReflect() protoreflect.Message
func (*CollectReq) Reset ¶
func (x *CollectReq) Reset()
func (*CollectReq) String ¶
func (x *CollectReq) String() string
func (*CollectReq) Validate ¶
func (this *CollectReq) Validate() error
type Collection ¶
type Collection struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` RefId uint64 `` /* 142-byte string literal not displayed */ UserId uint64 `` /* 139-byte string literal not displayed */ Type ContentType `` /* 173-byte string literal not displayed */ User *user.UserBaseInfo `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" gorm:"-" annotation:"用户"` FavId uint64 `` /* 136-byte string literal not displayed */ CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
收藏
func (*Collection) Descriptor
deprecated
func (*Collection) Descriptor() ([]byte, []int)
Deprecated: Use Collection.ProtoReflect.Descriptor instead.
func (*Collection) GetCreatedAt ¶
func (x *Collection) GetCreatedAt() string
func (*Collection) GetDeletedAt ¶
func (x *Collection) GetDeletedAt() string
func (*Collection) GetFavId ¶
func (x *Collection) GetFavId() uint64
func (*Collection) GetId ¶
func (x *Collection) GetId() uint64
func (*Collection) GetRefId ¶
func (x *Collection) GetRefId() uint64
func (*Collection) GetType ¶
func (x *Collection) GetType() ContentType
func (*Collection) GetUser ¶
func (x *Collection) GetUser() *user.UserBaseInfo
func (*Collection) GetUserId ¶
func (x *Collection) GetUserId() uint64
func (*Collection) ProtoMessage ¶
func (*Collection) ProtoMessage()
func (*Collection) ProtoReflect ¶
func (x *Collection) ProtoReflect() protoreflect.Message
func (*Collection) Reset ¶
func (x *Collection) Reset()
func (*Collection) String ¶
func (x *Collection) String() string
type Comment ¶
type Comment struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` RefId uint64 `` /* 134-byte string literal not displayed */ UserId uint64 `` /* 139-byte string literal not displayed */ Type ContentType `` /* 162-byte string literal not displayed */ User *user.UserBaseInfo `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" gorm:"" annotation:"用户"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty" gorm:"size:255;not null" annotation:"内容"` Image string `protobuf:"bytes,13,opt,name=image,proto3" json:"image,omitempty" gorm:"size:255;not null" annotation:"图片"` ReplyId uint64 `protobuf:"varint,7,opt,name=replyId,proto3" json:"replyId,omitempty" gorm:"size:20;default:0" annotation:"回复id"` RootId uint64 `protobuf:"varint,8,opt,name=rootId,proto3" json:"rootId,omitempty" gorm:"size:20;default:0" annotation:"评论根id"` RecvUser *user.UserBaseInfo `protobuf:"bytes,9,opt,name=recvUser,proto3" json:"recvUser,omitempty" gorm:"-" annotation:"接收人"` RecvId uint64 `` /* 142-byte string literal not displayed */ Ext *ContentExt `protobuf:"bytes,30,opt,name=ext,proto3" json:"ext,omitempty" gorm:"-" annotation:"统计数据"` LikeId uint64 `` /* 130-byte string literal not displayed */ UnlikeId uint64 `` /* 137-byte string literal not displayed */ Collects []uint64 `protobuf:"varint,31,rep,packed,name=collects,proto3" json:"collects,omitempty" gorm:"-" annotation:"是否收藏"` SubComments []*Comment `protobuf:"bytes,11,rep,name=subComments,proto3" json:"subComments,omitempty" gorm:"-" annotation:"子评论"` Sequence uint32 `` /* 170-byte string literal not displayed */ CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ Status uint32 `protobuf:"varint,28,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
评论
func (*Comment) Descriptor
deprecated
func (*Comment) GetCollects ¶
func (*Comment) GetContent ¶
func (*Comment) GetCreatedAt ¶
func (*Comment) GetDeletedAt ¶
func (*Comment) GetExt ¶
func (x *Comment) GetExt() *ContentExt
func (*Comment) GetRecvUser ¶
func (x *Comment) GetRecvUser() *user.UserBaseInfo
func (*Comment) GetReplyId ¶
func (*Comment) GetSequence ¶
func (*Comment) GetSubComments ¶
func (*Comment) GetType ¶
func (x *Comment) GetType() ContentType
func (*Comment) GetUnlikeId ¶
func (*Comment) GetUser ¶
func (x *Comment) GetUser() *user.UserBaseInfo
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
type CommentListRep ¶
type CommentListRep struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Comment `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` Users []*user.UserBaseInfo `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*CommentListRep) Descriptor
deprecated
func (*CommentListRep) Descriptor() ([]byte, []int)
Deprecated: Use CommentListRep.ProtoReflect.Descriptor instead.
func (*CommentListRep) GetList ¶
func (x *CommentListRep) GetList() []*Comment
func (*CommentListRep) GetTotal ¶
func (x *CommentListRep) GetTotal() int64
func (*CommentListRep) GetUsers ¶
func (x *CommentListRep) GetUsers() []*user.UserBaseInfo
func (*CommentListRep) ProtoMessage ¶
func (*CommentListRep) ProtoMessage()
func (*CommentListRep) ProtoReflect ¶
func (x *CommentListRep) ProtoReflect() protoreflect.Message
func (*CommentListRep) Reset ¶
func (x *CommentListRep) Reset()
func (*CommentListRep) String ¶
func (x *CommentListRep) String() string
func (*CommentListRep) Validate ¶
func (this *CommentListRep) Validate() error
type CommentListReq ¶
type CommentListReq struct { Type ContentType `protobuf:"varint,1,opt,name=type,proto3,enum=content.ContentType" json:"type,omitempty" annotation:"内容类型"` RefId uint64 `protobuf:"varint,2,opt,name=refId,proto3" json:"refId,omitempty" annotation:"相关id"` RootId uint64 `protobuf:"varint,3,opt,name=rootId,proto3" json:"rootId,omitempty" annotation:"评论根节点"` PageNo uint32 `protobuf:"varint,4,opt,name=pageNo,proto3" json:"pageNo,omitempty"` PageSize uint32 `protobuf:"varint,5,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*CommentListReq) Descriptor
deprecated
func (*CommentListReq) Descriptor() ([]byte, []int)
Deprecated: Use CommentListReq.ProtoReflect.Descriptor instead.
func (*CommentListReq) GetPageNo ¶
func (x *CommentListReq) GetPageNo() uint32
func (*CommentListReq) GetPageSize ¶
func (x *CommentListReq) GetPageSize() uint32
func (*CommentListReq) GetRefId ¶
func (x *CommentListReq) GetRefId() uint64
func (*CommentListReq) GetRootId ¶
func (x *CommentListReq) GetRootId() uint64
func (*CommentListReq) GetType ¶
func (x *CommentListReq) GetType() ContentType
func (*CommentListReq) ProtoMessage ¶
func (*CommentListReq) ProtoMessage()
func (*CommentListReq) ProtoReflect ¶
func (x *CommentListReq) ProtoReflect() protoreflect.Message
func (*CommentListReq) Reset ¶
func (x *CommentListReq) Reset()
func (*CommentListReq) String ¶
func (x *CommentListReq) String() string
func (*CommentListReq) Validate ¶
func (this *CommentListReq) Validate() error
type CommentReq ¶
type CommentReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type ContentType `` /* 134-byte string literal not displayed */ RefId uint64 `protobuf:"varint,6,opt,name=refId,proto3" json:"refId,omitempty" validate:"required" annotation:"相关id"` User *user.UserBaseInfo `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" annotation:"用户"` UserId uint64 `protobuf:"varint,5,opt,name=userId,proto3" json:"userId,omitempty" annotation:"用户id"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty" annotation:"内容"` Image string `protobuf:"bytes,9,opt,name=image,proto3" json:"image,omitempty" annotation:"图片"` ReplyId uint64 `protobuf:"varint,7,opt,name=replyId,proto3" json:"replyId,omitempty" annotation:"回复id"` RootId uint64 `protobuf:"varint,8,opt,name=rootId,proto3" json:"rootId,omitempty" annotation:"评论根id"` RecvId uint64 `protobuf:"varint,10,opt,name=recvId,proto3" json:"recvId,omitempty" validate:"required" annotation:"接收人id"` Sequence uint32 `` /* 143-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CommentReq) Descriptor
deprecated
func (*CommentReq) Descriptor() ([]byte, []int)
Deprecated: Use CommentReq.ProtoReflect.Descriptor instead.
func (*CommentReq) GetContent ¶
func (x *CommentReq) GetContent() string
func (*CommentReq) GetId ¶
func (x *CommentReq) GetId() uint64
func (*CommentReq) GetImage ¶
func (x *CommentReq) GetImage() string
func (*CommentReq) GetRecvId ¶
func (x *CommentReq) GetRecvId() uint64
func (*CommentReq) GetRefId ¶
func (x *CommentReq) GetRefId() uint64
func (*CommentReq) GetReplyId ¶
func (x *CommentReq) GetReplyId() uint64
func (*CommentReq) GetRootId ¶
func (x *CommentReq) GetRootId() uint64
func (*CommentReq) GetSequence ¶
func (x *CommentReq) GetSequence() uint32
func (*CommentReq) GetType ¶
func (x *CommentReq) GetType() ContentType
func (*CommentReq) GetUser ¶
func (x *CommentReq) GetUser() *user.UserBaseInfo
func (*CommentReq) GetUserId ¶
func (x *CommentReq) GetUserId() uint64
func (*CommentReq) ProtoMessage ¶
func (*CommentReq) ProtoMessage()
func (*CommentReq) ProtoReflect ¶
func (x *CommentReq) ProtoReflect() protoreflect.Message
func (*CommentReq) Reset ¶
func (x *CommentReq) Reset()
func (*CommentReq) String ¶
func (x *CommentReq) String() string
func (*CommentReq) Validate ¶
func (this *CommentReq) Validate() error
type CommentType ¶
type CommentType int32
评论类型
const ( CommentPlaceholder CommentType = 0 CommentMoment CommentType = 1 CommentDiary CommentType = 2 CommentDiaryBook CommentType = 3 CommentArticle CommentType = 4 )
func (CommentType) Descriptor ¶
func (CommentType) Descriptor() protoreflect.EnumDescriptor
func (CommentType) Enum ¶
func (x CommentType) Enum() *CommentType
func (CommentType) EnumDescriptor
deprecated
func (CommentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CommentType.Descriptor instead.
func (CommentType) MarshalGQL ¶
func (x CommentType) MarshalGQL(w io.Writer)
func (CommentType) Number ¶
func (x CommentType) Number() protoreflect.EnumNumber
func (CommentType) OrigString ¶
func (x CommentType) OrigString() string
func (CommentType) String ¶
func (x CommentType) String() string
func (CommentType) Type ¶
func (CommentType) Type() protoreflect.EnumType
func (*CommentType) UnmarshalGQL ¶
func (x *CommentType) UnmarshalGQL(v interface{}) error
type Container ¶
type Container struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` Type ContainerType `` /* 135-byte string literal not displayed */ Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty" gorm:"size:50;not null" annotation:"标题"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" gorm:"type:text;not null" annotation:"描述"` Cover string `protobuf:"bytes,4,opt,name=cover,proto3" json:"cover,omitempty" gorm:"size:255;not null" annotation:"封面"` Sequence uint32 `` /* 171-byte string literal not displayed */ Anonymous uint32 `` /* 137-byte string literal not displayed */ Permission ViewPermission `` /* 156-byte string literal not displayed */ UserId uint64 `protobuf:"varint,17,opt,name=userId,proto3" json:"userId,omitempty" gorm:"size:20;not null;index" annotation:"用户id"` CreatedAt string `protobuf:"bytes,16,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ Status uint32 `protobuf:"varint,18,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
func (*Container) Descriptor
deprecated
func (*Container) GetAnonymous ¶
func (*Container) GetCreatedAt ¶
func (*Container) GetDeletedAt ¶
func (*Container) GetDescription ¶
func (*Container) GetPermission ¶
func (x *Container) GetPermission() ViewPermission
func (*Container) GetSequence ¶
func (*Container) GetType ¶
func (x *Container) GetType() ContainerType
func (*Container) ProtoMessage ¶
func (*Container) ProtoMessage()
func (*Container) ProtoReflect ¶
func (x *Container) ProtoReflect() protoreflect.Message
type ContainerType ¶
type ContainerType int32
const ( ContainerTypePlaceholder ContainerType = 0 ContainerTypeFavorites ContainerType = 1 ContainerTypeDiaryBook ContainerType = 2 ContainerTypeAlbum ContainerType = 3 ContainerTypeCollection ContainerType = 4 )
func (ContainerType) Descriptor ¶
func (ContainerType) Descriptor() protoreflect.EnumDescriptor
func (ContainerType) Enum ¶
func (x ContainerType) Enum() *ContainerType
func (ContainerType) EnumDescriptor
deprecated
func (ContainerType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ContainerType.Descriptor instead.
func (ContainerType) MarshalGQL ¶
func (x ContainerType) MarshalGQL(w io.Writer)
func (ContainerType) Number ¶
func (x ContainerType) Number() protoreflect.EnumNumber
func (ContainerType) OrigString ¶
func (x ContainerType) OrigString() string
func (ContainerType) String ¶
func (x ContainerType) String() string
func (ContainerType) Type ¶
func (ContainerType) Type() protoreflect.EnumType
func (*ContainerType) UnmarshalGQL ¶
func (x *ContainerType) UnmarshalGQL(v interface{}) error
type Content ¶
type Content struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` Title string `protobuf:"bytes,24,opt,name=title,proto3" json:"title,omitempty" gorm:"size:50;not null" annotation:"标题"` Intro string `protobuf:"bytes,25,opt,name=intro,proto3" json:"intro,omitempty" gorm:"size:100;not null" annotation:"介绍"` Abstract string `protobuf:"bytes,26,opt,name=abstract,proto3" json:"abstract,omitempty" gorm:"size:100;not null" annotation:"摘要"` Type ContentType `` /* 135-byte string literal not displayed */ Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty" gorm:"text;not null" annotation:"内容"` Mood *Tag `protobuf:"bytes,4,opt,name=mood,proto3" json:"mood,omitempty" annotation:"心情"` Weather *Tag `protobuf:"bytes,21,opt,name=weather,proto3" json:"weather,omitempty" annotation:"天气"` Area *area.Area `protobuf:"bytes,19,opt,name=area,proto3" json:"area,omitempty" annotation:"地区"` AreaId uint64 `protobuf:"varint,20,opt,name=areaId,proto3" json:"areaId,omitempty" gorm:"size:10;not null" annotation:"地区"` Location string `protobuf:"bytes,14,opt,name=location,proto3" json:"location,omitempty" gorm:"size:20;not null" annotation:"位置"` Tags []*Tag `` /* 151-byte string literal not displayed */ User *user.UserBaseInfo `protobuf:"bytes,8,opt,name=user,proto3" json:"user,omitempty" gorm:"-" annotation:"用户"` UserId uint64 `protobuf:"varint,17,opt,name=userId,proto3" json:"userId,omitempty" gorm:"size:20;not null;index" annotation:"用户id"` ApproveUsers []*user.UserBaseInfo `` /* 140-byte string literal not displayed */ CollectUsers []*user.UserBaseInfo `` /* 136-byte string literal not displayed */ LikeUsers []*user.UserBaseInfo `` /* 127-byte string literal not displayed */ Comments []*Comment `protobuf:"bytes,7,rep,name=comments,proto3" json:"comments,omitempty" gorm:"-" annotation:"评论"` Sequence uint32 `` /* 171-byte string literal not displayed */ Anonymous uint32 `` /* 137-byte string literal not displayed */ Permission ViewPermission `` /* 156-byte string literal not displayed */ CreatedAt string `protobuf:"bytes,16,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` Status uint32 `protobuf:"varint,18,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
func (*Content) Descriptor
deprecated
func (*Content) GetAbstract ¶
func (*Content) GetAnonymous ¶
func (*Content) GetApproveUsers ¶
func (x *Content) GetApproveUsers() []*user.UserBaseInfo
func (*Content) GetCollectUsers ¶
func (x *Content) GetCollectUsers() []*user.UserBaseInfo
func (*Content) GetComments ¶
func (*Content) GetContent ¶
func (*Content) GetCreatedAt ¶
func (*Content) GetLikeUsers ¶
func (x *Content) GetLikeUsers() []*user.UserBaseInfo
func (*Content) GetLocation ¶
func (*Content) GetPermission ¶
func (x *Content) GetPermission() ViewPermission
func (*Content) GetSequence ¶
func (*Content) GetType ¶
func (x *Content) GetType() ContentType
func (*Content) GetUser ¶
func (x *Content) GetUser() *user.UserBaseInfo
func (*Content) GetWeather ¶
func (*Content) ProtoMessage ¶
func (*Content) ProtoMessage()
func (*Content) ProtoReflect ¶
func (x *Content) ProtoReflect() protoreflect.Message
type ContentAttr ¶
type ContentAttr struct { ContentType ContentType `` /* 191-byte string literal not displayed */ ContentId uint64 `` /* 156-byte string literal not displayed */ Type AttrType `` /* 165-byte string literal not displayed */ RefId uint64 `` /* 145-byte string literal not displayed */ AttrValue string `` /* 131-byte string literal not displayed */ UserId uint64 `protobuf:"varint,9,opt,name=userId,proto3" json:"userId,omitempty" gorm:"size:20" annotation:"用户id"` Sequence uint32 `` /* 170-byte string literal not displayed */ Visibility uint32 `` /* 135-byte string literal not displayed */ Relativity uint32 `` /* 133-byte string literal not displayed */ Status uint32 `protobuf:"varint,28,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
这种方式占空间,每条都要额外记录type,不如拆表moment_tag,moment_area
func (*ContentAttr) Descriptor
deprecated
func (*ContentAttr) Descriptor() ([]byte, []int)
Deprecated: Use ContentAttr.ProtoReflect.Descriptor instead.
func (*ContentAttr) GetAttrValue ¶
func (x *ContentAttr) GetAttrValue() string
func (*ContentAttr) GetContentId ¶
func (x *ContentAttr) GetContentId() uint64
func (*ContentAttr) GetContentType ¶
func (x *ContentAttr) GetContentType() ContentType
func (*ContentAttr) GetRefId ¶
func (x *ContentAttr) GetRefId() uint64
func (*ContentAttr) GetRelativity ¶
func (x *ContentAttr) GetRelativity() uint32
func (*ContentAttr) GetSequence ¶
func (x *ContentAttr) GetSequence() uint32
func (*ContentAttr) GetStatus ¶
func (x *ContentAttr) GetStatus() uint32
func (*ContentAttr) GetType ¶
func (x *ContentAttr) GetType() AttrType
func (*ContentAttr) GetUserId ¶
func (x *ContentAttr) GetUserId() uint64
func (*ContentAttr) GetVisibility ¶
func (x *ContentAttr) GetVisibility() uint32
func (*ContentAttr) ProtoMessage ¶
func (*ContentAttr) ProtoMessage()
func (*ContentAttr) ProtoReflect ¶
func (x *ContentAttr) ProtoReflect() protoreflect.Message
func (*ContentAttr) Reset ¶
func (x *ContentAttr) Reset()
func (*ContentAttr) String ¶
func (x *ContentAttr) String() string
type ContentDel ¶
type ContentDel struct { RefId uint64 `` /* 128-byte string literal not displayed */ Type ContentType `` /* 152-byte string literal not displayed */ DelReason DelReason `` /* 148-byte string literal not displayed */ Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty" gorm:"size:255;default:''" annotation:"备注"` CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` // contains filtered or unexported fields }
系统删除内容记录
func (*ContentDel) Descriptor
deprecated
func (*ContentDel) Descriptor() ([]byte, []int)
Deprecated: Use ContentDel.ProtoReflect.Descriptor instead.
func (*ContentDel) GetCreatedAt ¶
func (x *ContentDel) GetCreatedAt() string
func (*ContentDel) GetDelReason ¶
func (x *ContentDel) GetDelReason() DelReason
func (*ContentDel) GetRefId ¶
func (x *ContentDel) GetRefId() uint64
func (*ContentDel) GetRemark ¶
func (x *ContentDel) GetRemark() string
func (*ContentDel) GetType ¶
func (x *ContentDel) GetType() ContentType
func (*ContentDel) ProtoMessage ¶
func (*ContentDel) ProtoMessage()
func (*ContentDel) ProtoReflect ¶
func (x *ContentDel) ProtoReflect() protoreflect.Message
func (*ContentDel) Reset ¶
func (x *ContentDel) Reset()
func (*ContentDel) String ¶
func (x *ContentDel) String() string
type ContentExt ¶
type ContentExt struct { Type ContentType `` /* 172-byte string literal not displayed */ RefId uint64 `` /* 142-byte string literal not displayed */ LikeCount uint64 `protobuf:"varint,3,opt,name=likeCount,proto3" json:"likeCount,omitempty" gorm:"size:20;default:0" annotation:"点赞数"` BrowseCount uint64 `protobuf:"varint,4,opt,name=browseCount,proto3" json:"browseCount,omitempty" gorm:"size:20;default:0" annotation:"浏览数"` UnlikeCount uint64 `` /* 127-byte string literal not displayed */ ReportCount uint64 `protobuf:"varint,6,opt,name=reportCount,proto3" json:"reportCount,omitempty" gorm:"size:20;default:0" annotation:"举报数"` CommentCount uint64 `` /* 126-byte string literal not displayed */ CollectCount uint64 `` /* 126-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ContentExt) Descriptor
deprecated
func (*ContentExt) Descriptor() ([]byte, []int)
Deprecated: Use ContentExt.ProtoReflect.Descriptor instead.
func (*ContentExt) GetBrowseCount ¶
func (x *ContentExt) GetBrowseCount() uint64
func (*ContentExt) GetCollectCount ¶
func (x *ContentExt) GetCollectCount() uint64
func (*ContentExt) GetCommentCount ¶
func (x *ContentExt) GetCommentCount() uint64
func (*ContentExt) GetLikeCount ¶
func (x *ContentExt) GetLikeCount() uint64
func (*ContentExt) GetRefId ¶
func (x *ContentExt) GetRefId() uint64
func (*ContentExt) GetReportCount ¶
func (x *ContentExt) GetReportCount() uint64
func (*ContentExt) GetType ¶
func (x *ContentExt) GetType() ContentType
func (*ContentExt) GetUnlikeCount ¶
func (x *ContentExt) GetUnlikeCount() uint64
func (*ContentExt) ProtoMessage ¶
func (*ContentExt) ProtoMessage()
func (*ContentExt) ProtoReflect ¶
func (x *ContentExt) ProtoReflect() protoreflect.Message
func (*ContentExt) Reset ¶
func (x *ContentExt) Reset()
func (*ContentExt) String ¶
func (x *ContentExt) String() string
type ContentServiceClient ¶
type ContentServiceClient interface { // 详情 TagInfo(ctx context.Context, in *request.Object, opts ...grpc.CallOption) (*Tag, error) // 新建 AddTag(ctx context.Context, in *AddTagReq, opts ...grpc.CallOption) (*empty.Empty, error) // 修改 EditTag(ctx context.Context, in *EditTagReq, opts ...grpc.CallOption) (*empty.Empty, error) // 列表 TagList(ctx context.Context, in *TagListReq, opts ...grpc.CallOption) (*TagListRep, error) // 列表 TagGroupList(ctx context.Context, in *TagGroupListReq, opts ...grpc.CallOption) (*TagGroupListRep, error) // 详情 AttrInfo(ctx context.Context, in *request.Object, opts ...grpc.CallOption) (*Attributes, error) // 新建 AddAttr(ctx context.Context, in *AddAttrReq, opts ...grpc.CallOption) (*request.Object, error) // 修改 EditAttr(ctx context.Context, in *EditAttrReq, opts ...grpc.CallOption) (*empty.Empty, error) // 列表 AttrList(ctx context.Context, in *AttrListReq, opts ...grpc.CallOption) (*AttrListRep, error) //收藏夹列表 FavList(ctx context.Context, in *FavListReq, opts ...grpc.CallOption) (*FavListRep, error) //收藏夹列表 TinyFavList(ctx context.Context, in *FavListReq, opts ...grpc.CallOption) (*TinyFavListRep, error) // 创建收藏夹 AddFav(ctx context.Context, in *AddFavReq, opts ...grpc.CallOption) (*request.Object, error) // 修改收藏夹 EditFav(ctx context.Context, in *AddFavReq, opts ...grpc.CallOption) (*empty.Empty, error) // 创建合集 AddContainer(ctx context.Context, in *AddContainerReq, opts ...grpc.CallOption) (*empty.Empty, error) // 修改合集 EditDiaryContainer(ctx context.Context, in *AddContainerReq, opts ...grpc.CallOption) (*empty.Empty, error) // 用户内容数量 UserContentCount(ctx context.Context, in *request.Object, opts ...grpc.CallOption) (*user.UserContent, error) }
ContentServiceClient is the client API for ContentService 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 NewContentServiceClient ¶
func NewContentServiceClient(cc grpc.ClientConnInterface) ContentServiceClient
type ContentServiceServer ¶
type ContentServiceServer interface { // 详情 TagInfo(context.Context, *request.Object) (*Tag, error) // 新建 AddTag(context.Context, *AddTagReq) (*empty.Empty, error) // 修改 EditTag(context.Context, *EditTagReq) (*empty.Empty, error) // 列表 TagList(context.Context, *TagListReq) (*TagListRep, error) // 列表 TagGroupList(context.Context, *TagGroupListReq) (*TagGroupListRep, error) // 详情 AttrInfo(context.Context, *request.Object) (*Attributes, error) // 新建 AddAttr(context.Context, *AddAttrReq) (*request.Object, error) // 修改 EditAttr(context.Context, *EditAttrReq) (*empty.Empty, error) // 列表 AttrList(context.Context, *AttrListReq) (*AttrListRep, error) //收藏夹列表 FavList(context.Context, *FavListReq) (*FavListRep, error) //收藏夹列表 TinyFavList(context.Context, *FavListReq) (*TinyFavListRep, error) // 创建收藏夹 AddFav(context.Context, *AddFavReq) (*request.Object, error) // 修改收藏夹 EditFav(context.Context, *AddFavReq) (*empty.Empty, error) // 创建合集 AddContainer(context.Context, *AddContainerReq) (*empty.Empty, error) // 修改合集 EditDiaryContainer(context.Context, *AddContainerReq) (*empty.Empty, error) // 用户内容数量 UserContentCount(context.Context, *request.Object) (*user.UserContent, error) // contains filtered or unexported methods }
ContentServiceServer is the server API for ContentService service. All implementations must embed UnimplementedContentServiceServer for forward compatibility
type ContentTag ¶
type ContentTag struct { Type ContentType `` /* 177-byte string literal not displayed */ RefId uint64 `` /* 148-byte string literal not displayed */ TagId uint64 `` /* 144-byte string literal not displayed */ Relativity uint32 `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ContentTag) Descriptor
deprecated
func (*ContentTag) Descriptor() ([]byte, []int)
Deprecated: Use ContentTag.ProtoReflect.Descriptor instead.
func (*ContentTag) GetRefId ¶
func (x *ContentTag) GetRefId() uint64
func (*ContentTag) GetRelativity ¶
func (x *ContentTag) GetRelativity() uint32
func (*ContentTag) GetTagId ¶
func (x *ContentTag) GetTagId() uint64
func (*ContentTag) GetType ¶
func (x *ContentTag) GetType() ContentType
func (*ContentTag) ProtoMessage ¶
func (*ContentTag) ProtoMessage()
func (*ContentTag) ProtoReflect ¶
func (x *ContentTag) ProtoReflect() protoreflect.Message
func (*ContentTag) Reset ¶
func (x *ContentTag) Reset()
func (*ContentTag) String ¶
func (x *ContentTag) String() string
type ContentType ¶
type ContentType int32
const ( ContentPlaceholder ContentType = 0 ContentMoment ContentType = 1 ContentNote ContentType = 2 ContentDairy ContentType = 3 ContentDairyBook ContentType = 4 ContentFavorites ContentType = 5 ContentCollection ContentType = 6 ContentComment ContentType = 7 )
func (ContentType) Descriptor ¶
func (ContentType) Descriptor() protoreflect.EnumDescriptor
func (ContentType) Enum ¶
func (x ContentType) Enum() *ContentType
func (ContentType) EnumDescriptor
deprecated
func (ContentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use ContentType.Descriptor instead.
func (ContentType) MarshalGQL ¶
func (x ContentType) MarshalGQL(w io.Writer)
func (ContentType) Number ¶
func (x ContentType) Number() protoreflect.EnumNumber
func (ContentType) OrigString ¶
func (x ContentType) OrigString() string
func (ContentType) String ¶
func (x ContentType) String() string
func (ContentType) Type ¶
func (ContentType) Type() protoreflect.EnumType
func (*ContentType) UnmarshalGQL ¶
func (x *ContentType) UnmarshalGQL(v interface{}) error
type CreateNoteReq ¶
type CreateNoteReq struct { Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty" validate:"gte=3,lte=10" annotation:"标题"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty" annotation:"内容"` PublicName string `protobuf:"bytes,4,opt,name=public_name,json=publicName,proto3" json:"public_name,omitempty"` // contains filtered or unexported fields }
func (*CreateNoteReq) Descriptor
deprecated
func (*CreateNoteReq) Descriptor() ([]byte, []int)
Deprecated: Use CreateNoteReq.ProtoReflect.Descriptor instead.
func (*CreateNoteReq) GetContent ¶
func (x *CreateNoteReq) GetContent() string
func (*CreateNoteReq) GetPublicName ¶
func (x *CreateNoteReq) GetPublicName() string
func (*CreateNoteReq) GetTitle ¶
func (x *CreateNoteReq) GetTitle() string
func (*CreateNoteReq) ProtoMessage ¶
func (*CreateNoteReq) ProtoMessage()
func (*CreateNoteReq) ProtoReflect ¶
func (x *CreateNoteReq) ProtoReflect() protoreflect.Message
func (*CreateNoteReq) Reset ¶
func (x *CreateNoteReq) Reset()
func (*CreateNoteReq) String ¶
func (x *CreateNoteReq) String() string
func (*CreateNoteReq) Validate ¶
func (this *CreateNoteReq) Validate() error
type DelReason ¶
type DelReason int32
删除原因
func (DelReason) Descriptor ¶
func (DelReason) Descriptor() protoreflect.EnumDescriptor
func (DelReason) EnumDescriptor
deprecated
func (DelReason) MarshalGQL ¶
func (DelReason) Number ¶
func (x DelReason) Number() protoreflect.EnumNumber
func (DelReason) OrigString ¶
func (DelReason) Type ¶
func (DelReason) Type() protoreflect.EnumType
func (*DelReason) UnmarshalGQL ¶
type Diary ¶
type Diary struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty" gorm:"type:text;not null" annotation:"内容"` BookId uint64 `protobuf:"varint,4,opt,name=bookId,proto3" json:"bookId,omitempty" gorm:"size:20;default:0" annotation:"日记本Id"` Book *DiaryBook `protobuf:"bytes,26,opt,name=book,proto3" json:"book,omitempty" gorm:"-" annotation:"日记本"` Mood *TinyTag `protobuf:"bytes,5,opt,name=mood,proto3" json:"mood,omitempty" gorm:"-" annotation:"心情"` Weather *TinyTag `protobuf:"bytes,7,opt,name=weather,proto3" json:"weather,omitempty" gorm:"-" annotation:"天气"` Area *area.Area `protobuf:"bytes,9,opt,name=area,proto3" json:"area,omitempty" gorm:"-" annotation:"地区"` AreaId uint64 `protobuf:"varint,10,opt,name=areaId,proto3" json:"areaId,omitempty" gorm:"size:10;default:0" annotation:"地区"` AreaVisibility uint32 `` /* 150-byte string literal not displayed */ Location string `protobuf:"bytes,12,opt,name=location,proto3" json:"location,omitempty" gorm:"size:20;default:''" annotation:"位置"` Tags []*TinyTag `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty" gorm:"-" annotation:"标签"` User *user.UserBaseInfo `protobuf:"bytes,14,opt,name=user,proto3" json:"user,omitempty" gorm:"-" annotation:"用户"` UserId uint64 `protobuf:"varint,17,opt,name=userId,proto3" json:"userId,omitempty" gorm:"size:20;not null;index" annotation:"用户id"` ApproveUsers []*user.UserBaseInfo `protobuf:"bytes,15,rep,name=approveUsers,proto3" json:"approveUsers,omitempty" gorm:"-" annotation:"点赞用户"` CollectUsers []*user.UserBaseInfo `protobuf:"bytes,16,rep,name=collectUsers,proto3" json:"collectUsers,omitempty" gorm:"-" annotation:"收藏用户"` LikeUsers []*user.UserBaseInfo `protobuf:"bytes,25,rep,name=likeUsers,proto3" json:"likeUsers,omitempty" gorm:"-" annotation:"喜欢用户"` Comments []*Comment `protobuf:"bytes,18,rep,name=comments,proto3" json:"comments,omitempty" gorm:"-" annotation:"评论"` Sequence uint32 `` /* 171-byte string literal not displayed */ Anonymous uint32 `` /* 137-byte string literal not displayed */ Permission ViewPermission `` /* 156-byte string literal not displayed */ CreatedAt string `protobuf:"bytes,22,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ Status uint32 `protobuf:"varint,24,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
func (*Diary) Descriptor
deprecated
func (*Diary) GetAnonymous ¶
func (*Diary) GetApproveUsers ¶
func (x *Diary) GetApproveUsers() []*user.UserBaseInfo
func (*Diary) GetAreaVisibility ¶
func (*Diary) GetCollectUsers ¶
func (x *Diary) GetCollectUsers() []*user.UserBaseInfo
func (*Diary) GetComments ¶
func (*Diary) GetContent ¶
func (*Diary) GetCreatedAt ¶
func (*Diary) GetDeletedAt ¶
func (*Diary) GetLikeUsers ¶
func (x *Diary) GetLikeUsers() []*user.UserBaseInfo
func (*Diary) GetLocation ¶
func (*Diary) GetPermission ¶
func (x *Diary) GetPermission() ViewPermission
func (*Diary) GetSequence ¶
func (*Diary) GetUser ¶
func (x *Diary) GetUser() *user.UserBaseInfo
func (*Diary) GetWeather ¶
func (*Diary) ProtoMessage ¶
func (*Diary) ProtoMessage()
func (*Diary) ProtoReflect ¶
func (x *Diary) ProtoReflect() protoreflect.Message
type DiaryBook ¶
type DiaryBook struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty" gorm:"size:50;not null" annotation:"标题"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" gorm:"type:text;not null" annotation:"描述"` Cover string `protobuf:"bytes,4,opt,name=cover,proto3" json:"cover,omitempty" gorm:"size:255;not null" annotation:"封面"` Sequence uint32 `` /* 171-byte string literal not displayed */ Anonymous uint32 `` /* 137-byte string literal not displayed */ Permission ViewPermission `` /* 156-byte string literal not displayed */ UserId uint64 `protobuf:"varint,17,opt,name=userId,proto3" json:"userId,omitempty" gorm:"size:20;not null;index" annotation:"用户id"` CreatedAt string `protobuf:"bytes,16,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ Status uint32 `protobuf:"varint,18,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
func (*DiaryBook) Descriptor
deprecated
func (*DiaryBook) GetAnonymous ¶
func (*DiaryBook) GetCreatedAt ¶
func (*DiaryBook) GetDeletedAt ¶
func (*DiaryBook) GetDescription ¶
func (*DiaryBook) GetPermission ¶
func (x *DiaryBook) GetPermission() ViewPermission
func (*DiaryBook) GetSequence ¶
func (*DiaryBook) ProtoMessage ¶
func (*DiaryBook) ProtoMessage()
func (*DiaryBook) ProtoReflect ¶
func (x *DiaryBook) ProtoReflect() protoreflect.Message
type DiaryBookListRep ¶
type DiaryBookListRep struct { Count uint32 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` List []*DiaryBook `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*DiaryBookListRep) Descriptor
deprecated
func (*DiaryBookListRep) Descriptor() ([]byte, []int)
Deprecated: Use DiaryBookListRep.ProtoReflect.Descriptor instead.
func (*DiaryBookListRep) GetCount ¶
func (x *DiaryBookListRep) GetCount() uint32
func (*DiaryBookListRep) GetList ¶
func (x *DiaryBookListRep) GetList() []*DiaryBook
func (*DiaryBookListRep) ProtoMessage ¶
func (*DiaryBookListRep) ProtoMessage()
func (*DiaryBookListRep) ProtoReflect ¶
func (x *DiaryBookListRep) ProtoReflect() protoreflect.Message
func (*DiaryBookListRep) Reset ¶
func (x *DiaryBookListRep) Reset()
func (*DiaryBookListRep) String ¶
func (x *DiaryBookListRep) String() string
func (*DiaryBookListRep) Validate ¶
func (this *DiaryBookListRep) Validate() error
type DiaryBookListReq ¶
type DiaryBookListReq struct {
// contains filtered or unexported fields
}
func (*DiaryBookListReq) Descriptor
deprecated
func (*DiaryBookListReq) Descriptor() ([]byte, []int)
Deprecated: Use DiaryBookListReq.ProtoReflect.Descriptor instead.
func (*DiaryBookListReq) ProtoMessage ¶
func (*DiaryBookListReq) ProtoMessage()
func (*DiaryBookListReq) ProtoReflect ¶
func (x *DiaryBookListReq) ProtoReflect() protoreflect.Message
func (*DiaryBookListReq) Reset ¶
func (x *DiaryBookListReq) Reset()
func (*DiaryBookListReq) String ¶
func (x *DiaryBookListReq) String() string
func (*DiaryBookListReq) Validate ¶
func (this *DiaryBookListReq) Validate() error
type DiaryBookRep ¶
type DiaryBookRep struct { Book *DiaryBook `protobuf:"bytes,1,opt,name=book,proto3" json:"book,omitempty"` List []*Diary `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*DiaryBookRep) Descriptor
deprecated
func (*DiaryBookRep) Descriptor() ([]byte, []int)
Deprecated: Use DiaryBookRep.ProtoReflect.Descriptor instead.
func (*DiaryBookRep) GetBook ¶
func (x *DiaryBookRep) GetBook() *DiaryBook
func (*DiaryBookRep) GetList ¶
func (x *DiaryBookRep) GetList() []*Diary
func (*DiaryBookRep) ProtoMessage ¶
func (*DiaryBookRep) ProtoMessage()
func (*DiaryBookRep) ProtoReflect ¶
func (x *DiaryBookRep) ProtoReflect() protoreflect.Message
func (*DiaryBookRep) Reset ¶
func (x *DiaryBookRep) Reset()
func (*DiaryBookRep) String ¶
func (x *DiaryBookRep) String() string
func (*DiaryBookRep) Validate ¶
func (this *DiaryBookRep) Validate() error
type DiaryBookReq ¶
type DiaryBookReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" validate:"required"` PageNo uint32 `protobuf:"varint,2,opt,name=pageNo,proto3" json:"pageNo,omitempty"` PageSize uint32 `protobuf:"varint,3,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*DiaryBookReq) Descriptor
deprecated
func (*DiaryBookReq) Descriptor() ([]byte, []int)
Deprecated: Use DiaryBookReq.ProtoReflect.Descriptor instead.
func (*DiaryBookReq) GetId ¶
func (x *DiaryBookReq) GetId() uint64
func (*DiaryBookReq) GetPageNo ¶
func (x *DiaryBookReq) GetPageNo() uint32
func (*DiaryBookReq) GetPageSize ¶
func (x *DiaryBookReq) GetPageSize() uint32
func (*DiaryBookReq) ProtoMessage ¶
func (*DiaryBookReq) ProtoMessage()
func (*DiaryBookReq) ProtoReflect ¶
func (x *DiaryBookReq) ProtoReflect() protoreflect.Message
func (*DiaryBookReq) Reset ¶
func (x *DiaryBookReq) Reset()
func (*DiaryBookReq) String ¶
func (x *DiaryBookReq) String() string
func (*DiaryBookReq) Validate ¶
func (this *DiaryBookReq) Validate() error
type DiaryListRep ¶
type DiaryListRep struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Diary `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*DiaryListRep) Descriptor
deprecated
func (*DiaryListRep) Descriptor() ([]byte, []int)
Deprecated: Use DiaryListRep.ProtoReflect.Descriptor instead.
func (*DiaryListRep) GetList ¶
func (x *DiaryListRep) GetList() []*Diary
func (*DiaryListRep) GetTotal ¶
func (x *DiaryListRep) GetTotal() int64
func (*DiaryListRep) ProtoMessage ¶
func (*DiaryListRep) ProtoMessage()
func (*DiaryListRep) ProtoReflect ¶
func (x *DiaryListRep) ProtoReflect() protoreflect.Message
func (*DiaryListRep) Reset ¶
func (x *DiaryListRep) Reset()
func (*DiaryListRep) String ¶
func (x *DiaryListRep) String() string
func (*DiaryListRep) Validate ¶
func (this *DiaryListRep) Validate() error
type DiaryListReq ¶
type DiaryListReq struct { PageNo uint32 `protobuf:"varint,1,opt,name=pageNo,proto3" json:"pageNo,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*DiaryListReq) Descriptor
deprecated
func (*DiaryListReq) Descriptor() ([]byte, []int)
Deprecated: Use DiaryListReq.ProtoReflect.Descriptor instead.
func (*DiaryListReq) GetPageNo ¶
func (x *DiaryListReq) GetPageNo() uint32
func (*DiaryListReq) GetPageSize ¶
func (x *DiaryListReq) GetPageSize() uint32
func (*DiaryListReq) ProtoMessage ¶
func (*DiaryListReq) ProtoMessage()
func (*DiaryListReq) ProtoReflect ¶
func (x *DiaryListReq) ProtoReflect() protoreflect.Message
func (*DiaryListReq) Reset ¶
func (x *DiaryListReq) Reset()
func (*DiaryListReq) String ¶
func (x *DiaryListReq) String() string
func (*DiaryListReq) Validate ¶
func (this *DiaryListReq) Validate() error
type DiaryServiceClient ¶
type DiaryServiceClient interface { // 日记本 DiaryBook(ctx context.Context, in *DiaryBookReq, opts ...grpc.CallOption) (*DiaryBookRep, error) // 日记本列表 DiaryBookList(ctx context.Context, in *DiaryBookListReq, opts ...grpc.CallOption) (*DiaryBookListRep, error) // 创建日记本 AddDiaryBook(ctx context.Context, in *AddDiaryBookReq, opts ...grpc.CallOption) (*request.Object, error) // 修改日记本 EditDiaryBook(ctx context.Context, in *AddDiaryBookReq, opts ...grpc.CallOption) (*empty.Empty, error) // 详情 Info(ctx context.Context, in *request.Object, opts ...grpc.CallOption) (*Diary, error) // 新建 Add(ctx context.Context, in *AddDiaryReq, opts ...grpc.CallOption) (*request.Object, error) // 修改 Edit(ctx context.Context, in *AddDiaryReq, opts ...grpc.CallOption) (*empty.Empty, error) // 列表 List(ctx context.Context, in *DiaryListReq, opts ...grpc.CallOption) (*DiaryListRep, error) // 删除 Delete(ctx context.Context, in *request.Object, opts ...grpc.CallOption) (*empty.Empty, error) }
DiaryServiceClient is the client API for DiaryService 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 NewDiaryServiceClient ¶
func NewDiaryServiceClient(cc grpc.ClientConnInterface) DiaryServiceClient
type DiaryServiceServer ¶
type DiaryServiceServer interface { // 日记本 DiaryBook(context.Context, *DiaryBookReq) (*DiaryBookRep, error) // 日记本列表 DiaryBookList(context.Context, *DiaryBookListReq) (*DiaryBookListRep, error) // 创建日记本 AddDiaryBook(context.Context, *AddDiaryBookReq) (*request.Object, error) // 修改日记本 EditDiaryBook(context.Context, *AddDiaryBookReq) (*empty.Empty, error) // 详情 Info(context.Context, *request.Object) (*Diary, error) // 新建 Add(context.Context, *AddDiaryReq) (*request.Object, error) // 修改 Edit(context.Context, *AddDiaryReq) (*empty.Empty, error) // 列表 List(context.Context, *DiaryListReq) (*DiaryListRep, error) // 删除 Delete(context.Context, *request.Object) (*empty.Empty, error) // contains filtered or unexported methods }
DiaryServiceServer is the server API for DiaryService service. All implementations must embed UnimplementedDiaryServiceServer for forward compatibility
type EditAttrReq ¶
type EditAttrReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" validate:"required"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" annotation:"名称"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" annotation:"描述"` ExpressionURL string `protobuf:"bytes,4,opt,name=expressionURL,proto3" json:"expressionURL,omitempty" annotation:"表情url"` // contains filtered or unexported fields }
func (*EditAttrReq) Descriptor
deprecated
func (*EditAttrReq) Descriptor() ([]byte, []int)
Deprecated: Use EditAttrReq.ProtoReflect.Descriptor instead.
func (*EditAttrReq) GetDescription ¶
func (x *EditAttrReq) GetDescription() string
func (*EditAttrReq) GetExpressionURL ¶
func (x *EditAttrReq) GetExpressionURL() string
func (*EditAttrReq) GetId ¶
func (x *EditAttrReq) GetId() uint64
func (*EditAttrReq) GetName ¶
func (x *EditAttrReq) GetName() string
func (*EditAttrReq) ProtoMessage ¶
func (*EditAttrReq) ProtoMessage()
func (*EditAttrReq) ProtoReflect ¶
func (x *EditAttrReq) ProtoReflect() protoreflect.Message
func (*EditAttrReq) Reset ¶
func (x *EditAttrReq) Reset()
func (*EditAttrReq) String ¶
func (x *EditAttrReq) String() string
func (*EditAttrReq) Validate ¶
func (this *EditAttrReq) Validate() error
type EditTagReq ¶
type EditTagReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" validate:"required"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty" annotation:"名称"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" annotation:"描述"` ExpressionURL string `protobuf:"bytes,4,opt,name=expressionURL,proto3" json:"expressionURL,omitempty" annotation:"表情url"` // contains filtered or unexported fields }
func (*EditTagReq) Descriptor
deprecated
func (*EditTagReq) Descriptor() ([]byte, []int)
Deprecated: Use EditTagReq.ProtoReflect.Descriptor instead.
func (*EditTagReq) GetDescription ¶
func (x *EditTagReq) GetDescription() string
func (*EditTagReq) GetExpressionURL ¶
func (x *EditTagReq) GetExpressionURL() string
func (*EditTagReq) GetId ¶
func (x *EditTagReq) GetId() uint64
func (*EditTagReq) GetName ¶
func (x *EditTagReq) GetName() string
func (*EditTagReq) ProtoMessage ¶
func (*EditTagReq) ProtoMessage()
func (*EditTagReq) ProtoReflect ¶
func (x *EditTagReq) ProtoReflect() protoreflect.Message
func (*EditTagReq) Reset ¶
func (x *EditTagReq) Reset()
func (*EditTagReq) String ¶
func (x *EditTagReq) String() string
func (*EditTagReq) Validate ¶
func (this *EditTagReq) Validate() error
type FavFollow ¶
type FavFollow struct { FavId uint64 `protobuf:"varint,1,opt,name=favId,proto3" json:"favId,omitempty" gorm:"not null;index:idx_fav_user"` UserId uint64 `` /* 132-byte string literal not displayed */ CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
func (*FavFollow) Descriptor
deprecated
func (*FavFollow) GetCreatedAt ¶
func (*FavFollow) GetDeletedAt ¶
func (*FavFollow) ProtoMessage ¶
func (*FavFollow) ProtoMessage()
func (*FavFollow) ProtoReflect ¶
func (x *FavFollow) ProtoReflect() protoreflect.Message
type FavListRep ¶
type FavListRep struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Favorites `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*FavListRep) Descriptor
deprecated
func (*FavListRep) Descriptor() ([]byte, []int)
Deprecated: Use FavListRep.ProtoReflect.Descriptor instead.
func (*FavListRep) GetList ¶
func (x *FavListRep) GetList() []*Favorites
func (*FavListRep) GetTotal ¶
func (x *FavListRep) GetTotal() int64
func (*FavListRep) ProtoMessage ¶
func (*FavListRep) ProtoMessage()
func (*FavListRep) ProtoReflect ¶
func (x *FavListRep) ProtoReflect() protoreflect.Message
func (*FavListRep) Reset ¶
func (x *FavListRep) Reset()
func (*FavListRep) String ¶
func (x *FavListRep) String() string
func (*FavListRep) Validate ¶
func (this *FavListRep) Validate() error
type FavListReq ¶
type FavListReq struct { UserId uint32 `protobuf:"varint,1,opt,name=userId,proto3" json:"userId,omitempty" annotation:"权限,0-自己可写的,1-可读写"` // contains filtered or unexported fields }
func (*FavListReq) Descriptor
deprecated
func (*FavListReq) Descriptor() ([]byte, []int)
Deprecated: Use FavListReq.ProtoReflect.Descriptor instead.
func (*FavListReq) GetUserId ¶
func (x *FavListReq) GetUserId() uint32
func (*FavListReq) ProtoMessage ¶
func (*FavListReq) ProtoMessage()
func (*FavListReq) ProtoReflect ¶
func (x *FavListReq) ProtoReflect() protoreflect.Message
func (*FavListReq) Reset ¶
func (x *FavListReq) Reset()
func (*FavListReq) String ¶
func (x *FavListReq) String() string
func (*FavListReq) Validate ¶
func (this *FavListReq) Validate() error
type Favorites ¶
type Favorites struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` User *user.UserBaseInfo `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" gorm:"-" annotation:"用户"` UserId uint64 `` /* 139-byte string literal not displayed */ Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty" gorm:"size:10;not null" annotation:"标题"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty" gorm:"type:text;not null" annotation:"描述"` Cover string `protobuf:"bytes,4,opt,name=cover,proto3" json:"cover,omitempty" gorm:"size:255;not null" annotation:"封面"` Sequence uint32 `` /* 171-byte string literal not displayed */ Anonymous uint32 `` /* 137-byte string literal not displayed */ FollowUsers []*user.UserBaseInfo `protobuf:"bytes,7,rep,name=followUsers,proto3" json:"followUsers,omitempty" gorm:"-" annotation:"关注人"` Collections []*Collection `protobuf:"bytes,6,rep,name=collections,proto3" json:"collections,omitempty" gorm:"-" annotation:"收藏"` CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Favorites) Descriptor
deprecated
func (*Favorites) GetAnonymous ¶
func (*Favorites) GetCollections ¶
func (x *Favorites) GetCollections() []*Collection
func (*Favorites) GetCreatedAt ¶
func (*Favorites) GetDeletedAt ¶
func (*Favorites) GetDescription ¶
func (*Favorites) GetFollowUsers ¶
func (x *Favorites) GetFollowUsers() []*user.UserBaseInfo
func (*Favorites) GetSequence ¶
func (*Favorites) GetUser ¶
func (x *Favorites) GetUser() *user.UserBaseInfo
func (*Favorites) ProtoMessage ¶
func (*Favorites) ProtoMessage()
func (*Favorites) ProtoReflect ¶
func (x *Favorites) ProtoReflect() protoreflect.Message
type GCReq ¶
type GCReq struct { Address int64 `protobuf:"varint,1,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*GCReq) Descriptor
deprecated
func (*GCReq) GetAddress ¶
func (*GCReq) ProtoMessage ¶
func (*GCReq) ProtoMessage()
func (*GCReq) ProtoReflect ¶
func (x *GCReq) ProtoReflect() protoreflect.Message
type Gift ¶
type Gift struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"` Name string `` /* 150-byte string literal not displayed */ Price uint64 `protobuf:"varint,4,opt,name=Price,proto3" json:"Price,omitempty"` Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" gorm:"size:100" annotation:"描述"` ExpressionURL string `protobuf:"bytes,17,opt,name=expressionURL,proto3" json:"expressionURL,omitempty" gorm:"size:255" annotation:"表情url"` // contains filtered or unexported fields }
func (*Gift) Descriptor
deprecated
func (*Gift) GetDescription ¶
func (*Gift) GetExpressionURL ¶
func (*Gift) ProtoMessage ¶
func (*Gift) ProtoMessage()
func (*Gift) ProtoReflect ¶
func (x *Gift) ProtoReflect() protoreflect.Message
type ID ¶
type ID struct { Ids []uint64 `protobuf:"varint,1,rep,packed,name=Ids,proto3" json:"Ids,omitempty"` // contains filtered or unexported fields }
func (*ID) Descriptor
deprecated
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
func (*ID) ProtoReflect ¶
func (x *ID) ProtoReflect() protoreflect.Message
type Like ¶
type Like struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` RefId uint64 `` /* 153-byte string literal not displayed */ UserId uint64 `` /* 139-byte string literal not displayed */ Type ContentType `` /* 182-byte string literal not displayed */ Action ActionType `` /* 157-byte string literal not displayed */ User *user.UserBaseInfo `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty" gorm:"-" annotation:"用户"` CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Like) Descriptor
deprecated
func (*Like) GetAction ¶
func (x *Like) GetAction() ActionType
func (*Like) GetCreatedAt ¶
func (*Like) GetDeletedAt ¶
func (*Like) GetType ¶
func (x *Like) GetType() ContentType
func (*Like) GetUser ¶
func (x *Like) GetUser() *user.UserBaseInfo
func (*Like) ProtoMessage ¶
func (*Like) ProtoMessage()
func (*Like) ProtoReflect ¶
func (x *Like) ProtoReflect() protoreflect.Message
type LikeReq ¶
type LikeReq struct { Id uint64 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` Type ContentType `protobuf:"varint,1,opt,name=type,proto3,enum=content.ContentType" json:"type,omitempty" annotation:"内容类型"` RefId uint64 `protobuf:"varint,2,opt,name=refId,proto3" json:"refId,omitempty" annotation:"相关id"` Action ActionType `protobuf:"varint,3,opt,name=action,proto3,enum=content.ActionType" json:"action,omitempty" annotation:"动作类型"` UserId uint64 `protobuf:"varint,5,opt,name=userId,proto3" json:"userId,omitempty" annotation:"用户id"` // contains filtered or unexported fields }
func (*LikeReq) Descriptor
deprecated
func (*LikeReq) GetAction ¶
func (x *LikeReq) GetAction() ActionType
func (*LikeReq) GetType ¶
func (x *LikeReq) GetType() ContentType
func (*LikeReq) ProtoMessage ¶
func (*LikeReq) ProtoMessage()
func (*LikeReq) ProtoReflect ¶
func (x *LikeReq) ProtoReflect() protoreflect.Message
type Media ¶
type Media struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` // contains filtered or unexported fields }
func (*Media) Descriptor
deprecated
func (*Media) ProtoMessage ¶
func (*Media) ProtoMessage()
func (*Media) ProtoReflect ¶
func (x *Media) ProtoReflect() protoreflect.Message
type Moment ¶
type Moment struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty" gorm:"type:text;not null" annotation:"内容"` Images string `protobuf:"bytes,32,opt,name=images,proto3" json:"images,omitempty" gorm:"type:text;default:''" annotation:"图片"` // 还是决定瞬间和日记形态合为一种 BookId uint64 `protobuf:"varint,4,opt,name=bookId,proto3" json:"bookId,omitempty" gorm:"size:20;default:0" annotation:"日记本Id"` Book *DiaryBook `protobuf:"bytes,26,opt,name=book,proto3" json:"book,omitempty" gorm:"-" annotation:"日记本"` // 单个视频或音频或多个图片 Type MomentType `` /* 139-byte string literal not displayed */ Mood *TinyTag `protobuf:"bytes,5,opt,name=mood,proto3" json:"mood,omitempty" gorm:"-" annotation:"心情"` Weather *TinyTag `protobuf:"bytes,7,opt,name=weather,proto3" json:"weather,omitempty" gorm:"-" annotation:"天气"` Area *area.Area `protobuf:"bytes,9,opt,name=area,proto3" json:"area,omitempty" gorm:"-" annotation:"地区"` AreaId uint64 `protobuf:"varint,10,opt,name=areaId,proto3" json:"areaId,omitempty" gorm:"size:10;default:0" annotation:"地区"` AreaVisibility uint32 `` /* 150-byte string literal not displayed */ Location string `protobuf:"bytes,12,opt,name=location,proto3" json:"location,omitempty" gorm:"size:20;default:''" annotation:"位置"` Tags []*TinyTag `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty" gorm:"-" annotation:"标签"` User *user.UserBaseInfo `protobuf:"bytes,14,opt,name=user,proto3" json:"user,omitempty" gorm:"-" annotation:"用户"` UserId uint64 `protobuf:"varint,17,opt,name=userId,proto3" json:"userId,omitempty" gorm:"size:20;not null;index" annotation:"用户id"` ApproveUsers []uint64 `protobuf:"varint,15,rep,packed,name=approveUsers,proto3" json:"approveUsers,omitempty" gorm:"-" annotation:"点赞用户"` CollectUsers []uint64 `protobuf:"varint,16,rep,packed,name=collectUsers,proto3" json:"collectUsers,omitempty" gorm:"-" annotation:"收藏用户"` LikeUsers []uint64 `protobuf:"varint,25,rep,packed,name=likeUsers,proto3" json:"likeUsers,omitempty" gorm:"-" annotation:"喜欢用户"` Comments []*Comment `protobuf:"bytes,18,rep,name=comments,proto3" json:"comments,omitempty" gorm:"-" annotation:"评论"` Users []*user.UserBaseInfo `protobuf:"bytes,31,rep,name=users,proto3" json:"users,omitempty" gorm:"-" annotation:"评论"` Ext *ContentExt `protobuf:"bytes,30,opt,name=ext,proto3" json:"ext,omitempty" gorm:"-" annotation:"统计数据"` LikeId uint64 `` /* 130-byte string literal not displayed */ UnlikeId uint64 `` /* 137-byte string literal not displayed */ Collects []uint64 `protobuf:"varint,28,rep,packed,name=collects,proto3" json:"collects,omitempty" gorm:"-" annotation:"是否收藏"` Sequence uint32 `` /* 171-byte string literal not displayed */ Anonymous uint32 `` /* 137-byte string literal not displayed */ Permission ViewPermission `` /* 156-byte string literal not displayed */ CreatedAt string `protobuf:"bytes,22,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ Status uint32 `protobuf:"varint,24,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
瞬间
func (*Moment) Descriptor
deprecated
func (*Moment) GetAnonymous ¶
func (*Moment) GetApproveUsers ¶
func (*Moment) GetAreaVisibility ¶
func (*Moment) GetCollectUsers ¶
func (*Moment) GetCollects ¶
func (*Moment) GetComments ¶
func (*Moment) GetContent ¶
func (*Moment) GetCreatedAt ¶
func (*Moment) GetDeletedAt ¶
func (*Moment) GetExt ¶
func (x *Moment) GetExt() *ContentExt
func (*Moment) GetLikeUsers ¶
func (*Moment) GetLocation ¶
func (*Moment) GetPermission ¶
func (x *Moment) GetPermission() ViewPermission
func (*Moment) GetSequence ¶
func (*Moment) GetType ¶
func (x *Moment) GetType() MomentType
func (*Moment) GetUnlikeId ¶
func (*Moment) GetUser ¶
func (x *Moment) GetUser() *user.UserBaseInfo
func (*Moment) GetUsers ¶
func (x *Moment) GetUsers() []*user.UserBaseInfo
func (*Moment) GetWeather ¶
func (*Moment) ProtoMessage ¶
func (*Moment) ProtoMessage()
func (*Moment) ProtoReflect ¶
func (x *Moment) ProtoReflect() protoreflect.Message
type MomentListRep ¶
type MomentListRep struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Moment `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` Users []*user.UserBaseInfo `protobuf:"bytes,3,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*MomentListRep) Descriptor
deprecated
func (*MomentListRep) Descriptor() ([]byte, []int)
Deprecated: Use MomentListRep.ProtoReflect.Descriptor instead.
func (*MomentListRep) GetList ¶
func (x *MomentListRep) GetList() []*Moment
func (*MomentListRep) GetTotal ¶
func (x *MomentListRep) GetTotal() int64
func (*MomentListRep) GetUsers ¶
func (x *MomentListRep) GetUsers() []*user.UserBaseInfo
func (*MomentListRep) ProtoMessage ¶
func (*MomentListRep) ProtoMessage()
func (*MomentListRep) ProtoReflect ¶
func (x *MomentListRep) ProtoReflect() protoreflect.Message
func (*MomentListRep) Reset ¶
func (x *MomentListRep) Reset()
func (*MomentListRep) String ¶
func (x *MomentListRep) String() string
func (*MomentListRep) Validate ¶
func (this *MomentListRep) Validate() error
type MomentListReq ¶
type MomentListReq struct { PageNo uint32 `protobuf:"varint,1,opt,name=pageNo,proto3" json:"pageNo,omitempty"` PageSize uint32 `protobuf:"varint,2,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*MomentListReq) Descriptor
deprecated
func (*MomentListReq) Descriptor() ([]byte, []int)
Deprecated: Use MomentListReq.ProtoReflect.Descriptor instead.
func (*MomentListReq) GetPageNo ¶
func (x *MomentListReq) GetPageNo() uint32
func (*MomentListReq) GetPageSize ¶
func (x *MomentListReq) GetPageSize() uint32
func (*MomentListReq) ProtoMessage ¶
func (*MomentListReq) ProtoMessage()
func (*MomentListReq) ProtoReflect ¶
func (x *MomentListReq) ProtoReflect() protoreflect.Message
func (*MomentListReq) Reset ¶
func (x *MomentListReq) Reset()
func (*MomentListReq) String ¶
func (x *MomentListReq) String() string
func (*MomentListReq) Validate ¶
func (this *MomentListReq) Validate() error
type MomentRep ¶
type MomentRep struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty" gorm:"type:text;not null" annotation:"内容"` Images string `protobuf:"bytes,32,opt,name=images,proto3" json:"images,omitempty" gorm:"type:text;default:''" annotation:"图片"` // 还是决定瞬间和日记形态合为一种 BookId uint64 `protobuf:"varint,4,opt,name=bookId,proto3" json:"bookId,omitempty" gorm:"size:20;default:0" annotation:"日记本Id"` Book *DiaryBook `protobuf:"bytes,26,opt,name=book,proto3" json:"book,omitempty" gorm:"-" annotation:"日记本"` // 单个视频或音频或多个图片 Type MomentType `` /* 139-byte string literal not displayed */ Mood *TinyTag `protobuf:"bytes,5,opt,name=mood,proto3" json:"mood,omitempty" gorm:"-" annotation:"心情"` Weather *TinyTag `protobuf:"bytes,7,opt,name=weather,proto3" json:"weather,omitempty" gorm:"-" annotation:"天气"` Area *area.Area `protobuf:"bytes,9,opt,name=area,proto3" json:"area,omitempty" gorm:"-" annotation:"地区"` AreaId uint64 `protobuf:"varint,10,opt,name=areaId,proto3" json:"areaId,omitempty" gorm:"size:10;default:0" annotation:"地区"` AreaVisibility uint32 `` /* 150-byte string literal not displayed */ Location string `protobuf:"bytes,12,opt,name=location,proto3" json:"location,omitempty" gorm:"size:20;default:''" annotation:"位置"` Tags []*TinyTag `protobuf:"bytes,13,rep,name=tags,proto3" json:"tags,omitempty" gorm:"-" annotation:"标签"` User *user.UserBaseInfo `protobuf:"bytes,14,opt,name=user,proto3" json:"user,omitempty" gorm:"-" annotation:"用户"` UserId uint64 `protobuf:"varint,17,opt,name=userId,proto3" json:"userId,omitempty" gorm:"size:20;not null;index" annotation:"用户id"` ApproveUsers []uint64 `protobuf:"varint,15,rep,packed,name=approveUsers,proto3" json:"approveUsers,omitempty" gorm:"-" annotation:"点赞用户"` CollectUsers []uint64 `protobuf:"varint,16,rep,packed,name=collectUsers,proto3" json:"collectUsers,omitempty" gorm:"-" annotation:"收藏用户"` LikeUsers []uint64 `protobuf:"varint,25,rep,packed,name=likeUsers,proto3" json:"likeUsers,omitempty" gorm:"-" annotation:"喜欢用户"` Comments []*Comment `protobuf:"bytes,18,rep,name=comments,proto3" json:"comments,omitempty" gorm:"-" annotation:"评论"` Users []*user.UserBaseInfo `protobuf:"bytes,31,rep,name=users,proto3" json:"users,omitempty" gorm:"-" annotation:"评论"` Ext *ContentExt `protobuf:"bytes,30,opt,name=ext,proto3" json:"ext,omitempty" gorm:"-" annotation:"统计数据"` LikeId uint64 `` /* 130-byte string literal not displayed */ UnlikeId uint64 `` /* 137-byte string literal not displayed */ Collect bool `protobuf:"varint,28,opt,name=collect,proto3" json:"collect,omitempty" gorm:"-" annotation:"是否收藏"` Sequence uint32 `` /* 171-byte string literal not displayed */ Anonymous uint32 `` /* 137-byte string literal not displayed */ Permission ViewPermission `` /* 156-byte string literal not displayed */ CreatedAt string `protobuf:"bytes,22,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ Status uint32 `protobuf:"varint,24,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
瞬间
func (*MomentRep) Descriptor
deprecated
func (*MomentRep) GetAnonymous ¶
func (*MomentRep) GetApproveUsers ¶
func (*MomentRep) GetAreaVisibility ¶
func (*MomentRep) GetCollect ¶
func (*MomentRep) GetCollectUsers ¶
func (*MomentRep) GetComments ¶
func (*MomentRep) GetContent ¶
func (*MomentRep) GetCreatedAt ¶
func (*MomentRep) GetDeletedAt ¶
func (*MomentRep) GetExt ¶
func (x *MomentRep) GetExt() *ContentExt
func (*MomentRep) GetLikeUsers ¶
func (*MomentRep) GetLocation ¶
func (*MomentRep) GetPermission ¶
func (x *MomentRep) GetPermission() ViewPermission
func (*MomentRep) GetSequence ¶
func (*MomentRep) GetType ¶
func (x *MomentRep) GetType() MomentType
func (*MomentRep) GetUnlikeId ¶
func (*MomentRep) GetUser ¶
func (x *MomentRep) GetUser() *user.UserBaseInfo
func (*MomentRep) GetUsers ¶
func (x *MomentRep) GetUsers() []*user.UserBaseInfo
func (*MomentRep) GetWeather ¶
func (*MomentRep) ProtoMessage ¶
func (*MomentRep) ProtoMessage()
func (*MomentRep) ProtoReflect ¶
func (x *MomentRep) ProtoReflect() protoreflect.Message
type MomentServiceClient ¶
type MomentServiceClient interface { // 详情 Info(ctx context.Context, in *request.Object, opts ...grpc.CallOption) (*Moment, error) // 新建 Add(ctx context.Context, in *AddMomentReq, opts ...grpc.CallOption) (*request.Object, error) // 修改 Edit(ctx context.Context, in *AddMomentReq, opts ...grpc.CallOption) (*empty.Empty, error) // 修改 List(ctx context.Context, in *MomentListReq, opts ...grpc.CallOption) (*MomentListRep, error) // 删除 Delete(ctx context.Context, in *request.Object, opts ...grpc.CallOption) (*empty.Empty, error) }
MomentServiceClient is the client API for MomentService 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 NewMomentServiceClient ¶
func NewMomentServiceClient(cc grpc.ClientConnInterface) MomentServiceClient
type MomentServiceServer ¶
type MomentServiceServer interface { // 详情 Info(context.Context, *request.Object) (*Moment, error) // 新建 Add(context.Context, *AddMomentReq) (*request.Object, error) // 修改 Edit(context.Context, *AddMomentReq) (*empty.Empty, error) // 修改 List(context.Context, *MomentListReq) (*MomentListRep, error) // 删除 Delete(context.Context, *request.Object) (*empty.Empty, error) // contains filtered or unexported methods }
MomentServiceServer is the server API for MomentService service. All implementations must embed UnimplementedMomentServiceServer for forward compatibility
type MomentType ¶
type MomentType int32
可见范围
const ( MomentTypePlaceholder MomentType = 0 MomentTypeImage MomentType = 1 MomentTypeVideo MomentType = 2 MomentTypeAudio MomentType = 4 )
func (MomentType) Descriptor ¶
func (MomentType) Descriptor() protoreflect.EnumDescriptor
func (MomentType) Enum ¶
func (x MomentType) Enum() *MomentType
func (MomentType) EnumDescriptor
deprecated
func (MomentType) EnumDescriptor() ([]byte, []int)
Deprecated: Use MomentType.Descriptor instead.
func (MomentType) MarshalGQL ¶
func (x MomentType) MarshalGQL(w io.Writer)
func (MomentType) Number ¶
func (x MomentType) Number() protoreflect.EnumNumber
func (MomentType) OrigString ¶
func (x MomentType) OrigString() string
func (MomentType) String ¶
func (x MomentType) String() string
func (MomentType) Type ¶
func (MomentType) Type() protoreflect.EnumType
func (*MomentType) UnmarshalGQL ¶
func (x *MomentType) UnmarshalGQL(v interface{}) error
type Note ¶
type Note struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id" gorm:"primaryKey;"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title" gorm:"type:varchar(10)" validate:"gte=3,lte=10" comment:"标题"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content" gorm:"type:text"` CreatedAt string `protobuf:"bytes,16,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ Status uint32 `protobuf:"varint,18,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
func (*Note) Descriptor
deprecated
func (*Note) GetContent ¶
func (*Note) GetCreatedAt ¶
func (*Note) GetDeletedAt ¶
func (*Note) ProtoMessage ¶
func (*Note) ProtoMessage()
func (*Note) ProtoReflect ¶
func (x *Note) ProtoReflect() protoreflect.Message
type NoteServiceClient ¶
type NoteServiceClient interface { //验证码 Create(ctx context.Context, in *Note, opts ...grpc.CallOption) (*response.CommonRep, error) }
NoteServiceClient is the client API for NoteService 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 NewNoteServiceClient ¶
func NewNoteServiceClient(cc grpc.ClientConnInterface) NoteServiceClient
type NoteServiceServer ¶
type NoteServiceServer interface { //验证码 Create(context.Context, *Note) (*response.CommonRep, error) // contains filtered or unexported methods }
NoteServiceServer is the server API for NoteService service. All implementations must embed UnimplementedNoteServiceServer for forward compatibility
type OneOf ¶
type OneOf struct { // Types that are assignable to Req: // *OneOf_Name // *OneOf_Id Req isOneOf_Req `protobuf_oneof:"Req"` // contains filtered or unexported fields }
func (*OneOf) Descriptor
deprecated
func (*OneOf) ProtoMessage ¶
func (*OneOf) ProtoMessage()
func (*OneOf) ProtoReflect ¶
func (x *OneOf) ProtoReflect() protoreflect.Message
type OneOf_Name ¶
type OneOf_Name struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3,oneof"`
}
type Report ¶
type Report struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` RefId uint64 `` /* 155-byte string literal not displayed */ UserId uint64 `` /* 139-byte string literal not displayed */ Type ContentType `` /* 185-byte string literal not displayed */ User *user.UserBaseInfo `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty" gorm:"-" annotation:"用户"` DelReason DelReason `` /* 148-byte string literal not displayed */ Remark string `protobuf:"bytes,4,opt,name=remark,proto3" json:"remark,omitempty" gorm:"size:255;default:''" annotation:"备注"` CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` // contains filtered or unexported fields }
举报
func (*Report) Descriptor
deprecated
func (*Report) GetCreatedAt ¶
func (*Report) GetDelReason ¶
func (*Report) GetType ¶
func (x *Report) GetType() ContentType
func (*Report) GetUser ¶
func (x *Report) GetUser() *user.UserBaseInfo
func (*Report) ProtoMessage ¶
func (*Report) ProtoMessage()
func (*Report) ProtoReflect ¶
func (x *Report) ProtoReflect() protoreflect.Message
type ReportReq ¶
type ReportReq struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Type ContentType `` /* 160-byte string literal not displayed */ RefId uint64 `` /* 136-byte string literal not displayed */ UserId uint64 `protobuf:"varint,5,opt,name=userId,proto3" json:"userId,omitempty" annotation:"用户id"` DelReason DelReason `` /* 148-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ReportReq) Descriptor
deprecated
func (*ReportReq) GetDelReason ¶
func (*ReportReq) GetType ¶
func (x *ReportReq) GetType() ContentType
func (*ReportReq) ProtoMessage ¶
func (*ReportReq) ProtoMessage()
func (*ReportReq) ProtoReflect ¶
func (x *ReportReq) ProtoReflect() protoreflect.Message
type Serial ¶
type Serial struct {
// contains filtered or unexported fields
}
连载
func (*Serial) Descriptor
deprecated
func (*Serial) ProtoMessage ¶
func (*Serial) ProtoMessage()
func (*Serial) ProtoReflect ¶
func (x *Serial) ProtoReflect() protoreflect.Message
type Tag ¶
type Tag struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"` Name string `` /* 150-byte string literal not displayed */ Type TagType `` /* 147-byte string literal not displayed */ Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty" gorm:"size:100" annotation:"描述"` ExpressionURL string `protobuf:"bytes,17,opt,name=expressionURL,proto3" json:"expressionURL,omitempty" gorm:"size:255" annotation:"表情url"` UserId uint64 `protobuf:"varint,4,opt,name=userId,proto3" json:"userId,omitempty" gorm:"size:20" annotation:"用户id"` CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ Status uint32 `protobuf:"varint,29,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
func (*Tag) Descriptor
deprecated
func (*Tag) GetCreatedAt ¶
func (*Tag) GetDeletedAt ¶
func (*Tag) GetDescription ¶
func (*Tag) GetExpressionURL ¶
func (*Tag) ProtoMessage ¶
func (*Tag) ProtoMessage()
func (*Tag) ProtoReflect ¶
func (x *Tag) ProtoReflect() protoreflect.Message
type TagGroup ¶
type TagGroup struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"` Name string `` /* 138-byte string literal not displayed */ ParentId uint64 `` /* 127-byte string literal not displayed */ CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` DeletedAt string `` /* 133-byte string literal not displayed */ Status uint32 `protobuf:"varint,28,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
func (*TagGroup) Descriptor
deprecated
func (*TagGroup) GetCreatedAt ¶
func (*TagGroup) GetDeletedAt ¶
func (*TagGroup) GetParentId ¶
func (*TagGroup) ProtoMessage ¶
func (*TagGroup) ProtoMessage()
func (*TagGroup) ProtoReflect ¶
func (x *TagGroup) ProtoReflect() protoreflect.Message
type TagGroupListRep ¶
type TagGroupListRep struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` Data map[int32]*TagListRep `` /* 150-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TagGroupListRep) Descriptor
deprecated
func (*TagGroupListRep) Descriptor() ([]byte, []int)
Deprecated: Use TagGroupListRep.ProtoReflect.Descriptor instead.
func (*TagGroupListRep) GetData ¶
func (x *TagGroupListRep) GetData() map[int32]*TagListRep
func (*TagGroupListRep) GetTotal ¶
func (x *TagGroupListRep) GetTotal() int64
func (*TagGroupListRep) ProtoMessage ¶
func (*TagGroupListRep) ProtoMessage()
func (*TagGroupListRep) ProtoReflect ¶
func (x *TagGroupListRep) ProtoReflect() protoreflect.Message
func (*TagGroupListRep) Reset ¶
func (x *TagGroupListRep) Reset()
func (*TagGroupListRep) String ¶
func (x *TagGroupListRep) String() string
func (*TagGroupListRep) Validate ¶
func (this *TagGroupListRep) Validate() error
type TagGroupListReq ¶
type TagGroupListReq struct { Type TagType `` /* 129-byte string literal not displayed */ Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" annotation:"名称"` PageNo uint32 `protobuf:"varint,3,opt,name=pageNo,proto3" json:"pageNo,omitempty"` PageSize uint32 `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*TagGroupListReq) Descriptor
deprecated
func (*TagGroupListReq) Descriptor() ([]byte, []int)
Deprecated: Use TagGroupListReq.ProtoReflect.Descriptor instead.
func (*TagGroupListReq) GetName ¶
func (x *TagGroupListReq) GetName() string
func (*TagGroupListReq) GetPageNo ¶
func (x *TagGroupListReq) GetPageNo() uint32
func (*TagGroupListReq) GetPageSize ¶
func (x *TagGroupListReq) GetPageSize() uint32
func (*TagGroupListReq) GetType ¶
func (x *TagGroupListReq) GetType() TagType
func (*TagGroupListReq) ProtoMessage ¶
func (*TagGroupListReq) ProtoMessage()
func (*TagGroupListReq) ProtoReflect ¶
func (x *TagGroupListReq) ProtoReflect() protoreflect.Message
func (*TagGroupListReq) Reset ¶
func (x *TagGroupListReq) Reset()
func (*TagGroupListReq) String ¶
func (x *TagGroupListReq) String() string
func (*TagGroupListReq) Validate ¶
func (this *TagGroupListReq) Validate() error
type TagGroupRel ¶
type TagGroupRel struct { TagId uint64 `protobuf:"varint,1,opt,name=tagId,proto3" json:"tagId,omitempty" gorm:"index:idx_rel"` GroupId uint64 `protobuf:"varint,2,opt,name=groupId,proto3" json:"groupId,omitempty" gorm:"index:idx_rel"` CreatedAt string `protobuf:"bytes,25,opt,name=createdAt,proto3" json:"createdAt,omitempty" gorm:"type:timestamptz(6);default:now();index"` Status uint32 `protobuf:"varint,28,opt,name=status,proto3" json:"status,omitempty" gorm:"type:int2;default:0"` // contains filtered or unexported fields }
func (*TagGroupRel) Descriptor
deprecated
func (*TagGroupRel) Descriptor() ([]byte, []int)
Deprecated: Use TagGroupRel.ProtoReflect.Descriptor instead.
func (*TagGroupRel) GetCreatedAt ¶
func (x *TagGroupRel) GetCreatedAt() string
func (*TagGroupRel) GetGroupId ¶
func (x *TagGroupRel) GetGroupId() uint64
func (*TagGroupRel) GetStatus ¶
func (x *TagGroupRel) GetStatus() uint32
func (*TagGroupRel) GetTagId ¶
func (x *TagGroupRel) GetTagId() uint64
func (*TagGroupRel) ProtoMessage ¶
func (*TagGroupRel) ProtoMessage()
func (*TagGroupRel) ProtoReflect ¶
func (x *TagGroupRel) ProtoReflect() protoreflect.Message
func (*TagGroupRel) Reset ¶
func (x *TagGroupRel) Reset()
func (*TagGroupRel) String ¶
func (x *TagGroupRel) String() string
type TagListRep ¶
type TagListRep struct { Total uint32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*Tag `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*TagListRep) Descriptor
deprecated
func (*TagListRep) Descriptor() ([]byte, []int)
Deprecated: Use TagListRep.ProtoReflect.Descriptor instead.
func (*TagListRep) GetList ¶
func (x *TagListRep) GetList() []*Tag
func (*TagListRep) GetTotal ¶
func (x *TagListRep) GetTotal() uint32
func (*TagListRep) ProtoMessage ¶
func (*TagListRep) ProtoMessage()
func (*TagListRep) ProtoReflect ¶
func (x *TagListRep) ProtoReflect() protoreflect.Message
func (*TagListRep) Reset ¶
func (x *TagListRep) Reset()
func (*TagListRep) String ¶
func (x *TagListRep) String() string
func (*TagListRep) Validate ¶
func (this *TagListRep) Validate() error
type TagListReq ¶
type TagListReq struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty" annotation:"名称"` Type TagType `` /* 129-byte string literal not displayed */ PageNo uint32 `protobuf:"varint,3,opt,name=pageNo,proto3" json:"pageNo,omitempty"` PageSize uint32 `protobuf:"varint,4,opt,name=pageSize,proto3" json:"pageSize,omitempty"` // contains filtered or unexported fields }
func (*TagListReq) Descriptor
deprecated
func (*TagListReq) Descriptor() ([]byte, []int)
Deprecated: Use TagListReq.ProtoReflect.Descriptor instead.
func (*TagListReq) GetName ¶
func (x *TagListReq) GetName() string
func (*TagListReq) GetPageNo ¶
func (x *TagListReq) GetPageNo() uint32
func (*TagListReq) GetPageSize ¶
func (x *TagListReq) GetPageSize() uint32
func (*TagListReq) GetType ¶
func (x *TagListReq) GetType() TagType
func (*TagListReq) ProtoMessage ¶
func (*TagListReq) ProtoMessage()
func (*TagListReq) ProtoReflect ¶
func (x *TagListReq) ProtoReflect() protoreflect.Message
func (*TagListReq) Reset ¶
func (x *TagListReq) Reset()
func (*TagListReq) String ¶
func (x *TagListReq) String() string
func (*TagListReq) Validate ¶
func (this *TagListReq) Validate() error
type TagType ¶
type TagType int32
func (TagType) Descriptor ¶
func (TagType) Descriptor() protoreflect.EnumDescriptor
func (TagType) EnumDescriptor
deprecated
func (TagType) MarshalGQL ¶
func (TagType) Number ¶
func (x TagType) Number() protoreflect.EnumNumber
func (TagType) OrigString ¶
func (TagType) Type ¶
func (TagType) Type() protoreflect.EnumType
func (*TagType) UnmarshalGQL ¶
type TestServiceClient ¶
type TestServiceClient interface { GC(ctx context.Context, in *GCReq, opts ...grpc.CallOption) (*empty.Empty, error) Register(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) Restart(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error) Array(ctx context.Context, in *ArrayReq, opts ...grpc.CallOption) (*empty.Empty, error) }
TestServiceClient is the client API for TestService 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 NewTestServiceClient ¶
func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient
type TestServiceServer ¶
type TestServiceServer interface { GC(context.Context, *GCReq) (*empty.Empty, error) Register(context.Context, *empty.Empty) (*empty.Empty, error) Restart(context.Context, *empty.Empty) (*empty.Empty, error) Array(context.Context, *ArrayReq) (*empty.Empty, error) // contains filtered or unexported methods }
TestServiceServer is the server API for TestService service. All implementations must embed UnimplementedTestServiceServer for forward compatibility
type TinyFavListRep ¶
type TinyFavListRep struct { Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` List []*TinyFavorites `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` // contains filtered or unexported fields }
func (*TinyFavListRep) Descriptor
deprecated
func (*TinyFavListRep) Descriptor() ([]byte, []int)
Deprecated: Use TinyFavListRep.ProtoReflect.Descriptor instead.
func (*TinyFavListRep) GetList ¶
func (x *TinyFavListRep) GetList() []*TinyFavorites
func (*TinyFavListRep) GetTotal ¶
func (x *TinyFavListRep) GetTotal() int64
func (*TinyFavListRep) ProtoMessage ¶
func (*TinyFavListRep) ProtoMessage()
func (*TinyFavListRep) ProtoReflect ¶
func (x *TinyFavListRep) ProtoReflect() protoreflect.Message
func (*TinyFavListRep) Reset ¶
func (x *TinyFavListRep) Reset()
func (*TinyFavListRep) String ¶
func (x *TinyFavListRep) String() string
func (*TinyFavListRep) Validate ¶
func (this *TinyFavListRep) Validate() error
type TinyFavorites ¶
type TinyFavorites struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey"` Title string `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty" gorm:"size:10;not null" annotation:"标题"` // contains filtered or unexported fields }
func (*TinyFavorites) Descriptor
deprecated
func (*TinyFavorites) Descriptor() ([]byte, []int)
Deprecated: Use TinyFavorites.ProtoReflect.Descriptor instead.
func (*TinyFavorites) GetId ¶
func (x *TinyFavorites) GetId() uint64
func (*TinyFavorites) GetTitle ¶
func (x *TinyFavorites) GetTitle() string
func (*TinyFavorites) ProtoMessage ¶
func (*TinyFavorites) ProtoMessage()
func (*TinyFavorites) ProtoReflect ¶
func (x *TinyFavorites) ProtoReflect() protoreflect.Message
func (*TinyFavorites) Reset ¶
func (x *TinyFavorites) Reset()
func (*TinyFavorites) String ¶
func (x *TinyFavorites) String() string
func (*TinyFavorites) Validate ¶
func (this *TinyFavorites) Validate() error
type TinyTag ¶
type TinyTag struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty" gorm:"primaryKey;"` Name string `` /* 150-byte string literal not displayed */ Type TagType `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
func (*TinyTag) Descriptor
deprecated
func (*TinyTag) ProtoMessage ¶
func (*TinyTag) ProtoMessage()
func (*TinyTag) ProtoReflect ¶
func (x *TinyTag) ProtoReflect() protoreflect.Message
type UnimplementedActionServiceServer ¶
type UnimplementedActionServiceServer struct { }
UnimplementedActionServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedActionServiceServer) Collect ¶
func (UnimplementedActionServiceServer) Collect(context.Context, *CollectReq) (*empty.Empty, error)
func (UnimplementedActionServiceServer) Comment ¶
func (UnimplementedActionServiceServer) Comment(context.Context, *CommentReq) (*request.Object, error)
func (UnimplementedActionServiceServer) CommentList ¶
func (UnimplementedActionServiceServer) CommentList(context.Context, *CommentListReq) (*CommentListRep, error)
func (UnimplementedActionServiceServer) DelComment ¶
type UnimplementedContentServiceServer ¶
type UnimplementedContentServiceServer struct { }
UnimplementedContentServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedContentServiceServer) AddAttr ¶
func (UnimplementedContentServiceServer) AddAttr(context.Context, *AddAttrReq) (*request.Object, error)
func (UnimplementedContentServiceServer) AddContainer ¶
func (UnimplementedContentServiceServer) AddContainer(context.Context, *AddContainerReq) (*empty.Empty, error)
func (UnimplementedContentServiceServer) AttrInfo ¶
func (UnimplementedContentServiceServer) AttrInfo(context.Context, *request.Object) (*Attributes, error)
func (UnimplementedContentServiceServer) AttrList ¶
func (UnimplementedContentServiceServer) AttrList(context.Context, *AttrListReq) (*AttrListRep, error)
func (UnimplementedContentServiceServer) EditAttr ¶
func (UnimplementedContentServiceServer) EditAttr(context.Context, *EditAttrReq) (*empty.Empty, error)
func (UnimplementedContentServiceServer) EditDiaryContainer ¶
func (UnimplementedContentServiceServer) EditDiaryContainer(context.Context, *AddContainerReq) (*empty.Empty, error)
func (UnimplementedContentServiceServer) EditTag ¶
func (UnimplementedContentServiceServer) EditTag(context.Context, *EditTagReq) (*empty.Empty, error)
func (UnimplementedContentServiceServer) FavList ¶
func (UnimplementedContentServiceServer) FavList(context.Context, *FavListReq) (*FavListRep, error)
func (UnimplementedContentServiceServer) TagGroupList ¶
func (UnimplementedContentServiceServer) TagGroupList(context.Context, *TagGroupListReq) (*TagGroupListRep, error)
func (UnimplementedContentServiceServer) TagList ¶
func (UnimplementedContentServiceServer) TagList(context.Context, *TagListReq) (*TagListRep, error)
func (UnimplementedContentServiceServer) TinyFavList ¶
func (UnimplementedContentServiceServer) TinyFavList(context.Context, *FavListReq) (*TinyFavListRep, error)
func (UnimplementedContentServiceServer) UserContentCount ¶
func (UnimplementedContentServiceServer) UserContentCount(context.Context, *request.Object) (*user.UserContent, error)
type UnimplementedDiaryServiceServer ¶
type UnimplementedDiaryServiceServer struct { }
UnimplementedDiaryServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDiaryServiceServer) Add ¶
func (UnimplementedDiaryServiceServer) Add(context.Context, *AddDiaryReq) (*request.Object, error)
func (UnimplementedDiaryServiceServer) AddDiaryBook ¶
func (UnimplementedDiaryServiceServer) AddDiaryBook(context.Context, *AddDiaryBookReq) (*request.Object, error)
func (UnimplementedDiaryServiceServer) DiaryBook ¶
func (UnimplementedDiaryServiceServer) DiaryBook(context.Context, *DiaryBookReq) (*DiaryBookRep, error)
func (UnimplementedDiaryServiceServer) DiaryBookList ¶
func (UnimplementedDiaryServiceServer) DiaryBookList(context.Context, *DiaryBookListReq) (*DiaryBookListRep, error)
func (UnimplementedDiaryServiceServer) Edit ¶
func (UnimplementedDiaryServiceServer) Edit(context.Context, *AddDiaryReq) (*empty.Empty, error)
func (UnimplementedDiaryServiceServer) EditDiaryBook ¶
func (UnimplementedDiaryServiceServer) EditDiaryBook(context.Context, *AddDiaryBookReq) (*empty.Empty, error)
func (UnimplementedDiaryServiceServer) List ¶
func (UnimplementedDiaryServiceServer) List(context.Context, *DiaryListReq) (*DiaryListRep, error)
type UnimplementedMomentServiceServer ¶
type UnimplementedMomentServiceServer struct { }
UnimplementedMomentServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedMomentServiceServer) Add ¶
func (UnimplementedMomentServiceServer) Add(context.Context, *AddMomentReq) (*request.Object, error)
func (UnimplementedMomentServiceServer) Edit ¶
func (UnimplementedMomentServiceServer) Edit(context.Context, *AddMomentReq) (*empty.Empty, error)
func (UnimplementedMomentServiceServer) List ¶
func (UnimplementedMomentServiceServer) List(context.Context, *MomentListReq) (*MomentListRep, error)
type UnimplementedNoteServiceServer ¶
type UnimplementedNoteServiceServer struct { }
UnimplementedNoteServiceServer must be embedded to have forward compatible implementations.
type UnimplementedTestServiceServer ¶
type UnimplementedTestServiceServer struct { }
UnimplementedTestServiceServer must be embedded to have forward compatible implementations.
type UnsafeActionServiceServer ¶
type UnsafeActionServiceServer interface {
// contains filtered or unexported methods
}
UnsafeActionServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ActionServiceServer will result in compilation errors.
type UnsafeContentServiceServer ¶
type UnsafeContentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeContentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ContentServiceServer will result in compilation errors.
type UnsafeDiaryServiceServer ¶
type UnsafeDiaryServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDiaryServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DiaryServiceServer will result in compilation errors.
type UnsafeMomentServiceServer ¶
type UnsafeMomentServiceServer interface {
// contains filtered or unexported methods
}
UnsafeMomentServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MomentServiceServer will result in compilation errors.
type UnsafeNoteServiceServer ¶
type UnsafeNoteServiceServer interface {
// contains filtered or unexported methods
}
UnsafeNoteServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NoteServiceServer will result in compilation errors.
type UnsafeTestServiceServer ¶
type UnsafeTestServiceServer interface {
// contains filtered or unexported methods
}
UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TestServiceServer will result in compilation errors.
type ViewPermission ¶
type ViewPermission int32
可见范围
const ( ViewPermissionPlaceholder ViewPermission = 0 ViewPermissionAll ViewPermission = 1 ViewPermissionSelf ViewPermission = 2 ViewPermissionHomePage ViewPermission = 3 ViewPermissionStranger ViewPermission = 4 ViewPermissionShield ViewPermission = 5 ViewPermissionOpen ViewPermission = 6 )
func (ViewPermission) Descriptor ¶
func (ViewPermission) Descriptor() protoreflect.EnumDescriptor
func (ViewPermission) Enum ¶
func (x ViewPermission) Enum() *ViewPermission
func (ViewPermission) EnumDescriptor
deprecated
func (ViewPermission) EnumDescriptor() ([]byte, []int)
Deprecated: Use ViewPermission.Descriptor instead.
func (ViewPermission) MarshalGQL ¶
func (x ViewPermission) MarshalGQL(w io.Writer)
func (ViewPermission) Number ¶
func (x ViewPermission) Number() protoreflect.EnumNumber
func (ViewPermission) OrigString ¶
func (x ViewPermission) OrigString() string
func (ViewPermission) String ¶
func (x ViewPermission) String() string
func (ViewPermission) Type ¶
func (ViewPermission) Type() protoreflect.EnumType
func (*ViewPermission) UnmarshalGQL ¶
func (x *ViewPermission) UnmarshalGQL(v interface{}) error
Source Files ¶
- action.enum.ext.pb.go
- action.enum.pb.go
- action.model.pb.go
- action.service.pb.go
- action.service.pb.gw.go
- action.service.validator.pb.go
- action.service_grpc.pb.go
- content.enum.ext.pb.go
- content.enum.pb.go
- content.model.pb.go
- content.service.pb.go
- content.service.pb.gw.go
- content.service.validator.pb.go
- content.service_grpc.pb.go
- diary.service.pb.go
- diary.service.pb.gw.go
- diary.service.validator.pb.go
- diary.service_grpc.pb.go
- gift.model.pb.go
- moment.service.pb.go
- moment.service.pb.gw.go
- moment.service.validator.pb.go
- moment.service_grpc.pb.go
- note.service.pb.go
- note.service.pb.gw.go
- note.service.validator.pb.go
- note.service_grpc.pb.go
- test.service.pb.go
- test.service.pb.gw.go
- test.service.validator.pb.go
- test.service_grpc.pb.go