提交 550e4241 编写于 作者: lwplvx's avatar lwplvx

添加试题库/错题库 相关实体类

上级 30686f2b
......@@ -10,7 +10,7 @@ namespace Aurora.Common.Entities
/// <summary>
/// 主键
/// </summary>
int ID { get; set; }
int ID { get; set; }
DateTimeOffset CreateTime { get; set; }
string CreateUserName { get; set; }
......
......@@ -8,7 +8,13 @@
},
"Service": {
"Name": "Aurora.Core.Api",
"Port": "8000"
"Port": "8000",
"checks": [
{
"http": "http://loalhost:8000/api/health",
"interval": "10s"
}
]
},
"Consul": {
"IP": "localhost",
......
using System.Collections.Generic;
namespace Aurora.Core.Domain.Entities
{
/// <summary>
/// 标准答案
/// </summary>
public class Answer : TenantEntityBase
{
/// <summary>
/// 题目类型,问答,判断,单选,多选 等
/// </summary>
public QuestionTypes QuestionType { get; set; }
/// <summary>
/// 第几个选项
/// </summary>
public int Index { get; set; }
/// <summary>
/// 内容
/// </summary>
public int Content { get; set; }
/// <summary>
/// 是否为正确答案
/// </summary>
public bool IsCorrectAnswer { get; set; }
}
}
\ No newline at end of file
using System;
using System.Collections.Generic;
namespace Aurora.Core.Domain.Entities
{
/// <summary>
/// 分类,分组
/// </summary>
public class Category : TenantEntityBase
{
public int ParentId { get; set; }
public string Name { get; set; }
public string Remark { get; set; }
/// <summary>
/// 科目,学科
/// </summary>
public List<Subject> Subjects { get; set; }
}
}
......@@ -3,9 +3,9 @@ using Aurora.Common.Entities;
namespace Aurora.Core.Domain.Entities
{
public class EntityBase:IEntity
public class EntityBase : IEntity
{
public int ID { get; set; }
public int ID { get; set; }
public DateTimeOffset CreateTime { get; set; }
public string CreateUserName { get; set; }
public DateTimeOffset? ModifyTime { get; set; }
......
using System.Collections.Generic;
namespace Aurora.Core.Domain.Entities
{
/// <summary>
/// 试卷
/// </summary>
public class Exampaper : TenantEntityBase
{
public string Name { get; set; }
/// <summary>
/// 试题
/// </summary>
public List<Question> Questions { get; set; }
}
}
\ No newline at end of file
using System.Collections.Generic;
namespace Aurora.Core.Domain.Entities
{
/// <summary>
/// 题目
/// </summary>
public class Question : TenantEntityBase
{
/// <summary>
/// 题号,第几题
/// </summary>
public int Index { get; set; }
/// <summary>
/// 分值
/// </summary>
public int Score { get; set; }
/// <summary>
/// 名称
/// </summary>
public string Content { get; set; }
/// <summary>
/// 描述
/// </summary>
/// <value></value>
public string Description { get; set; }
/// <summary>
/// 答案内容
/// </summary>
public List<Answer> Answers { get; set; }
}
}
\ No newline at end of file
using System.Collections.Generic;
namespace Aurora.Core.Domain.Entities
{
/// <summary>
/// 科目
/// </summary>
public class Subject : TenantEntityBase
{
/// <summary>
/// 名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 描述
/// </summary>
/// <value></value>
public string Description { get; set; }
/// <summary>
/// 试卷
/// </summary>
public List<Exampaper> Exampapers { get; set; }
}
}
\ No newline at end of file
namespace Aurora.Core.Domain.Entities
{
/// <summary>
/// 提交的答案,答题的内容
/// </summary>
public class SubmitAnswer :TenantEntityBase
{
}
}
\ No newline at end of file
namespace Aurora.Core.Domain.Entities
{
/// <summary>
/// 用户
/// </summary>
public class User : TenantEntityBase
{
}
}
\ No newline at end of file
namespace Aurora.Core.Domain
{
/// <summary>
/// 问题类型,问答,单选,多选,其他
/// </summary>
public enum QuestionTypes
{
/// <summary>
/// 单选
/// </summary>
SingleSelect = 1,
/// <summary>
/// 多选
/// </summary>
MultipleSelect,
/// <summary>
/// 判断
/// </summary>
Judgment,
/// <summary>
/// 问答
/// </summary>
Q_A,
/// <summary>
/// 其他
/// </summary>
Other,
}
}
\ No newline at end of file
......@@ -22,6 +22,7 @@
* 分类管理
* 试题录入/导入
* 答案录入/导入
* 试题查看
* 答案判断
* 得分统计
* 奖励相关???
......
# 记录一些想法和思考
考虑DDD 模式实现,根据目前学习的 DDD 概念
## 接口日志如何实现
可以记录操作路径,参数,业务类型,业务描述的
......
......@@ -9,6 +9,8 @@
* [8分钟学会Consul集群搭建及微服务概念](https://www.cnblogs.com/ZaraNet/p/10123291.html)
* [httpreports 文档](https://www.yuque.com/httpreports/docs/azyxwc#KHHIP)
https://www.cnblogs.com/mrhelloworld/p/consul-config.html
自己写的 k8s 集群搭建方法放出来
搜索一个 Docker Desktop 安装k8s的方法
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册