natsio/subject/product.go

23 lines
628 B
Go
Raw Normal View History

2022-12-26 07:08:14 +00:00
package subject
import "fmt"
// getSegmentValue ...
func getProductValue(val string) string {
return fmt.Sprintf("%s.%s", prefixes.Product, val)
}
var Product = struct {
2023-01-09 08:56:46 +00:00
ApplyRequest string
2023-03-01 07:40:34 +00:00
CreateRequestStep string
2023-01-09 08:56:46 +00:00
ProcessApplyRequest string
2023-03-01 03:42:54 +00:00
RequestChangeStatus string
2023-10-12 02:14:53 +00:00
WebhookStockUpdate string
2022-12-26 07:08:14 +00:00
}{
2023-01-09 08:56:46 +00:00
ApplyRequest: getProductValue("apply_request"),
2023-03-01 07:40:34 +00:00
CreateRequestStep: getProductValue("create_request_step"),
2023-01-09 08:56:46 +00:00
ProcessApplyRequest: getProductValue("process_apply_request"),
2023-03-01 03:42:54 +00:00
RequestChangeStatus: getProductValue("request_change_status"),
2023-10-12 02:14:53 +00:00
WebhookStockUpdate: getProductValue("webhook_stock_update"),
2022-12-26 07:08:14 +00:00
}