22 lines
673 B
Go
22 lines
673 B
Go
package subject
|
|
|
|
import "fmt"
|
|
|
|
func getOrderValue(val string) string {
|
|
return fmt.Sprintf("%s.%s", prefixes.Order, val)
|
|
}
|
|
|
|
var Order = struct {
|
|
UpdateORStatus string
|
|
CancelDelivery string
|
|
ChangeDeliveryStatus string
|
|
UpdateLogisticInfoFailed string
|
|
ORNotUpdateStatus string
|
|
}{
|
|
UpdateORStatus: getOrderValue("update_outbound_request_status"),
|
|
CancelDelivery: getOrderValue("cancel_delivery"),
|
|
ChangeDeliveryStatus: getOrderValue("change_delivery_status"),
|
|
UpdateLogisticInfoFailed: getOrderValue("update_logistic_info_failed"),
|
|
ORNotUpdateStatus: getOrderValue("outbound_request_not_update_status"),
|
|
}
|