feat:完善项目信息

This commit is contained in:
henry
2022-01-21 14:16:48 +08:00
parent 1c027dd2d1
commit adb5bd7283
9 changed files with 158 additions and 8 deletions

View File

@ -124,6 +124,7 @@ func (this *Instance) Handle() {
&synchronized{iModel: model.NewSysBanner()}, &synchronized{iModel: model.NewSysAgreement()},
// 日志管理
&synchronized{iModel: model.NewSysLog()}, &synchronized{iModel: model.NewSysUserLoginLog()},
&synchronized{iModel: model.NewSysUserExamineLog()},
// 用户管理
&synchronized{iModel: model.NewUserInstance()}, &synchronized{iModel: model.NewUserIdentity()},
&synchronized{iModel: model.NewUserAssets()},
@ -131,8 +132,7 @@ func (this *Instance) Handle() {
&synchronized{iModel: model.NewUserCompany()}, &synchronized{iModel: model.NewUserExpert()},
&synchronized{iModel: model.NewUserLaboratory()}, &synchronized{iModel: model.NewUserResearch()},
&synchronized{iModel: model.NewUserAgent()},
&synchronized{iModel: model.NewUserVisit()},
&synchronized{iModel: model.NewUserCollect()},
&synchronized{iModel: model.NewUserVisit()}, &synchronized{iModel: model.NewUserCollect()},
// 数据管理
&synchronized{iModel: model.NewManageCompany()}, &synchronized{iModel: model.NewManageExpert()},
&synchronized{iModel: model.NewManageLaboratory()}, &synchronized{iModel: model.NewManageResearch()},

View File

@ -0,0 +1,32 @@
package model
// SysUserExamineLog 用户审核数据模型
type SysUserExamineLog struct {
Model
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
Kind SysUserExamineLogKind `gorm:"column:kind;type:tinyint(3);default:0;comment:审核对象类型" json:"kind"`
ObjectID uint64 `gorm:"column:object_id;type:int(11);default:0;comment:对象ID" json:"-"`
Status int `gorm:"column:status;type:tinyint(1);default:0;comment:状态" json:"status"`
Remark string `gorm:"column:remark;type:varchar(255);default:'';comment:备注" json:"-"`
ModelDeleted
ModelAt
}
type SysUserExamineLogKind int
const (
// SysUserExamineLogKindForProduct 产品信息审核
SysUserExamineLogKindForProduct SysUserExamineLogKind = iota + 1
// SysUserExamineLogKindForAchievement 成果信息
SysUserExamineLogKindForAchievement
// SysUserExamineLogKindForDemandTechnology 技术需求
SysUserExamineLogKindForDemandTechnology
)
func (m *SysUserExamineLog) TableName() string {
return "sys_user_examine_log"
}
func NewSysUserExamineLog() *SysUserExamineLog {
return &SysUserExamineLog{}
}