@freelog/tools-lib 0.1.128 → 0.1.129
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/service-API/activities.d.ts +6 -0
- package/dist/service-API/contracts.d.ts +8 -0
- package/dist/service-API/index.d.ts +2 -0
- package/dist/service-API/policies.d.ts +3 -0
- package/dist/tools-lib.cjs.development.js +326 -686
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +326 -686
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/activities.ts +15 -0
- package/src/service-API/contracts.ts +17 -0
- package/src/service-API/index.ts +2 -0
- package/src/service-API/policies.ts +12 -6
- package/src/service-API/resources.ts +532 -532
- package/src/utils/linkTo.ts +399 -399
- package/src/utils/tools.ts +85 -85
package/package.json
CHANGED
|
@@ -199,3 +199,18 @@ export function lotteryShow(params: LotteryShowParamsType) {
|
|
|
199
199
|
params: params,
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
|
+
|
|
203
|
+
// 列出邀请好友详情
|
|
204
|
+
type ListInviteFriendInfosParamsType = {
|
|
205
|
+
userId: number;
|
|
206
|
+
username: string;
|
|
207
|
+
createDate: string;
|
|
208
|
+
}[];
|
|
209
|
+
|
|
210
|
+
export function listInviteFriendInfos(params: ListInviteFriendInfosParamsType) {
|
|
211
|
+
return FUtil.Request({
|
|
212
|
+
method: 'POST',
|
|
213
|
+
url: `/v2/activities/facade/listInviteFriendInfos`,
|
|
214
|
+
data: params,
|
|
215
|
+
});
|
|
216
|
+
}
|
|
@@ -82,3 +82,20 @@ export function transitionRecords({contractId, ...params}: TransitionRecordsPara
|
|
|
82
82
|
params: params,
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
+
|
|
86
|
+
// 统计合约签约量
|
|
87
|
+
interface ContractsSignCountParamsType {
|
|
88
|
+
objectIds: string | number;
|
|
89
|
+
objectType: 1 | 2 | 3 | 4 | 5; // 统计对象类型(1:甲方ID 2:甲方所属ID 3:乙方ID 4:乙方所属ID 5:标的物ID)
|
|
90
|
+
subjectType: 1 | 2 | 3; // 标的物类型(1:资源 2:展品 3:用户组)
|
|
91
|
+
startDate?: string;
|
|
92
|
+
endDate?: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function contractsSignCount(params: ContractsSignCountParamsType) {
|
|
96
|
+
return FUtil.Request({
|
|
97
|
+
method: 'GET',
|
|
98
|
+
url: `/v2/contracts/signCount`,
|
|
99
|
+
params: params,
|
|
100
|
+
});
|
|
101
|
+
}
|
package/src/service-API/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ import * as Activity from './activities';
|
|
|
13
13
|
import * as TestQualification from './testQualifications';
|
|
14
14
|
import * as Statistic from './statistics';
|
|
15
15
|
import * as I18n from './i18n';
|
|
16
|
+
import * as Policy from './policies';
|
|
16
17
|
import * as recombination from './recombinations';
|
|
17
18
|
|
|
18
19
|
const FServiceAPI = {
|
|
@@ -31,6 +32,7 @@ const FServiceAPI = {
|
|
|
31
32
|
TestQualification,
|
|
32
33
|
Statistic,
|
|
33
34
|
I18n,
|
|
35
|
+
Policy,
|
|
34
36
|
recombination,
|
|
35
37
|
};
|
|
36
38
|
|
|
@@ -9,9 +9,6 @@ interface PoliciesParamsType {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
export function policies(params: PoliciesParamsType) {
|
|
12
|
-
// return FUtil.Axios.get('/v2/policies', {
|
|
13
|
-
// params,
|
|
14
|
-
// });
|
|
15
12
|
return FUtil.Request({
|
|
16
13
|
method: 'GET',
|
|
17
14
|
url: `/v2/policies`,
|
|
@@ -28,12 +25,21 @@ interface PoliciesListParamsType {
|
|
|
28
25
|
}
|
|
29
26
|
|
|
30
27
|
export function policiesList(params: PoliciesListParamsType) {
|
|
31
|
-
// return FUtil.Axios.get('/v2/policies/list', {
|
|
32
|
-
// params,
|
|
33
|
-
// });
|
|
34
28
|
return FUtil.Request({
|
|
35
29
|
method: 'GET',
|
|
36
30
|
url: `/v2/policies/list`,
|
|
37
31
|
params: params,
|
|
38
32
|
});
|
|
39
33
|
}
|
|
34
|
+
|
|
35
|
+
// 策略模板
|
|
36
|
+
interface PolicyTemplatesParamsType {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function policyTemplates(params: PolicyTemplatesParamsType = {}) {
|
|
40
|
+
return FUtil.Request({
|
|
41
|
+
method: 'GET',
|
|
42
|
+
url: `/v2/translate/translate-config/list4Client`,
|
|
43
|
+
params: params,
|
|
44
|
+
});
|
|
45
|
+
}
|