import http from './request/index.js'; /** * api/app/getinfo?sessionid=SESSION_ID * 得到应用功能点信息 * @param {*} appId 应用类型标识 */ export const getAppInfo = (appIds) => { const app = getApp() var url = app.globalData.apiurl.mobox + '/api/app/GetInfo' return http.request({ method: "POST", url, data: { app_id: appIds }, }) } /** * 得到字典信息 * http://xxx.xxx.xxx.xxx:5111/api/dict/getinfo?sessionid=SESSION_ID * @param {*} dict_id * @param {*} dict_name * @returns */ export const getDictInfo = (dict_id, dict_name) => { const app = getApp() var url = app.globalData.apiurl.mobox + '/api/dict/GetInfo2' return http.request({ method: "POST", url, data: { dict_id, dict_name }, }) } /** * /api/sys/msg/SendAddIn?sessionId=SESSION_ID * 发送插件消息 * @param {*} addin:插件标识 receiver:消息接收者,多个以英文分号(;)分隔 subject:消息主题 content_type:消息内容类型:Text/Text、Text/Html、Text/URL,默认:Text/Text content:消息内容(UTF8编码)的Base64编码数据 app_type:应用类型,根据此内容匹配消息发送帐号 系统/文档/任务/任务动态/项目/提醒 property:扩展属性 name:属性名称 url 或其它 value: 属性值 */ export const sendAddIn = (param = {}) => { const { addin = "", receiver = "", subject = "", content_type = "", content = "", app_type = "", property = [] } = param const app = getApp() var url = app.globalData.apiurl.mobox + '/api/sys/msg/SendAddIn' return http.request({ method: "POST", url, data: { addin, receiver, subject, content_type, content, app_type, property }, }) }