common/structs/utils/subscribe.go
2024-08-29 20:38:48 +08:00

16 lines
326 B
Go

package utils
import (
"fmt"
v2 "gitea.timerzz.com/kedaya_haitao/common/structs/v2"
)
func ProviderConfigNotifyChannel(providerId v2.ProviderId) string {
return fmt.Sprintf("/provider/%s/cfg", providerId)
}
func SellerConfigNotifyChannel(sellerId v2.SellerId) string {
return fmt.Sprintf("/seller/%s/cfg", sellerId)
}