diff --git a/src/api/system/cpUser.js b/src/api/system/cpUser.js new file mode 100644 index 0000000..2c2cde6 --- /dev/null +++ b/src/api/system/cpUser.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 创建企业微信成员 +export function createCpUser(data) { + return request({ + url: '/system/cp-user/create', + method: 'post', + data: data + }) +} + +// 更新企业微信成员 +export function updateCpUser(data) { + return request({ + url: '/system/cp-user/update', + method: 'put', + data: data + }) +} + +// 删除企业微信成员 +export function deleteCpUser(id) { + return request({ + url: '/system/cp-user/delete?id=' + id, + method: 'delete' + }) +} + +// 获得企业微信成员 +export function getCpUser(id) { + return request({ + url: '/system/cp-user/get?id=' + id, + method: 'get' + }) +} + +// 获得企业微信成员分页 +export function getCpUserPage(query) { + return request({ + url: '/system/cp-user/page', + method: 'get', + params: query + }) +} + +// 导出企业微信成员 Excel +export function exportCpUserExcel(query) { + return request({ + url: '/system/cp-user/export-excel', + method: 'get', + params: query, + responseType: 'blob' + }) +} diff --git a/src/views/system/cpUser/index.vue b/src/views/system/cpUser/index.vue new file mode 100644 index 0000000..f3b167a --- /dev/null +++ b/src/views/system/cpUser/index.vue @@ -0,0 +1,294 @@ + + +