feat(grpc): add alert other fields. (#327)

This commit is contained in:
Bo-Yi Wu
2018-01-06 15:03:21 +08:00
committed by GitHub
parent 230cfb23fa
commit ffd78ffaec
6 changed files with 345 additions and 37 deletions

View File

@@ -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,
}
}