content

package
v0.0.0-...-1f4ee57 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 36 Imported by: 0

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

Constants

This section is empty.

Variables

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

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

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

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

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

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

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

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

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

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

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

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

View Source
var File_content_action_enum_proto protoreflect.FileDescriptor
View Source
var File_content_action_model_proto protoreflect.FileDescriptor
View Source
var File_content_action_service_proto protoreflect.FileDescriptor
View Source
var File_content_content_enum_proto protoreflect.FileDescriptor
View Source
var File_content_content_model_proto protoreflect.FileDescriptor
View Source
var File_content_content_service_proto protoreflect.FileDescriptor
View Source
var File_content_diary_service_proto protoreflect.FileDescriptor
View Source
var File_content_gift_model_proto protoreflect.FileDescriptor
View Source
var File_content_moment_service_proto protoreflect.FileDescriptor
View Source
var File_content_note_service_proto protoreflect.FileDescriptor
View Source
var File_content_test_service_proto protoreflect.FileDescriptor
View Source
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)

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

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

func RegisterDiaryServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error

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

func RegisterNoteServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error

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

func RegisterTestServiceHandler(ctx context.Context, mux *gin.Engine, conn *grpc.ClientConn) error

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.

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

Deprecated: Use AddFavReq.ProtoReflect.Descriptor instead.

func (*AddFavReq) GetAnonymous

func (x *AddFavReq) GetAnonymous() uint32

func (*AddFavReq) GetCover

func (x *AddFavReq) GetCover() string

func (*AddFavReq) GetDescription

func (x *AddFavReq) GetDescription() string

func (*AddFavReq) GetId

func (x *AddFavReq) GetId() uint64

func (*AddFavReq) GetSequence

func (x *AddFavReq) GetSequence() uint32

func (*AddFavReq) GetTitle

func (x *AddFavReq) GetTitle() string

func (*AddFavReq) GetUserId

func (x *AddFavReq) GetUserId() uint64

func (*AddFavReq) ProtoMessage

func (*AddFavReq) ProtoMessage()

func (*AddFavReq) ProtoReflect

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

func (*AddFavReq) Reset

func (x *AddFavReq) Reset()

func (*AddFavReq) String

func (x *AddFavReq) String() string

func (*AddFavReq) Validate

func (this *AddFavReq) Validate() error

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

Deprecated: Use AddTagReq.ProtoReflect.Descriptor instead.

func (*AddTagReq) GetDescription

func (x *AddTagReq) GetDescription() string

func (*AddTagReq) GetExpressionURL

func (x *AddTagReq) GetExpressionURL() string

func (*AddTagReq) GetName

func (x *AddTagReq) GetName() string

func (*AddTagReq) GetUserId

func (x *AddTagReq) GetUserId() uint64

func (*AddTagReq) ProtoMessage

func (*AddTagReq) ProtoMessage()

func (*AddTagReq) ProtoReflect

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

func (*AddTagReq) Reset

func (x *AddTagReq) Reset()

func (*AddTagReq) String

func (x *AddTagReq) String() string

func (*AddTagReq) Validate

func (this *AddTagReq) Validate() error

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

Deprecated: Use ArrayReq.ProtoReflect.Descriptor instead.

func (*ArrayReq) GetIds

func (x *ArrayReq) GetIds() []*ID

func (*ArrayReq) ProtoMessage

func (*ArrayReq) ProtoMessage()

func (*ArrayReq) ProtoReflect

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

func (*ArrayReq) Reset

func (x *ArrayReq) Reset()

func (*ArrayReq) String

func (x *ArrayReq) String() string

func (*ArrayReq) Validate

func (this *ArrayReq) Validate() error

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

Deprecated: Use Article.ProtoReflect.Descriptor instead.

func (*Article) GetAbstract

func (x *Article) GetAbstract() string

func (*Article) GetAnonymous

func (x *Article) GetAnonymous() uint32

func (*Article) GetApproveUsers

func (x *Article) GetApproveUsers() []*user.UserBaseInfo

func (*Article) GetArea

func (x *Article) GetArea() *area.Area

func (*Article) GetAreaId

func (x *Article) GetAreaId() uint64

func (*Article) GetCollectUsers

func (x *Article) GetCollectUsers() []*user.UserBaseInfo

func (*Article) GetComments

func (x *Article) GetComments() []*Comment

func (*Article) GetContent

func (x *Article) GetContent() string

func (*Article) GetContentType

func (x *Article) GetContentType() uint32

func (*Article) GetCreatedAt

func (x *Article) GetCreatedAt() string

func (*Article) GetDeletedAt

func (x *Article) GetDeletedAt() string

func (*Article) GetId

func (x *Article) GetId() uint64

func (*Article) GetIntro

func (x *Article) GetIntro() string

func (*Article) GetLikeUsers

func (x *Article) GetLikeUsers() []*user.UserBaseInfo

func (*Article) GetLocation

func (x *Article) GetLocation() string

func (*Article) GetMood

func (x *Article) GetMood() *TinyTag

func (*Article) GetPermission

