mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
fix: some detail for messages
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
class Notice::Write::ChangeStatusService < Notice::Write::ClientService
|
||||
attr_accessor :notification_ids, :receiver, :status
|
||||
attr_accessor :notification_ids, :receiver, :type, :status
|
||||
|
||||
def initialize(notification_ids, receiver, status=2)
|
||||
def initialize(notification_ids, receiver, type=-1, status=2)
|
||||
@notification_ids = notification_ids
|
||||
@receiver = receiver
|
||||
@type = type
|
||||
@status = status
|
||||
end
|
||||
|
||||
@@ -22,6 +23,7 @@ class Notice::Write::ChangeStatusService < Notice::Write::ClientService
|
||||
Hash.new.merge(data: {
|
||||
notificationIds: request_notification_ids,
|
||||
receiver: receiver,
|
||||
type: type,
|
||||
status: status
|
||||
}.stringify_keys)
|
||||
end
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
class Notice::Write::DeleteService < Notice::Write::ClientService
|
||||
attr_accessor :notification_ids, :receiver
|
||||
attr_accessor :notification_ids, :receiver, :type
|
||||
|
||||
def initialize(notification_ids, receiver)
|
||||
def initialize(notification_ids, receiver, type=-1)
|
||||
@notification_ids = notification_ids
|
||||
@receiver = receiver
|
||||
@type = type
|
||||
end
|
||||
|
||||
def call
|
||||
@@ -20,7 +21,8 @@ class Notice::Write::DeleteService < Notice::Write::ClientService
|
||||
def request_params
|
||||
Hash.new.merge(data: {
|
||||
notificationIds: request_notification_ids,
|
||||
receiver: receiver
|
||||
receiver: receiver,
|
||||
type: type
|
||||
}.stringify_keys)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user