| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- import request from '@/router/axios';
- export const getList = (current, size, params) => {
- return request({
- url: '/api/cyzh-enterprise/staff/list',
- method: 'get',
- params: {
- ...params,
- current,
- size,
- }
- })
- }
- export const getDetail = (id) => {
- return request({
- url: '/api/cyzh-enterprise/staff/detail',
- method: 'get',
- params: {
- id
- }
- })
- }
- export const remove = (ids) => {
- return request({
- url: '/api/cyzh-enterprise/staff/remove',
- method: 'post',
- params: {
- ids,
- }
- })
- }
- export const add = (row) => {
- return request({
- url: '/api/cyzh-enterprise/staff/submit',
- method: 'post',
- data: row
- })
- }
- export const update = (row) => {
- return request({
- url: '/api/cyzh-enterprise/staff/submit',
- method: 'post',
- data: row
- })
- }
- export const pushUserFace = (row) => {
- return request({
- url: '/api/cyzh-enterprise/staff/pushUserFace',
- method: 'post',
- data: row
- })
- }
- export const pushUserFaceBatch = (ids) => {
- return request({
- url: '/api/cyzh-enterprise/staff/pushUserFaceBatch',
- method: 'post',
- params: {
- ids,
- }
- })
- }
|