@freelog/tools-lib 0.1.183 → 0.1.185

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.
@@ -10,6 +10,13 @@ interface ActivitiesParamsType {
10
10
  activityID: string;
11
11
  }
12
12
  export declare function activity({ activityID }: ActivitiesParamsType): string;
13
+ interface WXShareParamsType {
14
+ link: string;
15
+ title: string;
16
+ desc: string;
17
+ imgUrl: string;
18
+ }
19
+ export declare function wxShare({ link, title, desc, imgUrl }: WXShareParamsType): string;
13
20
  /************** www End ******************************************************/
14
21
  /************** console Start ******************************************************/
15
22
  interface DashboardParamsType {
@@ -102,7 +109,7 @@ interface NodeCreatorParamsType {
102
109
  export declare function nodeCreator({}?: NodeCreatorParamsType): TReturnType;
103
110
  interface NodeManagementParamsType {
104
111
  nodeID: number;
105
- showPage?: 'exhibit' | 'theme' | 'contract' | 'setting';
112
+ showPage?: 'exhibit' | 'theme' | 'contract' | 'setting' | 'income' | 'transaction';
106
113
  }
107
114
  export declare function nodeManagement({ nodeID, showPage, ...params }: NodeManagementParamsType): TReturnType;
108
115
  interface ExhibitManagementParamsType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.183",
3
+ "version": "0.1.185",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -1,156 +1,156 @@
1
- import i18next, {Resource} from 'i18next';
2
- import axios from "axios";
3
- import Cookies from 'js-cookie';
4
- import FUtil from '../utils';
5
- // import * as React from 'react';
6
- import htmlReactParser from 'html-react-parser';
7
-
8
- type LanguageKeyType = 'zh_CN' | 'en_US';
9
-
10
- const ossJsonUrl: string = 'https://freelog-i18n.oss-cn-shenzhen.aliyuncs.com/configs/i18n.json';
11
- const ossJsonUrl_Test: string = 'https://freelog-i18n.oss-cn-shenzhen.aliyuncs.com/configs-test/i18n.json';
12
- const localStorage_i18nextLng_key: string = 'locale';
13
- const localStorage_i18nextResources_key: string = 'i18nextResources';
14
-
15
- const allLanguage = [
16
- {value: 'en_US', label: 'English'},
17
- {value: 'zh_CN', label: '简体中文'},
18
- ];
19
-
20
- class I18nNext {
21
-
22
- private _loadingData: 'NotStart' | 'Start' | 'End' = 'NotStart';
23
- private _taskQueue: Function[] = [];
24
- // private _currentLanguage: LanguageKeyType = window.localStorage.getItem(localStorage_i18nextLng_key) as null || 'zh_CN';
25
- private _currentLanguage: LanguageKeyType = Cookies.get(localStorage_i18nextLng_key) as undefined || 'zh_CN';
26
-
27
- constructor() {
28
- this.ready();
29
-
30
- this.ready = this.ready.bind(this);
31
- this.t = this.t.bind(this);
32
- this.changeLanguage = this.changeLanguage.bind(this);
33
- this.getAllLanguage = this.getAllLanguage.bind(this);
34
- this.getCurrentLanguage = this.getCurrentLanguage.bind(this);
35
- }
36
-
37
- async ready(this: I18nNext): Promise<void> {
38
- const exc = () => {
39
- while (this._taskQueue.length > 0) {
40
- const task = this._taskQueue.shift();
41
- task && task();
42
- }
43
- };
44
- const handleTasks = async () => {
45
- // console.log(this._loadingData, 'this._loadingData90iowejflksdfjlsdk');
46
- if (this._loadingData === 'End') {
47
- exc();
48
- return;
49
- }
50
- if (this._loadingData === 'Start') {
51
- return;
52
- }
53
-
54
- // NO_START
55
- this._loadingData = 'Start';
56
-
57
- await this._handleData();
58
- // console.log('######');
59
- exc();
60
- };
61
- const promise = new Promise<void>((resolve) => {
62
- this._taskQueue.push(resolve);
63
- });
64
- handleTasks();
65
- return promise;
66
- }
67
-
68
- t(this: I18nNext, key: string, options?: { [key: string]: any }): string {
69
- return i18next.t(key.trim(), options);
70
- }
71
-
72
- tJSXElement(this: I18nNext, key: string, options?: { [key: string]: any }): string | JSX.Element | JSX.Element[] {
73
- return htmlReactParser(i18next.t(key.trim(), options));
74
- }
75
-
76
-
77
- changeLanguage(this: I18nNext, lng: LanguageKeyType): void {
78
- // return i18next.changeLanguage(lng);
79
- // window.localStorage.setItem(localStorage_i18nextLng_key, lng)
80
- Cookies.set(localStorage_i18nextLng_key, lng, {
81
- expires: 36525,
82
- domain: FUtil.Format.completeUrlByDomain('').replace(/http(s)?:\/\//, ''),
83
- });
84
- }
85
-
86
- getAllLanguage(this: I18nNext): typeof allLanguage {
87
- return allLanguage;
88
- }
89
-
90
- getCurrentLanguage(this: I18nNext): LanguageKeyType {
91
- return this._currentLanguage;
92
- }
93
-
94
- private async _handleData(this: I18nNext): Promise<void> {
95
-
96
- const lng: string = this._currentLanguage;
97
- const resource: string | null = window.localStorage.getItem(localStorage_i18nextResources_key);
98
- // const resource: string | undefined = Cookies.get(decodeURIComponent(localStorage_i18nextResources_key));
99
- let i18nextResources: Resource | null = resource ? JSON.parse(resource) : null;
100
-
101
- if (!i18nextResources) {
102
- // console.log('######892io3jlkl')
103
- i18nextResources = await this._fetchData();
104
- } else {
105
- this._fetchData();
106
- }
107
-
108
- await i18next
109
- .init({
110
- // the translations
111
- // (tip move them in a JSON file and import them,
112
- // or even better, manage them via a UI: https://react.i18next.com/guides/multiple-translation-files#manage-your-translations-with-a-management-gui)
113
- resources: i18nextResources,
114
- lng: lng, // if you're using a language detector, do not define the lng option
115
- fallbackLng: 'zh_CN',
116
-
117
- interpolation: {
118
- escapeValue: false, // react already safes from xss => https://www.i18next.com/translation-function/interpolation#unescape
119
- prefix: '{',
120
- suffix: '}',
121
- },
122
- });
123
- this._loadingData = 'End';
124
- }
125
-
126
- private async _fetchData(this: I18nNext): Promise<Resource> {
127
- const url: string = window.location.origin.includes('.freelog.com') ? ossJsonUrl : ossJsonUrl_Test;
128
- const res: any = await axios.get(url + '?timestamp=' + Date.now(), {
129
- withCredentials: false,
130
- });
131
- // console.log(res, 'data09oiw3qjelsfkdfjlsdkfjl');
132
-
133
- const en_US: { [key: string]: string } = {};
134
- const zh_CN: { [key: string]: string } = {};
135
-
136
- for (const [key, value] of Object.entries(res)) {
137
- // console.log(key, value, 'key, value90iowsldfjlsdkj');
138
- en_US[key] = (value as any)['en_US'];
139
- zh_CN[key] = (value as any)['zh_CN'];
140
- }
141
-
142
- const result: Resource = {
143
- en_US: {
144
- translation: en_US,
145
- },
146
- zh_CN: {
147
- translation: zh_CN,
148
- },
149
- };
150
-
151
- window.localStorage.setItem(localStorage_i18nextResources_key, JSON.stringify(result));
152
- return result;
153
- }
154
- }
155
-
156
- export default I18nNext;
1
+ import i18next, {Resource} from 'i18next';
2
+ import axios from "axios";
3
+ import Cookies from 'js-cookie';
4
+ import FUtil from '../utils';
5
+ // import * as React from 'react';
6
+ import htmlReactParser from 'html-react-parser';
7
+
8
+ type LanguageKeyType = 'zh_CN' | 'en_US';
9
+
10
+ const ossJsonUrl: string = 'https://freelog-i18n.oss-cn-shenzhen.aliyuncs.com/configs/i18n.json';
11
+ const ossJsonUrl_Test: string = 'https://freelog-i18n.oss-cn-shenzhen.aliyuncs.com/configs-test/i18n.json';
12
+ const localStorage_i18nextLng_key: string = 'locale';
13
+ const localStorage_i18nextResources_key: string = 'i18nextResources';
14
+
15
+ const allLanguage = [
16
+ {value: 'en_US', label: 'English'},
17
+ {value: 'zh_CN', label: '简体中文'},
18
+ ];
19
+
20
+ class I18nNext {
21
+
22
+ private _loadingData: 'NotStart' | 'Start' | 'End' = 'NotStart';
23
+ private _taskQueue: Function[] = [];
24
+ // private _currentLanguage: LanguageKeyType = window.localStorage.getItem(localStorage_i18nextLng_key) as null || 'zh_CN';
25
+ private _currentLanguage: LanguageKeyType = Cookies.get(localStorage_i18nextLng_key) as undefined || 'zh_CN';
26
+
27
+ constructor() {
28
+ this.ready();
29
+
30
+ this.ready = this.ready.bind(this);
31
+ this.t = this.t.bind(this);
32
+ this.changeLanguage = this.changeLanguage.bind(this);
33
+ this.getAllLanguage = this.getAllLanguage.bind(this);
34
+ this.getCurrentLanguage = this.getCurrentLanguage.bind(this);
35
+ }
36
+
37
+ async ready(this: I18nNext): Promise<void> {
38
+ const exc = () => {
39
+ while (this._taskQueue.length > 0) {
40
+ const task = this._taskQueue.shift();
41
+ task && task();
42
+ }
43
+ };
44
+ const handleTasks = async () => {
45
+ // console.log(this._loadingData, 'this._loadingData90iowejflksdfjlsdk');
46
+ if (this._loadingData === 'End') {
47
+ exc();
48
+ return;
49
+ }
50
+ if (this._loadingData === 'Start') {
51
+ return;
52
+ }
53
+
54
+ // NO_START
55
+ this._loadingData = 'Start';
56
+
57
+ await this._handleData();
58
+ // console.log('######');
59
+ exc();
60
+ };
61
+ const promise = new Promise<void>((resolve) => {
62
+ this._taskQueue.push(resolve);
63
+ });
64
+ handleTasks();
65
+ return promise;
66
+ }
67
+
68
+ t(this: I18nNext, key: string, options?: { [key: string]: any }): string {
69
+ return i18next.t(key.trim(), options);
70
+ }
71
+
72
+ tJSXElement(this: I18nNext, key: string, options?: { [key: string]: any }): string | JSX.Element | JSX.Element[] {
73
+ return htmlReactParser(i18next.t(key.trim(), options));
74
+ }
75
+
76
+
77
+ changeLanguage(this: I18nNext, lng: LanguageKeyType): void {
78
+ // return i18next.changeLanguage(lng);
79
+ // window.localStorage.setItem(localStorage_i18nextLng_key, lng)
80
+ Cookies.set(localStorage_i18nextLng_key, lng, {
81
+ expires: 36525,
82
+ domain: FUtil.Format.completeUrlByDomain('').replace(/http(s)?:\/\//, ''),
83
+ });
84
+ }
85
+
86
+ getAllLanguage(this: I18nNext): typeof allLanguage {
87
+ return allLanguage;
88
+ }
89
+
90
+ getCurrentLanguage(this: I18nNext): LanguageKeyType {
91
+ return this._currentLanguage;
92
+ }
93
+
94
+ private async _handleData(this: I18nNext): Promise<void> {
95
+
96
+ const lng: string = this._currentLanguage;
97
+ const resource: string | null = window.localStorage.getItem(localStorage_i18nextResources_key);
98
+ // const resource: string | undefined = Cookies.get(decodeURIComponent(localStorage_i18nextResources_key));
99
+ let i18nextResources: Resource | null = resource ? JSON.parse(resource) : null;
100
+
101
+ if (!i18nextResources) {
102
+ // console.log('######892io3jlkl')
103
+ i18nextResources = await this._fetchData();
104
+ } else {
105
+ this._fetchData();
106
+ }
107
+
108
+ await i18next
109
+ .init({
110
+ // the translations
111
+ // (tip move them in a JSON file and import them,
112
+ // or even better, manage them via a UI: https://react.i18next.com/guides/multiple-translation-files#manage-your-translations-with-a-management-gui)
113
+ resources: i18nextResources,
114
+ lng: lng, // if you're using a language detector, do not define the lng option
115
+ fallbackLng: 'zh_CN',
116
+
117
+ interpolation: {
118
+ escapeValue: false, // react already safes from xss => https://www.i18next.com/translation-function/interpolation#unescape
119
+ prefix: '{',
120
+ suffix: '}',
121
+ },
122
+ });
123
+ this._loadingData = 'End';
124
+ }
125
+
126
+ private async _fetchData(this: I18nNext): Promise<Resource> {
127
+ const url: string = window.location.origin.includes('.freelog.com') ? ossJsonUrl : ossJsonUrl_Test;
128
+ const res: any = await axios.get(url + '?timestamp=' + Date.now(), {
129
+ withCredentials: false,
130
+ });
131
+ // console.log(res, 'data09oiw3qjelsfkdfjlsdkfjl');
132
+
133
+ const en_US: { [key: string]: string } = {};
134
+ const zh_CN: { [key: string]: string } = {};
135
+
136
+ for (const [key, value] of Object.entries(res)) {
137
+ // console.log(key, value, 'key, value90iowsldfjlsdkj');
138
+ en_US[key] = (value as any)['en_US'];
139
+ zh_CN[key] = (value as any)['zh_CN'];
140
+ }
141
+
142
+ const result: Resource = {
143
+ en_US: {
144
+ translation: en_US,
145
+ },
146
+ zh_CN: {
147
+ translation: zh_CN,
148
+ },
149
+ };
150
+
151
+ window.localStorage.setItem(localStorage_i18nextResources_key, JSON.stringify(result));
152
+ return result;
153
+ }
154
+ }
155
+
156
+ export default I18nNext;
@@ -1,157 +1,157 @@
1
- import FUtil from '../utils';
2
-
3
- // 创建合同
4
- interface CreateContractParamsType {
5
- subjectId: string;
6
- subjectType: 1 | 2 | 3; // 标的物类型 1:资源 2:展品 3:用户组
7
- policyId: string;
8
- licenseeId: string | number;
9
- licenseeIdentityType: 1 | 2 | 3; // 乙方身份类型 1:资源方 2:节点方 3:C端用户
10
- }
11
-
12
- export function createContract({...params}: CreateContractParamsType) {
13
- return FUtil.Request({
14
- method: 'POST',
15
- url: `/v2/contracts`,
16
- data: params,
17
- });
18
- }
19
-
20
- // 批量创建合同
21
- interface BatchCreateContractsParamsType {
22
- subjects: {
23
- subjectId: string;
24
- policyId: string;
25
- }[];
26
- subjectType: 1 | 2 | 3; // 标的物类型 1:资源 2:展品 3:用户组
27
- licenseeId: string | number;
28
- licenseeIdentityType: 1 | 2 | 3; // 乙方身份类型 1:资源方 2:节点方 3:C端用户
29
- }
30
-
31
- export function batchCreateContracts({...params}: BatchCreateContractsParamsType) {
32
- return FUtil.Request({
33
- method: 'POST',
34
- url: `/v2/contracts/batchSign`,
35
- data: params,
36
- });
37
- }
38
-
39
- // 查看合同详情
40
- interface ContractDetailsParamsType {
41
- contractId: string;
42
- isLoadPolicyInfo?: 0 | 1;
43
- projection?: string;
44
- isTranslate?: 0 | 1;
45
- }
46
-
47
- export function contractDetails({contractId, ...params}: ContractDetailsParamsType) {
48
- return FUtil.Request({
49
- method: 'GET',
50
- url: `/v2/contracts/${contractId}`,
51
- params: params,
52
- });
53
- }
54
-
55
- // 查看合同分页列表
56
- interface ContractsParamsType {
57
- skip?: number;
58
- limit?: number;
59
- identityType: 1 | 2;
60
- licensorId?: string;
61
- licensorName?: string;
62
- licenseeId?: string;
63
- licenseeName?: string;
64
- subjectIds?: string;
65
- subjectType?: 1 | 2 | 3;
66
- isDefault?: number;
67
- keywords?: string;
68
- status?: 0 | 1 | 2; // 合同状态 0:生效中 1:已终止 2:异常的
69
- authStatus?: 1 | 2 | 128; // 合同授权状态 1:正式授权 2:测试授权 128:未获得授权,多个通过'与'运算
70
- order?: 'asc' | 'desc'; // asc:正序 desc:倒序
71
- licenseeIdentityType?: number;
72
- isLoadPolicyInfo?: 0 | 1;
73
- isTranslate?: 0 | 1;
74
- startDate?: string;
75
- endDate?: string;
76
- projection?: string;
77
- }
78
-
79
- export function contracts(params: ContractsParamsType) {
80
- return FUtil.Request({
81
- method: 'GET',
82
- url: `/v2/contracts`,
83
- params: params,
84
- });
85
- }
86
-
87
- // 查询合约授权方搜索建议
88
- interface KeywordSuggestParamsType {
89
- identityType: 1 | 2;
90
- prefix: string;
91
- prefixType: 1 | 2;
92
- startDate?: string;
93
- endDate?: string;
94
- }
95
-
96
- export function keywordSuggest(params: KeywordSuggestParamsType) {
97
- return FUtil.Request({
98
- method: 'GET',
99
- url: `/v2/contracts/keywordSuggest`,
100
- params: params,
101
- });
102
- }
103
-
104
- // 批量查询合同列表
105
- interface BatchContractsParamsType {
106
- contractIds?: string;
107
- subjectIds?: string;
108
- subjectType?: 1 | 2 | 3;
109
- licenseeIdentityType?: 1 | 2 | 3;
110
- licensorId?: string;
111
- licenseeId?: string | number;
112
- isLoadPolicyInfo?: 0 | 1;
113
- projection?: string;
114
- isTranslate?: 0 | 1;
115
- contractStatus?: number;
116
- }
117
-
118
- export function batchContracts(params: BatchContractsParamsType) {
119
- return FUtil.Request({
120
- method: 'GET',
121
- url: `/v2/contracts/list`,
122
- params: params,
123
- });
124
- }
125
-
126
- // 查看合同流转记录分页列表
127
- interface TransitionRecordsParamsType {
128
- contractId: string;
129
- skip?: number;
130
- limit?: number;
131
- isTranslate?: 0 | 1;
132
- }
133
-
134
- export function transitionRecords({contractId, ...params}: TransitionRecordsParamsType) {
135
- return FUtil.Request({
136
- method: 'GET',
137
- url: `/v2/contracts/${contractId}/transitionRecords`,
138
- params: params,
139
- });
140
- }
141
-
142
- // 统计合约签约量
143
- interface ContractsSignCountParamsType {
144
- objectIds: string | number;
145
- objectType: 1 | 2 | 3 | 4 | 5; // 统计对象类型(1:甲方ID 2:甲方所属ID 3:乙方ID 4:乙方所属ID 5:标的物ID)
146
- subjectType: 1 | 2 | 3; // 标的物类型(1:资源 2:展品 3:用户组)
147
- startDate?: string;
148
- endDate?: string;
149
- }
150
-
151
- export function contractsSignCount(params: ContractsSignCountParamsType) {
152
- return FUtil.Request({
153
- method: 'GET',
154
- url: `/v2/contracts/signCount`,
155
- params: params,
156
- });
157
- }
1
+ import FUtil from '../utils';
2
+
3
+ // 创建合同
4
+ interface CreateContractParamsType {
5
+ subjectId: string;
6
+ subjectType: 1 | 2 | 3; // 标的物类型 1:资源 2:展品 3:用户组
7
+ policyId: string;
8
+ licenseeId: string | number;
9
+ licenseeIdentityType: 1 | 2 | 3; // 乙方身份类型 1:资源方 2:节点方 3:C端用户
10
+ }
11
+
12
+ export function createContract({...params}: CreateContractParamsType) {
13
+ return FUtil.Request({
14
+ method: 'POST',
15
+ url: `/v2/contracts`,
16
+ data: params,
17
+ });
18
+ }
19
+
20
+ // 批量创建合同
21
+ interface BatchCreateContractsParamsType {
22
+ subjects: {
23
+ subjectId: string;
24
+ policyId: string;
25
+ }[];
26
+ subjectType: 1 | 2 | 3; // 标的物类型 1:资源 2:展品 3:用户组
27
+ licenseeId: string | number;
28
+ licenseeIdentityType: 1 | 2 | 3; // 乙方身份类型 1:资源方 2:节点方 3:C端用户
29
+ }
30
+
31
+ export function batchCreateContracts({...params}: BatchCreateContractsParamsType) {
32
+ return FUtil.Request({
33
+ method: 'POST',
34
+ url: `/v2/contracts/batchSign`,
35
+ data: params,
36
+ });
37
+ }
38
+
39
+ // 查看合同详情
40
+ interface ContractDetailsParamsType {
41
+ contractId: string;
42
+ isLoadPolicyInfo?: 0 | 1;
43
+ projection?: string;
44
+ isTranslate?: 0 | 1;
45
+ }
46
+
47
+ export function contractDetails({contractId, ...params}: ContractDetailsParamsType) {
48
+ return FUtil.Request({
49
+ method: 'GET',
50
+ url: `/v2/contracts/${contractId}`,
51
+ params: params,
52
+ });
53
+ }
54
+
55
+ // 查看合同分页列表
56
+ interface ContractsParamsType {
57
+ skip?: number;
58
+ limit?: number;
59
+ identityType: 1 | 2;
60
+ licensorId?: string;
61
+ licensorName?: string;
62
+ licenseeId?: string;
63
+ licenseeName?: string;
64
+ subjectIds?: string;
65
+ subjectType?: 1 | 2 | 3;
66
+ isDefault?: number;
67
+ keywords?: string;
68
+ status?: 0 | 1 | 2; // 合同状态 0:生效中 1:已终止 2:异常的
69
+ authStatus?: 1 | 2 | 128; // 合同授权状态 1:正式授权 2:测试授权 128:未获得授权,多个通过'与'运算
70
+ order?: 'asc' | 'desc'; // asc:正序 desc:倒序
71
+ licenseeIdentityType?: number;
72
+ isLoadPolicyInfo?: 0 | 1;
73
+ isTranslate?: 0 | 1;
74
+ startDate?: string;
75
+ endDate?: string;
76
+ projection?: string;
77
+ }
78
+
79
+ export function contracts(params: ContractsParamsType) {
80
+ return FUtil.Request({
81
+ method: 'GET',
82
+ url: `/v2/contracts`,
83
+ params: params,
84
+ });
85
+ }
86
+
87
+ // 查询合约授权方搜索建议
88
+ interface KeywordSuggestParamsType {
89
+ identityType: 1 | 2;
90
+ prefix: string;
91
+ prefixType: 1 | 2;
92
+ startDate?: string;
93
+ endDate?: string;
94
+ }
95
+
96
+ export function keywordSuggest(params: KeywordSuggestParamsType) {
97
+ return FUtil.Request({
98
+ method: 'GET',
99
+ url: `/v2/contracts/keywordSuggest`,
100
+ params: params,
101
+ });
102
+ }
103
+
104
+ // 批量查询合同列表
105
+ interface BatchContractsParamsType {
106
+ contractIds?: string;
107
+ subjectIds?: string;
108
+ subjectType?: 1 | 2 | 3;
109
+ licenseeIdentityType?: 1 | 2 | 3;
110
+ licensorId?: string;
111
+ licenseeId?: string | number;
112
+ isLoadPolicyInfo?: 0 | 1;
113
+ projection?: string;
114
+ isTranslate?: 0 | 1;
115
+ contractStatus?: number;
116
+ }
117
+
118
+ export function batchContracts(params: BatchContractsParamsType) {
119
+ return FUtil.Request({
120
+ method: 'GET',
121
+ url: `/v2/contracts/list`,
122
+ params: params,
123
+ });
124
+ }
125
+
126
+ // 查看合同流转记录分页列表
127
+ interface TransitionRecordsParamsType {
128
+ contractId: string;
129
+ skip?: number;
130
+ limit?: number;
131
+ isTranslate?: 0 | 1;
132
+ }
133
+
134
+ export function transitionRecords({contractId, ...params}: TransitionRecordsParamsType) {
135
+ return FUtil.Request({
136
+ method: 'GET',
137
+ url: `/v2/contracts/${contractId}/transitionRecords`,
138
+ params: params,
139
+ });
140
+ }
141
+
142
+ // 统计合约签约量
143
+ interface ContractsSignCountParamsType {
144
+ objectIds: string | number;
145
+ objectType: 1 | 2 | 3 | 4 | 5; // 统计对象类型(1:甲方ID 2:甲方所属ID 3:乙方ID 4:乙方所属ID 5:标的物ID)
146
+ subjectType: 1 | 2 | 3; // 标的物类型(1:资源 2:展品 3:用户组)
147
+ startDate?: string;
148
+ endDate?: string;
149
+ }
150
+
151
+ export function contractsSignCount(params: ContractsSignCountParamsType) {
152
+ return FUtil.Request({
153
+ method: 'GET',
154
+ url: `/v2/contracts/signCount`,
155
+ params: params,
156
+ });
157
+ }