暂存一下,防止丢失
This commit is contained in:
10
internal/application/shop/recipient.go
Normal file
10
internal/application/shop/recipient.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package shop
|
||||
|
||||
import "context"
|
||||
|
||||
// NotificationRecipientResolver 定义按店铺解析当前可用后台通知接收人的 Port。
|
||||
//
|
||||
// 实现只返回稳定账号 ID;无可用接收人是正常结果,不应触发无限重试。
|
||||
type NotificationRecipientResolver interface {
|
||||
ResolveNotificationRecipients(ctx context.Context, shopID uint) ([]uint, error)
|
||||
}
|
||||
Reference in New Issue
Block a user