natsio/js/subject/selly.go

28 lines
973 B
Go
Raw Permalink Normal View History

2022-09-23 04:17:03 +00:00
package jssubject
import (
"fmt"
)
// getSellyValue ...
func getSellyValue(val string) string {
return fmt.Sprintf("%s.%s.%s", root, prefixes.Selly, val)
}
// Selly ...
var Selly = struct {
2023-03-02 04:44:13 +00:00
PushNotification string
UpdateSellerAffiliateStatistic string
CheckAnDInsertCashflowBySeller string
2023-03-02 04:46:03 +00:00
SubscriberTopic string
2023-03-02 04:44:13 +00:00
UpdateSellerSavingCampaignStatistic string
2023-03-14 04:34:38 +00:00
GenerateVoucherPromotion string
2022-09-23 04:17:03 +00:00
}{
2023-03-02 04:44:13 +00:00
PushNotification: getSellyValue("push_notifications"),
UpdateSellerAffiliateStatistic: getSellyValue("update_seller_affiliate_statistic"),
CheckAnDInsertCashflowBySeller: getSellyValue("check_and_insert_cashflow_statistic"),
2023-03-02 04:46:03 +00:00
SubscriberTopic: getSellyValue("subscriber_topic"),
2023-03-02 04:44:13 +00:00
UpdateSellerSavingCampaignStatistic: getSellyValue("update_seller_saving_campaign_statistic"),
2023-03-14 04:34:38 +00:00
GenerateVoucherPromotion: getSellyValue("generate_voucher_promotion"),
2022-09-23 04:17:03 +00:00
}