Browse Source

rebuid 更改share_controller报错

abiao 5 years ago
parent
commit
2a2fe9f34a

+ 4 - 6
go/gopath/src/fohow.com/apps/models/share_material_model/share_material_model.go

@@ -2,11 +2,10 @@ package share_material_model
 
 import (
 	"fmt"
-	"github.com/astaxie/beego"
-	"github.com/astaxie/beego/orm"
 	"fohow.com/apps/models/product_model"
-	"fohow.com/apps/models/project_model"
 	"fohow.com/cache"
+	"github.com/astaxie/beego"
+	"github.com/astaxie/beego/orm"
 	"time"
 )
 
@@ -60,9 +59,8 @@ type ProductInfo struct {
 }
 
 type ProjectInfo struct {
-	Id             int64                           `orm:"column(-)"                                  json:"id"`    // int(11)
-	Title          string                          `orm:"column(-)"                                  json:"title"` // varchar(100)
-	IntroduceAlbum []*project_model.ProjectPicture `orm:"-"         json:"introduce_pics"`
+	Id    int64  `orm:"column(-)"                                  json:"id"`    // int(11)
+	Title string `orm:"column(-)"                                  json:"title"` // varchar(100)
 	//当前已资助金额总数
 	CurrentInvestment int64 `orm:"-"                                   json:"current_funding"`
 	MinFunding        int64 `orm:"column(-);null"                            json:"min_funding"` // int(11)