func (x *Article) GetPermission() ViewPermission

func (*Article) GetSequence

func (x *Article) GetSequence() uint32

func (*Article) GetStatus

func (x *Article) GetStatus() uint32

func (*Article) GetTags

func (x *Article) GetTags() []*Tag

func (*Article) GetTitle

func (x *Article) GetTitle() string

func (*Article) GetUser

func (x *Article) GetUser() *user.UserBaseInfo

func (*Article) GetUserId

func (x *Article) GetUserId() uint64

func (*Article) GetWeather

func (x *Article) GetWeather() *TinyTag

func (*Article) ProtoMessage

func (*Article) ProtoMessage()

func (*Article) ProtoReflect

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

func (*Article) Reset

func (x *Article) Reset()

func (*Article) String

func (x *Article) String() string

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

Deprecated: Use AttrGroup.ProtoReflect.Descriptor instead.

func (*AttrGroup) GetCreatedAt

func (x *AttrGroup) GetCreatedAt() string

func (*AttrGroup) GetId

func (x *AttrGroup) GetId() uint64

func (*AttrGroup) GetName

func (x *AttrGroup) GetName() string

func (*AttrGroup) GetParentId

func (x *AttrGroup) GetParentId() uint64

func (*AttrGroup) GetStatus

func (x *AttrGroup) GetStatus() uint32

func (*AttrGroup) ProtoMessage

func (*AttrGroup) ProtoMessage()

func (*AttrGroup) ProtoReflect

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

func (*AttrGroup) Reset

func (x *AttrGroup) Reset()

func (*AttrGroup) String

func (x *AttrGroup) String() string

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
const (
	AttrPlaceholder AttrType = 0
	AttrImage       AttrType = 1
	AttrVideo       AttrType = 2
	AttrAudio       AttrType = 3
	AttrCover       AttrType = 4
	AttrCategory    AttrType = 5
	AttrTitle       AttrType = 6
	AttrAbstract    AttrType = 7
	AttrIntro       AttrType = 8
	AttrContentType AttrType = 9
	AttrModifyTimes AttrType = 10
)

func (AttrType) Descriptor

func (AttrType) Descriptor() protoreflect.EnumDescriptor

func (AttrType) Enum

func (x AttrType) Enum() *AttrType

func (AttrType) EnumDescriptor deprecated

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

Deprecated: Use AttrType.Descriptor instead.

func (AttrType) MarshalGQL

func (x AttrType) MarshalGQL(w io.Writer)

func (AttrType) Number

func (x AttrType) Number() protoreflect.EnumNumber

func (AttrType) OrigString

func (x AttrType) OrigString() string

func (AttrType) String

func (x AttrType) String() string

func (AttrType) Type

func (*AttrType) UnmarshalGQL

func (x *AttrType) UnmarshalGQL(v interface{}) error

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

Deprecated: Use Category.ProtoReflect.Descriptor instead.

func (*Category) GetCreatedAt

func (x *Category) GetCreatedAt() string

func (*Category) GetId

func (x *Category) GetId() uint64

func (*Category) GetName

func (x *Category) GetName() string

func (*Category) GetParentId

func (x *Category) GetParentId() uint64

func (*Category) GetSequence

func (x *Category) GetSequence() uint32

func (*Category) GetStatus

func (x *Category) GetStatus() uint32

func (*Category) GetUserId

func (x *Category) GetUserId() uint64

func (*Category) ProtoMessage

func (*Category) ProtoMessage()

func (*Category) ProtoReflect

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

func (*Category) Reset

func (x *Category) Reset()

func (*Category) String

func (x *Category) String() string

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

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetCollects

func (x *Comment) GetCollects() []uint64

func (*Comment) GetContent

func (x *Comment) GetContent() string

func (*Comment) GetCreatedAt

func (x *Comment) GetCreatedAt() string

func (*Comment) GetDeletedAt

func (x *Comment) GetDeletedAt() string

func (*Comment) GetExt

func (x *Comment) GetExt() *ContentExt

func (*Comment) GetId

func (x *Comment) GetId() uint64

func (*Comment) GetImage

func (x *Comment) GetImage() string

func (*Comment) GetLikeId

func (x *Comment) GetLikeId() uint64

func (*Comment) GetRecvId

func (x *Comment) GetRecvId() uint64

func (*Comment) GetRecvUser

func (x *Comment) GetRecvUser() *user.UserBaseInfo

func (*Comment) GetRefId

func (x *Comment) GetRefId() uint64

func (*Comment) GetReplyId

func (x *Comment) GetReplyId() uint64

func (*Comment) GetRootId

func (x *Comment) GetRootId() uint64

func (*Comment) GetSequence

func (x *Comment) GetSequence() uint32

func (*Comment) GetStatus

func (x *Comment) GetStatus() uint32

func (*Comment) GetSubComments

func (x *Comment) GetSubComments() []*Comment

func (*Comment) GetType

func (x *Comment) GetType() ContentType

func (*Comment) GetUnlikeId

func (x *Comment) GetUnlikeId() uint64

