feat: Bind data to TenantTable #2846 (#2883)

### 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:
balibabu
2024-10-18 09:21:01 +08:00
committed by GitHub
parent 791afbba15
commit cf3106040a
15 changed files with 548 additions and 11 deletions

View File

@ -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`,

View File

@ -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 = () => {};