"use strict"; const common_vendor = require("../../common/vendor.js"); const request_index = require("../../request/index.js"); function Apply(data) { return request_index.request({ url: `/api/employessapply/apply`, method: "post", data }); } function invitedConfirm(data) { return request_index.request({ url: `/api/employessapply/invitedConfirm`, method: "post", data }); } function getOrgInfo(title) { return request_index.request({ url: `/api/employessapply/getOrgInfo?title=${title}&pageSize=-1&openId=${common_vendor.index.getStorageSync("openid")}`, method: "get" }); } function getEmployeesOrgRela(openId) { return request_index.request({ url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=0,1,2`, method: "get" }); } function getIndex(openId) { return request_index.request({ url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&izHistory=N`, method: "get" }); } function getInvited(openId) { return request_index.request({ url: `/api/employessapply/getEmployeesOrgRela?openId=${openId}&invited=0&izHistory=N`, method: "get" }); } function getId(id) { return request_index.request({ url: `/api/employessapply/getEmployeesOrgRela?openId=${common_vendor.index.getStorageSync("openid")}&invited=0&id=${id}&izHistory=N`, method: "get" }); } function getNotice() { return request_index.request({ url: `/api/wx/notice/query?openId=${common_vendor.index.getStorageSync("openid")}&clientType=${common_vendor.index.getStorageSync("jumpIndex")}`, method: "get" }); } function isRead(openId) { return request_index.request({ url: `/api/wx/notice/unreadCount?openId=${common_vendor.index.getStorageSync("openid")}&clientType=2`, method: "get" }); } function upRead(data) { return request_index.request({ url: `/api/wx/notice/upRead`, method: "post", data }); } exports.Apply = Apply; exports.getEmployeesOrgRela = getEmployeesOrgRela; exports.getId = getId; exports.getIndex = getIndex; exports.getInvited = getInvited; exports.getNotice = getNotice; exports.getOrgInfo = getOrgInfo; exports.invitedConfirm = invitedConfirm; exports.isRead = isRead; exports.upRead = upRead; //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/yuangongindex/api.js.map