common/structs/utils/subscribe.go

20 lines
373 B
Go
Raw Normal View History

2024-08-29 20:38:48 +08:00
package utils
import (
"fmt"
v2 "gitea.timerzz.com/kedaya_haitao/common/structs/v2"
)
const (
ProfitRate_Channel = "profit_rate"
)
2024-08-29 20:38:48 +08:00
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)
}