think/packages/domains/lib/api/organization.js

86 lines
2.2 KiB
TypeScript
Raw Permalink Normal View History

2022-06-29 16:03:02 +00:00
"use strict";
exports.__esModule = true;
exports.OrganizationApiDefinition = void 0;
exports.OrganizationApiDefinition = {
/**
*
*/
createOrganization: {
method: 'post',
server: '/create',
client: function () { return '/organization/create'; }
},
/**
*
*/
getPersonalOrganization: {
method: 'get',
server: '/personal',
client: function () { return '/organization/personal'; }
},
/**
*
*/
getUserOrganizations: {
method: 'get',
server: '/list/personal',
client: function () { return '/organization/list/personal'; }
},
/**
*
*/
getOrganizationDetail: {
method: 'get',
server: '/detail/:id',
client: function (id) { return "/organization/detail/".concat(id); }
},
/**
*
*/
updateOrganization: {
method: 'post',
server: '/update/:id',
client: function (id) { return "/organization/update/".concat(id); }
},
2022-06-30 06:20:38 +00:00
/**
*
*/
deleteOrganization: {
method: 'delete',
server: '/delete/:id',
client: function (id) { return "/organization/delete/".concat(id); }
},
2022-06-29 16:03:02 +00:00
/**
*
*/
getMembers: {
method: 'get',
server: '/member/:id',
client: function (id) { return "/organization/member/".concat(id); }
},
/**
*
*/
addMemberById: {
method: 'post',
server: 'member/:id/add',
client: function (id) { return "/organization/member/".concat(id, "/add"); }
},
/**
*
*/
updateMemberById: {
method: 'patch',
server: 'member/:id/update',
client: function (id) { return "/organization/member/".concat(id, "/update"); }
},
/**
*
*/
deleteMemberById: {
method: 'delete',
server: 'member/:id/delete',
client: function (id) { return "/organization/member/".concat(id, "/delete"); }
}
};