jet stream generate voucher promotion
This commit is contained in:
parent
ffe9418671
commit
41b79b4ae8
|
@ -6,9 +6,11 @@ var Selly = struct {
|
||||||
UpdateSellerAffiliateStatistic string
|
UpdateSellerAffiliateStatistic string
|
||||||
CheckAnDInsertCashflowBySeller string
|
CheckAnDInsertCashflowBySeller string
|
||||||
UpdateSellerSavingCampaignStatistic string
|
UpdateSellerSavingCampaignStatistic string
|
||||||
|
GenerateVoucherPromotion string
|
||||||
}{
|
}{
|
||||||
PushNotification: "PULL_PUSH_NOTIFICATION",
|
PushNotification: "PULL_PUSH_NOTIFICATION",
|
||||||
UpdateSellerAffiliateStatistic: "PULL_UPDATE_SELLER_AFFILIATE_STATISTIC",
|
UpdateSellerAffiliateStatistic: "PULL_UPDATE_SELLER_AFFILIATE_STATISTIC",
|
||||||
CheckAnDInsertCashflowBySeller: "PULL_CHECK_AND_INSERT_CASHFLOW_BY_SELLER",
|
CheckAnDInsertCashflowBySeller: "PULL_CHECK_AND_INSERT_CASHFLOW_BY_SELLER",
|
||||||
UpdateSellerSavingCampaignStatistic: "PULL_UPDATE_SELLER_SAVING_CAMPAIGN_STATISTIC",
|
UpdateSellerSavingCampaignStatistic: "PULL_UPDATE_SELLER_SAVING_CAMPAIGN_STATISTIC",
|
||||||
|
GenerateVoucherPromotion: "PULL_GENERATE_VOUCHER_PROMOTION",
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
package jsmodel
|
package jsmodel
|
||||||
|
|
||||||
|
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||||
|
|
||||||
// PushNotification ...
|
// PushNotification ...
|
||||||
type PushNotification struct {
|
type PushNotification struct {
|
||||||
User string `json:"user"`
|
User string `json:"user"`
|
||||||
|
@ -84,3 +86,16 @@ type SellerSavingCampaignStatistic struct {
|
||||||
SavingCampaignCashPending float64 `json:"savingCampaignCashPending"`
|
SavingCampaignCashPending float64 `json:"savingCampaignCashPending"`
|
||||||
SavingCampaignCashCompleted float64 `json:"savingCampaignCashCompleted"`
|
SavingCampaignCashCompleted float64 `json:"savingCampaignCashCompleted"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GenerateVoucherPromotion ...
|
||||||
|
type GenerateVoucherPromotion struct {
|
||||||
|
Cash float64 `json:"cash"`
|
||||||
|
TargetID primitive.ObjectID `json:"targetId"`
|
||||||
|
TargetType string `json:"targetType"`
|
||||||
|
Options GenerateVoucherPromotionOptions `json:"options"`
|
||||||
|
}
|
||||||
|
|
||||||
|
// GenerateVoucherPromotionOptions ...
|
||||||
|
type GenerateVoucherPromotionOptions struct {
|
||||||
|
Title string `json:"title"`
|
||||||
|
}
|
||||||
|
|
|
@ -15,9 +15,11 @@ var Selly = struct {
|
||||||
UpdateSellerAffiliateStatistic string
|
UpdateSellerAffiliateStatistic string
|
||||||
CheckAnDInsertCashflowBySeller string
|
CheckAnDInsertCashflowBySeller string
|
||||||
UpdateSellerSavingCampaignStatistic string
|
UpdateSellerSavingCampaignStatistic string
|
||||||
|
GenerateVoucherPromotion string
|
||||||
}{
|
}{
|
||||||
PushNotification: getSellyValue("push_notifications"),
|
PushNotification: getSellyValue("push_notifications"),
|
||||||
UpdateSellerAffiliateStatistic: getSellyValue("update_seller_affiliate_statistic"),
|
UpdateSellerAffiliateStatistic: getSellyValue("update_seller_affiliate_statistic"),
|
||||||
CheckAnDInsertCashflowBySeller: getSellyValue("check_and_insert_cashflow_statistic"),
|
CheckAnDInsertCashflowBySeller: getSellyValue("check_and_insert_cashflow_statistic"),
|
||||||
UpdateSellerSavingCampaignStatistic: getSellyValue("update_seller_saving_campaign_statistic"),
|
UpdateSellerSavingCampaignStatistic: getSellyValue("update_seller_saving_campaign_statistic"),
|
||||||
|
GenerateVoucherPromotion: getSellyValue("generate_voucher_promotion"),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue