text: import {fetchZwfw} from 'utils/fetch';
  
  export function getWindowList(query) {
      return fetchZwfw({
          url: '/zwfwWindow/list',
          method: 'get',
          params: query
      });
  }
  
  export function createWindow(zwfwWindowUserVo) {
      const data = zwfwWindowUserVo;
      return fetchZwfw({
          url: '/zwfwWindow/add',
          method: 'post',
          data
      })
  }
  
  export function updateWindow(zwfwWindowUserVo) {
      const data = zwfwWindowUserVo;
      return fetchZwfw({
          url: '/zwfwWindow/edit',
          method: 'post',
          data
      })
  }
  
  export function delWindow(ids) {
      const data = {ids};
      return fetchZwfw({
          url: '/zwfwWindow/dels',
          method: 'post',
          data
      })
  }
  export function getAllWindow() {
      return fetchZwfw({
          url: '/zwfwWindow/getAll',
          mothod: 'get'
      });
  }
  
  export function delWindowUser(ids) {
      const data = {ids};
      return fetchZwfw({
          url: '/zwfwWindowUser/delete',
          method: 'post',
          data
      })
  }
  
  export function createUserWindow(windowId, userIds) {
      const data = {windowId, userIds};
      return fetchZwfw({
          url: '/zwfwWindowUser/addList',
          method: 'post',
          data
      })
  }
  
  export function createZwfwWindowItem(zwfwWindowItemVo) {
      const data = zwfwWindowItemVo;
      return fetchZwfw({
          url: '/zwfwWindowItem/add',
          method: 'post',
          data
      })
  }
  
  export function getAllUserWindow(windowId) {
      return fetchZwfw({
          url: '/zwfwWindowUser/getAll',
          method: 'get',
          params: {windowId}
      })
  }
  
  export function getAllItemWindow(windowId) {
      return fetchZwfw({
          url: '/zwfwWindowItem/getAll',
          method: 'get',
          params: {windowId}
      })
  }
  
  export function deleteZwfwWindowItem(windowId, ids) {
      const data = {windowId, ids};
      return fetchZwfw({
          url: '/zwfwWindowItem/delete',
          method: 'post',
          data
      })
  }
  
  
  