UNPKG

xlb-main-login

Version:

``` yarn install ```

150 lines (142 loc) 5.05 kB
import { wei_url } from './config' import { axios } from '@/utils/request' // 客户群列表 export function getgrouplist(customType, params) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/', method: 'get', params, }) } //通知群成员发送 export function getgroupsend(customType, id) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/' + id + '/send', method: 'post', }) } //删除群成员发送 export function delgroupsend(customType, id) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/' + id, method: 'delete', }) } // 192.168.0.145 //新增/编辑群成员发送 export function addgrouplisst(customType, data, id) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/', method: id ? 'put' : 'post', data, }) } //编辑群成员发送 export function editgrouplisst(customType, data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/', method: 'put', data, }) } //详情群成员发送 export function detailgrouplisst(customType, id) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/' + id, method: 'get', }) } // 客户群接收详情 export function getgroupChatListall(id, params) { return axios({ url: wei_url + '/demo-wx-sys/v1/event/', method: 'get', params, }) } // 客户群接收详情 export function getgroupChatListbaseinfo() { return axios({ url: wei_url + '/demo-wx-sys/v1/event/', method: 'get', }) } // 客户群发送结果result export function resultgroupChatListbaseinfo(customType, id,params) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/' + id + '/result', method: 'get', params }) } // 客户详情接口 http://test.api.xiaoliebian.com/api/demo-wechat-work/v1/wechat/work/custom-send-msg/{customType}/{id}/receiveResult export function customerinfo(customType, id,params) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/' + id + '/receiveResult', method: 'get', params }) } // 成员详情接口 http://test.api.xiaoliebian.com/api/demo-wechat-work/v1/wechat/work/custom-send-msg/{customType}/{id}/staffResult export function memberinfo(customType, params,id) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/'+ '/staffResult?id='+id, method: 'get', params }) } // 客户群发送查看 export function resultgroupChatListfind(customType, data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/custom/count', method: 'post', data, }) } // http://test.api.xiaoliebian.com/api/demo-wechat-work/v1/wechat/work/custom-send-msg/{customType}/{id}/e export function memberExport(params,customType,id) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/' + id + '/e', method: 'get', params, }) } export function customerExport(params,customType,id) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/' + id + '/e', method: 'get', params, }) } // 同步成员接口http://test.api.xiaoliebian.com/api/demo-wechat-work/v1/wechat/work/custom-send-msg/{customType}/{id}/syncStaff export function syncStaff(customType,id) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/' + id + '/syncStaff', method: 'post', }) } export function syncCustom(customType,id) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/' + id + '/syncCustom', method: 'post', }) } export function resultInfo(customType,id) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/' + id + '/resultSingle', method: 'get', }) } // const Url = 'http://192.168.1.145:8082/v1/wechat/work' export function revoke(customType,id) { return axios({ url: wei_url + '/demo-wechat-work/v1/wechat/work/custom-send-msg/' + customType + '/' + id + '/cancel', method: 'get', }) }