From 263c7b18ce7f18f1222318f6e0e499e907895a52 Mon Sep 17 00:00:00 2001
From: liuxiaolong <736321739@qq.com>
Date: 星期三, 13 十一月 2019 19:33:39 +0800
Subject: [PATCH] fix

---
 models/model.go |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/models/model.go b/models/model.go
index fec50f8..6292a5b 100644
--- a/models/model.go
+++ b/models/model.go
@@ -7,15 +7,14 @@
 	CreateTime string `json:"createTime,omitempty" example:""`
 	UpdateTime string `json:"updateTime,omitempty" example:""`
 	CreateBy   string `json:"createBy,omitempty" example:""`
-	IsDelete   int    `json:"isDelete,omitempty" example:"0 鏈垹闄� 1宸插垹闄�"`
-	Enable     int    `json:"enable,omitempty" example:" 1鐢熸晥 0鏈敓鏁�"`
+	IsDelete   int    `json:"isDelete" example:"0 鏈垹闄� 1宸插垹闄�"`
+	Enable     int    `json:"enable" example:" 1鐢熸晥 0鏈敓鏁�"`
 }
 
 func (dp *BaseEntity) PriInsert() {
 	dp.CreateTime = time.Now().Format("2006-01-02 15:04:05")
 	dp.CreateBy = "admin"
 	dp.IsDelete = 0
-	dp.Enable = 1
 }
 
 func (dp *BaseEntity) PriUpdate() {

--
Gitblit v1.8.0