liuxiaolong
2019-11-19 b5e236e28dee3e9481a48c615be22d70df44a42c
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() {