| ¶Ô±ÈÐÂÎļþ | 
|  |  |  | 
|---|
|  |  |  | import request from '@/utils/request' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import { encryptData } from '@/utils/request/decryption.js' | 
|---|
|  |  |  | // æ¥è¯¢ | 
|---|
|  |  |  | export function fetchTree (data) { | 
|---|
|  |  |  | return request.post('/system/menu/treeList', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // æ°å»º | 
|---|
|  |  |  | export function create (data) { | 
|---|
|  |  |  | return request.post('/system/menu/create', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // ä¿®æ¹ | 
|---|
|  |  |  | export function updateById (data) { | 
|---|
|  |  |  | return request.post('/system/menu/updateById', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // ä¿®æ¹ç¶æ | 
|---|
|  |  |  | export function updateStatus (data) { | 
|---|
|  |  |  | return request.post('/system/menu/updateStatus', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // å é¤ | 
|---|
|  |  |  | export function deleteById (id) { | 
|---|
|  |  |  | return request.get(`/system/menu/delete/${id}`) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // æ¹éå é¤ | 
|---|
|  |  |  | export function deleteByIdInBatch (ids) { | 
|---|
|  |  |  | return request.get('/system/menu/delete/batch', { | 
|---|
|  |  |  | params: { | 
|---|
|  |  |  | ids | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // æ¥è¯¢èåæ  | 
|---|
|  |  |  | export function fetchMenuTree () { | 
|---|
|  |  |  | return request.get('/system/menu/treeNodes') | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // æåº | 
|---|
|  |  |  | export function sort (data) { | 
|---|
|  |  |  | return request.post('/system/menu/updateSort', data) | 
|---|
|  |  |  | } | 
|---|