rename SlackEmoji to just Emoji

This commit is contained in:
c9s 2024-11-15 10:57:31 +08:00
parent af3a105e70
commit 4dc04e9bb9
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -28,7 +28,7 @@ const (
DepositCredited = DepositStatus("credited")
)
func (s DepositStatus) SlackEmoji() string {
func (s DepositStatus) Emoji() string {
switch s {
case DepositPending:
return "⏳"
@ -121,7 +121,7 @@ func (d *Deposit) SlackAttachment() slack.Attachment {
if len(d.Status) > 0 {
fields = append(fields, slack.AttachmentField{
Title: "Status",
Value: string(d.Status) + " " + d.Status.SlackEmoji(),
Value: string(d.Status) + " " + d.Status.Emoji(),
Short: false,
})
}