feat: 添加内容置顶过滤选项,更新内容列表查询功能;添加创作者设置 ID 字段;优化租户信息获取逻辑;更新租户 API 接口
This commit is contained in:
7
frontend/portal/src/api/tenant.js
Normal file
7
frontend/portal/src/api/tenant.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { request } from '../utils/request';
|
||||
|
||||
export const tenantApi = {
|
||||
get: (id) => request(`/tenants/${id}`),
|
||||
follow: (id) => request(`/tenants/${id}/follow`, { method: 'POST' }),
|
||||
unfollow: (id) => request(`/tenants/${id}/follow`, { method: 'DELETE' }),
|
||||
};
|
||||
Reference in New Issue
Block a user