29 lines
523 B
Go
29 lines
523 B
Go
package utils
|
|
|
|
import "jannex/telegram-bot-manager/modules/structs"
|
|
|
|
func GetNotificationIconByType(notificationType uint8) string {
|
|
switch notificationType {
|
|
case 1:
|
|
return NotificationIconSuccess
|
|
case 2:
|
|
return NotificationSymbolInfo
|
|
case 3:
|
|
return NotificationSymbolWarnung
|
|
case 4:
|
|
return NotificationSymbolError
|
|
default:
|
|
return "X"
|
|
}
|
|
}
|
|
|
|
func GetUserIds(list []structs.VerifiedUser) []string {
|
|
var userIds []string
|
|
|
|
for _, v := range list {
|
|
userIds = append(userIds, v.UserId)
|
|
}
|
|
|
|
return userIds
|
|
}
|