define([ "kefu-assets/libs/http" ], function (http) { return { record(params) { return http.get("/kefu/dashboard/user_record", params); }, logout() { return http.post("/kefu/dashboard/logout"); }, getToken() { return http.get("/kefu/dashboard/get_token"); }, serviceList(params) { return http.get("/kefu/dashboard/get_chat_list", params); }, userInfo(uid) { return http.get("/kefu/user/get_user_info", { uid }); }, getorderList(params) { return http.get("/kefu/order/get_order_list", params); }, userGroupApi() { return http.get("/kefu/user/get_user_group"); }, productCart(params) { return http.get("/kefu/dashboard/get_product_cart", params); }, uploadImg(data) { return http.post("/kefu/upload/upload", data); }, serviceCate(params) { return http.get("/kefu/speech/cate", params); }, speeChcraft(params) { return http.get("/kefu/speech/list", params); }, addKefuSpeechCate(data) { return http.post("/kefu/speech/save_cate", data); }, addSpeeChcraft(data) { return http.post("/kefu/speech/save", data); }, delSpeech(id) { return http.post("/kefu/speech/delete", { id }); }, delSpeechCate(id) { return http.post("/kefu/speech/delete_cate", { id }); }, putGroupApi(uid, id) { return http.post("/kefu/user/set_group", { uid, id }); }, userLabel(uid) { return http.get("/kefu/user/get_label", { uid }); }, userLabelPut(data) { return http.post("/kefu/user/save_user_label", data); }, orderRemark(data) { return http.post("/kefu/order/save_order_remark", data); }, requestRefundOrder(id, type) { return http.post("/kefu/order/order_refund", { id, type }); }, setMsgIsRead(uid) { return http.post("/kefu/dashboard/set_msg_isread", { uid }); }, transferList(params) { return http.get("/kefu/dashboard/transfer_list", params); } }; });