- more interface and const added.

This commit is contained in:
gazebo
2018-07-10 13:28:22 +08:00
parent 7c54e7da92
commit 5702df37b0
8 changed files with 217 additions and 14 deletions

View File

@@ -1,6 +1,8 @@
package elmapi
const (
OrderStatusFake = "fake"
OrderStatusPending = "pending"
OrderStatusUnprocessed = "unprocessed"
OrderStatusRefunding = "refunding"
@@ -22,6 +24,27 @@ const (
CancelOrderTypeNotSatisfiedDeliveryRequirement = "notSatisfiedDeliveryRequirement"
)
const (
RefundStatusNoRefund = "noRefund"
RefundStatusApplied = "applied"
RefundStatusRejected = "rejected"
RefundStatusArbitrating = "arbitrating"
RefundStatusFailed = "failed"
RefundStatusSuccessful = "successful"
)
const (
RoleOrderUser = 1
RoleSystem = 2
RoleMerchert = 3
RoleCustomerService = 4
RoleOpenPlatform = 5
RoleSMS = 6
RolePrinter = 7
RoleRiskController = 8
RoleOrderFinished = 9
)
func (a *API) GetOrder(orderID string) (map[string]interface{}, error) {
result, err := a.AccessAPI("eleme.order.getOrder", map[string]interface{}{
"orderId": orderID,