@freelog/tools-lib 0.1.191 → 0.1.193
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 +9 -0
- package/dist/tools-lib.cjs.development.js +17 -1
- 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 +17 -1
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/service-API/activities.ts +27 -0
package/package.json
CHANGED
|
@@ -340,3 +340,30 @@ export function lotteryDrawResult(params: LotteryDrawResultParamsType) {
|
|
|
340
340
|
params: params,
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
|
+
|
|
344
|
+
// 查询专题信息
|
|
345
|
+
interface GetTopicInfoParamsType {
|
|
346
|
+
code: string;
|
|
347
|
+
keywords?: string;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
export function getTopicInfo(params: GetTopicInfoParamsType) {
|
|
351
|
+
return FUtil.Request({
|
|
352
|
+
method: 'GET',
|
|
353
|
+
url: `/v2/activities/item/getInfoByCode`,
|
|
354
|
+
params: params,
|
|
355
|
+
});
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// 查询素材通过多个用户id
|
|
359
|
+
interface GetMaterialsByUserIdsParamsType {
|
|
360
|
+
userIds: number[];
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
export function getMaterialsByUserIds(params: GetMaterialsByUserIdsParamsType) {
|
|
364
|
+
return FUtil.Request({
|
|
365
|
+
method: 'POST',
|
|
366
|
+
url: `/v2/activities/lottery/capsule/listByUserIds`,
|
|
367
|
+
data: params,
|
|
368
|
+
});
|
|
369
|
+
}
|