import { http } from '@/utils/http/axios';
import type { PushObjectGroupInfoResponse, PushObjectUserInfoResponse } from '@/types/push-object';
/**
 * 查询推送人员组
 */
export const queryUserGroupDetailByIds = (userGroupList: number[]) => {
  return http.request<PushObjectGroupInfoResponse[]>(
    {
      url: '/userGroup/queryUserGroupDetailByIds',
      method: 'get',
      params: userGroupList,
    },
    {
      ignoreTargetTenantId: true,
    },
  );
};

/**
 * 查询推送人员
 */
export const queryAvailableUserList = () => {
  return http.request<PushObjectUserInfoResponse[]>(
    {
      url: '/user/queryAvailableUserList',
      method: 'get',
    },
    {
      ignoreTargetTenantId: true,
    },
  );
};
