Skip to content

Let's use AI to Earn!

feat: 签到接口

yikaJasonMic24a819f32889
diff --git a/src/api/signIn.ts b/src/api/signIn.ts
new file mode 100644
index 00000000..69615193
--- /dev/null
+++ b/src/api/signIn.ts
@@ -0,0 +1,32 @@
+/*
+ * @Author: nevin
+ * @Date: 2025-02-22 12:02:55
+ * @LastEditTime: 2025-04-27 18:42:18
+ * @LastEditors: nevin
+ * @Description: feedback
+ */
+import http from './request';
+
+export enum SignInType {
+ PUL_VIDEO = 'pul_video',
+}
+export const signInApi = {
+ /**
+ * 创建签到
+ */
+ createSignInRecord(type: SignInType = SignInType.PUL_VIDEO) {
+ return http.post<any>(`/reward/signIn`, {
+ type,
+ });
+ },
+
+ /**
+ * 获取签到列表
+ */
+ getSignInList(params: { type: SignInType; time?: [Date, Date] }) {
+ return http.get<any>(`/reward/signIn/list`, {
+ isToken: true,
+ params,
+ });
+ },
+};