Files
cas_tt_cloud_backend/app/common/model/technology_demand_service.go

33 lines
1.2 KiB
Go
Raw Normal View History

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