feat:优化项目信息
This commit is contained in:
18
app/common/model/technology_patent_expert.go
Normal file
18
app/common/model/technology_patent_expert.go
Normal file
@ -0,0 +1,18 @@
|
||||
package model
|
||||
|
||||
// TechnologyPatentExpert 专利专家数据模型
|
||||
type TechnologyPatentExpert struct {
|
||||
Model
|
||||
ExpertID uint64 `gorm:"column:expert_id;type:int(11);default:0;comment:专家ID" json:"-"`
|
||||
PatentID uint64 `gorm:"column:patent_id;type:int(11);default:0;comment:专利ID" json:"-"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *TechnologyPatentExpert) TableName() string {
|
||||
return "technology_patent_expert"
|
||||
}
|
||||
|
||||
func NewTechnologyPatentExpert() *TechnologyPatentExpert {
|
||||
return &TechnologyPatentExpert{}
|
||||
}
|
@ -1,18 +0,0 @@
|
||||
package model
|
||||
|
||||
// UserPatent 用户专利信息
|
||||
type UserPatent struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
PatentID uint64 `gorm:"column:patent_id;type:int(11);default:0;comment:专利ID" json:"patent_id"`
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *UserPatent) TableName() string {
|
||||
return "user_patent"
|
||||
}
|
||||
|
||||
func NewUserPatent() *UserPatent {
|
||||
return &UserPatent{}
|
||||
}
|
Reference in New Issue
Block a user