Files
zmkgC/internal/app/system/model/construction_details.go

55 lines
2.8 KiB
Go
Raw Permalink Normal View History

2025-07-07 20:11:59 +08:00
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2024-03-13 18:10:56
// 生成路径: internal/app/system/model/construction_details.go
// 生成人gfast
// desc:施工类别详情
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// ConstructionDetailsInfoRes is the golang structure for table construction_details.
type ConstructionDetailsInfoRes struct {
gmeta.Meta `orm:"table:construction_details"`
Id uint64 `orm:"id,primary" json:"id"` //
CreatedBy uint64 `orm:"created_by" json:"createdBy"` //
UpdatedBy uint64 `orm:"updated_by" json:"updatedBy"` //
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` //
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt"` //
Name string `orm:"name" json:"name"` // 施工名称
Types string `orm:"types" json:"types"` // 施工类别
Total int `orm:"total" json:"total"` // 总量
ConstructionId int `orm:"construction_id" json:"constructionId"` // 施工id父级id
Remark string `orm:"remark" json:"remark"` // 备注
IsPercentage int `orm:"isPercentage" json:"isPercentage"` // 数据类型是否为百分比
StartTime *gtime.Time `orm:"start_time" json:"startTime"` // 开始时间
EndTime *gtime.Time `orm:"end_time" json:"endTime"` // 结束时间
Completed int `orm:"completed" json:"completed"` // 完成量
Selectable int `orm:"selectable" json:"selectable"` // 可选择余量
Overall int `orm:"overall" json:"overall"` // 总余量
}
type ConstructionDetailsListRes struct {
Id uint64 `json:"id"`
CreatedBy uint64 `json:"createdBy"`
CreatedAt *gtime.Time `json:"createdAt"`
Name string `json:"name"`
Types string `json:"types"`
Total int `json:"total"`
ConstructionId int `json:"constructionId"`
Remark string `json:"remark"`
IsPercentage int `json:"isPercentage"`
StartTime *gtime.Time `json:"startTime"`
EndTime *gtime.Time `json:"endTime"`
Completed int `json:"completed"`
Selectable int `json:"selectable"`
Overall int `json:"overall"`
}