feat(stats): 完善前端统计与任务 API
Made-with: Cursor
This commit is contained in:
parent
5d96c832f6
commit
aa71d18dd4
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,5 @@
|
||||
import { http } from './index';
|
||||
import { readingApi, GetTenantPageResult } from './client';
|
||||
|
||||
// ==================== 类型定义 ====================
|
||||
|
||||
@ -165,51 +166,86 @@ export interface AdminSettings {
|
||||
|
||||
// ==================== 租户管理 ====================
|
||||
|
||||
export const getTenants = (params: TenantQueryParams) =>
|
||||
http.get<{ items: Tenant[]; total: number; page: number; pageSize: number; totalPages: number }>(
|
||||
'/admin/tenants',
|
||||
{ params }
|
||||
);
|
||||
export const getTenants = (
|
||||
params: TenantQueryParams,
|
||||
): Promise<GetTenantPageResult> =>
|
||||
readingApi.getTenantPage(params as any).then((res) => res.data as any);
|
||||
|
||||
export const getTenant = (id: number) =>
|
||||
http.get<TenantDetail>(`/admin/tenants/${id}`);
|
||||
export const getTenant = (id: number): Promise<TenantDetail> =>
|
||||
readingApi.getTenant(id).then((res) => res.data as any);
|
||||
|
||||
export const createTenant = (data: CreateTenantDto) =>
|
||||
http.post<Tenant & { tempPassword: string }>('/admin/tenants', data);
|
||||
export const createTenant = (
|
||||
data: CreateTenantDto,
|
||||
): Promise<Tenant & { tempPassword: string }> =>
|
||||
readingApi.createTenant(data as any).then((res) => {
|
||||
const map = res.data as any;
|
||||
// Orval 将返回值定义为 ResultTenant / ResultMapStringString,这里按现有前端期望结构进行兼容转换
|
||||
return {
|
||||
...(map as Tenant),
|
||||
tempPassword: (map as any).tempPassword ?? '',
|
||||
};
|
||||
});
|
||||
|
||||
export const updateTenant = (id: number, data: UpdateTenantDto) =>
|
||||
http.put<Tenant>(`/admin/tenants/${id}`, data);
|
||||
export const updateTenant = (
|
||||
id: number,
|
||||
data: UpdateTenantDto,
|
||||
): Promise<Tenant> =>
|
||||
readingApi.updateTenant(id, data as any).then((res) => res.data as any);
|
||||
|
||||
export const updateTenantQuota = (id: number, data: UpdateTenantQuotaDto) =>
|
||||
http.put<Tenant>(`/admin/tenants/${id}/quota`, data);
|
||||
export const updateTenantQuota = (
|
||||
id: number,
|
||||
data: UpdateTenantQuotaDto,
|
||||
): Promise<Tenant> =>
|
||||
readingApi
|
||||
.updateTenantQuota(id, data as any)
|
||||
.then((res) => res.data as any);
|
||||
|
||||
export const updateTenantStatus = (id: number, status: string) =>
|
||||
http.put<{ id: number; name: string; status: string }>(`/admin/tenants/${id}/status`, { status });
|
||||
export const updateTenantStatus = (
|
||||
id: number,
|
||||
status: string,
|
||||
): Promise<{ id: number; name: string; status: string }> =>
|
||||
readingApi
|
||||
.updateTenantStatus(id, { status } as any)
|
||||
.then((res) => res.data as any);
|
||||
|
||||
export const resetTenantPassword = (id: number) =>
|
||||
http.post<{ tempPassword: string }>(`/admin/tenants/${id}/reset-password`);
|
||||
export const resetTenantPassword = (
|
||||
id: number,
|
||||
): Promise<{ tempPassword: string }> =>
|
||||
readingApi.resetTenantPassword(id).then((res) => res.data as any);
|
||||
|
||||
export const deleteTenant = (id: number) =>
|
||||
http.delete<{ success: boolean }>(`/admin/tenants/${id}`);
|
||||
export const deleteTenant = (id: number): Promise<{ success: boolean }> =>
|
||||
readingApi.deleteTenant(id).then(() => ({ success: true }));
|
||||
|
||||
// ==================== 统计数据 ====================
|
||||
|
||||
export const getAdminStats = () =>
|
||||
http.get<AdminStats>('/admin/stats');
|
||||
export const getAdminStats = (): Promise<AdminStats> =>
|
||||
readingApi.getStats3().then((res) => res.data as any);
|
||||
|
||||
export const getTrendData = () =>
|
||||
http.get<TrendData[]>('/admin/stats/trend');
|
||||
export const getTrendData = (): Promise<TrendData[]> =>
|
||||
readingApi.getTrendData().then((res) => res.data as any);
|
||||
|
||||
export const getActiveTenants = (limit?: number) =>
|
||||
http.get<ActiveTenant[]>('/admin/stats/tenants/active', { params: { limit } });
|
||||
export const getActiveTenants = (
|
||||
limit?: number,
|
||||
): Promise<ActiveTenant[]> =>
|
||||
readingApi
|
||||
.getActiveTenants({ limit } as any)
|
||||
.then((res) => res.data as any);
|
||||
|
||||
export const getPopularCourses = (limit?: number) =>
|
||||
http.get<PopularCourse[]>('/admin/stats/courses/popular', { params: { limit } });
|
||||
export const getPopularCourses = (
|
||||
limit?: number,
|
||||
): Promise<PopularCourse[]> =>
|
||||
readingApi
|
||||
.getPopularCourses({ limit } as any)
|
||||
.then((res) => res.data as any);
|
||||
|
||||
// ==================== 系统设置 ====================
|
||||
|
||||
export const getAdminSettings = () =>
|
||||
http.get<AdminSettings>('/admin/settings');
|
||||
export const getAdminSettings = (): Promise<AdminSettings> =>
|
||||
readingApi.getSettings1().then((res) => res.data as any);
|
||||
|
||||
export const updateAdminSettings = (data: Record<string, any>) =>
|
||||
http.put<AdminSettings>('/admin/settings', data);
|
||||
export const updateAdminSettings = (
|
||||
data: Record<string, any>,
|
||||
): Promise<AdminSettings> =>
|
||||
readingApi
|
||||
.updateSettings1(data as any)
|
||||
.then(() => getAdminSettings());
|
||||
|
||||
@ -1,24 +1,26 @@
|
||||
import { readingApi } from './client'
|
||||
import { readingApi } from "./client";
|
||||
import type {
|
||||
LoginRequest,
|
||||
LoginResponse as ApiLoginResponse,
|
||||
ResultLoginResponse,
|
||||
ResultUserInfoResponse,
|
||||
UserInfoResponse,
|
||||
} from './generated/model'
|
||||
} from "./generated/model";
|
||||
|
||||
export type LoginParams = LoginRequest
|
||||
export type LoginParams = LoginRequest;
|
||||
|
||||
// Java 后端返回的平铺结构(保持与现有业务使用一致)
|
||||
export interface LoginResponse extends Required<Omit<ApiLoginResponse, 'tenantId' | 'role'>> {
|
||||
role: 'admin' | 'school' | 'teacher' | 'parent'
|
||||
tenantId?: number
|
||||
export interface LoginResponse extends Required<
|
||||
Omit<ApiLoginResponse, "tenantId" | "role">
|
||||
> {
|
||||
role: "admin" | "school" | "teacher" | "parent";
|
||||
tenantId?: number;
|
||||
}
|
||||
|
||||
export interface UserProfile {
|
||||
id: number;
|
||||
name: string;
|
||||
role: 'admin' | 'school' | 'teacher';
|
||||
role: "admin" | "school" | "teacher";
|
||||
tenantId?: number;
|
||||
tenantName?: string;
|
||||
email?: string;
|
||||
@ -29,47 +31,47 @@ export interface UserProfile {
|
||||
// 登录
|
||||
export function login(params: LoginParams): Promise<LoginResponse> {
|
||||
return readingApi.login(params).then((res) => {
|
||||
const wrapped = res as ResultLoginResponse
|
||||
const data = (wrapped.data ?? {}) as ApiLoginResponse
|
||||
const wrapped = res as ResultLoginResponse;
|
||||
const data = (wrapped.data ?? {}) as ApiLoginResponse;
|
||||
|
||||
return {
|
||||
token: data.token ?? '',
|
||||
token: data.token ?? "",
|
||||
userId: data.userId ?? 0,
|
||||
username: data.username ?? '',
|
||||
name: data.name ?? '',
|
||||
role: (data.role as LoginResponse['role']) ?? 'teacher',
|
||||
username: data.username ?? "",
|
||||
name: data.name ?? "",
|
||||
role: (data.role as LoginResponse["role"]) ?? "teacher",
|
||||
tenantId: data.tenantId,
|
||||
}
|
||||
})
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
// 登出
|
||||
export function logout(): Promise<void> {
|
||||
return readingApi.logout().then(() => undefined)
|
||||
return readingApi.logout().then(() => undefined);
|
||||
}
|
||||
|
||||
// 刷新Token
|
||||
export function refreshToken(): Promise<{ token: string }> {
|
||||
// OpenAPI 目前未定义 refresh 接口,暂时保留原有调用路径以兼容后端
|
||||
const { http } = require('./index')
|
||||
return http.post('/auth/refresh')
|
||||
const { http } = require("./index");
|
||||
return http.post("/api/v1/auth/refresh");
|
||||
}
|
||||
|
||||
// 获取当前用户信息
|
||||
export function getProfile(): Promise<UserProfile> {
|
||||
return readingApi.getCurrentUser().then((res) => {
|
||||
const wrapped = res as ResultUserInfoResponse
|
||||
const data = (wrapped.data ?? {}) as UserInfoResponse
|
||||
const wrapped = res as ResultUserInfoResponse;
|
||||
const data = (wrapped.data ?? {}) as UserInfoResponse;
|
||||
|
||||
return {
|
||||
id: data.id ?? 0,
|
||||
name: data.name ?? '',
|
||||
role: (data.role as UserProfile['role']) ?? 'teacher',
|
||||
name: data.name ?? "",
|
||||
role: (data.role as UserProfile["role"]) ?? "teacher",
|
||||
tenantId: data.tenantId,
|
||||
tenantName: undefined,
|
||||
email: data.email,
|
||||
phone: data.phone,
|
||||
avatar: data.avatarUrl,
|
||||
}
|
||||
})
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
@ -11,6 +11,30 @@ export type ApiResultOf<K extends keyof ReturnType<typeof getReadingPlatformAPI>
|
||||
// 如果后端统一使用 Result<T> 包裹,这个类型可以从中解包出 data
|
||||
export type UnwrapResult<R> = R extends { data: infer D } ? D : R
|
||||
|
||||
// 针对分页 Result<PageResult<XXX>> 的统一解包类型
|
||||
export type PageDataOf<R> = UnwrapResult<R> extends {
|
||||
items: any[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
}
|
||||
? UnwrapResult<R>
|
||||
: never
|
||||
|
||||
// 常用 Orval 分页结果类型别名(便于在各模块中统一使用)
|
||||
export type GetTenantPageResult = PageDataOf<ApiResultOf<'getTenantPage'>>
|
||||
export type GetTaskPageResult = PageDataOf<ApiResultOf<'getTaskPage'>>
|
||||
export type GetTaskPage1Result = PageDataOf<ApiResultOf<'getTaskPage1'>>
|
||||
export type GetTeacherPageResult = PageDataOf<ApiResultOf<'getTeacherPage'>>
|
||||
export type GetStudentPageResult = PageDataOf<ApiResultOf<'getStudentPage'>>
|
||||
export type GetSchedulePlansResult = PageDataOf<ApiResultOf<'getSchedulePlans'>>
|
||||
export type GetSchedulePlans1Result = PageDataOf<ApiResultOf<'getSchedulePlans1'>>
|
||||
export type GetPackagesResult = PageDataOf<ApiResultOf<'getPackages'>>
|
||||
export type GetPackages1Result = PageDataOf<ApiResultOf<'getPackages1'>>
|
||||
export type GetMyNotificationsResult = PageDataOf<ApiResultOf<'getMyNotifications'>>
|
||||
export type GetMyNotifications1Result = PageDataOf<ApiResultOf<'getMyNotifications1'>>
|
||||
export type GetMyNotifications2Result = PageDataOf<ApiResultOf<'getMyNotifications2'>>
|
||||
|
||||
// 示例:当前登录用户信息的解包类型
|
||||
export type CurrentUserInfo = UnwrapResult<ResultUserInfoResponse>
|
||||
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
import { readingApi } from './client'
|
||||
import { readingApi } from "./client";
|
||||
import type {
|
||||
GetCoursePage1Params,
|
||||
ResultPageResultCourse,
|
||||
Course as ApiCourse,
|
||||
ApproveCourseParams,
|
||||
RejectCourseParams,
|
||||
} from './generated/model'
|
||||
} from "./generated/model";
|
||||
|
||||
export type CourseQueryParams = GetCoursePage1Params
|
||||
export type CourseQueryParams = GetCoursePage1Params;
|
||||
|
||||
export type Course = ApiCourse
|
||||
export type Course = ApiCourse;
|
||||
|
||||
export interface CourseLesson {
|
||||
id: number;
|
||||
@ -64,25 +64,23 @@ export interface ValidationWarning {
|
||||
}
|
||||
|
||||
// 获取课程包列表(使用 Orval 生成的分页接口,并适配为原有扁平结构)
|
||||
export function getCourses(
|
||||
params: CourseQueryParams,
|
||||
): Promise<{
|
||||
items: Course[]
|
||||
total: number
|
||||
page: number
|
||||
pageSize: number
|
||||
export function getCourses(params: CourseQueryParams): Promise<{
|
||||
items: Course[];
|
||||
total: number;
|
||||
page: number;
|
||||
pageSize: number;
|
||||
}> {
|
||||
return readingApi.getCoursePage1(params).then((res) => {
|
||||
const wrapped = res as ResultPageResultCourse
|
||||
const pageData = wrapped.data
|
||||
const wrapped = res as ResultPageResultCourse;
|
||||
const pageData = wrapped.data;
|
||||
|
||||
return {
|
||||
items: (pageData?.items as Course[]) ?? [],
|
||||
total: pageData?.total ?? 0,
|
||||
page: pageData?.page ?? params.page ?? 1,
|
||||
pageSize: pageData?.pageSize ?? params.pageSize ?? 10,
|
||||
}
|
||||
})
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
// 获取审核列表
|
||||
@ -94,116 +92,131 @@ export function getReviewList(params: CourseQueryParams): Promise<{
|
||||
}> {
|
||||
// 审核列表对应 Orval 的 getReviewCoursePage,返回结构同课程分页
|
||||
return readingApi.getReviewCoursePage(params as any).then((res) => {
|
||||
const wrapped = res as ResultPageResultCourse
|
||||
const pageData = wrapped.data
|
||||
const wrapped = res as ResultPageResultCourse;
|
||||
const pageData = wrapped.data;
|
||||
|
||||
return {
|
||||
items: (pageData?.items as Course[]) ?? [],
|
||||
total: pageData?.total ?? 0,
|
||||
page: pageData?.page ?? params.page ?? 1,
|
||||
pageSize: pageData?.pageSize ?? params.pageSize ?? 10,
|
||||
}
|
||||
})
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
// 获取课程包详情
|
||||
export function getCourse(id: number): Promise<any> {
|
||||
return readingApi.getCourse3(id).then((res) => res)
|
||||
export function getCourse(id: number): Promise<unknown> {
|
||||
return readingApi.getCourse3(id).then((res) => res);
|
||||
}
|
||||
|
||||
// 创建课程包
|
||||
export function createCourse(data: any): Promise<any> {
|
||||
return readingApi.createCourse1(data).then((res) => res)
|
||||
export function createCourse(data: unknown): Promise<unknown> {
|
||||
return readingApi.createCourse1(data as any).then((res) => res);
|
||||
}
|
||||
|
||||
// 更新课程包
|
||||
export function updateCourse(id: number, data: any): Promise<any> {
|
||||
return readingApi.updateCourse1(id, data).then((res) => res)
|
||||
export function updateCourse(id: number, data: unknown): Promise<unknown> {
|
||||
return readingApi.updateCourse1(id, data as any).then((res) => res);
|
||||
}
|
||||
|
||||
// 删除课程包
|
||||
export function deleteCourse(id: number): Promise<any> {
|
||||
return readingApi.deleteCourse1(id).then((res) => res)
|
||||
export function deleteCourse(id: number): Promise<unknown> {
|
||||
return readingApi.deleteCourse1(id).then((res) => res);
|
||||
}
|
||||
|
||||
// 验证课程完整性
|
||||
export function validateCourse(id: number): Promise<ValidationResult> {
|
||||
// 暂无对应 Orval 接口,继续使用旧路径
|
||||
const { http } = require('./index')
|
||||
return http.get(`/admin/courses/${id}/validate`)
|
||||
const { http } = require("./index");
|
||||
return http.get(`/api/v1/admin/courses/${id}/validate`);
|
||||
}
|
||||
|
||||
// 提交审核
|
||||
export function submitCourse(id: number, _copyrightConfirmed: boolean): Promise<any> {
|
||||
export function submitCourse(
|
||||
id: number,
|
||||
_copyrightConfirmed: boolean,
|
||||
): Promise<unknown> {
|
||||
// 后端接口签名只需要 ID,版权确认逻辑在前端自行控制
|
||||
return readingApi.submitCourse(id).then((res) => res)
|
||||
return readingApi.submitCourse(id).then((res) => res);
|
||||
}
|
||||
|
||||
// 撤销审核
|
||||
export function withdrawCourse(id: number): Promise<any> {
|
||||
return readingApi.withdrawCourse(id).then((res) => res)
|
||||
export function withdrawCourse(id: number): Promise<unknown> {
|
||||
return readingApi.withdrawCourse(id).then((res) => res);
|
||||
}
|
||||
|
||||
// 审核通过
|
||||
export function approveCourse(id: number, data: { checklist?: any; comment?: string }): Promise<any> {
|
||||
export function approveCourse(
|
||||
id: number,
|
||||
data: { checklist?: any; comment?: string },
|
||||
): Promise<unknown> {
|
||||
const params: ApproveCourseParams = {
|
||||
comment: data.comment,
|
||||
}
|
||||
return readingApi.approveCourse(id, params).then((res) => res)
|
||||
};
|
||||
return readingApi.approveCourse(id, params).then((res) => res);
|
||||
}
|
||||
|
||||
// 审核驳回
|
||||
export function rejectCourse(id: number, data: { checklist?: any; comment: string }): Promise<any> {
|
||||
export function rejectCourse(
|
||||
id: number,
|
||||
data: { checklist?: any; comment: string },
|
||||
): Promise<unknown> {
|
||||
const params: RejectCourseParams = {
|
||||
comment: data.comment,
|
||||
}
|
||||
return readingApi.rejectCourse(id, params).then((res) => res)
|
||||
};
|
||||
return readingApi.rejectCourse(id, params).then((res) => res);
|
||||
}
|
||||
|
||||
// 直接发布(超级管理员)
|
||||
export function directPublishCourse(id: number, _skipValidation?: boolean): Promise<any> {
|
||||
export function directPublishCourse(
|
||||
id: number,
|
||||
_skipValidation?: boolean,
|
||||
): Promise<unknown> {
|
||||
// skipValidation 由后端接口定义控制,这里总是调用“直接发布”接口
|
||||
return readingApi.directPublishCourse(id).then((res) => res)
|
||||
return readingApi.directPublishCourse(id).then((res) => res);
|
||||
}
|
||||
|
||||
// 发布课程包(兼容旧API)
|
||||
export function publishCourse(id: number): Promise<any> {
|
||||
return readingApi.publishCourse(id).then((res) => res)
|
||||
export function publishCourse(id: number): Promise<unknown> {
|
||||
return readingApi.publishCourse(id).then((res) => res);
|
||||
}
|
||||
|
||||
// 下架课程包
|
||||
export function unpublishCourse(id: number): Promise<any> {
|
||||
return readingApi.unpublishCourse(id).then((res) => res)
|
||||
export function unpublishCourse(id: number): Promise<unknown> {
|
||||
return readingApi.unpublishCourse(id).then((res) => res);
|
||||
}
|
||||
|
||||
// 重新发布
|
||||
export function republishCourse(id: number): Promise<any> {
|
||||
return readingApi.republishCourse(id).then((res) => res)
|
||||
export function republishCourse(id: number): Promise<unknown> {
|
||||
return readingApi.republishCourse(id).then((res) => res);
|
||||
}
|
||||
|
||||
// 获取课程包统计数据
|
||||
export function getCourseStats(id: number): Promise<any> {
|
||||
export function getCourseStats(id: number): Promise<unknown> {
|
||||
// 统计接口在 OpenAPI 中与当前使用的字段含义略有差异,暂时保留旧实现
|
||||
const { http } = require('./index')
|
||||
return http.get(`/admin/courses/${id}/stats`);
|
||||
const { http } = require("./index");
|
||||
return http.get(`/api/v1/admin/courses/${id}/stats`);
|
||||
}
|
||||
|
||||
// 获取版本历史
|
||||
export function getCourseVersions(id: number): Promise<any[]> {
|
||||
const { http } = require('./index')
|
||||
return http.get(`/admin/courses/${id}/versions`);
|
||||
export function getCourseVersions(id: number): Promise<unknown[]> {
|
||||
const { http } = require("./index");
|
||||
return http.get(`/api/v1/admin/courses/${id}/versions`);
|
||||
}
|
||||
|
||||
// 课程状态映射
|
||||
export const COURSE_STATUS_MAP: Record<string, { label: string; color: string }> = {
|
||||
DRAFT: { label: '草稿', color: 'default' },
|
||||
PENDING: { label: '审核中', color: 'processing' },
|
||||
REJECTED: { label: '已驳回', color: 'error' },
|
||||
PUBLISHED: { label: '已发布', color: 'success' },
|
||||
ARCHIVED: { label: '已下架', color: 'warning' },
|
||||
export const COURSE_STATUS_MAP: Record<
|
||||
string,
|
||||
{ label: string; color: string }
|
||||
> = {
|
||||
DRAFT: { label: "草稿", color: "default" },
|
||||
PENDING: { label: "审核中", color: "processing" },
|
||||
REJECTED: { label: "已驳回", color: "error" },
|
||||
PUBLISHED: { label: "已发布", color: "success" },
|
||||
ARCHIVED: { label: "已下架", color: "warning" },
|
||||
};
|
||||
|
||||
// 获取状态显示信息
|
||||
export function getCourseStatusInfo(status: string) {
|
||||
return COURSE_STATUS_MAP[status] || { label: status, color: 'default' };
|
||||
return COURSE_STATUS_MAP[status] || { label: status, color: "default" };
|
||||
}
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
@ -16,10 +16,14 @@ import type {
|
||||
CourseLesson,
|
||||
CoursePackage,
|
||||
CourseUpdateRequest,
|
||||
CreateTaskFromTemplateRequest,
|
||||
DeleteFileParams,
|
||||
GetActiveTeachersParams,
|
||||
GetActiveTenantsParams,
|
||||
GetActivitiesParams,
|
||||
GetClassPageParams,
|
||||
GetCompletions1Params,
|
||||
GetCompletionsParams,
|
||||
GetCoursePage1Params,
|
||||
GetCoursePageParams,
|
||||
GetCourses1Params,
|
||||
@ -28,16 +32,21 @@ import type {
|
||||
GetGrowthRecordPageParams,
|
||||
GetGrowthRecordsByStudentParams,
|
||||
GetItemsParams,
|
||||
GetLessonTrendParams,
|
||||
GetLibrariesParams,
|
||||
GetLogs1Params,
|
||||
GetLogsParams,
|
||||
GetMonthlyStats1Params,
|
||||
GetMonthlyStatsParams,
|
||||
GetMyLessonsParams,
|
||||
GetMyNotifications1Params,
|
||||
GetMyNotifications2Params,
|
||||
GetMyNotificationsParams,
|
||||
GetPackages1Params,
|
||||
GetPackagesParams,
|
||||
GetParentPageParams,
|
||||
GetPopularCoursesParams,
|
||||
GetRecentActivitiesParams,
|
||||
GetRecentGrowthRecordsParams,
|
||||
GetReviewCoursePageParams,
|
||||
GetSchedulePlans1Params,
|
||||
@ -48,8 +57,11 @@ import type {
|
||||
GetTaskPageParams,
|
||||
GetTasksByStudentParams,
|
||||
GetTeacherPageParams,
|
||||
GetTemplates1Params,
|
||||
GetTemplatesParams,
|
||||
GetTenantPageParams,
|
||||
GetThemesParams,
|
||||
GetTimetableParams,
|
||||
GrowthRecordCreateRequest,
|
||||
GrowthRecordUpdateRequest,
|
||||
LessonCreateRequest,
|
||||
@ -74,6 +86,7 @@ import type {
|
||||
ResultListLesson,
|
||||
ResultListMapStringObject,
|
||||
ResultListResourceLibrary,
|
||||
ResultListSchedulePlan,
|
||||
ResultListStudent,
|
||||
ResultListTenantResponse,
|
||||
ResultListTheme,
|
||||
@ -96,6 +109,8 @@ import type {
|
||||
ResultPageResultSchoolCourse,
|
||||
ResultPageResultStudent,
|
||||
ResultPageResultTask,
|
||||
ResultPageResultTaskCompletion,
|
||||
ResultPageResultTaskTemplate,
|
||||
ResultPageResultTeacher,
|
||||
ResultPageResultTenant,
|
||||
ResultParent,
|
||||
@ -106,6 +121,8 @@ import type {
|
||||
ResultSchoolCourse,
|
||||
ResultStudent,
|
||||
ResultTask,
|
||||
ResultTaskCompletion,
|
||||
ResultTaskTemplate,
|
||||
ResultTeacher,
|
||||
ResultTenant,
|
||||
ResultTheme,
|
||||
@ -113,17 +130,23 @@ import type {
|
||||
ResultVoid,
|
||||
ReviewPackageBody,
|
||||
SchedulePlan,
|
||||
SchedulePlanCreateRequest,
|
||||
ScheduleTemplate,
|
||||
ScheduleTemplateApplyRequest,
|
||||
SchoolCourse,
|
||||
StudentCreateRequest,
|
||||
StudentUpdateRequest,
|
||||
TaskCreateRequest,
|
||||
TaskTemplateCreateRequest,
|
||||
TaskTemplateUpdateRequest,
|
||||
TaskUpdateRequest,
|
||||
TeacherCreateRequest,
|
||||
TeacherUpdateRequest,
|
||||
TenantCreateRequest,
|
||||
TenantUpdateRequest,
|
||||
Theme,
|
||||
UpdateCompletion1Params,
|
||||
UpdateCompletionParams,
|
||||
UpdateSettings1Body,
|
||||
UpdateSettingsBody,
|
||||
UpdateTenantQuotaBody,
|
||||
@ -134,7 +157,22 @@ import type {
|
||||
import { request } from '../request';
|
||||
export const getReadingPlatformAPI = () => {
|
||||
/**
|
||||
* @summary 根据ID获取任务
|
||||
* @summary 更新任务完成状态
|
||||
*/
|
||||
const updateCompletion = (
|
||||
taskId: number,
|
||||
studentId: number,
|
||||
params: UpdateCompletionParams,
|
||||
) => {
|
||||
return request<ResultTaskCompletion>(
|
||||
{url: `/api/v1/teacher/tasks/${taskId}/completions/${studentId}`, method: 'PUT',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 根据 ID 获取任务
|
||||
*/
|
||||
const getTask = (
|
||||
id: number,
|
||||
@ -278,7 +316,22 @@ const deleteTeacher = (
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 根据ID获取任务
|
||||
* @summary 更新任务完成状态
|
||||
*/
|
||||
const updateCompletion1 = (
|
||||
taskId: number,
|
||||
studentId: number,
|
||||
params: UpdateCompletion1Params,
|
||||
) => {
|
||||
return request<ResultTaskCompletion>(
|
||||
{url: `/api/v1/school/tasks/${taskId}/completions/${studentId}`, method: 'PUT',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 根据 ID 获取任务
|
||||
*/
|
||||
const getTask1 = (
|
||||
id: number,
|
||||
@ -316,6 +369,45 @@ const deleteTask1 = (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 根据 ID 获取任务模板
|
||||
*/
|
||||
const getTemplate1 = (
|
||||
id: number,
|
||||
) => {
|
||||
return request<ResultTaskTemplate>(
|
||||
{url: `/api/v1/school/tasks/task-templates/${id}`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 更新任务模板
|
||||
*/
|
||||
const updateTemplate = (
|
||||
id: number,
|
||||
taskTemplateUpdateRequest: TaskTemplateUpdateRequest,
|
||||
) => {
|
||||
return request<ResultTaskTemplate>(
|
||||
{url: `/api/v1/school/tasks/task-templates/${id}`, method: 'PUT',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: taskTemplateUpdateRequest
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 删除任务模板
|
||||
*/
|
||||
const deleteTemplate = (
|
||||
id: number,
|
||||
) => {
|
||||
return request<ResultVoid>(
|
||||
{url: `/api/v1/school/tasks/task-templates/${id}`, method: 'DELETE'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 根据ID获取学生
|
||||
*/
|
||||
@ -421,7 +513,7 @@ const deleteCourse = (
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 根据ID获取课表计划
|
||||
* @summary 根据 ID 获取课表计划
|
||||
*/
|
||||
const getSchedulePlan1 = (
|
||||
id: number,
|
||||
@ -459,6 +551,45 @@ const deleteSchedulePlan = (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 根据 ID 获取课表模板
|
||||
*/
|
||||
const getScheduleTemplate = (
|
||||
id: number,
|
||||
) => {
|
||||
return request<ResultScheduleTemplate>(
|
||||
{url: `/api/v1/school/schedules/templates/${id}`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 更新课表模板
|
||||
*/
|
||||
const updateScheduleTemplate = (
|
||||
id: number,
|
||||
scheduleTemplate: ScheduleTemplate,
|
||||
) => {
|
||||
return request<ResultScheduleTemplate>(
|
||||
{url: `/api/v1/school/schedules/templates/${id}`, method: 'PUT',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: scheduleTemplate
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 删除课表模板
|
||||
*/
|
||||
const deleteScheduleTemplate = (
|
||||
id: number,
|
||||
) => {
|
||||
return request<ResultVoid>(
|
||||
{url: `/api/v1/school/schedules/templates/${id}`, method: 'DELETE'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary Get parent by ID
|
||||
*/
|
||||
@ -950,6 +1081,20 @@ const createTask = (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 从模板创建任务
|
||||
*/
|
||||
const createFromTemplate = (
|
||||
createTaskFromTemplateRequest: CreateTaskFromTemplateRequest,
|
||||
) => {
|
||||
return request<ResultTask>(
|
||||
{url: `/api/v1/teacher/tasks/from-template`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: createTaskFromTemplateRequest
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 标记通知为已读
|
||||
*/
|
||||
@ -1132,6 +1277,47 @@ const createTask1 = (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取任务模板列表
|
||||
*/
|
||||
const getTemplates1 = (
|
||||
params?: GetTemplates1Params,
|
||||
) => {
|
||||
return request<ResultPageResultTaskTemplate>(
|
||||
{url: `/api/v1/school/tasks/task-templates`, method: 'GET',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 创建任务模板
|
||||
*/
|
||||
const createTemplate = (
|
||||
taskTemplateCreateRequest: TaskTemplateCreateRequest,
|
||||
) => {
|
||||
return request<ResultTaskTemplate>(
|
||||
{url: `/api/v1/school/tasks/task-templates`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: taskTemplateCreateRequest
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 从模板创建任务
|
||||
*/
|
||||
const createFromTemplate1 = (
|
||||
createTaskFromTemplateRequest: CreateTaskFromTemplateRequest,
|
||||
) => {
|
||||
return request<ResultTask>(
|
||||
{url: `/api/v1/school/tasks/from-template`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: createTaskFromTemplateRequest
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取学生分页
|
||||
*/
|
||||
@ -1159,6 +1345,20 @@ const createStudent = (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 批量导入学生
|
||||
*/
|
||||
const importStudents = (
|
||||
studentCreateRequest: StudentCreateRequest[],
|
||||
) => {
|
||||
return request<ResultListStudent>(
|
||||
{url: `/api/v1/school/students/import`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: studentCreateRequest
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取校本课程
|
||||
*/
|
||||
@ -1203,12 +1403,12 @@ const getSchedulePlans1 = (
|
||||
* @summary 创建课表计划
|
||||
*/
|
||||
const createSchedulePlan = (
|
||||
schedulePlan: SchedulePlan,
|
||||
schedulePlanCreateRequest: SchedulePlanCreateRequest,
|
||||
) => {
|
||||
return request<ResultSchedulePlan>(
|
||||
{url: `/api/v1/school/schedules`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: schedulePlan
|
||||
data: schedulePlanCreateRequest
|
||||
},
|
||||
);
|
||||
}
|
||||
@ -1240,6 +1440,35 @@ const createScheduleTemplate = (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 应用课表模板
|
||||
*/
|
||||
const applyScheduleTemplate = (
|
||||
id: number,
|
||||
scheduleTemplateApplyRequest: ScheduleTemplateApplyRequest,
|
||||
) => {
|
||||
return request<ResultListSchedulePlan>(
|
||||
{url: `/api/v1/school/schedules/templates/${id}/apply`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: scheduleTemplateApplyRequest
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 批量创建排课
|
||||
*/
|
||||
const batchCreateSchedules = (
|
||||
schedulePlanCreateRequest: SchedulePlanCreateRequest[],
|
||||
) => {
|
||||
return request<ResultListSchedulePlan>(
|
||||
{url: `/api/v1/school/schedules/batch`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: schedulePlanCreateRequest
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取家长分页
|
||||
*/
|
||||
@ -1309,6 +1538,30 @@ const resetPassword1 = (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 标记通知为已读
|
||||
*/
|
||||
const markAsRead1 = (
|
||||
id: number,
|
||||
) => {
|
||||
return request<ResultVoid>(
|
||||
{url: `/api/v1/school/notifications/${id}/read`, method: 'POST'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 标记所有通知为已读
|
||||
*/
|
||||
const markAllAsRead1 = (
|
||||
|
||||
) => {
|
||||
return request<ResultVoid>(
|
||||
{url: `/api/v1/school/notifications/read-all`, method: 'POST'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取成长档案分页
|
||||
*/
|
||||
@ -1410,7 +1663,7 @@ const completeTask = (
|
||||
/**
|
||||
* @summary 标记通知为已读
|
||||
*/
|
||||
const markAsRead1 = (
|
||||
const markAsRead2 = (
|
||||
id: number,
|
||||
) => {
|
||||
return request<ResultVoid>(
|
||||
@ -1422,7 +1675,7 @@ const markAsRead1 = (
|
||||
/**
|
||||
* @summary 标记所有通知为已读
|
||||
*/
|
||||
const markAllAsRead1 = (
|
||||
const markAllAsRead2 = (
|
||||
|
||||
) => {
|
||||
return request<ResultVoid>(
|
||||
@ -1862,6 +2115,106 @@ const createLesson1 = (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取任务完成情况分页
|
||||
*/
|
||||
const getCompletions = (
|
||||
id: number,
|
||||
params?: GetCompletionsParams,
|
||||
) => {
|
||||
return request<ResultPageResultTaskCompletion>(
|
||||
{url: `/api/v1/teacher/tasks/${id}/completions`, method: 'GET',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取任务模板列表
|
||||
*/
|
||||
const getTemplates = (
|
||||
params?: GetTemplatesParams,
|
||||
) => {
|
||||
return request<ResultPageResultTaskTemplate>(
|
||||
{url: `/api/v1/teacher/tasks/task-templates`, method: 'GET',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 根据 ID 获取任务模板
|
||||
*/
|
||||
const getTemplate = (
|
||||
id: number,
|
||||
) => {
|
||||
return request<ResultTaskTemplate>(
|
||||
{url: `/api/v1/teacher/tasks/task-templates/${id}`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取默认模板(按类型)
|
||||
*/
|
||||
const getDefaultTemplate = (
|
||||
taskType: string,
|
||||
) => {
|
||||
return request<ResultTaskTemplate>(
|
||||
{url: `/api/v1/teacher/tasks/task-templates/default/${taskType}`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取任务统计数据
|
||||
*/
|
||||
const getStats = (
|
||||
|
||||
) => {
|
||||
return request<ResultMapStringObject>(
|
||||
{url: `/api/v1/teacher/tasks/stats`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取月度统计趋势
|
||||
*/
|
||||
const getMonthlyStats = (
|
||||
params?: GetMonthlyStatsParams,
|
||||
) => {
|
||||
return request<ResultListMapStringObject>(
|
||||
{url: `/api/v1/teacher/tasks/stats/monthly`, method: 'GET',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 按任务类型统计
|
||||
*/
|
||||
const getStatsByType = (
|
||||
|
||||
) => {
|
||||
return request<ResultMapStringObject>(
|
||||
{url: `/api/v1/teacher/tasks/stats/by-type`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 按班级统计
|
||||
*/
|
||||
const getStatsByClass = (
|
||||
|
||||
) => {
|
||||
return request<ResultListMapStringObject>(
|
||||
{url: `/api/v1/teacher/tasks/stats/by-class`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取校本课程
|
||||
*/
|
||||
@ -2059,10 +2412,97 @@ const getAllCourses = (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取任务完成情况分页
|
||||
*/
|
||||
const getCompletions1 = (
|
||||
id: number,
|
||||
params?: GetCompletions1Params,
|
||||
) => {
|
||||
return request<ResultPageResultTaskCompletion>(
|
||||
{url: `/api/v1/school/tasks/${id}/completions`, method: 'GET',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取默认模板(按类型)
|
||||
*/
|
||||
const getDefaultTemplate1 = (
|
||||
taskType: string,
|
||||
) => {
|
||||
return request<ResultTaskTemplate>(
|
||||
{url: `/api/v1/school/tasks/task-templates/default/${taskType}`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取任务统计数据
|
||||
*/
|
||||
const getStats1 = (
|
||||
|
||||
) => {
|
||||
return request<ResultMapStringObject>(
|
||||
{url: `/api/v1/school/tasks/stats`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取月度统计趋势
|
||||
*/
|
||||
const getMonthlyStats1 = (
|
||||
params?: GetMonthlyStats1Params,
|
||||
) => {
|
||||
return request<ResultListMapStringObject>(
|
||||
{url: `/api/v1/school/tasks/stats/monthly`, method: 'GET',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 按任务类型统计
|
||||
*/
|
||||
const getStatsByType1 = (
|
||||
|
||||
) => {
|
||||
return request<ResultMapStringObject>(
|
||||
{url: `/api/v1/school/tasks/stats/by-type`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 按班级统计
|
||||
*/
|
||||
const getStatsByClass1 = (
|
||||
|
||||
) => {
|
||||
return request<ResultListMapStringObject>(
|
||||
{url: `/api/v1/school/tasks/stats/by-class`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取导入模板
|
||||
*/
|
||||
const getImportTemplate = (
|
||||
|
||||
) => {
|
||||
return request<ResultMapStringObject>(
|
||||
{url: `/api/v1/school/students/import/template`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取学校统计数据
|
||||
*/
|
||||
const getStats = (
|
||||
const getStats2 = (
|
||||
|
||||
) => {
|
||||
return request<ResultMapStringObject>(
|
||||
@ -2071,6 +2511,82 @@ const getStats = (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取活跃教师统计
|
||||
*/
|
||||
const getActiveTeachers = (
|
||||
params?: GetActiveTeachersParams,
|
||||
) => {
|
||||
return request<ResultListMapStringObject>(
|
||||
{url: `/api/v1/school/stats/teachers`, method: 'GET',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取课时趋势(最近 N 个月)
|
||||
*/
|
||||
const getLessonTrend = (
|
||||
params?: GetLessonTrendParams,
|
||||
) => {
|
||||
return request<ResultListMapStringObject>(
|
||||
{url: `/api/v1/school/stats/lesson-trend`, method: 'GET',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取课程使用统计
|
||||
*/
|
||||
const getCourseUsageStats = (
|
||||
|
||||
) => {
|
||||
return request<ResultListMapStringObject>(
|
||||
{url: `/api/v1/school/stats/courses`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取课程分布统计(饼图数据)
|
||||
*/
|
||||
const getCourseDistribution = (
|
||||
|
||||
) => {
|
||||
return request<ResultListMapStringObject>(
|
||||
{url: `/api/v1/school/stats/course-distribution`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取最近活动记录
|
||||
*/
|
||||
const getRecentActivities = (
|
||||
params?: GetRecentActivitiesParams,
|
||||
) => {
|
||||
return request<ResultListMapStringObject>(
|
||||
{url: `/api/v1/school/stats/activities`, method: 'GET',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取课表(按日期范围)
|
||||
*/
|
||||
const getTimetable = (
|
||||
params?: GetTimetableParams,
|
||||
) => {
|
||||
return request<ResultListMapStringObject>(
|
||||
{url: `/api/v1/school/schedules/timetable`, method: 'GET',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取学校操作日志
|
||||
*/
|
||||
@ -2084,6 +2600,43 @@ const getLogs = (
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取我的通知
|
||||
*/
|
||||
const getMyNotifications1 = (
|
||||
params?: GetMyNotifications1Params,
|
||||
) => {
|
||||
return request<ResultPageResultNotification>(
|
||||
{url: `/api/v1/school/notifications`, method: 'GET',
|
||||
params
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 根据 ID 获取通知
|
||||
*/
|
||||
const getNotification1 = (
|
||||
id: number,
|
||||
) => {
|
||||
return request<ResultNotification>(
|
||||
{url: `/api/v1/school/notifications/${id}`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 获取未读通知数量
|
||||
*/
|
||||
const getUnreadCount1 = (
|
||||
|
||||
) => {
|
||||
return request<ResultLong>(
|
||||
{url: `/api/v1/school/notifications/unread-count`, method: 'GET'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 导出教师信息到Excel
|
||||
*/
|
||||
@ -2186,8 +2739,8 @@ const getTasksByStudent = (
|
||||
/**
|
||||
* @summary 获取我的通知
|
||||
*/
|
||||
const getMyNotifications1 = (
|
||||
params?: GetMyNotifications1Params,
|
||||
const getMyNotifications2 = (
|
||||
params?: GetMyNotifications2Params,
|
||||
) => {
|
||||
return request<ResultPageResultNotification>(
|
||||
{url: `/api/v1/parent/notifications`, method: 'GET',
|
||||
@ -2199,7 +2752,7 @@ const getMyNotifications1 = (
|
||||
/**
|
||||
* @summary 根据ID获取通知
|
||||
*/
|
||||
const getNotification1 = (
|
||||
const getNotification2 = (
|
||||
id: number,
|
||||
) => {
|
||||
return request<ResultNotification>(
|
||||
@ -2211,7 +2764,7 @@ const getNotification1 = (
|
||||
/**
|
||||
* @summary 获取未读通知数量
|
||||
*/
|
||||
const getUnreadCount1 = (
|
||||
const getUnreadCount2 = (
|
||||
|
||||
) => {
|
||||
return request<ResultLong>(
|
||||
@ -2299,7 +2852,7 @@ const getAllActiveTenants = (
|
||||
/**
|
||||
* @summary 获取整体统计数据
|
||||
*/
|
||||
const getStats1 = (
|
||||
const getStats3 = (
|
||||
|
||||
) => {
|
||||
return request<ResultMapStringObject>(
|
||||
@ -2386,13 +2939,27 @@ const getReviewCoursePage = (
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 删除课表模板
|
||||
* @summary 移除班级教师
|
||||
*/
|
||||
const deleteScheduleTemplate = (
|
||||
const removeTeacher = (
|
||||
id: number,
|
||||
teacherId: number,
|
||||
) => {
|
||||
return request<ResultVoid>(
|
||||
{url: `/api/v1/school/schedules/templates/${id}`, method: 'DELETE'
|
||||
{url: `/api/v1/school/classes/${id}/teachers/${teacherId}`, method: 'DELETE'
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 移除班级学生
|
||||
*/
|
||||
const removeStudent = (
|
||||
id: number,
|
||||
studentId: number,
|
||||
) => {
|
||||
return request<ResultVoid>(
|
||||
{url: `/api/v1/school/classes/${id}/students/${studentId}`, method: 'DELETE'
|
||||
},
|
||||
);
|
||||
}
|
||||
@ -2410,7 +2977,8 @@ const deleteFile = (
|
||||
);
|
||||
}
|
||||
|
||||
return {getTask,updateTask,deleteTask,getLesson,updateLesson,getGrowthRecord,updateGrowthRecord,deleteGrowthRecord,getTeacher,updateTeacher,deleteTeacher,getTask1,updateTask1,deleteTask1,getStudent,updateStudent,deleteStudent,getSettings,updateSettings,getCourse2,updateCourse,deleteCourse,getSchedulePlan1,updateSchedulePlan,deleteSchedulePlan,getParent,updateParent,deleteParent,getGrowthRecord1,updateGrowthRecord1,deleteGrowthRecord1,getClass,updateClass,deleteClass,getGrowthRecord2,updateGrowthRecord2,deleteGrowthRecord2,getTheme,updateTheme,deleteTheme,getTenant,updateTenant,deleteTenant,updateTenantStatus,updateTenantQuota,getSettings1,updateSettings1,updateLibrary,deleteLibrary,updateItem,deleteItem,getPackage1,updatePackage,deletePackage,getCourse3,updateCourse1,deleteCourse1,getLesson2,updateLesson1,deleteLesson,getTaskPage,createTask,markAsRead,markAllAsRead,getMyLessons,createLesson,startLesson,completeLesson,cancelLesson,getGrowthRecordPage,createGrowthRecord,getTeacherPage,createTeacher,resetPassword,getTaskPage1,createTask1,getStudentPage,createStudent,getCourses1,createCourse,getSchedulePlans1,createSchedulePlan,getScheduleTemplates,createScheduleTemplate,getParentPage,createParent,bindStudent,unbindStudent,resetPassword1,getGrowthRecordPage1,createGrowthRecord1,getClassPage,createClass,assignTeachers,assignStudents,completeTask,markAsRead1,markAllAsRead1,createGrowthRecord2,uploadFile,logout,login,changePassword,getThemes,createTheme,getTenantPage,createTenant,resetTenantPassword,getLibraries,createLibrary,getItems,createItem,getPackages1,createPackage,submitPackage,reviewPackage,publishPackage,offlinePackage,getCoursePage1,createCourse1,withdrawCourse,unpublishCourse,submitCourse,republishCourse,rejectCourse,publishCourse,directPublishCourse,archiveCourse,approveCourse,getLessons1,createLesson1,getCourses,getCourse,getSchedulePlans,getSchedulePlan,getMyNotifications,getNotification,getUnreadCount,getTodayLessons,getDashboard,getWeeklyLessons,getTodayLessons1,getCoursePage,getCourse1,getLessons,getLesson1,getAllCourses,getStats,getLogs,exportTeachers,exportStudents,exportLessons,exportGrowthRecords,getPackages,getPackage,getTask2,getTasksByStudent,getMyNotifications1,getNotification1,getUnreadCount1,getGrowthRecordsByStudent,getRecentGrowthRecords,getMyChildren,getChild,getCurrentUser,getAllActiveTenants,getStats1,getTrendData,getActiveTenants,getPopularCourses,getActivities,getLogs1,getReviewCoursePage,deleteScheduleTemplate,deleteFile}};
|
||||
return {updateCompletion,getTask,updateTask,deleteTask,getLesson,updateLesson,getGrowthRecord,updateGrowthRecord,deleteGrowthRecord,getTeacher,updateTeacher,deleteTeacher,updateCompletion1,getTask1,updateTask1,deleteTask1,getTemplate1,updateTemplate,deleteTemplate,getStudent,updateStudent,deleteStudent,getSettings,updateSettings,getCourse2,updateCourse,deleteCourse,getSchedulePlan1,updateSchedulePlan,deleteSchedulePlan,getScheduleTemplate,updateScheduleTemplate,deleteScheduleTemplate,getParent,updateParent,deleteParent,getGrowthRecord1,updateGrowthRecord1,deleteGrowthRecord1,getClass,updateClass,deleteClass,getGrowthRecord2,updateGrowthRecord2,deleteGrowthRecord2,getTheme,updateTheme,deleteTheme,getTenant,updateTenant,deleteTenant,updateTenantStatus,updateTenantQuota,getSettings1,updateSettings1,updateLibrary,deleteLibrary,updateItem,deleteItem,getPackage1,updatePackage,deletePackage,getCourse3,updateCourse1,deleteCourse1,getLesson2,updateLesson1,deleteLesson,getTaskPage,createTask,createFromTemplate,markAsRead,markAllAsRead,getMyLessons,createLesson,startLesson,completeLesson,cancelLesson,getGrowthRecordPage,createGrowthRecord,getTeacherPage,createTeacher,resetPassword,getTaskPage1,createTask1,getTemplates1,createTemplate,createFromTemplate1,getStudentPage,createStudent,importStudents,getCourses1,createCourse,getSchedulePlans1,createSchedulePlan,getScheduleTemplates,createScheduleTemplate,applyScheduleTemplate,batchCreateSchedules,getParentPage,createParent,bindStudent,unbindStudent,resetPassword1,markAsRead1,markAllAsRead1,getGrowthRecordPage1,createGrowthRecord1,getClassPage,createClass,assignTeachers,assignStudents,completeTask,markAsRead2,markAllAsRead2,createGrowthRecord2,uploadFile,logout,login,changePassword,getThemes,createTheme,getTenantPage,createTenant,resetTenantPassword,getLibraries,createLibrary,getItems,createItem,getPackages1,createPackage,submitPackage,reviewPackage,publishPackage,offlinePackage,getCoursePage1,createCourse1,withdrawCourse,unpublishCourse,submitCourse,republishCourse,rejectCourse,publishCourse,directPublishCourse,archiveCourse,approveCourse,getLessons1,createLesson1,getCompletions,getTemplates,getTemplate,getDefaultTemplate,getStats,getMonthlyStats,getStatsByType,getStatsByClass,getCourses,getCourse,getSchedulePlans,getSchedulePlan,getMyNotifications,getNotification,getUnreadCount,getTodayLessons,getDashboard,getWeeklyLessons,getTodayLessons1,getCoursePage,getCourse1,getLessons,getLesson1,getAllCourses,getCompletions1,getDefaultTemplate1,getStats1,getMonthlyStats1,getStatsByType1,getStatsByClass1,getImportTemplate,getStats2,getActiveTeachers,getLessonTrend,getCourseUsageStats,getCourseDistribution,getRecentActivities,getTimetable,getLogs,getMyNotifications1,getNotification1,getUnreadCount1,exportTeachers,exportStudents,exportLessons,exportGrowthRecords,getPackages,getPackage,getTask2,getTasksByStudent,getMyNotifications2,getNotification2,getUnreadCount2,getGrowthRecordsByStudent,getRecentGrowthRecords,getMyChildren,getChild,getCurrentUser,getAllActiveTenants,getStats3,getTrendData,getActiveTenants,getPopularCourses,getActivities,getLogs1,getReviewCoursePage,removeTeacher,removeStudent,deleteFile}};
|
||||
export type UpdateCompletionResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['updateCompletion']>>>
|
||||
export type GetTaskResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTask']>>>
|
||||
export type UpdateTaskResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['updateTask']>>>
|
||||
export type DeleteTaskResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['deleteTask']>>>
|
||||
@ -2422,9 +2990,13 @@ export type DeleteGrowthRecordResult = NonNullable<Awaited<ReturnType<ReturnType
|
||||
export type GetTeacherResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTeacher']>>>
|
||||
export type UpdateTeacherResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['updateTeacher']>>>
|
||||
export type DeleteTeacherResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['deleteTeacher']>>>
|
||||
export type UpdateCompletion1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['updateCompletion1']>>>
|
||||
export type GetTask1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTask1']>>>
|
||||
export type UpdateTask1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['updateTask1']>>>
|
||||
export type DeleteTask1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['deleteTask1']>>>
|
||||
export type GetTemplate1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTemplate1']>>>
|
||||
export type UpdateTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['updateTemplate']>>>
|
||||
export type DeleteTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['deleteTemplate']>>>
|
||||
export type GetStudentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getStudent']>>>
|
||||
export type UpdateStudentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['updateStudent']>>>
|
||||
export type DeleteStudentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['deleteStudent']>>>
|
||||
@ -2436,6 +3008,9 @@ export type DeleteCourseResult = NonNullable<Awaited<ReturnType<ReturnType<typeo
|
||||
export type GetSchedulePlan1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getSchedulePlan1']>>>
|
||||
export type UpdateSchedulePlanResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['updateSchedulePlan']>>>
|
||||
export type DeleteSchedulePlanResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['deleteSchedulePlan']>>>
|
||||
export type GetScheduleTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getScheduleTemplate']>>>
|
||||
export type UpdateScheduleTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['updateScheduleTemplate']>>>
|
||||
export type DeleteScheduleTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['deleteScheduleTemplate']>>>
|
||||
export type GetParentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getParent']>>>
|
||||
export type UpdateParentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['updateParent']>>>
|
||||
export type DeleteParentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['deleteParent']>>>
|
||||
@ -2473,6 +3048,7 @@ export type UpdateLesson1Result = NonNullable<Awaited<ReturnType<ReturnType<type
|
||||
export type DeleteLessonResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['deleteLesson']>>>
|
||||
export type GetTaskPageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTaskPage']>>>
|
||||
export type CreateTaskResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createTask']>>>
|
||||
export type CreateFromTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createFromTemplate']>>>
|
||||
export type MarkAsReadResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['markAsRead']>>>
|
||||
export type MarkAllAsReadResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['markAllAsRead']>>>
|
||||
export type GetMyLessonsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getMyLessons']>>>
|
||||
@ -2487,19 +3063,27 @@ export type CreateTeacherResult = NonNullable<Awaited<ReturnType<ReturnType<type
|
||||
export type ResetPasswordResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['resetPassword']>>>
|
||||
export type GetTaskPage1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTaskPage1']>>>
|
||||
export type CreateTask1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createTask1']>>>
|
||||
export type GetTemplates1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTemplates1']>>>
|
||||
export type CreateTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createTemplate']>>>
|
||||
export type CreateFromTemplate1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createFromTemplate1']>>>
|
||||
export type GetStudentPageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getStudentPage']>>>
|
||||
export type CreateStudentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createStudent']>>>
|
||||
export type ImportStudentsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['importStudents']>>>
|
||||
export type GetCourses1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getCourses1']>>>
|
||||
export type CreateCourseResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createCourse']>>>
|
||||
export type GetSchedulePlans1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getSchedulePlans1']>>>
|
||||
export type CreateSchedulePlanResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createSchedulePlan']>>>
|
||||
export type GetScheduleTemplatesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getScheduleTemplates']>>>
|
||||
export type CreateScheduleTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createScheduleTemplate']>>>
|
||||
export type ApplyScheduleTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['applyScheduleTemplate']>>>
|
||||
export type BatchCreateSchedulesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['batchCreateSchedules']>>>
|
||||
export type GetParentPageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getParentPage']>>>
|
||||
export type CreateParentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createParent']>>>
|
||||
export type BindStudentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['bindStudent']>>>
|
||||
export type UnbindStudentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['unbindStudent']>>>
|
||||
export type ResetPassword1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['resetPassword1']>>>
|
||||
export type MarkAsRead1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['markAsRead1']>>>
|
||||
export type MarkAllAsRead1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['markAllAsRead1']>>>
|
||||
export type GetGrowthRecordPage1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getGrowthRecordPage1']>>>
|
||||
export type CreateGrowthRecord1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createGrowthRecord1']>>>
|
||||
export type GetClassPageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getClassPage']>>>
|
||||
@ -2507,8 +3091,8 @@ export type CreateClassResult = NonNullable<Awaited<ReturnType<ReturnType<typeof
|
||||
export type AssignTeachersResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['assignTeachers']>>>
|
||||
export type AssignStudentsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['assignStudents']>>>
|
||||
export type CompleteTaskResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['completeTask']>>>
|
||||
export type MarkAsRead1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['markAsRead1']>>>
|
||||
export type MarkAllAsRead1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['markAllAsRead1']>>>
|
||||
export type MarkAsRead2Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['markAsRead2']>>>
|
||||
export type MarkAllAsRead2Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['markAllAsRead2']>>>
|
||||
export type CreateGrowthRecord2Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createGrowthRecord2']>>>
|
||||
export type UploadFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['uploadFile']>>>
|
||||
export type LogoutResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['logout']>>>
|
||||
@ -2542,6 +3126,14 @@ export type ArchiveCourseResult = NonNullable<Awaited<ReturnType<ReturnType<type
|
||||
export type ApproveCourseResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['approveCourse']>>>
|
||||
export type GetLessons1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getLessons1']>>>
|
||||
export type CreateLesson1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['createLesson1']>>>
|
||||
export type GetCompletionsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getCompletions']>>>
|
||||
export type GetTemplatesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTemplates']>>>
|
||||
export type GetTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTemplate']>>>
|
||||
export type GetDefaultTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getDefaultTemplate']>>>
|
||||
export type GetStatsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getStats']>>>
|
||||
export type GetMonthlyStatsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getMonthlyStats']>>>
|
||||
export type GetStatsByTypeResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getStatsByType']>>>
|
||||
export type GetStatsByClassResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getStatsByClass']>>>
|
||||
export type GetCoursesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getCourses']>>>
|
||||
export type GetCourseResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getCourse']>>>
|
||||
export type GetSchedulePlansResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getSchedulePlans']>>>
|
||||
@ -2558,8 +3150,24 @@ export type GetCourse1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof
|
||||
export type GetLessonsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getLessons']>>>
|
||||
export type GetLesson1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getLesson1']>>>
|
||||
export type GetAllCoursesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getAllCourses']>>>
|
||||
export type GetStatsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getStats']>>>
|
||||
export type GetCompletions1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getCompletions1']>>>
|
||||
export type GetDefaultTemplate1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getDefaultTemplate1']>>>
|
||||
export type GetStats1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getStats1']>>>
|
||||
export type GetMonthlyStats1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getMonthlyStats1']>>>
|
||||
export type GetStatsByType1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getStatsByType1']>>>
|
||||
export type GetStatsByClass1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getStatsByClass1']>>>
|
||||
export type GetImportTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getImportTemplate']>>>
|
||||
export type GetStats2Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getStats2']>>>
|
||||
export type GetActiveTeachersResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getActiveTeachers']>>>
|
||||
export type GetLessonTrendResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getLessonTrend']>>>
|
||||
export type GetCourseUsageStatsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getCourseUsageStats']>>>
|
||||
export type GetCourseDistributionResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getCourseDistribution']>>>
|
||||
export type GetRecentActivitiesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getRecentActivities']>>>
|
||||
export type GetTimetableResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTimetable']>>>
|
||||
export type GetLogsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getLogs']>>>
|
||||
export type GetMyNotifications1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getMyNotifications1']>>>
|
||||
export type GetNotification1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getNotification1']>>>
|
||||
export type GetUnreadCount1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getUnreadCount1']>>>
|
||||
export type ExportTeachersResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['exportTeachers']>>>
|
||||
export type ExportStudentsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['exportStudents']>>>
|
||||
export type ExportLessonsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['exportLessons']>>>
|
||||
@ -2568,21 +3176,22 @@ export type GetPackagesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof
|
||||
export type GetPackageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getPackage']>>>
|
||||
export type GetTask2Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTask2']>>>
|
||||
export type GetTasksByStudentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTasksByStudent']>>>
|
||||
export type GetMyNotifications1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getMyNotifications1']>>>
|
||||
export type GetNotification1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getNotification1']>>>
|
||||
export type GetUnreadCount1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getUnreadCount1']>>>
|
||||
export type GetMyNotifications2Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getMyNotifications2']>>>
|
||||
export type GetNotification2Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getNotification2']>>>
|
||||
export type GetUnreadCount2Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getUnreadCount2']>>>
|
||||
export type GetGrowthRecordsByStudentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getGrowthRecordsByStudent']>>>
|
||||
export type GetRecentGrowthRecordsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getRecentGrowthRecords']>>>
|
||||
export type GetMyChildrenResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getMyChildren']>>>
|
||||
export type GetChildResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getChild']>>>
|
||||
export type GetCurrentUserResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getCurrentUser']>>>
|
||||
export type GetAllActiveTenantsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getAllActiveTenants']>>>
|
||||
export type GetStats1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getStats1']>>>
|
||||
export type GetStats3Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getStats3']>>>
|
||||
export type GetTrendDataResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getTrendData']>>>
|
||||
export type GetActiveTenantsResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getActiveTenants']>>>
|
||||
export type GetPopularCoursesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getPopularCourses']>>>
|
||||
export type GetActivitiesResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getActivities']>>>
|
||||
export type GetLogs1Result = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getLogs1']>>>
|
||||
export type GetReviewCoursePageResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['getReviewCoursePage']>>>
|
||||
export type DeleteScheduleTemplateResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['deleteScheduleTemplate']>>>
|
||||
export type RemoveTeacherResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['removeTeacher']>>>
|
||||
export type RemoveStudentResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['removeStudent']>>>
|
||||
export type DeleteFileResult = NonNullable<Awaited<ReturnType<ReturnType<typeof getReadingPlatformAPI>['deleteFile']>>>
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -0,0 +1,23 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* 从模板创建任务请求
|
||||
*/
|
||||
export interface CreateTaskFromTemplateRequest {
|
||||
/** 模板 ID */
|
||||
templateId?: number;
|
||||
/** 目标 ID 列表(班级 ID 或学生 ID) */
|
||||
targetIds: number[];
|
||||
/** 目标类型:CLASS-班级,STUDENT-学生 */
|
||||
targetType?: string;
|
||||
/** 任务开始日期 */
|
||||
startDate?: string;
|
||||
/** 任务截止日期 */
|
||||
endDate?: string;
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetActiveTeachersParams = {
|
||||
limit?: number;
|
||||
};
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetCompletions1Params = {
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
status?: string;
|
||||
};
|
||||
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetCompletionsParams = {
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
status?: string;
|
||||
};
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetLessonTrendParams = {
|
||||
months?: number;
|
||||
};
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetMonthlyStats1Params = {
|
||||
months?: number;
|
||||
};
|
||||
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetMonthlyStatsParams = {
|
||||
months?: number;
|
||||
};
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetMyNotifications2Params = {
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
isRead?: number;
|
||||
};
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetRecentActivitiesParams = {
|
||||
limit?: number;
|
||||
};
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
@ -10,4 +10,6 @@ export type GetSchedulePlans1Params = {
|
||||
pageNum?: number;
|
||||
pageSize?: number;
|
||||
classId?: number;
|
||||
startDate?: string;
|
||||
endDate?: string;
|
||||
};
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetTemplates1Params = {
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
keyword?: string;
|
||||
type?: string;
|
||||
};
|
||||
@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetTemplatesParams = {
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
keyword?: string;
|
||||
type?: string;
|
||||
};
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
|
||||
export type GetTimetableParams = {
|
||||
startDate?: string;
|
||||
endDate?: string;
|
||||
classId?: number;
|
||||
};
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
@ -18,10 +18,14 @@ export * from './courseCreateRequest';
|
||||
export * from './courseLesson';
|
||||
export * from './coursePackage';
|
||||
export * from './courseUpdateRequest';
|
||||
export * from './createTaskFromTemplateRequest';
|
||||
export * from './deleteFileParams';
|
||||
export * from './getActiveTeachersParams';
|
||||
export * from './getActiveTenantsParams';
|
||||
export * from './getActivitiesParams';
|
||||
export * from './getClassPageParams';
|
||||
export * from './getCompletions1Params';
|
||||
export * from './getCompletionsParams';
|
||||
export * from './getCoursePage1Params';
|
||||
export * from './getCoursePageParams';
|
||||
export * from './getCourses1Params';
|
||||
@ -30,16 +34,21 @@ export * from './getGrowthRecordPage1Params';
|
||||
export * from './getGrowthRecordPageParams';
|
||||
export * from './getGrowthRecordsByStudentParams';
|
||||
export * from './getItemsParams';
|
||||
export * from './getLessonTrendParams';
|
||||
export * from './getLibrariesParams';
|
||||
export * from './getLogs1Params';
|
||||
export * from './getLogsParams';
|
||||
export * from './getMonthlyStats1Params';
|
||||
export * from './getMonthlyStatsParams';
|
||||
export * from './getMyLessonsParams';
|
||||
export * from './getMyNotifications1Params';
|
||||
export * from './getMyNotifications2Params';
|
||||
export * from './getMyNotificationsParams';
|
||||
export * from './getPackages1Params';
|
||||
export * from './getPackagesParams';
|
||||
export * from './getParentPageParams';
|
||||
export * from './getPopularCoursesParams';
|
||||
export * from './getRecentActivitiesParams';
|
||||
export * from './getRecentGrowthRecordsParams';
|
||||
export * from './getReviewCoursePageParams';
|
||||
export * from './getSchedulePlans1Params';
|
||||
@ -50,8 +59,11 @@ export * from './getTaskPage1Params';
|
||||
export * from './getTaskPageParams';
|
||||
export * from './getTasksByStudentParams';
|
||||
export * from './getTeacherPageParams';
|
||||
export * from './getTemplates1Params';
|
||||
export * from './getTemplatesParams';
|
||||
export * from './getTenantPageParams';
|
||||
export * from './getThemesParams';
|
||||
export * from './getTimetableParams';
|
||||
export * from './growthRecord';
|
||||
export * from './growthRecordCreateRequest';
|
||||
export * from './growthRecordUpdateRequest';
|
||||
@ -77,6 +89,8 @@ export * from './pageResultScheduleTemplate';
|
||||
export * from './pageResultSchoolCourse';
|
||||
export * from './pageResultStudent';
|
||||
export * from './pageResultTask';
|
||||
export * from './pageResultTaskCompletion';
|
||||
export * from './pageResultTaskTemplate';
|
||||
export * from './pageResultTeacher';
|
||||
export * from './pageResultTenant';
|
||||
export * from './parent';
|
||||
@ -100,6 +114,7 @@ export * from './resultListLesson';
|
||||
export * from './resultListMapStringObject';
|
||||
export * from './resultListMapStringObjectDataItem';
|
||||
export * from './resultListResourceLibrary';
|
||||
export * from './resultListSchedulePlan';
|
||||
export * from './resultListStudent';
|
||||
export * from './resultListTenantResponse';
|
||||
export * from './resultListTheme';
|
||||
@ -124,6 +139,8 @@ export * from './resultPageResultScheduleTemplate';
|
||||
export * from './resultPageResultSchoolCourse';
|
||||
export * from './resultPageResultStudent';
|
||||
export * from './resultPageResultTask';
|
||||
export * from './resultPageResultTaskCompletion';
|
||||
export * from './resultPageResultTaskTemplate';
|
||||
export * from './resultPageResultTeacher';
|
||||
export * from './resultPageResultTenant';
|
||||
export * from './resultParent';
|
||||
@ -134,6 +151,8 @@ export * from './resultScheduleTemplate';
|
||||
export * from './resultSchoolCourse';
|
||||
export * from './resultStudent';
|
||||
export * from './resultTask';
|
||||
export * from './resultTaskCompletion';
|
||||
export * from './resultTaskTemplate';
|
||||
export * from './resultTeacher';
|
||||
export * from './resultTenant';
|
||||
export * from './resultTheme';
|
||||
@ -142,13 +161,19 @@ export * from './resultVoid';
|
||||
export * from './resultVoidData';
|
||||
export * from './reviewPackageBody';
|
||||
export * from './schedulePlan';
|
||||
export * from './schedulePlanCreateRequest';
|
||||
export * from './scheduleTemplate';
|
||||
export * from './scheduleTemplateApplyRequest';
|
||||
export * from './schoolCourse';
|
||||
export * from './student';
|
||||
export * from './studentCreateRequest';
|
||||
export * from './studentUpdateRequest';
|
||||
export * from './task';
|
||||
export * from './taskCompletion';
|
||||
export * from './taskCreateRequest';
|
||||
export * from './taskTemplate';
|
||||
export * from './taskTemplateCreateRequest';
|
||||
export * from './taskTemplateUpdateRequest';
|
||||
export * from './taskUpdateRequest';
|
||||
export * from './teacher';
|
||||
export * from './teacherCreateRequest';
|
||||
@ -158,6 +183,8 @@ export * from './tenantCreateRequest';
|
||||
export * from './tenantResponse';
|
||||
export * from './tenantUpdateRequest';
|
||||
export * from './theme';
|
||||
export * from './updateCompletion1Params';
|
||||
export * from './updateCompletionParams';
|
||||
export * from './updateSettings1Body';
|
||||
export * from './updateSettingsBody';
|
||||
export * from './updateTenantQuotaBody';
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { TaskCompletion } from './taskCompletion';
|
||||
|
||||
export interface PageResultTaskCompletion {
|
||||
total?: number;
|
||||
pageSize?: number;
|
||||
items?: TaskCompletion[];
|
||||
page?: number;
|
||||
totalPages?: number;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
* OpenAPI spec version: 1.0.0
|
||||
*/
|
||||
import type { TaskTemplate } from './taskTemplate';
|
||||
|
||||
export interface PageResultTaskTemplate {
|
||||
total?: number;
|
||||
pageSize?: number;
|
||||
items?: TaskTemplate[];
|
||||
page?: number;
|
||||
totalPages?: number;
|
||||
}
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* Generated by orval v7.13.2 🍺
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Reading Platform API
|
||||
* Reading Platform Backend Service API Documentation
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user