func (*Comment) GetUser

func (x *Comment) GetUser() *user.UserBaseInfo

func (*Comment) GetUserId

func (x *Comment) GetUserId() uint64

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

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

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

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

Deprecated: Use Container.ProtoReflect.Descriptor instead.

func (*Container) GetAnonymous

func (x *Container) GetAnonymous() uint32

func (*Container) GetCover

func (x *Container) GetCover() string

func (*Container) GetCreatedAt

func (x *Container) GetCreatedAt() string

func (*Container) GetDeletedAt

func (x *Container) GetDeletedAt() string

func (*Container) GetDescription

func (x *Container) GetDescription() string

func (*Container) GetId

func (x *Container) GetId() uint64

func (*Container) GetPermission

func (x *Container) GetPermission() ViewPermission

func (*Container) GetSequence

func (x *Container) GetSequence() uint32

func (*Container) GetStatus

func (x *Container) GetStatus() uint32

func (*Container) GetTitle

func (x *Container) GetTitle() string

func (*Container) GetType

func (x *Container) GetType() ContainerType

func (*Container) GetUserId

func (x *Container) GetUserId() uint64

func (*Container) ProtoMessage

func (*Container) ProtoMessage()

func (*Container) ProtoReflect

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

func (*Container) Reset

func (x *Container) Reset()

func (*Container) String

func (x *Container) String() string

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) 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 (ContainerType) OrigString

func (x ContainerType) OrigString() string

func (ContainerType) String

func (x ContainerType) String() string

func (ContainerType) Type

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

Deprecated: Use Content.ProtoReflect.Descriptor instead.

func (*Content) GetAbstract

func (x *Content) GetAbstract() string

func (*Content) GetAnonymous

func (x *Content) GetAnonymous() uint32

func (*Content) GetApproveUsers

func (x *Content) GetApproveUsers() []*user.UserBaseInfo

func (*Content) GetArea

func (x *Content) GetArea() *area.Area

func (*Content) GetAreaId

func (x *Content) GetAreaId() uint64

func (*Content) GetCollectUsers

func (x *Content) GetCollectUsers() []*user.UserBaseInfo

func (*Content) GetComments

func (x *Content) GetComments() []*Comment

func (*Content) GetContent

func (x *Content) GetContent() string

func (*Content) GetCreatedAt

func (x *Content) GetCreatedAt() string

func (*Content) GetId

func (x *Content) GetId() uint64

func (*Content) GetIntro

func (x *Content) GetIntro() string

func (*Content) GetLikeUsers

func (x *Content) GetLikeUsers() []*user.UserBaseInfo

func (*Content) GetLocation

func (x *Content) GetLocation() string

func (*Content) GetMood

func (x *Content) GetMood() *Tag

func (*Content) GetPermission

func (x *Content) GetPermission() ViewPermission

func (*Content) GetSequence

func (x *Content) GetSequence() uint32

func (*Content) GetStatus

func (x *Content) GetStatus() uint32

func (*Content) GetTags

func (x *Content) GetTags() []*Tag

func (*Content) GetTitle

func (x *Content) GetTitle() string

func (*Content) GetType

func (x *Content) GetType() ContentType

func (*Content) GetUser

func (x *Content) GetUser() *user.UserBaseInfo

func (*Content) GetUserId

func (x *Content) GetUserId() uint64

func (*Content) GetWeather

func (x *Content) GetWeather() *Tag

func (*Content) ProtoMessage

func (*Content) ProtoMessage()

func (*Content) ProtoReflect

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

func (*Content) Reset

func (x *Content) Reset()

func (*Content) String

func (x *Content) String() string

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.

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

删除原因

const (
	DelReasonPlaceholder                   DelReason = 0
	DelReasonViolationOfLawsAndRegulations DelReason = 1
	DelReasonEroticViolence                DelReason = 3
	DelReasonOther                         DelReason = 255
)

func (DelReason) Descriptor

func (DelReason) Descriptor() protoreflect.EnumDescriptor

func (DelReason) Enum

func (x DelReason) Enum() *DelReason

func (DelReason) EnumDescriptor deprecated

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

Deprecated: Use DelReason.Descriptor instead.

func (DelReason) MarshalGQL

func (x DelReason) MarshalGQL(w io.Writer)

func (DelReason) Number

func (x DelReason) Number() protoreflect.EnumNumber

func (DelReason) OrigString

func (x DelReason) OrigString() string

func (DelReason) String

func (x DelReason) String() string

func (DelReason) Type

func (*DelReason) UnmarshalGQL

func (x *DelReason) UnmarshalGQL(v interface{}) error

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

Deprecated: Use Diary.ProtoReflect.Descriptor instead.

func (*Diary) GetAnonymous

func (x *Diary) GetAnonymous() uint32

func (*Diary) GetApproveUsers

func (x *Diary) GetApproveUsers() []*user.UserBaseInfo

func (*Diary) GetArea

func (x *Diary) GetArea() *area.Area

func (*Diary) GetAreaId

func (x *Diary) GetAreaId() uint64

