作者 tangxvhui

bug 修复

@@ -8,17 +8,16 @@ import ( @@ -8,17 +8,16 @@ import (
8 ) 8 )
9 9
10 type Company struct { 10 type Company struct {
11 - Id int64 `orm:"column(id);auto"`  
12 - Name string `orm:"column(name);size(40)"`  
13 - AdminId int64 `orm:"column(admin_id)"`  
14 - CreateAt time.Time `orm:"column(create_at);type(timestamp);auto_now"`  
15 - UpdateAt time.Time `orm:"column(update_at);type(timestamp)"`  
16 - DeleteAt time.Time `orm:"column(delete_at);type(timestamp)"`  
17 - Logo string `orm:"column(logo);size(255)"`  
18 - Enable int8 `orm:"column(enable)"`  
19 - UserCenterId int64 `orm:"column(user_center_id)"`  
20 - Remark string `orm:"column(remark)"`  
21 - UserCompanyId int64 `orm:"column(user_company_id)"` 11 + Id int64 `orm:"column(id);auto"`
  12 + Name string `orm:"column(name);size(40)"`
  13 + AdminId int64 `orm:"column(admin_id)"`
  14 + CreateAt time.Time `orm:"column(create_at);type(timestamp);auto_now"`
  15 + UpdateAt time.Time `orm:"column(update_at);type(timestamp)"`
  16 + DeleteAt time.Time `orm:"column(delete_at);type(timestamp)"`
  17 + Logo string `orm:"column(logo);size(255)"`
  18 + Enable int8 `orm:"column(enable)"`
  19 + UserCenterId int64 `orm:"column(user_center_id)"`
  20 + Remark string `orm:"column(remark)"`
22 } 21 }
23 22
24 func (t *Company) TableName() string { 23 func (t *Company) TableName() string {