返回 AiToEarn
signIn.ts
根目录 / project / aitoearn-electron / src / api / signIn.ts
1 /*
2 * @Author: nevin
3 * @Date: 2025-02-22 12:02:55
4 * @LastEditTime: 2025-04-27 18:42:18
5 * @LastEditors: nevin
6 * @Description: feedback
7 */
8 import http from './request';
9
10 export enum SignInType {
11 PUL_VIDEO = 'pul_video',
12 }
13 export const signInApi = {
14 /**
15 * 创建签到
16 */
17 createSignInRecord(type: SignInType = SignInType.PUL_VIDEO) {
18 return http.post<any>(`/reward/signIn`, {
19 type,
20 });
21 },
22
23 /**
24 * 获取签到列表
25 */
26 getSignInList(params: { type: SignInType; time?: [Date, Date] }) {
27 return http.get<any>(`/reward/signIn/list`, {
28 isToken: true,
29 params,
30 });
31 },
32 };
33
33 lines TYPESCRIPT