func (*Diary) GetAreaVisibility

func (x *Diary) GetAreaVisibility() uint32

func (*Diary) GetBook

func (x *Diary) GetBook() *DiaryBook

func (*Diary) GetBookId

func (x *Diary) GetBookId() uint64

func (*Diary) GetCollectUsers

func (x *Diary) GetCollectUsers() []*user.UserBaseInfo

func (*Diary) GetComments

func (x *Diary) GetComments() []*Comment

func (*Diary) GetContent

func (x *Diary) GetContent() string

func (*Diary) GetCreatedAt

func (x *Diary) GetCreatedAt() string

func (*Diary) GetDeletedAt

func (x *Diary) GetDeletedAt() string

func (*Diary) GetId

func (x *Diary) GetId() uint64

func (*Diary) GetLikeUsers

func (x *Diary) GetLikeUsers() []*user.UserBaseInfo

func (*Diary) GetLocation

func (x *Diary) GetLocation() string

func (*Diary) GetMood

func (x *Diary) GetMood() *TinyTag

func (*Diary) GetPermission

func (x *Diary) GetPermission() ViewPermission

func (*Diary) GetSequence

func (x *Diary) GetSequence() uint32

func (*Diary) GetStatus

func (x *Diary) GetStatus() uint32

func (*Diary) GetTags

func (x *Diary) GetTags() []*TinyTag

func (*Diary) GetUser

func (x *Diary) GetUser() *user.UserBaseInfo

func (*Diary) GetUserId

func (x *Diary) GetUserId() uint64

func (*Diary) GetWeather

func (x *Diary) GetWeather() *TinyTag

func (*Diary) ProtoMessage

func (*Diary) ProtoMessage()

func (*Diary) ProtoReflect

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

func (*Diary) Reset

func (x *Diary) Reset()

func (*Diary) String

func (x *Diary) String() string

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

Deprecated: Use DiaryBook.ProtoReflect.Descriptor instead.

func (*DiaryBook) GetAnonymous

func (x *DiaryBook) GetAnonymous() uint32

func (*DiaryBook) GetCover

func (x *DiaryBook) GetCover() string

func (*DiaryBook) GetCreatedAt

func (x *DiaryBook) GetCreatedAt() string

func (*DiaryBook) GetDeletedAt

func (x *DiaryBook) GetDeletedAt() string

func (*DiaryBook) GetDescription

func (x *DiaryBook) GetDescription() string

func (*DiaryBook) GetId

func (x *DiaryBook) GetId() uint64

func (*DiaryBook) GetPermission

func (x *DiaryBook) GetPermission() ViewPermission

func (*DiaryBook) GetSequence

func (x *DiaryBook) GetSequence() uint32

func (*DiaryBook) GetStatus

func (x *DiaryBook) GetStatus() uint32

func (*DiaryBook) GetTitle

func (x *DiaryBook) GetTitle() string

func (*DiaryBook) GetUserId

func (x *DiaryBook) GetUserId() uint64

func (*DiaryBook) ProtoMessage

func (*DiaryBook) ProtoMessage()

func (*DiaryBook) ProtoReflect

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

func (*DiaryBook) Reset

func (x *DiaryBook) Reset()

func (*DiaryBook) String

func (x *DiaryBook) String() string

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.

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

Deprecated: Use FavFollow.ProtoReflect.Descriptor instead.

func (*FavFollow) GetCreatedAt

func (x *FavFollow) GetCreatedAt() string

func (*FavFollow) GetDeletedAt

func (x *FavFollow) GetDeletedAt() string

func (*FavFollow) GetFavId

func (x *FavFollow) GetFavId() uint64

func (*FavFollow) GetUserId

func (x *FavFollow) GetUserId() uint64

func (*FavFollow) ProtoMessage

func (*FavFollow) ProtoMessage()

func (*FavFollow) ProtoReflect

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

func (*FavFollow) Reset

func (x *FavFollow) Reset()

func (*FavFollow) String

func (x *FavFollow) String() string

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

Deprecated: Use Favorites.ProtoReflect.Descriptor instead.

func (*Favorites) GetAnonymous

func (x *Favorites) GetAnonymous() uint32

func (*Favorites) GetCollections

func (x *Favorites) GetCollections() []*Collection

func (*Favorites) GetCover

func (x *Favorites) GetCover() string

func (*Favorites) GetCreatedAt

func (x *Favorites) GetCreatedAt() string

func (*Favorites) GetDeletedAt

func (x *Favorites) GetDeletedAt() string

func (*Favorites) GetDescription

func (x *Favorites) GetDescription() string

func (*Favorites) GetFollowUsers

func (x *Favorites) GetFollowUsers() []*user.UserBaseInfo

func (*Favorites) GetId

func (x *Favorites) GetId() uint64

func (*Favorites) GetSequence

func (x *Favorites) GetSequence() uint32

func (*Favorites) GetTitle

func (x *Favorites) GetTitle() string

func (*Favorites) GetUser

func (x *Favorites) GetUser() *user.UserBaseInfo

