xiziwen 3 mēneši atpakaļ
vecāks
revīzija
3f6c3487b5

+ 1 - 1
models/bi_dashboard/bi_dashboard_classify.go

@@ -6,7 +6,7 @@ import (
 )
 
 type BiDashboardClassify struct {
-	BiDashboardClassifyId   int       `gorm:"primaryKey;autoIncrement;column:bi_dashboard_classify_id"` // bi看板分类id
+	BiDashboardClassifyId   int       `orm:"column(bi_dashboard_classify_id);pk"` // bi看板分类id
 	BiDashboardClassifyName string    `gorm:"column:bi_dashboard_classify_name;size:255;not null" `     // 看板分类名称
 	Sort                    int       `gorm:"column:sort" `                                             // 排序字段
 	CreateTime              time.Time `gorm:"column:create_time" `                                      // 创建时间

+ 1 - 1
models/bi_dashboard/bi_dashboard_detail.go

@@ -6,7 +6,7 @@ import (
 )
 
 type BiDashboardDetail struct {
-	BiDashboardDetailId int       `gorm:"primaryKey;autoIncrement;column:bi_dashboard_detail_id" ` // bi看板id
+	BiDashboardDetailId int       `orm:"column(bi_dashboard_detail_id);pk" ` // bi看板id
 	BiDashboardId       int       `gorm:"column:bi_dashboard_id" `                                 // 看板id
 	Type                int       `gorm:"column:type" `                                            // 1图表 2表格
 	UniqueCode          string    `gorm:"column:unique_code;size:32;not null" `                    // 报告唯一编码

+ 1 - 1
models/bi_dashboard/bi_dashboard_grant.go

@@ -6,7 +6,7 @@ import (
 )
 
 type BiDashboardGrant struct {
-	GrantId       int       `gorm:"primaryKey;autoIncrement;column:grant_id"` // 授权id
+	GrantId       int       `orm:"column(grant_id);pk"` // 授权id
 	BiDashboardId int       `gorm:"column:bi_dashboard_id" `                  // 看板id
 	GrantAdminId  int       `gorm:"column:grant_admin_id"`                    // 授权的用户id
 	CreateTime    time.Time `gorm:"column:create_time"`                       // 授权时间

+ 1 - 1
models/bi_dashboard/bi_dashboard_home_page.go

@@ -6,7 +6,7 @@ import (
 )
 
 type BiDashboardHomePage struct {
-	BiDashboardHomePageId int       `gorm:"primaryKey;autoIncrement;comment:'bi首页看板id'"`
+	BiDashboardHomePageId int       `orm:"column(bi_dashboard_home_page_id);pk"`
 	BiDashboardId         int       `gorm:"type:int(10);default:null;comment:'看板id'"`
 	AdminId               int       `gorm:"type:int(10);default:null;"`
 	CreateTime            time.Time `gorm:"type:datetime;comment:'创建时间'"`