我遇到的问题是我正在使用2个json文件来映射事件的状态,而我不确定如何在ramda中执行此操作
const input1 = {
data: {
memberId: 12345,
orderStatus: pack
},
Time: '2019-08-12T08:55:28Z',
statusType: 'order',
}
const input2 = {
data: {
memberId: 12345,
deliveryStatus: dispatch
},
Time: '2019-08-12T08:55:28Z',
statusType: 'delivery',
}
const input3 = {
data: {
memberId: 12345,
},
Time: '2019-08-12T08:55:28Z',
statusType: 'new',
}
const status = {
'order': {
orderStatus: {
pack: 'order is being pack',
cancelled: 'cancel order'
},
},
'delivery': {
deliveryStatus: {
pending: 'pending',
dispatch: 'order has been delivered'
},
},
'new': 'newly made'
}
谢谢