func (*Favorites) GetUserId

func (x *Favorites) GetUserId() uint64

func (*Favorites) ProtoMessage

func (*Favorites) ProtoMessage()

func (*Favorites) ProtoReflect

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

func (*Favorites) Reset

func (x *Favorites) Reset()

func (*Favorites) String

func (x *Favorites) String() string

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

Deprecated: Use GCReq.ProtoReflect.Descriptor instead.

func (*GCReq) GetAddress

func (x *GCReq) GetAddress() int64

func (*GCReq) ProtoMessage

func (*GCReq) ProtoMessage()

func (*GCReq) ProtoReflect

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

func (*GCReq) Reset

func (x *GCReq) Reset()

func (*GCReq) String

func (x *GCReq) String() string

func (*GCReq) Validate

func (this *GCReq) Validate() error

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

Deprecated: Use Gift.ProtoReflect.Descriptor instead.

func (*Gift) GetDescription

func (x *Gift) GetDescription() string

func (*Gift) GetExpressionURL

func (x *Gift) GetExpressionURL() string

func (*Gift) GetId

func (x *Gift) GetId() uint64

func (*Gift) GetName

func (x *Gift) GetName() string

func (*Gift) GetPrice

func (x *Gift) GetPrice() uint64

func (*Gift) ProtoMessage

func (*Gift) ProtoMessage()

func (*Gift) ProtoReflect

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

func (*Gift) Reset

func (x *Gift) Reset()

func (*Gift) String

func (x *Gift) String() string

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

Deprecated: Use ID.ProtoReflect.Descriptor instead.

func (*ID) GetIds

func (x *ID) GetIds() []uint64

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) ProtoReflect

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

func (*ID) Reset

func (x *ID) Reset()

func (*ID) String

func (x *ID) String() string

func (*ID) Validate

func (this *ID) Validate() error

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

Deprecated: Use Like.ProtoReflect.Descriptor instead.

func (*Like) GetAction

func (x *Like) GetAction() ActionType

func (*Like) GetCreatedAt

func (x *Like) GetCreatedAt() string

func (*Like) GetDeletedAt

func (x *Like) GetDeletedAt() string

func (*Like) GetId

func (x *Like) GetId() uint64

func (*Like) GetRefId

func (x *Like) GetRefId() uint64

func (*Like) GetType

func (x *Like) GetType() ContentType

func (*Like) GetUser

func (x *Like) GetUser() *user.UserBaseInfo

func (*Like) GetUserId

func (x *Like) GetUserId() uint64

func (*Like) ProtoMessage

func (*Like) ProtoMessage()

func (*Like) ProtoReflect

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

func (*Like) Reset

func (x *Like) Reset()

func (*Like) String

func (x *Like) String() string

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

Deprecated: Use LikeReq.ProtoReflect.Descriptor instead.

func (*LikeReq) GetAction

func (x *LikeReq) GetAction() ActionType

func (*LikeReq) GetId

func (x *LikeReq) GetId() uint64

func (*LikeReq) GetRefId

func (x *LikeReq) GetRefId() uint64

func (*LikeReq) GetType

func (x *LikeReq) GetType() ContentType

func (*LikeReq) GetUserId

func (x *LikeReq) GetUserId() uint64

func (*LikeReq) ProtoMessage

func (*LikeReq) ProtoMessage()

func (*LikeReq) ProtoReflect

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

func (*LikeReq) Reset

func (x *LikeReq) Reset()

func (*LikeReq) String

func (x *LikeReq) String() string

func (*LikeReq) Validate

func (this *LikeReq) Validate() error

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

Deprecated: Use Media.ProtoReflect.Descriptor instead.

func (*Media) GetId

func (x *Media) GetId() uint64

func (*Media) ProtoMessage

func (*Media) ProtoMessage()

func (*Media) ProtoReflect

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

func (*Media) Reset

func (x *Media) Reset()

func (*Media) String

func (x *Media) String() string

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

Deprecated: Use Moment.ProtoReflect.Descriptor instead.

func (*Moment) GetAnonymous

func (x *Moment) GetAnonymous() uint32

func (*Moment) GetApproveUsers

func (x *Moment) GetApproveUsers() []uint64

func (*Moment) GetArea

func (x *Moment) GetArea() *area.Area

func (*Moment) GetAreaId

func (x *Moment) GetAreaId() uint64

func (*Moment) GetAreaVisibility

func (x *Moment) GetAreaVisibility() uint32

func (*Moment) GetBook

func (x *Moment) GetBook() *DiaryBook

func (*Moment) GetBookId

func (x *Moment) GetBookId() uint64

func (*Moment) GetCollectUsers

func (x *Moment) GetCollectUsers() []uint64

func (*Moment) GetCollects

func (x *Moment) GetCollects() []uint64

func (*Moment) GetComments

func (x *Moment) GetComments() []*Comment

func (*Moment) GetContent

func (x *Moment) GetContent() string

func (*Moment) GetCreatedAt

func (x *Moment) GetCreatedAt() string

func (*Moment) GetDeletedAt

