2021-11-26 17:26:01 +08:00
|
|
|
|
package model
|
|
|
|
|
|
|
|
|
|
// SysPatent 专利信息数据模型
|
|
|
|
|
type SysPatent struct {
|
|
|
|
|
Model
|
|
|
|
|
Kind SysParentKind `gorm:"column:kind;type:tinyint(1);default:0;comment:专利类型" json:"kind"`
|
2021-12-03 14:18:06 +08:00
|
|
|
|
Title string `gorm:"column:title;type:varchar(255);default:'';comment:名称标题" json:"title"`
|
|
|
|
|
FileUrl string `gorm:"column:file_url;type:varchar(255);default:'';comment:文件地址" json:"file_url"`
|
|
|
|
|
ApplyCode string `gorm:"column:apply_code;type:varchar(50);default:'';comment:申请号" json:"apply_code"`
|
|
|
|
|
ApplyAt string `gorm:"column:apply_at;type:varchar(30);default:'';comment:申请日" json:"apply_at"`
|
|
|
|
|
OpenCode string `gorm:"column:open_code;type:varchar(50);default:'';comment:公开(公告)号" json:"open_code"`
|
|
|
|
|
OpenAt string `gorm:"column:open_at;type:varchar(30);default:'';comment:公开(公告)日" json:"open_at"`
|
2021-12-06 14:55:41 +08:00
|
|
|
|
ApplyName string `gorm:"column:apply_name;type:varchar(255);default:'';comment:申请(专利权)人" json:"apply_name"`
|
2021-12-03 14:18:06 +08:00
|
|
|
|
ApplyAddress string `gorm:"column:apply_address;type:varchar(255);default:'';comment:申请人地址" json:"apply_address"`
|
2021-12-06 14:55:41 +08:00
|
|
|
|
Inventor string `gorm:"column:inventor;type:varchar(255);default:'';comment:发明人" json:"inventor"`
|
2021-12-03 15:22:23 +08:00
|
|
|
|
Description string `gorm:"column:description;type:text;comment:摘要" json:"description"`
|
|
|
|
|
PrincipalClaim string `gorm:"column:principal_claim;type:text;comment:主权项" json:"principal_claim"`
|
2021-12-03 14:18:06 +08:00
|
|
|
|
IPCCode string `gorm:"column:ipc_code;type:varchar(50);default:'';comment:IPC主分类号" json:"ipc_code"`
|
2021-12-03 10:08:23 +08:00
|
|
|
|
Shelf
|
2021-11-26 17:26:01 +08:00
|
|
|
|
Status SysParentStatus `gorm:"column:status;type:tinyint(1);default:1;comment:专利状态(1:授权,2:实审,3:公开)" json:"-"`
|
|
|
|
|
ModelDeleted
|
|
|
|
|
ModelAt
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// SysParentKind 专利类型
|
|
|
|
|
type SysParentKind int
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
// SysParentKindForInvent 发明专利
|
|
|
|
|
SysParentKindForInvent SysParentKind = iota + 1
|
|
|
|
|
// SysParentKindForDesign 外观设计
|
|
|
|
|
SysParentKindForDesign
|
|
|
|
|
// SysParentKindForNewPractical 实用新型
|
|
|
|
|
SysParentKindForNewPractical
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// SysParentStatus 专利状态
|
|
|
|
|
type SysParentStatus int
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
// SysParentStatusForAuthorize 授权
|
|
|
|
|
SysParentStatusForAuthorize SysParentStatus = iota + 1
|
|
|
|
|
// SysParentStatusForActualTrial 实审
|
|
|
|
|
SysParentStatusForActualTrial
|
|
|
|
|
// SysParentStatusForPublic 公开
|
|
|
|
|
SysParentStatusForPublic
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func (m *SysPatent) TableName() string {
|
|
|
|
|
return "sys_patent"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewSysPatent() *SysPatent {
|
|
|
|
|
return &SysPatent{}
|
|
|
|
|
}
|