yanzhen-design-vue
Version:
42 lines (41 loc) • 1.7 kB
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const core = require("@yanzhen-lowcode/core");
const contacts = require("../contacts.cjs");
const contacts$1 = require("../constants/contacts.cjs");
require("../constants/index.cjs");
const apis = require("../constants/apis.cjs");
const useContactsApi = (props) => {
const _api = core.provideApiConfig(props);
const getUserList = (options) => {
return _api == null ? void 0 : _api.value.request(options, contacts.contactsApis[contacts$1.Contacts.USER]);
};
const getUsuallyList = (options) => {
return _api == null ? void 0 : _api.value.request(options, contacts.contactsApis[contacts$1.Contacts.USUALLY]);
};
const getOutOrgList = (options) => {
return _api == null ? void 0 : _api.value.request(options, contacts.contactsApis[contacts$1.Contacts.OUTORG]);
};
const getRoleList = (options) => {
return _api == null ? void 0 : _api.value.request(options, contacts.contactsApis[contacts$1.Contacts.ROLE]);
};
const getOrganizationList = (options) => {
return _api == null ? void 0 : _api.value.request(options, contacts.contactsApis[contacts$1.Contacts.ORGANIZATION]);
};
const getGroupList = (options) => {
return _api == null ? void 0 : _api.value.request(options, contacts.contactsApis[contacts$1.Contacts.GROUP]);
};
const getSearchList = (options) => {
return _api == null ? void 0 : _api.value.request(options, contacts.contactsApis[apis.Search.API_KEY]);
};
return {
getSearchList,
getUserList,
getUsuallyList,
getOutOrgList,
getRoleList,
getGroupList,
getOrganizationList
};
};
exports.useContactsApi = useContactsApi;