func (x *Moment) GetDeletedAt() string

func (*Moment) GetExt

func (x *Moment) GetExt() *ContentExt

func (*Moment) GetId

func (x *Moment) GetId() uint64

func (*Moment) GetImages

func (x *Moment) GetImages() string

func (*Moment) GetLikeId

func (x *Moment) GetLikeId() uint64

func (*Moment) GetLikeUsers

func (x *Moment) GetLikeUsers() []uint64

func (*Moment) GetLocation

func (x *Moment) GetLocation() string

func (*Moment) GetMood

func (x *Moment) GetMood() *TinyTag

func (*Moment) GetPermission

func (x *Moment) GetPermission() ViewPermission

func (*Moment) GetSequence

func (x *Moment) GetSequence() uint32

func (*Moment) GetStatus

func (x *Moment) GetStatus() uint32

func (*Moment) GetTags

func (x *Moment) GetTags() []*TinyTag

func (*Moment) GetType

func (x *Moment) GetType() MomentType

func (*Moment) GetUnlikeId

func (x *Moment) GetUnlikeId() uint64

func (*Moment) GetUser

func (x *Moment) GetUser() *user.UserBaseInfo

func (*Moment) GetUserId

func (x *Moment) GetUserId() uint64

func (*Moment) GetUsers

func (x *Moment) GetUsers() []*user.UserBaseInfo

func (*Moment) GetWeather

func (x *Moment) GetWeather() *TinyTag

func (*Moment) ProtoMessage

func (*Moment) ProtoMessage()

func (*Moment) ProtoReflect

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

func (*Moment) Reset

func (x *Moment) Reset()

func (*Moment) String

func (x *Moment) String() string

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

Deprecated: Use MomentRep.ProtoReflect.Descriptor instead.

func (*MomentRep) GetAnonymous

func (x *MomentRep) GetAnonymous() uint32

func (*MomentRep) GetApproveUsers

func (x *MomentRep) GetApproveUsers() []uint64

func (*MomentRep) GetArea

func (x *MomentRep) GetArea() *area.Area

func (*MomentRep) GetAreaId

func (x *MomentRep) GetAreaId() uint64

func (*MomentRep) GetAreaVisibility

func (x *MomentRep) GetAreaVisibility() uint32

func (*MomentRep) GetBook

func (x *MomentRep) GetBook() *DiaryBook

func (*MomentRep) GetBookId

func (x *MomentRep) GetBookId() uint64

func (*MomentRep) GetCollect

func (x *MomentRep) GetCollect() bool

func (*MomentRep) GetCollectUsers

func (x *MomentRep) GetCollectUsers() []uint64

func (*MomentRep) GetComments

func (x *MomentRep) GetComments() []*Comment

func (*MomentRep) GetContent

func (x *MomentRep) GetContent() string

func (*MomentRep) GetCreatedAt

func (x *MomentRep) GetCreatedAt() string

func (*MomentRep) GetDeletedAt

func (x *MomentRep) GetDeletedAt() string

func (*MomentRep) GetExt

func (x *MomentRep) GetExt() *ContentExt

func (*MomentRep) GetId

func (x *MomentRep) GetId() uint64

func (*MomentRep) GetImages

func (x *MomentRep) GetImages() string

func (*MomentRep) GetLikeId

func (x *MomentRep) GetLikeId() uint64

func (*MomentRep) GetLikeUsers

func (x *MomentRep) GetLikeUsers() []uint64

func (*MomentRep) GetLocation

func (x *MomentRep) GetLocation() string

func (*MomentRep) GetMood

func (x *MomentRep) GetMood() *TinyTag

func (*MomentRep) GetPermission

func (x *MomentRep) GetPermission() ViewPermission

func (*MomentRep) GetSequence

func (x *MomentRep) GetSequence() uint32

func (*MomentRep) GetStatus

func (x *MomentRep) GetStatus() uint32

func (*MomentRep) GetTags

func (x *MomentRep) GetTags() []*TinyTag

func (*MomentRep) GetType

func (x *MomentRep) GetType() MomentType

func (*MomentRep) GetUnlikeId

func (x *MomentRep) GetUnlikeId() uint64

func (*MomentRep) GetUser

func (x *MomentRep) GetUser() *user.UserBaseInfo

func (*MomentRep) GetUserId

func (x *MomentRep) GetUserId() uint64

func (*MomentRep) GetUsers

func (x *MomentRep) GetUsers() []*user.UserBaseInfo

func (*MomentRep) GetWeather

func (x *MomentRep) GetWeather() *TinyTag

func (*MomentRep) ProtoMessage

func (*MomentRep) ProtoMessage()

func (*MomentRep) ProtoReflect

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

func (*MomentRep) Reset

func (x *MomentRep) Reset()

func (*MomentRep) String

func (x *MomentRep) String() string

func (*MomentRep) Validate

func (this *MomentRep) Validate() error

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.

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

Deprecated: Use Note.ProtoReflect.Descriptor instead.

func (*Note) GetContent

func (x *Note) GetContent() string

