You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
55 lines
1.6 KiB
55 lines
1.6 KiB
import proxy from "../proxy"; |
|
const userFactor = { |
|
//dnvn |
|
list: |
|
(data = {}) => |
|
async (dispatch) => |
|
await proxy.get("userFactor/list", data, { dispatch }), |
|
payment: |
|
(data = {}, data2 = {}) => |
|
async (dispatch) => { |
|
await proxy.post("userFactor/payment", data, { dispatch }); |
|
}, |
|
add: |
|
(data = {}, data2 = {}) => |
|
async (dispatch) => { |
|
await proxy.post("userFactor/add", data, { dispatch }); |
|
await proxy.get("userFactor/list", data2, { dispatch }); |
|
}, |
|
del: |
|
(data = {}, data2 = {}) => |
|
async (dispatch) => { |
|
await proxy.delete("userFactor/delete", data); |
|
await proxy.get("userFactor/list", data2, { dispatch }); |
|
}, |
|
|
|
//vod |
|
vodPayment: |
|
(data1 = {}, data2 = {}) => |
|
async (dispatch) => { |
|
await proxy.post("userProduct/addVOD", data1, { dispatch }); |
|
await proxy.post("userFactor/paymentVOD", data2, { dispatch }); |
|
}, |
|
verify: |
|
(data = {}) => |
|
async (dispatch) => |
|
await proxy.post("userFactor/verifyVOD", data, { dispatch }), |
|
info: |
|
(data = {}) => |
|
async (dispatch) => |
|
await proxy.get("userFactor/info", data, { dispatch }), |
|
update: |
|
(data = {}, data2 = {}) => |
|
async (dispatch) => { |
|
await proxy.put("userFactor/update", data, { dispatch }); |
|
await proxy.get("userFactor/info", data2, { dispatch }); |
|
}, |
|
deleteUserOffCode: |
|
(data = {}, data2 = {}) => |
|
async (dispatch) => { |
|
await proxy.delete("userFactor/deleteUserOffCode", data, { dispatch }); |
|
await proxy.get("userFactor/info", data2, { dispatch }); |
|
}, |
|
}; |
|
|
|
export default userFactor;
|
|
|