1334 lines
43 KiB
Go
1334 lines
43 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v7.34.0
|
|
// source: notification.proto
|
|
|
|
package notification
|
|
|
|
import (
|
|
common "github.com/topfans/backend/pkg/proto/common"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
structpb "google.golang.org/protobuf/types/known/structpb"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Notification struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
StarId int64 `protobuf:"varint,3,opt,name=star_id,json=starId,proto3" json:"star_id,omitempty"`
|
|
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
|
|
Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
|
|
Content string `protobuf:"bytes,6,opt,name=content,proto3" json:"content,omitempty"`
|
|
Data *structpb.Struct `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"`
|
|
IsRead bool `protobuf:"varint,8,opt,name=is_read,json=isRead,proto3" json:"is_read,omitempty"`
|
|
CreatedAt int64 `protobuf:"varint,9,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
ReadAt int64 `protobuf:"varint,10,opt,name=read_at,json=readAt,proto3" json:"read_at,omitempty"`
|
|
// 列表层聚合:仅 type=like 且按 target_id 聚合时返回
|
|
Aggregated bool `protobuf:"varint,11,opt,name=aggregated,proto3" json:"aggregated,omitempty"`
|
|
TotalCount int32 `protobuf:"varint,12,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"`
|
|
Actors []*ActorPreview `protobuf:"bytes,13,rep,name=actors,proto3" json:"actors,omitempty"`
|
|
TargetId int64 `protobuf:"varint,14,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Notification) Reset() {
|
|
*x = Notification{}
|
|
mi := &file_notification_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Notification) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Notification) ProtoMessage() {}
|
|
|
|
func (x *Notification) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Notification.ProtoReflect.Descriptor instead.
|
|
func (*Notification) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Notification) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Notification) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Notification) GetStarId() int64 {
|
|
if x != nil {
|
|
return x.StarId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Notification) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Notification) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Notification) GetContent() string {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Notification) GetData() *structpb.Struct {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Notification) GetIsRead() bool {
|
|
if x != nil {
|
|
return x.IsRead
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Notification) GetCreatedAt() int64 {
|
|
if x != nil {
|
|
return x.CreatedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Notification) GetReadAt() int64 {
|
|
if x != nil {
|
|
return x.ReadAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Notification) GetAggregated() bool {
|
|
if x != nil {
|
|
return x.Aggregated
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (x *Notification) GetTotalCount() int32 {
|
|
if x != nil {
|
|
return x.TotalCount
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Notification) GetActors() []*ActorPreview {
|
|
if x != nil {
|
|
return x.Actors
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Notification) GetTargetId() int64 {
|
|
if x != nil {
|
|
return x.TargetId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type ActorPreview struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"`
|
|
Avatar string `protobuf:"bytes,3,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
|
LikedAt int64 `protobuf:"varint,4,opt,name=liked_at,json=likedAt,proto3" json:"liked_at,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *ActorPreview) Reset() {
|
|
*x = ActorPreview{}
|
|
mi := &file_notification_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *ActorPreview) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*ActorPreview) ProtoMessage() {}
|
|
|
|
func (x *ActorPreview) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use ActorPreview.ProtoReflect.Descriptor instead.
|
|
func (*ActorPreview) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *ActorPreview) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *ActorPreview) GetNickname() string {
|
|
if x != nil {
|
|
return x.Nickname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ActorPreview) GetAvatar() string {
|
|
if x != nil {
|
|
return x.Avatar
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *ActorPreview) GetLikedAt() int64 {
|
|
if x != nil {
|
|
return x.LikedAt
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type CreateNotificationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
StarId int64 `protobuf:"varint,2,opt,name=star_id,json=starId,proto3" json:"star_id,omitempty"`
|
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
|
Title string `protobuf:"bytes,4,opt,name=title,proto3" json:"title,omitempty"`
|
|
Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content,omitempty"`
|
|
Data *structpb.Struct `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateNotificationRequest) Reset() {
|
|
*x = CreateNotificationRequest{}
|
|
mi := &file_notification_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateNotificationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateNotificationRequest) ProtoMessage() {}
|
|
|
|
func (x *CreateNotificationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateNotificationRequest.ProtoReflect.Descriptor instead.
|
|
func (*CreateNotificationRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *CreateNotificationRequest) GetUserId() int64 {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateNotificationRequest) GetStarId() int64 {
|
|
if x != nil {
|
|
return x.StarId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *CreateNotificationRequest) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateNotificationRequest) GetTitle() string {
|
|
if x != nil {
|
|
return x.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateNotificationRequest) GetContent() string {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *CreateNotificationRequest) GetData() *structpb.Struct {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type CreateNotificationResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Id int64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CreateNotificationResponse) Reset() {
|
|
*x = CreateNotificationResponse{}
|
|
mi := &file_notification_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CreateNotificationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CreateNotificationResponse) ProtoMessage() {}
|
|
|
|
func (x *CreateNotificationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CreateNotificationResponse.ProtoReflect.Descriptor instead.
|
|
func (*CreateNotificationResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *CreateNotificationResponse) GetBase() *common.BaseResponse {
|
|
if x != nil {
|
|
return x.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CreateNotificationResponse) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetNotificationsRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
Tab string `protobuf:"bytes,2,opt,name=tab,proto3" json:"tab,omitempty"`
|
|
Page int32 `protobuf:"varint,3,opt,name=page,proto3" json:"page,omitempty"`
|
|
PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetNotificationsRequest) Reset() {
|
|
*x = GetNotificationsRequest{}
|
|
mi := &file_notification_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetNotificationsRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetNotificationsRequest) ProtoMessage() {}
|
|
|
|
func (x *GetNotificationsRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetNotificationsRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetNotificationsRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *GetNotificationsRequest) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetNotificationsRequest) GetTab() string {
|
|
if x != nil {
|
|
return x.Tab
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetNotificationsRequest) GetPage() int32 {
|
|
if x != nil {
|
|
return x.Page
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetNotificationsRequest) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetNotificationsResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Items []*Notification `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"`
|
|
Total int64 `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
|
|
Page int32 `protobuf:"varint,4,opt,name=page,proto3" json:"page,omitempty"`
|
|
PageSize int32 `protobuf:"varint,5,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetNotificationsResponse) Reset() {
|
|
*x = GetNotificationsResponse{}
|
|
mi := &file_notification_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetNotificationsResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetNotificationsResponse) ProtoMessage() {}
|
|
|
|
func (x *GetNotificationsResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetNotificationsResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetNotificationsResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *GetNotificationsResponse) GetBase() *common.BaseResponse {
|
|
if x != nil {
|
|
return x.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetNotificationsResponse) GetItems() []*Notification {
|
|
if x != nil {
|
|
return x.Items
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetNotificationsResponse) GetTotal() int64 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetNotificationsResponse) GetPage() int32 {
|
|
if x != nil {
|
|
return x.Page
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *GetNotificationsResponse) GetPageSize() int32 {
|
|
if x != nil {
|
|
return x.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUnreadCountRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUnreadCountRequest) Reset() {
|
|
*x = GetUnreadCountRequest{}
|
|
mi := &file_notification_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUnreadCountRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUnreadCountRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUnreadCountRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[6]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetUnreadCountRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUnreadCountRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
type UnreadCount struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Like int32 `protobuf:"varint,1,opt,name=like,proto3" json:"like,omitempty"`
|
|
System int32 `protobuf:"varint,2,opt,name=system,proto3" json:"system,omitempty"`
|
|
Activity int32 `protobuf:"varint,3,opt,name=activity,proto3" json:"activity,omitempty"`
|
|
Total int32 `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *UnreadCount) Reset() {
|
|
*x = UnreadCount{}
|
|
mi := &file_notification_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *UnreadCount) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UnreadCount) ProtoMessage() {}
|
|
|
|
func (x *UnreadCount) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[7]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use UnreadCount.ProtoReflect.Descriptor instead.
|
|
func (*UnreadCount) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *UnreadCount) GetLike() int32 {
|
|
if x != nil {
|
|
return x.Like
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UnreadCount) GetSystem() int32 {
|
|
if x != nil {
|
|
return x.System
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UnreadCount) GetActivity() int32 {
|
|
if x != nil {
|
|
return x.Activity
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *UnreadCount) GetTotal() int32 {
|
|
if x != nil {
|
|
return x.Total
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GetUnreadCountResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Counts *UnreadCount `protobuf:"bytes,2,opt,name=counts,proto3" json:"counts,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUnreadCountResponse) Reset() {
|
|
*x = GetUnreadCountResponse{}
|
|
mi := &file_notification_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUnreadCountResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUnreadCountResponse) ProtoMessage() {}
|
|
|
|
func (x *GetUnreadCountResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[8]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use GetUnreadCountResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetUnreadCountResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *GetUnreadCountResponse) GetBase() *common.BaseResponse {
|
|
if x != nil {
|
|
return x.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *GetUnreadCountResponse) GetCounts() *UnreadCount {
|
|
if x != nil {
|
|
return x.Counts
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MarkAsReadRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MarkAsReadRequest) Reset() {
|
|
*x = MarkAsReadRequest{}
|
|
mi := &file_notification_proto_msgTypes[9]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MarkAsReadRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MarkAsReadRequest) ProtoMessage() {}
|
|
|
|
func (x *MarkAsReadRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[9]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MarkAsReadRequest.ProtoReflect.Descriptor instead.
|
|
func (*MarkAsReadRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{9}
|
|
}
|
|
|
|
func (x *MarkAsReadRequest) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type MarkAsReadResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MarkAsReadResponse) Reset() {
|
|
*x = MarkAsReadResponse{}
|
|
mi := &file_notification_proto_msgTypes[10]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MarkAsReadResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MarkAsReadResponse) ProtoMessage() {}
|
|
|
|
func (x *MarkAsReadResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[10]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MarkAsReadResponse.ProtoReflect.Descriptor instead.
|
|
func (*MarkAsReadResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{10}
|
|
}
|
|
|
|
func (x *MarkAsReadResponse) GetBase() *common.BaseResponse {
|
|
if x != nil {
|
|
return x.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type MarkAsReadByTargetRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TargetId int64 `protobuf:"varint,1,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MarkAsReadByTargetRequest) Reset() {
|
|
*x = MarkAsReadByTargetRequest{}
|
|
mi := &file_notification_proto_msgTypes[11]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MarkAsReadByTargetRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MarkAsReadByTargetRequest) ProtoMessage() {}
|
|
|
|
func (x *MarkAsReadByTargetRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[11]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MarkAsReadByTargetRequest.ProtoReflect.Descriptor instead.
|
|
func (*MarkAsReadByTargetRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{11}
|
|
}
|
|
|
|
func (x *MarkAsReadByTargetRequest) GetTargetId() int64 {
|
|
if x != nil {
|
|
return x.TargetId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type MarkAsReadByTargetResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Affected int32 `protobuf:"varint,2,opt,name=affected,proto3" json:"affected,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MarkAsReadByTargetResponse) Reset() {
|
|
*x = MarkAsReadByTargetResponse{}
|
|
mi := &file_notification_proto_msgTypes[12]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MarkAsReadByTargetResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MarkAsReadByTargetResponse) ProtoMessage() {}
|
|
|
|
func (x *MarkAsReadByTargetResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[12]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MarkAsReadByTargetResponse.ProtoReflect.Descriptor instead.
|
|
func (*MarkAsReadByTargetResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{12}
|
|
}
|
|
|
|
func (x *MarkAsReadByTargetResponse) GetBase() *common.BaseResponse {
|
|
if x != nil {
|
|
return x.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MarkAsReadByTargetResponse) GetAffected() int32 {
|
|
if x != nil {
|
|
return x.Affected
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type MarkAllAsReadRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MarkAllAsReadRequest) Reset() {
|
|
*x = MarkAllAsReadRequest{}
|
|
mi := &file_notification_proto_msgTypes[13]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MarkAllAsReadRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MarkAllAsReadRequest) ProtoMessage() {}
|
|
|
|
func (x *MarkAllAsReadRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[13]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MarkAllAsReadRequest.ProtoReflect.Descriptor instead.
|
|
func (*MarkAllAsReadRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{13}
|
|
}
|
|
|
|
func (x *MarkAllAsReadRequest) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type MarkAllAsReadResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Affected int32 `protobuf:"varint,2,opt,name=affected,proto3" json:"affected,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *MarkAllAsReadResponse) Reset() {
|
|
*x = MarkAllAsReadResponse{}
|
|
mi := &file_notification_proto_msgTypes[14]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *MarkAllAsReadResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*MarkAllAsReadResponse) ProtoMessage() {}
|
|
|
|
func (x *MarkAllAsReadResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[14]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use MarkAllAsReadResponse.ProtoReflect.Descriptor instead.
|
|
func (*MarkAllAsReadResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{14}
|
|
}
|
|
|
|
func (x *MarkAllAsReadResponse) GetBase() *common.BaseResponse {
|
|
if x != nil {
|
|
return x.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *MarkAllAsReadResponse) GetAffected() int32 {
|
|
if x != nil {
|
|
return x.Affected
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteNotificationRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteNotificationRequest) Reset() {
|
|
*x = DeleteNotificationRequest{}
|
|
mi := &file_notification_proto_msgTypes[15]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteNotificationRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteNotificationRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteNotificationRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[15]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteNotificationRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteNotificationRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{15}
|
|
}
|
|
|
|
func (x *DeleteNotificationRequest) GetId() int64 {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteNotificationResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteNotificationResponse) Reset() {
|
|
*x = DeleteNotificationResponse{}
|
|
mi := &file_notification_proto_msgTypes[16]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteNotificationResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteNotificationResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteNotificationResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[16]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteNotificationResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteNotificationResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{16}
|
|
}
|
|
|
|
func (x *DeleteNotificationResponse) GetBase() *common.BaseResponse {
|
|
if x != nil {
|
|
return x.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type DeleteByTargetRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
TargetId int64 `protobuf:"varint,1,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteByTargetRequest) Reset() {
|
|
*x = DeleteByTargetRequest{}
|
|
mi := &file_notification_proto_msgTypes[17]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteByTargetRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteByTargetRequest) ProtoMessage() {}
|
|
|
|
func (x *DeleteByTargetRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[17]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteByTargetRequest.ProtoReflect.Descriptor instead.
|
|
func (*DeleteByTargetRequest) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{17}
|
|
}
|
|
|
|
func (x *DeleteByTargetRequest) GetTargetId() int64 {
|
|
if x != nil {
|
|
return x.TargetId
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type DeleteByTargetResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Base *common.BaseResponse `protobuf:"bytes,1,opt,name=base,proto3" json:"base,omitempty"`
|
|
Affected int32 `protobuf:"varint,2,opt,name=affected,proto3" json:"affected,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *DeleteByTargetResponse) Reset() {
|
|
*x = DeleteByTargetResponse{}
|
|
mi := &file_notification_proto_msgTypes[18]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *DeleteByTargetResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DeleteByTargetResponse) ProtoMessage() {}
|
|
|
|
func (x *DeleteByTargetResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_notification_proto_msgTypes[18]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use DeleteByTargetResponse.ProtoReflect.Descriptor instead.
|
|
func (*DeleteByTargetResponse) Descriptor() ([]byte, []int) {
|
|
return file_notification_proto_rawDescGZIP(), []int{18}
|
|
}
|
|
|
|
func (x *DeleteByTargetResponse) GetBase() *common.BaseResponse {
|
|
if x != nil {
|
|
return x.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *DeleteByTargetResponse) GetAffected() int32 {
|
|
if x != nil {
|
|
return x.Affected
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_notification_proto protoreflect.FileDescriptor
|
|
|
|
const file_notification_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x12notification.proto\x12\x14topfans.notification\x1a\x12proto/common.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xac\x03\n" +
|
|
"\fNotification\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x17\n" +
|
|
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x17\n" +
|
|
"\astar_id\x18\x03 \x01(\x03R\x06starId\x12\x12\n" +
|
|
"\x04type\x18\x04 \x01(\tR\x04type\x12\x14\n" +
|
|
"\x05title\x18\x05 \x01(\tR\x05title\x12\x18\n" +
|
|
"\acontent\x18\x06 \x01(\tR\acontent\x12+\n" +
|
|
"\x04data\x18\a \x01(\v2\x17.google.protobuf.StructR\x04data\x12\x17\n" +
|
|
"\ais_read\x18\b \x01(\bR\x06isRead\x12\x1d\n" +
|
|
"\n" +
|
|
"created_at\x18\t \x01(\x03R\tcreatedAt\x12\x17\n" +
|
|
"\aread_at\x18\n" +
|
|
" \x01(\x03R\x06readAt\x12\x1e\n" +
|
|
"\n" +
|
|
"aggregated\x18\v \x01(\bR\n" +
|
|
"aggregated\x12\x1f\n" +
|
|
"\vtotal_count\x18\f \x01(\x05R\n" +
|
|
"totalCount\x12:\n" +
|
|
"\x06actors\x18\r \x03(\v2\".topfans.notification.ActorPreviewR\x06actors\x12\x1b\n" +
|
|
"\ttarget_id\x18\x0e \x01(\x03R\btargetId\"v\n" +
|
|
"\fActorPreview\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x1a\n" +
|
|
"\bnickname\x18\x02 \x01(\tR\bnickname\x12\x16\n" +
|
|
"\x06avatar\x18\x03 \x01(\tR\x06avatar\x12\x19\n" +
|
|
"\bliked_at\x18\x04 \x01(\x03R\alikedAt\"\xbe\x01\n" +
|
|
"\x19CreateNotificationRequest\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x17\n" +
|
|
"\astar_id\x18\x02 \x01(\x03R\x06starId\x12\x12\n" +
|
|
"\x04type\x18\x03 \x01(\tR\x04type\x12\x14\n" +
|
|
"\x05title\x18\x04 \x01(\tR\x05title\x12\x18\n" +
|
|
"\acontent\x18\x05 \x01(\tR\acontent\x12+\n" +
|
|
"\x04data\x18\x06 \x01(\v2\x17.google.protobuf.StructR\x04data\"^\n" +
|
|
"\x1aCreateNotificationResponse\x120\n" +
|
|
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x0e\n" +
|
|
"\x02id\x18\x02 \x01(\x03R\x02id\"p\n" +
|
|
"\x17GetNotificationsRequest\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\tR\x04type\x12\x10\n" +
|
|
"\x03tab\x18\x02 \x01(\tR\x03tab\x12\x12\n" +
|
|
"\x04page\x18\x03 \x01(\x05R\x04page\x12\x1b\n" +
|
|
"\tpage_size\x18\x04 \x01(\x05R\bpageSize\"\xcd\x01\n" +
|
|
"\x18GetNotificationsResponse\x120\n" +
|
|
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x128\n" +
|
|
"\x05items\x18\x02 \x03(\v2\".topfans.notification.NotificationR\x05items\x12\x14\n" +
|
|
"\x05total\x18\x03 \x01(\x03R\x05total\x12\x12\n" +
|
|
"\x04page\x18\x04 \x01(\x05R\x04page\x12\x1b\n" +
|
|
"\tpage_size\x18\x05 \x01(\x05R\bpageSize\"\x17\n" +
|
|
"\x15GetUnreadCountRequest\"k\n" +
|
|
"\vUnreadCount\x12\x12\n" +
|
|
"\x04like\x18\x01 \x01(\x05R\x04like\x12\x16\n" +
|
|
"\x06system\x18\x02 \x01(\x05R\x06system\x12\x1a\n" +
|
|
"\bactivity\x18\x03 \x01(\x05R\bactivity\x12\x14\n" +
|
|
"\x05total\x18\x04 \x01(\x05R\x05total\"\x85\x01\n" +
|
|
"\x16GetUnreadCountResponse\x120\n" +
|
|
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x129\n" +
|
|
"\x06counts\x18\x02 \x01(\v2!.topfans.notification.UnreadCountR\x06counts\"#\n" +
|
|
"\x11MarkAsReadRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\"F\n" +
|
|
"\x12MarkAsReadResponse\x120\n" +
|
|
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\"8\n" +
|
|
"\x19MarkAsReadByTargetRequest\x12\x1b\n" +
|
|
"\ttarget_id\x18\x01 \x01(\x03R\btargetId\"j\n" +
|
|
"\x1aMarkAsReadByTargetResponse\x120\n" +
|
|
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x1a\n" +
|
|
"\baffected\x18\x02 \x01(\x05R\baffected\"*\n" +
|
|
"\x14MarkAllAsReadRequest\x12\x12\n" +
|
|
"\x04type\x18\x01 \x01(\tR\x04type\"e\n" +
|
|
"\x15MarkAllAsReadResponse\x120\n" +
|
|
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x1a\n" +
|
|
"\baffected\x18\x02 \x01(\x05R\baffected\"+\n" +
|
|
"\x19DeleteNotificationRequest\x12\x0e\n" +
|
|
"\x02id\x18\x01 \x01(\x03R\x02id\"N\n" +
|
|
"\x1aDeleteNotificationResponse\x120\n" +
|
|
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\"4\n" +
|
|
"\x15DeleteByTargetRequest\x12\x1b\n" +
|
|
"\ttarget_id\x18\x01 \x01(\x03R\btargetId\"f\n" +
|
|
"\x16DeleteByTargetResponse\x120\n" +
|
|
"\x04base\x18\x01 \x01(\v2\x1c.topfans.common.BaseResponseR\x04base\x12\x1a\n" +
|
|
"\baffected\x18\x02 \x01(\x05R\baffected2\xf2\t\n" +
|
|
"\x13NotificationService\x12\x9e\x01\n" +
|
|
"\x12CreateNotification\x12/.topfans.notification.CreateNotificationRequest\x1a0.topfans.notification.CreateNotificationResponse\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/internal/v1/notifications\x12\x90\x01\n" +
|
|
"\x10GetNotifications\x12-.topfans.notification.GetNotificationsRequest\x1a..topfans.notification.GetNotificationsResponse\"\x1d\x82\xd3\xe4\x93\x02\x17\x12\x15/api/v1/notifications\x12\x97\x01\n" +
|
|
"\x0eGetUnreadCount\x12+.topfans.notification.GetUnreadCountRequest\x1a,.topfans.notification.GetUnreadCountResponse\"*\x82\xd3\xe4\x93\x02$\x12\"/api/v1/notifications/unread-count\x12\x88\x01\n" +
|
|
"\n" +
|
|
"MarkAsRead\x12'.topfans.notification.MarkAsReadRequest\x1a(.topfans.notification.MarkAsReadResponse\"'\x82\xd3\xe4\x93\x02!\"\x1f/api/v1/notifications/{id}/read\x12\xaf\x01\n" +
|
|
"\x12MarkAsReadByTarget\x12/.topfans.notification.MarkAsReadByTargetRequest\x1a0.topfans.notification.MarkAsReadByTargetResponse\"6\x82\xd3\xe4\x93\x020\"./api/v1/notifications/targets/{target_id}/read\x12\x90\x01\n" +
|
|
"\rMarkAllAsRead\x12*.topfans.notification.MarkAllAsReadRequest\x1a+.topfans.notification.MarkAllAsReadResponse\"&\x82\xd3\xe4\x93\x02 \"\x1e/api/v1/notifications/read-all\x12\x9b\x01\n" +
|
|
"\x12DeleteNotification\x12/.topfans.notification.DeleteNotificationRequest\x1a0.topfans.notification.DeleteNotificationResponse\"\"\x82\xd3\xe4\x93\x02\x1c*\x1a/api/v1/notifications/{id}\x12\x9e\x01\n" +
|
|
"\x0eDeleteByTarget\x12+.topfans.notification.DeleteByTargetRequest\x1a,.topfans.notification.DeleteByTargetResponse\"1\x82\xd3\xe4\x93\x02+*)/api/v1/notifications/targets/{target_id}B@Z>github.com/topfans/backend/pkg/proto/notification;notificationb\x06proto3"
|
|
|
|
var (
|
|
file_notification_proto_rawDescOnce sync.Once
|
|
file_notification_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_notification_proto_rawDescGZIP() []byte {
|
|
file_notification_proto_rawDescOnce.Do(func() {
|
|
file_notification_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_notification_proto_rawDesc), len(file_notification_proto_rawDesc)))
|
|
})
|
|
return file_notification_proto_rawDescData
|
|
}
|
|
|
|
var file_notification_proto_msgTypes = make([]protoimpl.MessageInfo, 19)
|
|
var file_notification_proto_goTypes = []any{
|
|
(*Notification)(nil), // 0: topfans.notification.Notification
|
|
(*ActorPreview)(nil), // 1: topfans.notification.ActorPreview
|
|
(*CreateNotificationRequest)(nil), // 2: topfans.notification.CreateNotificationRequest
|
|
(*CreateNotificationResponse)(nil), // 3: topfans.notification.CreateNotificationResponse
|
|
(*GetNotificationsRequest)(nil), // 4: topfans.notification.GetNotificationsRequest
|
|
(*GetNotificationsResponse)(nil), // 5: topfans.notification.GetNotificationsResponse
|
|
(*GetUnreadCountRequest)(nil), // 6: topfans.notification.GetUnreadCountRequest
|
|
(*UnreadCount)(nil), // 7: topfans.notification.UnreadCount
|
|
(*GetUnreadCountResponse)(nil), // 8: topfans.notification.GetUnreadCountResponse
|
|
(*MarkAsReadRequest)(nil), // 9: topfans.notification.MarkAsReadRequest
|
|
(*MarkAsReadResponse)(nil), // 10: topfans.notification.MarkAsReadResponse
|
|
(*MarkAsReadByTargetRequest)(nil), // 11: topfans.notification.MarkAsReadByTargetRequest
|
|
(*MarkAsReadByTargetResponse)(nil), // 12: topfans.notification.MarkAsReadByTargetResponse
|
|
(*MarkAllAsReadRequest)(nil), // 13: topfans.notification.MarkAllAsReadRequest
|
|
(*MarkAllAsReadResponse)(nil), // 14: topfans.notification.MarkAllAsReadResponse
|
|
(*DeleteNotificationRequest)(nil), // 15: topfans.notification.DeleteNotificationRequest
|
|
(*DeleteNotificationResponse)(nil), // 16: topfans.notification.DeleteNotificationResponse
|
|
(*DeleteByTargetRequest)(nil), // 17: topfans.notification.DeleteByTargetRequest
|
|
(*DeleteByTargetResponse)(nil), // 18: topfans.notification.DeleteByTargetResponse
|
|
(*structpb.Struct)(nil), // 19: google.protobuf.Struct
|
|
(*common.BaseResponse)(nil), // 20: topfans.common.BaseResponse
|
|
}
|
|
var file_notification_proto_depIdxs = []int32{
|
|
19, // 0: topfans.notification.Notification.data:type_name -> google.protobuf.Struct
|
|
1, // 1: topfans.notification.Notification.actors:type_name -> topfans.notification.ActorPreview
|
|
19, // 2: topfans.notification.CreateNotificationRequest.data:type_name -> google.protobuf.Struct
|
|
20, // 3: topfans.notification.CreateNotificationResponse.base:type_name -> topfans.common.BaseResponse
|
|
20, // 4: topfans.notification.GetNotificationsResponse.base:type_name -> topfans.common.BaseResponse
|
|
0, // 5: topfans.notification.GetNotificationsResponse.items:type_name -> topfans.notification.Notification
|
|
20, // 6: topfans.notification.GetUnreadCountResponse.base:type_name -> topfans.common.BaseResponse
|
|
7, // 7: topfans.notification.GetUnreadCountResponse.counts:type_name -> topfans.notification.UnreadCount
|
|
20, // 8: topfans.notification.MarkAsReadResponse.base:type_name -> topfans.common.BaseResponse
|
|
20, // 9: topfans.notification.MarkAsReadByTargetResponse.base:type_name -> topfans.common.BaseResponse
|
|
20, // 10: topfans.notification.MarkAllAsReadResponse.base:type_name -> topfans.common.BaseResponse
|
|
20, // 11: topfans.notification.DeleteNotificationResponse.base:type_name -> topfans.common.BaseResponse
|
|
20, // 12: topfans.notification.DeleteByTargetResponse.base:type_name -> topfans.common.BaseResponse
|
|
2, // 13: topfans.notification.NotificationService.CreateNotification:input_type -> topfans.notification.CreateNotificationRequest
|
|
4, // 14: topfans.notification.NotificationService.GetNotifications:input_type -> topfans.notification.GetNotificationsRequest
|
|
6, // 15: topfans.notification.NotificationService.GetUnreadCount:input_type -> topfans.notification.GetUnreadCountRequest
|
|
9, // 16: topfans.notification.NotificationService.MarkAsRead:input_type -> topfans.notification.MarkAsReadRequest
|
|
11, // 17: topfans.notification.NotificationService.MarkAsReadByTarget:input_type -> topfans.notification.MarkAsReadByTargetRequest
|
|
13, // 18: topfans.notification.NotificationService.MarkAllAsRead:input_type -> topfans.notification.MarkAllAsReadRequest
|
|
15, // 19: topfans.notification.NotificationService.DeleteNotification:input_type -> topfans.notification.DeleteNotificationRequest
|
|
17, // 20: topfans.notification.NotificationService.DeleteByTarget:input_type -> topfans.notification.DeleteByTargetRequest
|
|
3, // 21: topfans.notification.NotificationService.CreateNotification:output_type -> topfans.notification.CreateNotificationResponse
|
|
5, // 22: topfans.notification.NotificationService.GetNotifications:output_type -> topfans.notification.GetNotificationsResponse
|
|
8, // 23: topfans.notification.NotificationService.GetUnreadCount:output_type -> topfans.notification.GetUnreadCountResponse
|
|
10, // 24: topfans.notification.NotificationService.MarkAsRead:output_type -> topfans.notification.MarkAsReadResponse
|
|
12, // 25: topfans.notification.NotificationService.MarkAsReadByTarget:output_type -> topfans.notification.MarkAsReadByTargetResponse
|
|
14, // 26: topfans.notification.NotificationService.MarkAllAsRead:output_type -> topfans.notification.MarkAllAsReadResponse
|
|
16, // 27: topfans.notification.NotificationService.DeleteNotification:output_type -> topfans.notification.DeleteNotificationResponse
|
|
18, // 28: topfans.notification.NotificationService.DeleteByTarget:output_type -> topfans.notification.DeleteByTargetResponse
|
|
21, // [21:29] is the sub-list for method output_type
|
|
13, // [13:21] is the sub-list for method input_type
|
|
13, // [13:13] is the sub-list for extension type_name
|
|
13, // [13:13] is the sub-list for extension extendee
|
|
0, // [0:13] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_notification_proto_init() }
|
|
func file_notification_proto_init() {
|
|
if File_notification_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_notification_proto_rawDesc), len(file_notification_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 19,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_notification_proto_goTypes,
|
|
DependencyIndexes: file_notification_proto_depIdxs,
|
|
MessageInfos: file_notification_proto_msgTypes,
|
|
}.Build()
|
|
File_notification_proto = out.File
|
|
file_notification_proto_goTypes = nil
|
|
file_notification_proto_depIdxs = nil
|
|
}
|