初始
This commit is contained in:
56
api/app/process/res.go
Normal file
56
api/app/process/res.go
Normal file
@ -0,0 +1,56 @@
|
||||
package process
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
"github.com/gogf/gf/v2/os/gtime"
|
||||
"time"
|
||||
)
|
||||
|
||||
// 新增进度
|
||||
type CreateProcessRes struct {
|
||||
}
|
||||
|
||||
// 获取列表
|
||||
type ProcessListRes struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
Processes []ProcessVo `json:"processes"`
|
||||
}
|
||||
|
||||
// Process 表的结构体定义
|
||||
type Process struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
ProcessID int64 `json:"processId" dc:"主键ID"`
|
||||
ProjectId int64 `json:"projectId" dc:"项目ID"`
|
||||
Stage string `json:"stage" dc:"阶段"`
|
||||
Percentage int `json:"percentage" dc:"进度"`
|
||||
Notes string `json:"notes" dc:"备注"`
|
||||
CreatedAt time.Time `json:"createdAt" dc:"创建时间"`
|
||||
UpdatedAt time.Time `json:"updatedAt" dc:"更新时间"`
|
||||
CompleteTime gtime.Time `json:"completeTime" dc:"完成时间"`
|
||||
CreatedBy int `json:"createdBy" dc:"录入人"`
|
||||
}
|
||||
|
||||
// Process 表的结构体定义
|
||||
type ProcessVo struct {
|
||||
g.Meta `mime:"application/json"`
|
||||
ProcessID int64 `json:"processId" dc:"主键ID"`
|
||||
ProjectId int64 `json:"projectId" dc:"项目ID"`
|
||||
Stage string `json:"stage" dc:"阶段"`
|
||||
Percentage int `json:"percentage" dc:"进度"`
|
||||
Notes string `json:"notes" dc:"备注"`
|
||||
CreatedAt time.Time `json:"createdAt" dc:"创建时间"`
|
||||
UpdatedAt time.Time `json:"updatedAt" dc:"更新时间"`
|
||||
CompleteTime gtime.Time `json:"completeTime" dc:"完成时间"`
|
||||
CreatedBy int `json:"createdBy" dc:"录入人ID"`
|
||||
CreatedByName string `json:"createdByName" dc:"录入人姓名"`
|
||||
}
|
||||
|
||||
type UpdateProcessRes struct {
|
||||
}
|
||||
|
||||
type DeleteProcessRes struct {
|
||||
}
|
||||
|
||||
type ProcessDetailRes struct {
|
||||
ProcessInfo ProcessVo `json:"processInfo"`
|
||||
}
|
Reference in New Issue
Block a user