重构项目结构,移除Assignment相关功能,优化Submission模块
Some checks failed
TechAct / explore-gitea-actions (push) Failing after 12s

This commit is contained in:
SpecialX
2025-10-09 18:57:28 +08:00
parent 403b34a098
commit ac900159ba
289 changed files with 11948 additions and 20150 deletions

View File

@@ -5,7 +5,7 @@ using TechHelper.Context;
namespace TechHelper.Repository
{
public class AssignmentAttachmentRepository : Repository<AssignmentAttachment>, IRepository<AssignmentAttachment>
public class AssignmentAttachmentRepository : Repository<ExamAttachment>, IRepository<ExamAttachment>
{
public AssignmentAttachmentRepository(ApplicationContext dbContext) : base(dbContext)
{

View File

@@ -1,14 +0,0 @@
using Entities.Contracts;
using Microsoft.EntityFrameworkCore;
using SharedDATA.Api;
using TechHelper.Context;
namespace TechHelper.Repository
{
public class AssignmentClassRepository : Repository<AssignmentClass>, IRepository<AssignmentClass>
{
public AssignmentClassRepository(ApplicationContext dbContext) : base(dbContext)
{
}
}
}

View File

@@ -5,7 +5,7 @@ using TechHelper.Context;
namespace TechHelper.Repository
{
public class AssignmentQuestionRepository : Repository<AssignmentQuestion>, IRepository<AssignmentQuestion>
public class AssignmentQuestionRepository : Repository<ExamQuestion>, IRepository<ExamQuestion>
{
public AssignmentQuestionRepository(ApplicationContext dbContext) : base(dbContext)
{

View File

@@ -5,7 +5,7 @@ using TechHelper.Context;
namespace TechHelper.Repository
{
public class AssignmentRepository : Repository<Assignment>, IRepository<Assignment>
public class AssignmentRepository : Repository<Exam>, IRepository<Exam>
{
public AssignmentRepository(ApplicationContext dbContext) : base(dbContext)
{

View File

@@ -1,14 +0,0 @@
using Entities.Contracts;
using Microsoft.EntityFrameworkCore;
using SharedDATA.Api;
using TechHelper.Context;
namespace TechHelper.Repository
{
public class ClassStudentRepository : Repository<ClassStudent>, IRepository<ClassStudent>
{
public ClassStudentRepository(ApplicationContext dbContext) : base(dbContext)
{
}
}
}

View File

@@ -1,14 +0,0 @@
using Entities.Contracts;
using Microsoft.EntityFrameworkCore;
using SharedDATA.Api;
using TechHelper.Context;
namespace TechHelper.Repository
{
public class ClassTeacherRepository : Repository<ClassTeacher>, IRepository<ClassTeacher>
{
public ClassTeacherRepository(ApplicationContext dbContext) : base(dbContext)
{
}
}
}

View File

@@ -5,13 +5,10 @@ using TechHelper.Context;
namespace TechHelper.Repository
{
public class GlobalRepository : Repository<Global>, IRepository<Global>
public class ClassUserRepository : Repository<ClassUser>, IRepository<ClassUser>
{
public GlobalRepository(ApplicationContext dbContext) : base(dbContext)
public ClassUserRepository(ApplicationContext dbContext) : base(dbContext)
{
}
}
}

View File

@@ -0,0 +1,14 @@
using Entities.Contracts;
using Microsoft.EntityFrameworkCore;
using SharedDATA.Api;
using TechHelper.Context;
namespace TechHelper.Repository
{
public class ExamQuestionRepository : Repository<ExamQuestion>, IRepository<ExamQuestion>
{
public ExamQuestionRepository(ApplicationContext dbContext) : base(dbContext)
{
}
}
}

View File

@@ -0,0 +1,14 @@
using Entities.Contracts;
using Microsoft.EntityFrameworkCore;
using SharedDATA.Api;
using TechHelper.Context;
namespace TechHelper.Repository
{
public class ExamTypeRepository : Repository<ExamType>, IRepository<ExamType>
{
public ExamTypeRepository(ApplicationContext dbContext) : base(dbContext)
{
}
}
}

View File

@@ -0,0 +1,13 @@
using Entities.Contracts;
using SharedDATA.Api;
using TechHelper.Context;
namespace TechHelper.Repository
{
public class KeyPointRepository : Repository<KeyPoint>, IRepository<KeyPoint>
{
public KeyPointRepository(ApplicationContext context) : base(context)
{
}
}
}

View File

@@ -0,0 +1,18 @@
using Entities.Contracts;
using SharedDATA.Api;
using System.Linq.Expressions;
using TechHelper.Context;
using TechHelper.Server.Repository;
namespace TechHelper.Server.Repository
{
/// <summary>
/// Lesson仓储实现类
/// </summary>
public class LessonRepository : Repository<Lesson>, IRepository<Lesson>
{
public LessonRepository(ApplicationContext context) : base(context)
{
}
}
}

View File

@@ -0,0 +1,14 @@
using Entities.Contracts;
using Microsoft.EntityFrameworkCore;
using SharedDATA.Api;
using TechHelper.Context;
namespace TechHelper.Repository
{
public class QuestionTypeRepository : Repository<QuestionType>, IRepository<QuestionType>
{
public QuestionTypeRepository(ApplicationContext dbContext) : base(dbContext)
{
}
}
}

View File

@@ -0,0 +1,14 @@
using Entities.Contracts;
using Microsoft.EntityFrameworkCore;
using SharedDATA.Api;
using TechHelper.Context;
namespace TechHelper.Repository
{
public class SubjectRepository : Repository<Subject>, IRepository<Subject>
{
public SubjectRepository(ApplicationContext dbContext) : base(dbContext)
{
}
}
}

View File

@@ -0,0 +1,21 @@
using Entities.Contracts;
using Microsoft.EntityFrameworkCore;
using SharedDATA.Api;
using TechHelper.Context;
namespace TechHelper.Repository
{
/// <summary>
/// 教材仓储实现类
/// </summary>
public class TextbookRepository : Repository<Textbook>, IRepository<Textbook>
{
/// <summary>
/// 初始化教材仓储
/// </summary>
/// <param name="dbContext">数据库上下文</param>
public TextbookRepository(ApplicationContext dbContext) : base(dbContext)
{
}
}
}