import { request } from "../utils/request";

export const tenantApi = {
  get: (id) => request(`/tenants/${id}`),
  list: (params) => {
    const qs = new URLSearchParams(params).toString();
    return request(`/tenants?${qs}`);
  },
  follow: (id) => request(`/tenants/${id}/follow`, { method: "POST" }),
  unfollow: (id) => request(`/tenants/${id}/follow`, { method: "DELETE" }),
};
