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

71 lines
3.8 KiB
Go
Raw Normal View History

2025-07-07 20:11:59 +08:00
// ==========================================================================
// GFast自动生成model操作代码。
// 生成日期2023-07-29 14:02:01
// 生成路径: internal/app/system/model/bus_machinery.go
// 生成人gfast
// desc:机械
// company:云南奇讯科技有限公司
// ==========================================================================
package model
import (
"github.com/gogf/gf/v2/os/gtime"
"github.com/gogf/gf/v2/util/gmeta"
)
// BusMachineryInfoRes is the golang structure for table bus_machinery.
type BusMachineryInfoRes struct {
gmeta.Meta `orm:"table:bus_machinery"`
Id uint64 `orm:"id,primary" json:"id" dc:"序号"` // 序号
MachineryName string `orm:"machinery_name" json:"machineryName"dc:"机械名称"` // 机械名称
MachineryNumber string `orm:"machinery_number" json:"machineryNumber" dc:"编号"` // 编号
ProjectId int64 `orm:"project_id" json:"projectId" dc:"项目id"` // 项目id
CheckoutNumber string `orm:"checkout_number" json:"checkoutNumber" dc:"检验证编号"` // 检验证编号
CheckoutUnit string `orm:"checkout_unit" json:"checkoutUnit" dc:"检验单位"` // 检验单位
CheckoutDate string `orm:"checkout_date" json:"checkoutDate" dc:"检定日期/有效期"` // 检定日期/有效期
Status string `orm:"status" json:"status" dc:"施工类型状态"` // 施工类型状态
CreateBy string `orm:"create_by" json:"createBy" dc:"创建者"` // 创建者
UpdateBy string `orm:"update_by" json:"updateBy" dc:"更新者"` // 更新者
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt" dc:"创建时间"` // 创建时间
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt" dc:"更新时间"` // 更新时间
DeletedAt *gtime.Time `orm:"deleted_at" json:"deletedAt" dc:"删除时间"` // 删除时间
Number int `orm:"number" json:"number" dc:" 数量(废弃)"` // 数量(废弃)
EntryTime *gtime.Time `orm:"entry_time" json:"entryTime" dc:"进场时间"` // 进场时间
//Principal string `orm:"principal" json:"principal" dc:"负责人"` // 负责人
Remark string `orm:"remark" json:"remark" dc:"备注"` // 备注
Ct int `orm:"ct" json:"ct" dc:"数量(出入入场)"` // 数量(出入入场)
}
type BusMachineryListRes struct {
Id uint64 `json:"id"`
MachineryName string `json:"machineryName"`
MachineryNumber string `json:"machineryNumber"`
CheckoutNumber string `json:"checkoutNumber"`
CheckoutUnit string `json:"checkoutUnit"`
CheckoutDate string `json:"checkoutDate"`
Status string `json:"status"`
CreatedAt *gtime.Time `json:"createdAt"`
Number int `json:"number"`
EntryTime *gtime.Time `json:"entryTime"`
//Principal string `json:"principal"`
Remark string `json:"remark"`
CreateBy string `json:"createBy"` // 创建者
MachineryId string `json:"machineryId"`
Ct int `json:"ct"` // 更新者
}
// app列表
type BusMachineryAppListRes struct {
Id uint64 `json:"id"dc:"序号"`
MachineryName string `json:"machineryName" dc:"机械名称"`
MachineryNumber string `json:"machineryNumber"dc:"编号"`
CreatedAt *gtime.Time `json:"createdAt" dc:"创建时间"`
Number int `json:"number"dc:"数量"`
EntryTime *gtime.Time `json:"entryTime"dc:"进场时间"`
//Principal string `json:"principal"dc:"负责人"`
Remark string `json:"remark"dc:"备注"`
CreateBy string `json:"createBy"dc:"创建者"`
Ct int `json:"ct" dc:"数量(出入入场)"` // 更新者
}