123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- import request from '@/utils/request'
- // 查询企微sop列表
- export function listSop(query) {
- return request({
- url: '/qw/sop/list',
- method: 'get',
- params: query
- })
- }
- // 查询企微sop模板列表
- export function listAiChatSop(query) {
- return request({
- url: '/qw/sop/listAiChatSop',
- method: 'get',
- params: query
- })
- }
- export function courseList() {
- return request({
- url: '/qw/sop/courseList',
- method: 'get',
- })
- }
- export function videoList(id) {
- return request({
- url: '/qw/sop/videoList/' + id,
- method: 'get'
- })
- }
- // 查询企微sop详细
- export function getSop(id) {
- return request({
- url: '/qw/sop/' + id,
- method: 'get'
- })
- }
- // 新增企微sop
- export function addSop(data) {
- return request({
- url: '/qw/sop',
- method: 'post',
- data: data
- })
- }
- // 修改企微sop
- export function updateSop(data) {
- return request({
- url: '/qw/sop',
- method: 'put',
- data: data
- })
- }
- //修改企微sop自动创建时间
- export function updateAutoSopTime(data) {
- return request({
- url: '/qw/sop/updateAutoSopTime',
- method: 'post',
- data: data
- })
- }
- //修改状态
- export function updateSopStatus(data) {
- return request({
- url: '/qw/sop/updateSopStatus',
- method: 'post',
- data: data
- })
- }
- // 删除企微sop
- export function delSop(id) {
- return request({
- url: '/qw/sop/' + id,
- method: 'delete'
- })
- }
- //批量执行企微sop
- export function executeSop(ids) {
- return request({
- url: '/qw/sop/executeSop/' + ids,
- method: 'put'
- })
- }
- //批量执行企微sop先改状态
- export function updateStatus(ids) {
- return request({
- url: '/qw/sop/updateStatus/' + ids,
- method: 'get'
- })
- }
- // 导出企微sop
- export function exportSop(query) {
- return request({
- url: '/qw/sop/export',
- method: 'get',
- params: query
- })
- }
- // 导出企微sop
- export function getSopVoiceList(params) {
- return request({
- url: '/qw/sop/getSopVoiceList',
- method: 'get',
- params
- })
- }
- // 修改企微sop
- export function updateSopQwUser(data) {
- return request({
- url: '/qw/sop/updateSopQwUser',
- method: 'post',
- data: data
- })
- }
|