Admin.UI/src/api/admin/user.js

(开头部分) 2KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

/**
 *  用户服务
 *  @module @/api/admin/user
 */

import request from '@/utils/request'
import scope from './scope'
const apiPrefix = `${process.env.VUE_APP_BASE_API}/${scope}/user/`

/**
 * 查询用户
 */
export const get = (params, config = {}) => {
  return request.get(apiPrefix + 'get', { params: params, ...config })
}

/**
 * 查询分页
 */
export const getPage = (params, config = {}) => {
  return request.post(apiPrefix + 'get-page', params, config)
}

/**
 * 查询用户基本信息
 */
export const getBasic = (params, config = {}) => {
  return request.get(apiPrefix + 'get-basic', { params: params, ...config })
}

/**
 * 查询用户权限信息
 */
export const getPermissions = (params, config = {}) => {
  return request.get(apiPrefix + 'get-permissions', { params: params, ...config })
}

/**
 * 新增用户
 */
export const add = (params, config = {}) => {
  return request.post(apiPrefix + 'add', params, config)
}

/**
 * 修改用户
 */
export const update = (params, config = {}) => {
  return request.put(apiPrefix + 'update', params, config)
}

/**
 * 更新用户基本信息
 */
export const updateBasic = (params, config = {}) => {
  return request.put(apiPrefix + 'update-basic', params, config)
}

/**
 * 修改用户密码
后面还有 71 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。