1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
| 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
| },
| })
|
| }
|
|