From 104db2ea4e4c76ed83e04b5ea7f9d427d16474a0 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 18 八月 2023 11:05:28 +0800
Subject: [PATCH] Merge branch 'master' into fly

---
 model/faultType.go |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/model/faultType.go b/model/faultType.go
index 260cc2f..82e9a65 100644
--- a/model/faultType.go
+++ b/model/faultType.go
@@ -12,18 +12,18 @@
 	// FaultType 鏁呴殰绫诲埆
 	FaultType struct {
 		Id   int    `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"`
-		Name   string    `json:"name" gorm:"column:name"`
+		Name string `json:"name" gorm:"column:name"`
 	}
 
 	// FaultTypeSearch 鏁呴殰绫诲埆鎼滅储鏉′欢
 	FaultTypeSearch struct {
 		FaultType
-		Orm *gorm.DB
-        QueryClass  constvar.FaultTypeQueryClass
-        KeywordType constvar.FaultTypeKeywordType
-        Keyword     string
-        PageNum  int
-        PageSize int
+		Orm         *gorm.DB
+		QueryClass  constvar.FaultTypeQueryClass
+		KeywordType constvar.FaultTypeKeywordType
+		Keyword     string
+		PageNum     int
+		PageSize    int
 	}
 )
 
@@ -130,6 +130,13 @@
 	if total != 0 {
 		return nil
 	}
-	records := []*FaultType{}
+	records := []*FaultType{
+		{1, "璁惧瀹夎"},
+		{2, "璁惧璋冩暀"},
+		{3, "璁惧鍗囩骇"},
+		{4, "鐢垫皵鏁呴殰"},
+		{5, "璁惧鏁呴殰"},
+		{6, "璁惧鑹搧鐜囦綆"},
+	}
 	return slf.CreateBatch(records)
 }

--
Gitblit v1.8.0