export default {
    system: {
        complaint: {
            url: "/wxapp/user/complaint",
            showLoading: true,
        },
        uploadFile: {
            url: "/wxapp/index/one",
            showLoading: true,
        },
    },
    index: {
        banner: {
            url: "/wxapp/index/banner",
        },
        notify: {
            url: "/wxapp/index/message",
        },
    },
    user: {
        sendCode: {
            url: "/wxapp/public/send",
        },
        openId: {
            url: "/wxapp/public/getopenid",
        },
        register: {
            url: "/wxapp/public/register",
        },
        login: {
            url: "/wxapp/public/login",
        },
        resetPassword: {
            url: "/wxapp/public/passwordReset",
        },
        info: {
            url: "/wxapp/user/getuserinfo",
            auth: true,
        },
        address: {
            list: {
                url: "/wxapp/Useraddress/getalladdress",
                showLoading: true,
                auth: true,
            },
            edit: {
                url: "/wxapp/Useraddress/applyaddress",
                auth: true,
            },
            detail: {
                url: "/wxapp/Useraddress/addressinfo",
                showLoading: true,
                auth: true,
            },
            delete: {
                url: "/wxapp/Useraddress/deleteaddress",
                auth: true,
            }
        }
    },
    service: {
        cart: {
            count: {
                url: "/wxapp/order/myshoppingcarcount",
                auth: true,
            },
            toCart: {
                url: "/wxapp/order/addshoppingcar",
                showLoading: true,
                auth: true,
            },
            add: {
                url: "/wxapp/order/shoppingcarpush",
                auth: true,
            },
            sub: {
                url: "/wxapp/order/shoppingcarsend",
                auth: true,
            },
            delete: {
                url: "/wxapp/order/deleteshoppingcar",
                auth: true,
            },
            list: {
                url: "/wxapp/order/myshoppingcar",
                showLoading: true,
                auth: true,
            },
        },
        insurance: {
            url: "/wxapp/index/getyiwai",
        },
        aftermarket: {
            url: "/wxapp/index/category2",
        },
        hotCate: {
            url: "/wxapp/index/hotcategory",
        },
        cate: {
            url: "/wxapp/index/category1",
        },
        list: {
            url: "/wxapp/index/getcategorybyid"
        },
        detail: {
            url: "/wxapp/index/goodsinfobyid",
            showLoading: true,
        },
        project: {
            url: "/wxapp/project/applyinfo",
            showLoading: true,
            auth: true,
        },
        business: {
            url: "/wxapp/project/applyinfob",
            showLoading: true,
            auth: true,
        },
        afterMarket: {
            url: "/wxapp/project/applyguarantee",
            showLoading: true,
            auth: true,
        },
        distribution: {
            config: {
                url: "/wxapp/index/getdistributionmoney"
            },
            carType: {
                url: "/wxapp/index/getallcar"
            },
        }
    },
    order: {
        create: {
            t1: {
                url: "/wxapp/order/submitordera",
                auth: true,
            },
            t2: {
                url: "/wxapp/orderb/addorder",
                auth: true,
            },
            t3: {
                url: "/wxapp/project/distribution",
                auth: true,
            }
        },
        pay: {
            t1: {
                url: "/wxapp/wxpay/payordera",
                showLoading: true,
                auth: true,
            },
            t2: {
                url: "/wxapp/wxpay/payorderc",
                showLoading: true,
                auth: true,
            },
            t3: {
                url: "/wxapp/wxpay/payorderd",
                showLoading: true,
                auth: true,
            }
        },
        list: {
            // 购买订单
            t1: {
                url: "/wxapp/order/getmyorder",
                showLoading: true,
                auth: true,
            },
            // 报/议价订单
            t2: {
                url: "/wxapp/orderb/getmyorderblist",
                showLoading: true,
                auth: true,
            },
            // 货运订单
            t3: {
                url: "/wxapp/project/freightorder",
                showLoading: true,
                auth: true,
            },
        },
        detail: {
            // 购买订单
            t1: {
                url: "/user/workerorderb/orderinfo",
                showLoading: true,
                auth: true,
            },
            // 报/议价订单
            t2: {
                url: ""
            },
            // 货运订单
            t3: {
                url: ""
            },
        }
    }
}
