Skip to content
  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in

李宁 / Activity

Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • Activity
  • ..
  • role
  • index.js
  •  李宁's avatar
    1 · 640f1611
    李宁 committed Nov 21, 2025
    640f1611
index.js 394 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
import request from '../../request'

/**
 * 查询角色列表
 */
export function queryRoleList(data) {
  return request({
    url: '/crm/getRoleList',
    method: 'GET',
    data,
  })
}


/**
 * 创建和修改角色
 */
export function createOrUpdateRole(data) {
  let url = '/crm/createRole'
  if(data.roleId){
    url = '/crm/updateRole'
  }

  return request({
    url,
    data,
  })
}