一、教育文件管理需求
在开发"智慧学堂"教学平台时,我们基于File Manager Service Kit实现了:
// 初始化教育文件服务
const eduFileManager = fileManager.createService({
profile: 'EDUCATION',
features: ['MATERIAL', 'HOMEWORK', 'EXAM']
});
// 创建学科资料库
const mathRepo = await eduFileManager.createRepository({
name: '数学资源库',
structure: [
{ type: 'FOLDER', name: '课件' },
{ type: 'FOLDER', name: '习题' }
]
});
//核心功能实现
// 学生提交作业
async function submitHomework(file: FileObject) {
return await eduFileManager.upload({
dest: `/作业/${classId}/${studentId}`,
file: file,
metadata: {
subject: '数学',

最低0.47元/天 解锁文章
148

被折叠的 条评论
为什么被折叠?



