caipin vor 4 Jahren
Ursprung
Commit
d10023636a
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. 6 0
      web/viewmodels/safe.go

+ 6 - 0
web/viewmodels/safe.go

@@ -113,3 +113,9 @@ func (l Safe) ValidateDelete() error {
 		validation.Field(&l.Id, validation.Required.Error("检查项目不能为空")),
 	)
 }
+
+func (l Safe) ValidateBidsectionId() error {
+	return validation.ValidateStruct(&l,
+		validation.Field(&l.BidsectionId, validation.Required.Error("标段ID不能为空")),
+	)
+}