think/packages/domains/lib/api/organization.d.ts

84 lines
1.8 KiB
TypeScript
Raw Permalink Normal View History

2022-06-29 16:03:02 +00:00
import { IOrganization } from '../models';
export declare const OrganizationApiDefinition: {
/**
*
*/
createOrganization: {
method: "post";
server: "/create";
client: () => string;
};
/**
*
*/
getPersonalOrganization: {
method: "get";
server: "/personal";
client: () => string;
};
/**
*
*/
getUserOrganizations: {
method: "get";
server: "/list/personal";
client: () => string;
};
/**
*
*/
getOrganizationDetail: {
method: "get";
server: "/detail/:id";
client: (id: IOrganization['id']) => string;
};
/**
*
*/
updateOrganization: {
method: "post";
server: "/update/:id";
client: (id: IOrganization['id']) => string;
};
2022-06-30 06:20:38 +00:00
/**
*
*/
deleteOrganization: {
method: "delete";
server: "/delete/:id";
client: (id: IOrganization['id']) => string;
};
2022-06-29 16:03:02 +00:00
/**
*
*/
getMembers: {
method: "get";
server: "/member/:id";
client: (id: IOrganization['id']) => string;
};
/**
*
*/
addMemberById: {
method: "post";
server: "member/:id/add";
client: (id: IOrganization['id']) => string;
};
/**
*
*/
updateMemberById: {
method: "patch";
server: "member/:id/update";
client: (id: IOrganization['id']) => string;
};
/**
*
*/
deleteMemberById: {
method: "delete";
server: "member/:id/delete";
client: (id: IOrganization['id']) => string;
};
};