xlb-main-login
Version:
``` yarn install ```
230 lines (203 loc) • 5.19 kB
JavaScript
import { wei_url, default_api } from './config'
import { axios } from '@/utils/request'
//获取所有关键词信息
export function getAllreply(params) {
return axios({
url: wei_url + '/demo-wx-config/v1/keyword/',
method: 'get',
params,
})
}
//编辑关键词信息
export function getreply() {
return axios({
url: wei_url + '/demo-wx-config/v1/follow/',
method: 'get',
})
}
//编辑关键词信息
export function getreplys(id) {
return axios({
url: wei_url + '/demo-wx-config/v1/keyword/' + id + '/',
method: 'get',
})
}
//保存关键词信息
export function savereply(data) {
return axios({
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
url: wei_url + '/demo-wx-config/v1/follow/',
method: 'post',
data,
})
}
//保存关键词信息
export function savereplys(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-wx-config/v1/keyword/',
method: 'post',
data,
})
}
//更新关键词信息
export function savereplyss(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-wx-config/v1/keyword/',
method: 'put',
data,
})
}
//删除关键词信息
export function deletereplay(id) {
return axios({
url: wei_url + '/demo-wx-config/v1/keyword/' + id + '/',
method: 'delete',
})
}
//自动回复上传图片
export function uploadBasicImage(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-utils/v1/file/config/f/file/' + '&send=1',
method: 'post',
data,
})
}
//自动回复上传图文
export function uploadAutoTuWenImage(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-utils/v1/file/config/f/file/',
method: 'post',
data,
})
}
//关键词上传图片
export function uploadKeywordImage(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-utils/v1/file/config/key/file/' + '&send=1',
method: 'post',
data,
})
}
//关键词上传图文
export function uploadKeywordTuWenImage(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-utils/v1/file/config/key/file/',
method: 'post',
data,
})
}
//下载二维码
export function getcustomqrcode(id) {
return axios({
url: wei_url + '/demo-wx-config/v1/keyword/' + id + '/qr',
method: 'get',
})
}
//获取sop列表
export function getsoplist(params) {
return axios({
url: wei_url + '/demo-pub/v1/sop/',
method: 'get',
params,
})
}
//开启关闭
export function statussoplist(id, type) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-pub/v1/sop/' + id + '/enable' + '?enable=' + type,
method: 'put',
})
}
//新增sop
export function addsop(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-pub/v1/sop/',
method: 'post',
data,
})
}
//编辑sop
export function editsop(data) {
return axios({
headers: {
'Content-Type': 'application/json;charset=UTF-8',
},
url: wei_url + '/demo-pub/v1/sop/',
method: 'put',
data,
})
}
//查询sop
export function looksop(id) {
return axios({
url: wei_url + '/demo-pub/v1/sop/' + id + '/',
method: 'get',
})
}
//删除sop
export function delsop(id) {
return axios({
url: wei_url + '/demo-pub/v1/sop/' + id + '/',
method: 'delete',
})
}
//企业微信sop
//企业微信sop
//企业微信sop
//获取sop列表
export function wechatgetsoplist(params) {
return axios({
url: wei_url + '/demo-wechat-work/v1/wechat/work/group-sop',
method: 'get',
params,
})
}
//新增sop
export function wechataddsop(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-wechat-work/v1/wechat/work/group-sop',
method: 'post',
data,
})
}
//编辑sop
export function wechateditsop(data) {
return axios({
headers: { 'Content-Type': 'application/json;charset=UTF-8' },
url: wei_url + '/demo-wechat-work/v1/wechat/work/group-sop',
method: 'put',
data,
})
}
//查询sop
export function wechatlooksop(id) {
return axios({
url: wei_url + '/demo-wechat-work/v1/wechat/work/group-sop/' + id,
method: 'get',
})
}
//删除sop
export function wechatdelsop(id) {
return axios({
url: wei_url + '/demo-wechat-work/v1/wechat/work/group-sop/' + id + '/',
method: 'delete',
})
}
//开启关闭
export function wechatstatussoplist(id, enable) {
return axios({
url: wei_url + '/demo-wechat-work/v1/wechat/work/group-sop/' + id + '/enable/' + enable,
method: 'put',
})
}