| 对比新文件 | 
|  |  |  | 
|---|
|  |  |  | import request from '@/utils/request' | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import { encryptData } from '@/utils/request/decryption.js' | 
|---|
|  |  |  | // 鏌ヨ | 
|---|
|  |  |  | export function fetchList (data) { | 
|---|
|  |  |  | return request.post('/system/user/page', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 鏂板缓 | 
|---|
|  |  |  | export function create (data) { | 
|---|
|  |  |  | return request.post('/system/user/create', data, { | 
|---|
|  |  |  | trim: true | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 淇敼 | 
|---|
|  |  |  | export function updateById (data) { | 
|---|
|  |  |  | return request.post('/system/user/updateById', data, { | 
|---|
|  |  |  | trim: true | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 鍒犻櫎 | 
|---|
|  |  |  | export function deleteById (id) { | 
|---|
|  |  |  | return request.get(`/system/user/delete/${id}`) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 鎵归噺鍒犻櫎 | 
|---|
|  |  |  | export function deleteByIdInBatch (ids) { | 
|---|
|  |  |  | return request.get('/system/user/delete/batch', { | 
|---|
|  |  |  | params: { | 
|---|
|  |  |  | ids | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 閰嶇疆鐢ㄦ埛瑙掕壊 | 
|---|
|  |  |  | export function createUserRole (data) { | 
|---|
|  |  |  | return request.post('/system/user/createUserRole', data) | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 閲嶇疆瀵嗙爜 | 
|---|
|  |  |  | export function resetPwd (data) { | 
|---|
|  |  |  | return request.post('/system/user/resetPwd', data) | 
|---|
|  |  |  | } | 
|---|