mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? feat: Bind data to TenantTable #2846 feat: Add TenantTable ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -12,6 +12,15 @@ export default {
|
||||
tenant_info: `${api_host}/user/tenant_info`,
|
||||
set_tenant_info: `${api_host}/user/set_tenant_info`,
|
||||
|
||||
// team
|
||||
addTenantUser: (tenantId: string) => `${api_host}/tenant/${tenantId}/user`,
|
||||
listTenantUser: (tenantId: string) =>
|
||||
`${api_host}/tenant/${tenantId}/user/list`,
|
||||
deleteTenantUser: (tenantId: string, userId: string) =>
|
||||
`${api_host}/tenant/${tenantId}/user/${userId}`,
|
||||
listTenant: `${api_host}/tenant/list`,
|
||||
agreeTenant: (tenantId: string) => `${api_host}/tenant/agree/${tenantId}`,
|
||||
|
||||
// llm model
|
||||
factories_list: `${api_host}/llm/factories`,
|
||||
llm_list: `${api_host}/llm/list`,
|
||||
|
||||
@ -135,3 +135,15 @@ request.interceptors.response.use(async (response: any, options) => {
|
||||
});
|
||||
|
||||
export default request;
|
||||
|
||||
export const get = (url: string) => {
|
||||
return request.get(url);
|
||||
};
|
||||
|
||||
export const post = (url: string, body: any) => {
|
||||
return request.post(url, { data: body });
|
||||
};
|
||||
|
||||
export const drop = () => {};
|
||||
|
||||
export const put = () => {};
|
||||
|
||||
Reference in New Issue
Block a user