From 5e31a32f6ce2572cb01388150ddb325724ff15b8 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期五, 28 六月 2019 19:29:20 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.14:10010/r/webserver

---
 controllers/dictionary.go |   15 +++++++--------
 1 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/controllers/dictionary.go b/controllers/dictionary.go
index 9794cbe..a68bc28 100644
--- a/controllers/dictionary.go
+++ b/controllers/dictionary.go
@@ -2,13 +2,12 @@
 
 import (
 	"basic.com/dbapi.git"
+	"github.com/gin-gonic/gin"
 	"webserver/extend/code"
 	"webserver/extend/util"
-	"github.com/gin-gonic/gin"
 )
 
 type DictionaryController struct {
-
 }
 
 // @Summary 鏍规嵁绫诲瀷鏌ユ壘瀛楀吀
@@ -23,9 +22,9 @@
 	var api dbapi.DicApi
 	flag, data := api.FindByType("")
 	if flag {
-		util.ResponseFormat(c,code.Success,data)
+		util.ResponseFormat(c, code.Success, data)
 	} else {
-		util.ResponseFormat(c,code.ComError,data)
+		util.ResponseFormat(c, code.ComError, data)
 	}
 }
 
@@ -40,14 +39,14 @@
 func (controller DictionaryController) FindByParentId(c *gin.Context) {
 	parentId := c.Query("parentId")
 	if parentId == "" {
-		util.ResponseFormat(c,code.RequestParamError,"鍙傛暟鏈夎")
+		util.ResponseFormat(c, code.RequestParamError, "鍙傛暟鏈夎")
 		return
 	}
 	var api dbapi.DicApi
 	flag, data := api.FindByParentId(parentId)
 	if flag {
-		util.ResponseFormat(c,code.Success,data)
+		util.ResponseFormat(c, code.Success, data)
 	} else {
-		util.ResponseFormat(c,code.ComError,"鏌ヨ澶辫触")
+		util.ResponseFormat(c, code.ComError, "鏌ヨ澶辫触")
 	}
-}
\ No newline at end of file
+}

--
Gitblit v1.8.0