chore: update auth and portal
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { request } from '../utils/request';
|
||||
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' }),
|
||||
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" }),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user