feat:完善后台经纪人审核信息

This commit is contained in:
henry
2022-01-22 16:55:10 +08:00
parent e52cdcf163
commit 5e328ab2da
10 changed files with 271 additions and 4 deletions

View File

@ -0,0 +1,32 @@
package model
// TechnologyDemandService 技术需求服务信息
type TechnologyDemandService struct {
Model
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" 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 int `gorm:"column:status;type:tinyint(1);default:0;comment:进度状态0进行中1已完成" json:"status"`
ModelDeleted
ModelAt
}
// TechnologyDemandServiceProgressKind 技术需求服务进度类型
type TechnologyDemandServiceProgressKind int
type TechnologyDemandServiceStatus int
const (
// TechnologyDemandServiceStatusForOngoing 进行中
TechnologyDemandServiceStatusForOngoing TechnologyDemandServiceStatus = iota
// TechnologyDemandServiceStatusForComplete 已完成
TechnologyDemandServiceStatusForComplete
)
func (m *TechnologyDemandService) TableName() string {
return "technology_demand_service"
}
func NewTechnologyDemandService() *TechnologyDemandService {
return &TechnologyDemandService{}
}

View File

@ -0,0 +1,19 @@
package model
// TechnologyDemandServiceProgress 技术需求服务进度信息
type TechnologyDemandServiceProgress struct {
Model
UID uint64 `gorm:"column:uid;type:int;default:0;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"`
ModelDeleted
ModelAt
}
func (m *TechnologyDemandServiceProgress) TableName() string {
return "technology_demand_service_progress"
}
func NewTechnologyDemandServiceProgress() *TechnologyDemandServiceProgress {
return &TechnologyDemandServiceProgress{}
}