2024-08-29 20:38:48 +08:00
|
|
|
package utils
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
v2 "gitea.timerzz.com/kedaya_haitao/common/structs/v2"
|
|
|
|
)
|
|
|
|
|
2024-09-05 16:28:46 +08:00
|
|
|
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)
|
|
|
|
}
|