sunsheng 1 年之前
父節點
當前提交
cb2e83494a
共有 3 個文件被更改,包括 5 次插入5 次删除
  1. 2 2
      src/api/router.go
  2. 二進制
      src/copter-train.exe
  3. 3 3
      src/db/model/category.go

+ 2 - 2
src/api/router.go

@@ -43,7 +43,7 @@ func RegRouters(svc *Service) {
 	// 生成考核试题
 	root.POSTJWT("/exeam/generate/:scope", GenerateExeam)
 
-	// 考核记录
+	// 提交考核记录
 	root.POSTJWT("/exeamLog/submit/:scope", SubmitExeamLog)
 	// 考核记录列表
 	root.GETJWT("/exeamLog/list/:scope", ExeamLogList)
@@ -53,7 +53,7 @@ func RegRouters(svc *Service) {
 	// 学习记录统计 / 考核记录统计
 	// 管理员:选择学员查看,理论和实操分开
 	// 学习记录统计: x月份 y时长
-	// 考核记录统计: 历史考核记录[v]
+	// 考核记录统计: 历史考核记录[v] | 考核列表
 
 	// 考虑创建一张统计表,学习完成把当前学习时长写入统计表
 

二進制
src/copter-train.exe


+ 3 - 3
src/db/model/category.go

@@ -11,9 +11,9 @@ type Category struct {
 	Id         primitive.ObjectID `bson:"_id,omitempty" json:"_id"`
 	Pid        string             `bson:"pid,omitempty" json:"pid"` // 分类的上层id // 默认为top
 	Name       string             `bson:"name,omitempty" json:"name"`
-	Sort       *int               `bson:"sort,omitempty" json:"sort"` // 排序,使用创建时间联合排序。排序按升序排,默认为0
-	Type       string             `bson:"type,omitempty" json:"type"` // 分类类型,系列/课程/章节/知识点
-	Db         string             `bson:"db,omitempty" json:"db"`     // 分类所属的数据库
+	Sort       *int               `bson:"sort,omitempty" json:"sort"`   // 排序,使用创建时间联合排序。排序按升序排,默认为0
+	Type       string             `bson:"type,omitempty" json:"type"`   // 分类类型,系列/课程/章节/知识点
+	Scope      string             `bson:"scope,omitempty" json:"scope"` // 分类所属的数据库 模块唯一
 	CreateTime time.Time          `bson:"createTime,omitempty" json:"createTime"`
 	UpdateTime time.Time          `bson:"updateTime,omitempty" json:"updateTime"`
 }