From 0aca22f3cef923ebe6b2e3d3136e7057cecb2056 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期四, 04 七月 2019 10:18:26 +0800
Subject: [PATCH] fix tip bug

---
 controllers/area.go |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/controllers/area.go b/controllers/area.go
index c4ba15d..ae7cdbc 100644
--- a/controllers/area.go
+++ b/controllers/area.go
@@ -72,9 +72,9 @@
 	}
 	paramBody := util.Struct2Map(model)
 	if api.AreaAdd(paramBody) {
-		util.ResponseFormat(c,code.Success,"淇濆瓨鎴愬姛")
+		util.ResponseFormat(c,code.AddSuccess,"娣诲姞鎴愬姛")
 	} else {
-		util.ResponseFormat(c,code.ComError,"淇濆瓨澶辫触")
+		util.ResponseFormat(c,code.ComError,"娣诲姞澶辫触")
 	}
 }
 
@@ -109,7 +109,7 @@
 	paramBody := util.Struct2Map(model)
 	var api dbapi.AreaApi
 	if api.AreaUpdate(paramBody) {
-		util.ResponseFormat(c,code.Success,"鏇存柊鎴愬姛")
+		util.ResponseFormat(c,code.UpdateSuccess,"鏇存柊鎴愬姛")
 	}else {
 		util.ResponseFormat(c,code.ComError,"鏇存柊澶辫触")
 	}
@@ -133,7 +133,7 @@
 	}
 
 	if api.AreaDelete(areaId) {
-		util.ResponseFormat(c, code.Success, "鍒犻櫎鎴愬姛")
+		util.ResponseFormat(c, code.DelSuccess, "鍒犻櫎鎴愬姛")
 	} else {
 		util.ResponseFormat(c, code.ComError,"鍒犻櫎澶辫触")
 	}

--
Gitblit v1.8.0