func (*Note) GetCreatedAt

func (x *Note) GetCreatedAt() string

func (*Note) GetDeletedAt

func (x *Note) GetDeletedAt() string

func (*Note) GetId

func (x *Note) GetId() uint64

func (*Note) GetStatus

func (x *Note) GetStatus() uint32

func (*Note) GetTitle

func (x *Note) GetTitle() string

func (*Note) ProtoMessage

func (*Note) ProtoMessage()

func (*Note) ProtoReflect

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

func (*Note) Reset

func (x *Note) Reset()

func (*Note) String

func (x *Note) String() string

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.

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

Deprecated: Use OneOf.ProtoReflect.Descriptor instead.

func (*OneOf) GetId

func (x *OneOf) GetId() uint64

func (*OneOf) GetName

func (x *OneOf) GetName() string

func (*OneOf) GetReq

func (m *OneOf) GetReq() isOneOf_Req

func (*OneOf) ProtoMessage

func (*OneOf) ProtoMessage()

func (*OneOf) ProtoReflect

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

func (*OneOf) Reset

func (x *OneOf) Reset()

func (*OneOf) String

func (x *OneOf) String() string

func (*OneOf) Validate

func (this *OneOf) Validate() error

type OneOf_Id

type OneOf_Id struct {
	Id uint64 `protobuf:"varint,2,opt,name=id,proto3,oneof"`
}

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

Deprecated: Use Report.ProtoReflect.Descriptor instead.

func (*Report) GetCreatedAt

func (x *Report) GetCreatedAt() string

func (*Report) GetDelReason

func (x *Report) GetDelReason() DelReason

func (*Report) GetId

func (x *Report) GetId() uint64

func (*Report) GetRefId

func (x *Report) GetRefId() uint64

func (*Report) GetRemark

func (x *Report) GetRemark() string

func (*Report) GetType

func (x *Report) GetType() ContentType

func (*Report) GetUser

func (x *Report) GetUser() *user.UserBaseInfo

func (*Report) GetUserId

func (x *Report) GetUserId() uint64

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) ProtoReflect

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

func (*Report) Reset

func (x *Report) Reset()

func (*Report) String

func (x *Report) String() string

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

Deprecated: Use ReportReq.ProtoReflect.Descriptor instead.

func (*ReportReq) GetDelReason

func (x *ReportReq) GetDelReason() DelReason

func (*ReportReq) GetId

func (x *ReportReq) GetId() uint64

func (*ReportReq) GetRefId

func (x *ReportReq) GetRefId() uint64

func (*ReportReq) GetType

func (x *ReportReq) GetType() ContentType

func (*ReportReq) GetUserId

func (x *ReportReq) GetUserId() uint64

func (*ReportReq) ProtoMessage

func (*ReportReq) ProtoMessage()

func (*ReportReq) ProtoReflect

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

func (*ReportReq) Reset

func (x *ReportReq) Reset()

func (*ReportReq) String

func (x *ReportReq) String() string

func (*ReportReq) Validate

func (this *ReportReq) Validate() error

type Serial

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

连载

func (*Serial) Descriptor deprecated

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

Deprecated: Use Serial.ProtoReflect.Descriptor instead.

func (*Serial) ProtoMessage

func (*Serial) ProtoMessage()

func (*Serial) ProtoReflect

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

func (*Serial) Reset

func (x *Serial) Reset()

func (*Serial) String

func (x *Serial) String() string

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

Deprecated: Use Tag.ProtoReflect.Descriptor instead.

func (*Tag) GetCreatedAt

func (x *Tag) GetCreatedAt() string

func (*Tag) GetDeletedAt

func (x *Tag) GetDeletedAt() string

func (*Tag) GetDescription

func (x *Tag) GetDescription() string

func (*Tag) GetExpressionURL

func (x *Tag) GetExpressionURL() string

func (*Tag) GetId

func (x *Tag) GetId() uint64

func (*Tag) GetName

func (x *Tag) GetName() string

func (*Tag) GetStatus

func (x *Tag) GetStatus() uint32

func (*Tag) GetType

func (x *Tag) GetType() TagType

func (*Tag) GetUserId

func (x *Tag) GetUserId() uint64

func (*Tag) ProtoMessage

func (*Tag) ProtoMessage()

func (*Tag) ProtoReflect

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

func (*Tag) Reset

func (x *Tag) Reset()

func (*Tag) String

func (x *Tag) String() string

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

Deprecated: Use TagGroup.ProtoReflect.Descriptor instead.

func (*TagGroup) GetCreatedAt

func (x *TagGroup) GetCreatedAt() string

func (*TagGroup) GetDeletedAt

func (x *TagGroup) GetDeletedAt() string

func (*TagGroup) GetId

func (x *TagGroup) GetId() uint64

func (*TagGroup) GetName

func (x *TagGroup) GetName() string

func (*TagGroup) GetParentId

func (x *TagGroup) GetParentId() uint64

func (*TagGroup) GetStatus

func (x *TagGroup) GetStatus() uint32

func (*TagGroup) ProtoMessage

