feat(grpc): add alert other fields. (#327)
This commit is contained in:
@@ -66,9 +66,16 @@ func (s *Server) Send(ctx context.Context, in *proto.NotificationRequest) (*prot
|
||||
|
||||
if in.Alert != nil {
|
||||
notification.Alert = gorush.Alert{
|
||||
Title: in.Alert.Title,
|
||||
Body: in.Alert.Body,
|
||||
Subtitle: in.Alert.Subtitle,
|
||||
Title: in.Alert.Title,
|
||||
Body: in.Alert.Body,
|
||||
Subtitle: in.Alert.Subtitle,
|
||||
Action: in.Alert.Action,
|
||||
ActionLocKey: in.Alert.Action,
|
||||
LaunchImage: in.Alert.LaunchImage,
|
||||
LocArgs: in.Alert.LocArgs,
|
||||
LocKey: in.Alert.LocKey,
|
||||
TitleLocArgs: in.Alert.TitleLocArgs,
|
||||
TitleLocKey: in.Alert.TitleLocKey,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user