caipin 4 anni fa
parent
commit
ccffd36eef
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      services/tree_service.go
  2. 1 1
      web/viewmodels/tree.go

+ 1 - 1
services/tree_service.go

@@ -95,7 +95,7 @@ func (s *treeService) GetAllProject(projectId int) *viewmodels.Tree {
 		folder.BidsectionId = bidsectionId
 		folder.Depth = data.Depth + 1
 		folder.Serial = serial
-		folder.Ancounts = data.Ancounts
+		folder.Accounts = data.Accounts
 		folder.Isfolder = data.Isfolder
 		folder.IsEnd = false
 		//folder.Leaf = true

+ 1 - 1
web/viewmodels/tree.go

@@ -25,7 +25,7 @@ type Tree struct {
 	CreateTime     string `form:"createTime" json:"createTime"`
 	UpdateTime     string `form:"updateTime" json:"updateTime"`
 	TargetFolderId string `form:"targetFolderId" json:"targetFolderId"`
-	Ancounts       int    `form:"ancounts" json:"ancounts"`
+	Accounts       int    `form:"accounts" json:"accounts"`
 
 	Csrf string `form:"csrf" json:"csrf"`
 	// Leaf        bool    `json:"leaf" `