func (*TagGroup) ProtoMessage()

func (*TagGroup) ProtoReflect

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

func (*TagGroup) Reset

func (x *TagGroup) Reset()

func (*TagGroup) String

func (x *TagGroup) String() string

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
const (
	TagPlaceholder TagType = 0
	TagContent     TagType = 1
	TagMood        TagType = 2
	TagWeather     TagType = 3
	TagLocation    TagType = 4
	TagCategory    TagType = 5
	TagNotice      TagType = 6
)

func (TagType) Descriptor

func (TagType) Descriptor() protoreflect.EnumDescriptor

func (TagType) Enum

func (x TagType) Enum() *TagType

func (TagType) EnumDescriptor deprecated

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

Deprecated: Use TagType.Descriptor instead.

func (TagType) MarshalGQL

func (x TagType) MarshalGQL(w io.Writer)

func (TagType) Number

func (x TagType) Number() protoreflect.EnumNumber

func (TagType) OrigString

func (x TagType) OrigString() string

func (TagType) String

func (x TagType) String() string

func (TagType) Type

func (TagType) Type() protoreflect.EnumType

func (*TagType) UnmarshalGQL

func (x *TagType) UnmarshalGQL(v interface{}) error

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.

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

Deprecated: Use TinyTag.ProtoReflect.Descriptor instead.

func (*TinyTag) GetId

func (x *TinyTag) GetId() uint64

func (*TinyTag) GetName

func (x *TinyTag) GetName() string

func (*TinyTag) GetType

func (x *TinyTag) GetType() TagType

func (*TinyTag) ProtoMessage

func (*TinyTag) ProtoMessage()

func (*TinyTag) ProtoReflect

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

func (*TinyTag) Reset

func (x *TinyTag) Reset()

func (*TinyTag) String

func (x *TinyTag) String() string

type UnimplementedActionServiceServer

type UnimplementedActionServiceServer struct {
}

UnimplementedActionServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedActionServiceServer) Collect

func (UnimplementedActionServiceServer) Comment

func (UnimplementedActionServiceServer) CommentList

func (UnimplementedActionServiceServer) DelComment

func (UnimplementedActionServiceServer) DelLike

func (UnimplementedActionServiceServer) Like

func (UnimplementedActionServiceServer) Report

type UnimplementedContentServiceServer

type UnimplementedContentServiceServer struct {
}

UnimplementedContentServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedContentServiceServer) AddAttr

func (UnimplementedContentServiceServer) AddContainer

func (UnimplementedContentServiceServer) AddFav

func (UnimplementedContentServiceServer) AddTag

func (UnimplementedContentServiceServer) AttrInfo

func (UnimplementedContentServiceServer) AttrList

func (UnimplementedContentServiceServer) EditAttr

func (UnimplementedContentServiceServer) EditDiaryContainer

func (UnimplementedContentServiceServer) EditFav

func (UnimplementedContentServiceServer) EditTag

func (UnimplementedContentServiceServer) FavList

func (UnimplementedContentServiceServer) TagGroupList

func (UnimplementedContentServiceServer) TagInfo

func (UnimplementedContentServiceServer) TagList

func (UnimplementedContentServiceServer) TinyFavList

func (UnimplementedContentServiceServer) UserContentCount

type UnimplementedDiaryServiceServer

type UnimplementedDiaryServiceServer struct {
}

UnimplementedDiaryServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDiaryServiceServer) Add

func (UnimplementedDiaryServiceServer) AddDiaryBook

func (UnimplementedDiaryServiceServer) Delete

func (UnimplementedDiaryServiceServer) DiaryBook

func (UnimplementedDiaryServiceServer) DiaryBookList

func (UnimplementedDiaryServiceServer) Edit

func (UnimplementedDiaryServiceServer) EditDiaryBook

func (UnimplementedDiaryServiceServer) Info

func (UnimplementedDiaryServiceServer) List

type UnimplementedMomentServiceServer

type UnimplementedMomentServiceServer struct {
}

UnimplementedMomentServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedMomentServiceServer) Add

func (UnimplementedMomentServiceServer) Delete

func (UnimplementedMomentServiceServer) Edit

func (UnimplementedMomentServiceServer) Info

func (UnimplementedMomentServiceServer) List

type UnimplementedNoteServiceServer

type UnimplementedNoteServiceServer struct {
}

UnimplementedNoteServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNoteServiceServer) Create

type UnimplementedTestServiceServer

type UnimplementedTestServiceServer struct {
}

UnimplementedTestServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedTestServiceServer) Array

func (UnimplementedTestServiceServer) GC

func (UnimplementedTestServiceServer) Register

func (UnimplementedTestServiceServer) Restart

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) 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 (ViewPermission) OrigString

func (x ViewPermission) OrigString() string

func (ViewPermission) String

func (x ViewPermission) String() string

func (ViewPermission) Type

func (*ViewPermission) UnmarshalGQL

func (x *ViewPermission) UnmarshalGQL(v interface{}) error

Jump to

Keyboard shortcuts

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