/*
 * @Author: your name
 * @Date: 2022-02-21 14:01:21
 * @LastEditTime: 2022-02-21 14:03:21
 * @LastEditors: your name
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \CABaggageData\src\api\AccountGroup.js
 */
import request from '@/utils/request-4a'

// 账号组树查询
export function GetGroupTree (params) {
  return request({
    url: '/api/fs4a/GetGroupTree/v1',
    method: 'post',
    data: params,
    proxy: true
  })
}

//账号组新增
export function SaveGroup (params) {
  return request({
    url: '/api/fs4a/SaveGroup/v1',
    method: 'post',
    data: params,
    proxy: true
  })
}

//账号组删除
export function DeleteGroup (params) {
  return request({
    url: '/api/fs4a/DeleteGroup/v1',
    method: 'post',
    data: params,
    proxy: true
  })
}

//账号组详情
export function GetGroupDetails (params) {
  return request({
    url: '/api/fs4a/GetGroupDetails/v1',
    method: 'post',
    data: params,
    proxy: true
  })
}

//账号组修改状态
export function ChangeGroupStatus (params) {
  return request({
    url: '/api/fs4a/ChangeGroupStatus/v1',
    method: 'post',
    data: params,
    proxy: true
  })
}

// 根据账号组获取权限树
export function GetAuthTreeByGroup (params) {
  return request({
    url: '/api/fs4a/GetAuthTreeByGroup/v1',
    method: 'post',
    data: params,
    proxy: true
  })
}

// 修改保存账号组
export function EditGroup (params) {
  return request({
    url: '/api/fs4a/EditGroup/v1',
    method: 'post',
    data: params,
    proxy: true
  })
}

//根据账号组获取角色
export function GetRoleByGroup (params) {
  return request({
    url: '/api/fs4a/GetRoleByGroup/v1',
    method: 'post',
    data: params,
    proxy: true
  })
}
