feat:完善信息
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user