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:
@ -1,6 +1,6 @@
|
||||
import api from '@/utils/api';
|
||||
import registerServer from '@/utils/register-server';
|
||||
import request from '@/utils/request';
|
||||
import request, { post } from '@/utils/request';
|
||||
|
||||
const {
|
||||
login,
|
||||
@ -105,4 +105,23 @@ const methods = {
|
||||
|
||||
const userService = registerServer<keyof typeof methods>(methods, request);
|
||||
|
||||
export const listTenantUser = (tenantId: string) =>
|
||||
request.get(api.listTenantUser(tenantId));
|
||||
|
||||
export const addTenantUser = (tenantId: string, email: string) =>
|
||||
post(api.addTenantUser(tenantId), { email });
|
||||
|
||||
export const deleteTenantUser = ({
|
||||
tenantId,
|
||||
userId,
|
||||
}: {
|
||||
tenantId: string;
|
||||
userId: string;
|
||||
}) => request.delete(api.deleteTenantUser(tenantId, userId));
|
||||
|
||||
export const listTenant = () => request.get(api.listTenant);
|
||||
|
||||
export const agreeTenant = (tenantId: string) =>
|
||||
request.put(api.agreeTenant(tenantId));
|
||||
|
||||
export default userService;
|
||||
|
||||
Reference in New Issue
Block a user