feat:完善信息,增加需求指派功能

This commit is contained in:
henry
2022-01-24 15:35:43 +08:00
parent 295ca23dcc
commit 1c0d9dfb6b
12 changed files with 184 additions and 68 deletions

View 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{}
}

View File

@ -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"`

View File

@ -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"`