UNPKG

xlb-main-login

Version:

``` yarn install ```

77 lines (68 loc) 1.9 kB
// 黑名单 import { wei_url } from '@/api/config' import { axios } from '@/utils/request' // 黑名单 - 列表 export function blackList(params) { return axios({ url: wei_url + '/demo-wechat-work/v1/custom/black/list', method: 'get', params, }) } // 黑名单 - 移出 export function blackDel(id) { return axios({ url: wei_url + '/demo-wechat-work/v1/custom/black/list/' + id, method: 'delete', }) } // 黑名单 - 移入 export function blackAdd(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-wechat-work/v1/custom/black/list', method: 'post', data, }) } // 黑名单 - 修改 export function blackEdit(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-wechat-work/v1/custom/black/list', method: 'put', data, }) } // 黑名单 - 回显 export function blackDetail(id) { return axios({ url: wei_url + '/demo-wechat-work/v1/custom/black/list/' + id, method: 'get', }) } // 黑名单 - 导出 export function blackExport(params) { return axios({ url: wei_url + '/demo-wechat-work/v1/custom/black/list/export', method: 'get', params, }) } // 数据分析 - 是否限制按钮 export function isLimit(userId, eventId) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-wechat-work/v1/wechat/work/data/' + eventId + '/ban/add?userId=' + userId, method: 'post', }) } // 数据分析 - 是否限制按钮 export function isTable(data) { return axios({ headers: { 'Content-Type': 'application/json;charset=UTF-8' }, url: wei_url + '/demo-wechat-work/v1/fission/lottery/analysis/ban/add', method: 'post', data, }) }