feat:完善信息

This commit is contained in:
henry
2022-01-24 10:01:39 +08:00
parent 79c5cbfe74
commit 26271bfeff
7 changed files with 177 additions and 3 deletions

View File

@ -25,9 +25,10 @@ type (
}
// DemandServiceDetail 需求服务详细信息
DemandServiceDetail struct {
ID string `json:"id"`
CreatedAt time.Time `json:"created_at"`
Progress []*DemandServiceProgress `json:"progress"`
ID string `json:"id"`
Status model2.TechnologyDemandServiceStatus `json:"status"`
CreatedAt time.Time `json:"created_at"`
Progress []*DemandServiceProgress `json:"progress"`
}
// DemandServiceProgress 需求服务进度信息
DemandServiceProgress struct {
@ -100,6 +101,7 @@ func (c *DemandService) Detail(id uint64) (*DemandServiceDetail, error) {
}
return &DemandServiceDetail{
ID: mTechnologyDemandService.GetEncodeID(),
Status: mTechnologyDemandService.Status,
CreatedAt: mTechnologyDemandService.CreatedAt,
Progress: progress,
}, nil