import { defHttp } from '/@/utils/http/axios';
import { GroupListResultModel } from '/@/api/system/model/groupModel';

enum GroupApi {
  BASE_URL = '/organization',
}

/**
 * 查询当前用户的所属组织
 */
export const findCurrentUserGroups = () =>
  defHttp.get<GroupListResultModel>({
    url: GroupApi.BASE_URL + '/me/list',
  });
