natsio/subject/order.go

28 lines
991 B
Go
Raw Normal View History

2022-08-20 14:21:51 +00:00
package subject
2022-08-26 08:56:36 +00:00
import "fmt"
2022-08-20 14:21:51 +00:00
2022-08-26 08:56:36 +00:00
func getOrderValue(val string) string {
return fmt.Sprintf("%s.%s", prefixes.Order, val)
}
var Order = struct {
2023-03-27 08:10:21 +00:00
UpdateORStatus string
GetUserTotalWarningOrders string
CancelDelivery string
ChangeDeliveryStatus string
UpdateLogisticInfoFailed string
ORNotUpdateStatus string
GetSupplierOrders string
GetSupplierCash string
2022-08-26 08:56:36 +00:00
}{
2023-03-27 08:10:21 +00:00
UpdateORStatus: getOrderValue("update_outbound_request_status"),
GetUserTotalWarningOrders: getOrderValue("get_user_total_warning_orders"),
CancelDelivery: getOrderValue("cancel_delivery"),
ChangeDeliveryStatus: getOrderValue("change_delivery_status"),
UpdateLogisticInfoFailed: getOrderValue("update_logistic_info_failed"),
ORNotUpdateStatus: getOrderValue("outbound_request_not_update_status"),
GetSupplierOrders: getOrderValue("get_supplier_orders"),
GetSupplierCash: getOrderValue("get_supplier_cash"),
2022-08-26 08:56:36 +00:00
}