feat:完善入驻信息管理
This commit is contained in:
@ -61,7 +61,7 @@ func (c *Demand) List(status, page, pageSize int) (*controller.ReturnPages, erro
|
||||
mTechnologyDemand := model.NewTechnologyDemand()
|
||||
|
||||
where := []*model2.ModelWhereOrder{&model2.ModelWhereOrder{
|
||||
Where: model2.NewWhere("uid", c.ManageUID),
|
||||
Where: model2.NewWhere("uid", c.UID),
|
||||
Order: model2.NewOrder("id", model2.OrderModeToDesc),
|
||||
}, &model2.ModelWhereOrder{
|
||||
Where: model2.NewWhere("status", status),
|
||||
|
@ -97,7 +97,7 @@ func (c *Paper) Delete(id uint64) error {
|
||||
|
||||
var count int64
|
||||
|
||||
err := model2.Count(mTechnologyPaper.TechnologyPaper, &count, model2.NewWhere("id", id), model2.NewWhere("uid", c.ManageUID))
|
||||
err := model2.Count(mTechnologyPaper.TechnologyPaper, &count, model2.NewWhere("id", id), model2.NewWhere("uid", c.UID))
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
|
@ -23,6 +23,7 @@ type (
|
||||
ID string `json:"id"`
|
||||
*model2.TechnologyProduct
|
||||
}
|
||||
// ProductDetailInfo 产品详细信息
|
||||
ProductDetailInfo struct {
|
||||
ID string `json:"id"`
|
||||
*model2.TechnologyProduct
|
||||
@ -99,6 +100,17 @@ func (c *Product) Detail(id uint64) (*ProductDetailInfo, error) {
|
||||
}, nil
|
||||
}
|
||||
|
||||
// Match 匹配结果
|
||||
func (c *Product) Match(id uint64) {
|
||||
|
||||
}
|
||||
|
||||
func (c *Product) Visit(id uint64, page, pageSize int) {
|
||||
mTechnologyProductVisit := model.NewTechnologyProductVisit()
|
||||
var count int64
|
||||
mTechnologyProductVisit.Visit(page, pageSize, &count)
|
||||
}
|
||||
|
||||
// Form 数据操作
|
||||
func (c *Product) Form(params *ProductParams) error {
|
||||
mTechnologyProduct := model.NewTechnologyProduct()
|
||||
|
@ -37,7 +37,7 @@ func (c *Project) List(title string, page, pageSize int) (*controller.ReturnPage
|
||||
mTechnologyProject := model.NewTechnologyProject()
|
||||
|
||||
where := []*model2.ModelWhereOrder{&model2.ModelWhereOrder{
|
||||
Where: model2.NewWhere("uid", c.ManageUID),
|
||||
Where: model2.NewWhere("uid", c.UID),
|
||||
Order: model2.NewOrder("id", model2.OrderModeToDesc)}}
|
||||
|
||||
if title != "" {
|
||||
|
Reference in New Issue
Block a user