@freelog/tools-lib 0.1.127 → 0.1.128

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.
@@ -137,10 +137,19 @@ export declare function userFreeze({}?: UserFreezeParamsType): string;
137
137
  interface WalletParamsType {
138
138
  }
139
139
  export declare function wallet({}?: WalletParamsType): string;
140
+ interface RewardParamsType {
141
+ }
142
+ export declare function reward({}?: RewardParamsType): string;
140
143
  interface ContractParamsType {
141
144
  }
142
145
  export declare function contract({}?: ContractParamsType): string;
143
146
  interface SettingParamsType {
144
147
  }
145
148
  export declare function setting({}?: SettingParamsType): string;
149
+ interface BindingParamsType {
150
+ }
151
+ export declare function binding({}?: BindingParamsType): string;
152
+ interface ResultBindingSuccessParamsType {
153
+ }
154
+ export declare function resultBindingSuccess({}?: ResultBindingSuccessParamsType): string;
146
155
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@freelog/tools-lib",
3
- "version": "0.1.127",
3
+ "version": "0.1.128",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",
@@ -40,6 +40,7 @@ class I18nNext {
40
40
  }
41
41
  };
42
42
  const handleTasks = async () => {
43
+ // console.log(this._loadingData, 'this._loadingData90iowejflksdfjlsdk');
43
44
  if (this._loadingData === 'End') {
44
45
  exc();
45
46
  return;
@@ -112,6 +113,7 @@ class I18nNext {
112
113
  suffix: '}',
113
114
  },
114
115
  });
116
+ this._loadingData = 'End';
115
117
  }
116
118
 
117
119
  private async _fetchData(this: I18nNext): Promise<Resource> {
@@ -93,3 +93,109 @@ export function getNodeTaskInfo(params: GetNodeTaskInfoParamsType = {}) {
93
93
  params: params,
94
94
  });
95
95
  }
96
+
97
+ // 获取奖励记录详情
98
+ interface GetRewardRecordInfoParamsType {
99
+ rewardConfigCode: string;
100
+ }
101
+
102
+ export function getRewardRecordInfo(params: GetRewardRecordInfoParamsType) {
103
+ return FUtil.Request({
104
+ method: 'GET',
105
+ url: `/v2/activities/facade/getRewardRecordInfo`,
106
+ params: params,
107
+ });
108
+ }
109
+
110
+ // 推送任务消息埋点
111
+ interface PushMessageTaskParamsType {
112
+ taskConfigCode: string;
113
+ }
114
+
115
+ export function pushMessageTask(params: PushMessageTaskParamsType) {
116
+ return FUtil.Request({
117
+ method: 'POST',
118
+ url: `/v2/activities/facade/pushMessage4Task`,
119
+ data: params,
120
+ });
121
+ }
122
+
123
+ // 运营钱包详情
124
+ interface GetCoinAccountParamsType {
125
+ type: 1;
126
+ }
127
+
128
+ export function getCoinAccount(params: GetCoinAccountParamsType) {
129
+ return FUtil.Request({
130
+ method: 'GET',
131
+ url: `/v2/activities/coin/account/find4Client`,
132
+ params: params,
133
+ });
134
+ }
135
+
136
+ // 运营钱包提现
137
+ interface WithdrawCoinAccountParamsType {
138
+ reUserName: string;
139
+ amount: number;
140
+ }
141
+
142
+ export function withdrawCoinAccount(params: WithdrawCoinAccountParamsType) {
143
+ return FUtil.Request({
144
+ method: 'POST',
145
+ url: `/v2/activities/coin/account/cash4Client`,
146
+ data: params,
147
+ });
148
+ }
149
+
150
+ // 运营钱包流水
151
+ interface GetCoinAccountRecordsParamsType {
152
+ skip?: number;
153
+ limit?: number;
154
+ coinAccountType: 1;
155
+ }
156
+
157
+ export function getCoinAccountRecords(params: GetCoinAccountRecordsParamsType) {
158
+ return FUtil.Request({
159
+ method: 'GET',
160
+ url: `/v2/activities/coin/record/list4Client`,
161
+ params: params,
162
+ });
163
+ }
164
+
165
+ // 获取公众号绑定信息
166
+ interface GetWechatOfficialAccountInfoParamsType {
167
+ }
168
+
169
+ export function getWechatOfficialAccountInfo(params: GetWechatOfficialAccountInfoParamsType = {}) {
170
+ return FUtil.Request({
171
+ method: 'GET',
172
+ url: `/v2/extensions/wechat/getRelationship4Client`,
173
+ params: params,
174
+ });
175
+ }
176
+
177
+ // 列出抽奖结果
178
+ interface LotteryListParamsType {
179
+ }
180
+
181
+ export function lotteryList(params: LotteryListParamsType = {}) {
182
+ return FUtil.Request({
183
+ method: 'GET',
184
+ url: `/v2/activities/lottery/resource/list`,
185
+ params: params,
186
+ });
187
+ }
188
+
189
+ // 显示抽奖结果
190
+ interface LotteryShowParamsType {
191
+ startDate: string;
192
+ limitDate: string;
193
+ }
194
+
195
+ export function lotteryShow(params: LotteryShowParamsType) {
196
+ return FUtil.Request({
197
+ method: 'GET',
198
+ url: `/v2/activities/lottery/resource/show`,
199
+ params: params,
200
+ });
201
+ }