feat:完善信息,增加需求指派功能
This commit is contained in:
18
app/common/model/manage_company_service.go
Normal file
18
app/common/model/manage_company_service.go
Normal file
@ -0,0 +1,18 @@
|
||||
package model
|
||||
|
||||
// ManageCompanyService 公司企业服务数据模型
|
||||
type ManageCompanyService struct {
|
||||
Model
|
||||
CompanyID uint64
|
||||
AgentID uint64
|
||||
ModelDeleted
|
||||
ModelAt
|
||||
}
|
||||
|
||||
func (m *ManageCompanyService) TableName() string {
|
||||
return "manage_company_service"
|
||||
}
|
||||
|
||||
func NewManageCompanyService() *ManageCompanyService {
|
||||
return &ManageCompanyService{}
|
||||
}
|
@ -3,7 +3,7 @@ package model
|
||||
// TechnologyDemandService 技术需求服务信息
|
||||
type TechnologyDemandService struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
AgentID uint64 `gorm:"column:agent_id;type:int(11);default:0;comment:经纪人模型ID" json:"-"`
|
||||
DemandID uint64 `gorm:"column:demand_id;type:int(11);default:0;comment:需求ID" json:"-"`
|
||||
Progress TechnologyDemandServiceProgressKind `gorm:"column:progress;type:tinyint(1);default:0;comment:进度类型" json:"progress"`
|
||||
Status TechnologyDemandServiceStatus `gorm:"column:status;type:tinyint(1);default:0;comment:进度状态(0:进行中,1:已结题,2:未结题)" json:"status"`
|
||||
|
@ -3,6 +3,8 @@ package model
|
||||
// TechnologyDemandServiceProgress 技术需求服务进度信息
|
||||
type TechnologyDemandServiceProgress struct {
|
||||
Model
|
||||
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
|
||||
|
||||
ServiceID uint64 `gorm:"column:service_id;type:int(11);default:服务ID;comment:用户uuid" json:"-"`
|
||||
Progress TechnologyDemandServiceProgressKind `gorm:"column:progress;type:tinyint(1);default:0;comment:进度类型" json:"progress"`
|
||||
Config string `gorm:"column:config;type:text;comment:详细信息" json:"config"`
|
||||
|
Reference in New Issue
Block a user