zhangzengfei
2025-02-07 17f45fcc0a062a15372883de8909953071c51b3c
db/db.go
@@ -74,6 +74,14 @@
         Description: "通用脱管模型",
         Version:     "v1.1.0",
         Enabled:     false,
      }, {
         BaseModel: BaseModel{
            ID: ModelIdLocationAnalysis,
         },
         Name:        "重点场所分析",
         Description: "通用场所分析模型",
         Version:     "v1.0.0",
         Enabled:     false,
      },
   }
@@ -155,6 +163,8 @@
            Sort:     3,
         },
      },
      // 托管
      {
         Id:      "7a1f0a3a-c207-4d94-bc28-cc9e017b3628",
         ModelId: ModelIdDisappear,
@@ -206,6 +216,59 @@
            Sort:     1,
         },
      },
      // 场所分析
      {
         Id:      "3f667e5a-bd10-4673-be45-f385e19a9c25",
         ModelId: ModelIdLocationAnalysis,
         Scope:   "",
         RuleArg: RuleArg{
            Alias:    "duration",
            Name:     "时间段",
            Type:     "input",
            Must:     false,
            Unit:     "天",
            Range:    "1,2400",
            Value:    "30",
            ValType:  "int",
            Operator: ">=",
            Sort:     2,
         },
      },
      {
         Id:      "ce298639-0cf8-4a8f-89f9-a932034a1e86",
         ModelId: ModelIdLocationAnalysis,
         Scope:   "",
         RuleArg: RuleArg{
            Alias:    "personCount",
            Name:     "出现人数",
            Type:     "input",
            Must:     true,
            Unit:     "个",
            Range:    "1,100",
            Value:    "1, 90",
            ValType:  "int",
            Operator: ">=",
            Sort:     0,
         },
      },
      {
         Id:      "f85ae400-0114-4862-99f7-14a41530d235",
         ModelId: ModelIdLocationAnalysis,
         Scope:   "",
         RuleArg: RuleArg{
            Alias:    "appearances",
            Name:     "出现次数",
            Type:     "input",
            Must:     true,
            Unit:     "",
            Range:    "",
            Value:    "",
            ValType:  "int",
            Operator: ">=",
            Sort:     1,
         },
      },
   }
   for i := range rules {