Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
perxis-proto
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
perxis
perxis-proto
Merge requests
!60
API Сервиса Mailbox
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
API Сервиса Mailbox
feature/2767-MailboxService
into
master
Overview
21
Commits
13
Pipelines
0
Changes
1
Merged
Pavel Antonov
requested to merge
feature/2767-MailboxService
into
master
9 months ago
Overview
12
Commits
13
Pipelines
0
Changes
1
Linked
https://git.perx.ru/perxis/perxis/-/issues/2767
Описание
Добавлен API для сервиса Mailbox
Edited
9 months ago
by
Anton Sattarov
0
0
Merge request reports
Compare
version 1
version 11
b2af29a7
9 months ago
version 10
b84b135f
9 months ago
version 9
ba427a9e
9 months ago
version 8
14bbdae3
9 months ago
version 7
9984e922
9 months ago
version 6
7e9dab6a
9 months ago
version 5
24e0d8f3
9 months ago
version 4
4d3ae5d0
9 months ago
version 3
2506dc11
9 months ago
version 2
fcab111d
9 months ago
version 1
0c2b3d16
9 months ago
master (base)
and
version 2
latest version
64825ffa
13 commits,
9 months ago
version 11
b2af29a7
12 commits,
9 months ago
version 10
b84b135f
11 commits,
9 months ago
version 9
ba427a9e
9 commits,
9 months ago
version 8
14bbdae3
8 commits,
9 months ago
version 7
9984e922
7 commits,
9 months ago
version 6
7e9dab6a
6 commits,
9 months ago
version 5
24e0d8f3
5 commits,
9 months ago
version 4
4d3ae5d0
4 commits,
9 months ago
version 3
2506dc11
3 commits,
9 months ago
version 2
fcab111d
2 commits,
9 months ago
version 1
0c2b3d16
1 commit,
9 months ago
Show latest version
1 file
+
17
−
14
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
proto/notifications/notification.proto
+
17
−
14
View file @ fcab111d
Edit in single-file editor
Open in Web IDE
Show full file
@@ -4,34 +4,37 @@ import "google/protobuf/empty.proto";
import
"common/common.proto"
;
import
"google/protobuf/timestamp.proto"
;
option
go_package
=
"git.perx.ru/perxis/perxis-go/proto/
notifications;notifications
"
;
option
go_package
=
"git.perx.ru/perxis/perxis-go/proto/
mailbox;mailbox
"
;
package
notifications
;
package
mailbox
;
// Сообщение для уведомления
message
Notification
{
message
Message
{
string
id
=
1
;
// Уникальный идентификатор уведомления
string
recipients
=
2
;
// Идентификатор пользователя или сервиса получателя
string
title
=
3
;
// Заголовок уведомления
string
message
=
4
;
// Текст уведомления
google.protobuf.Timestamp
created_at
=
5
;
// Время создания
bool
is_read
=
6
;
// Статус прочтения
string
object
=
2
;
// Идентификатор объекта события
string
from
=
3
;
// Идентификатор отправителя пользователя/сервиса/подсистемы
repeated
string
to
=
4
;
// Идентификатор получателя пользователя/сервиса/подсистемы
string
title
=
5
;
// Заголовок уведомления
string
message
=
6
;
// Текст уведомления
google.protobuf.Timestamp
created_at
=
7
;
// Время создания
bool
is_read
=
8
;
// Статус прочтения
}
// Отправить уведомление
message
SendRequest
{
Notification
notification
=
1
;
Message
message
=
1
;
}
// Запрос на получение уведомлений
message
Find
Request
{
message
List
Request
{
string
recipient
=
1
;
common.FindOptions
opts
=
2
;
}
// Ответ на получение уведомлений
message
Find
Response
{
repeated
Notification
notifications
=
1
;
message
List
Response
{
repeated
Message
notifications
=
1
;
}
// Пометка уведомлений как прочитанных
@@ -41,13 +44,13 @@ message MarkAsReadRequest {
}
// Сервис уведомлений
service
Notifications
{
service
Mailbox
{
// Отправка уведомления
rpc
Send
(
SendRequest
)
returns
(
google.protobuf.Empty
)
{};
// Получение уведомлений, поле recipients в Notification всегда содержит только получателя из запроса
rpc
List
(
Find
Request
)
returns
(
Find
Response
);
rpc
List
(
List
Request
)
returns
(
List
Response
);
// Пометка уведомлений как прочитанных
rpc
MarkAsRead
(
MarkAsReadRequest
)
returns
(
google.protobuf.Empty
)
{};
Loading