45 lines
1.9 KiB
Go
45 lines
1.9 KiB
Go
// ==========================================================================
|
||
// GFast自动生成model操作代码。
|
||
// 生成日期:2024-03-23 10:25:39
|
||
// 生成路径: internal/app/system/model/pv_ module.go
|
||
// 生成人:gfast
|
||
// desc:光伏组件
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package model
|
||
|
||
import (
|
||
"github.com/gogf/gf/v2/os/gtime"
|
||
"github.com/gogf/gf/v2/util/gmeta"
|
||
)
|
||
|
||
// PvModuleInfoRes is the golang structure for table pv_ module.
|
||
type PvModuleInfoRes struct {
|
||
gmeta.Meta `orm:"table:pv_module"`
|
||
Id uint `orm:"id,primary" json:"id"` //
|
||
FangzhenId string `orm:"fangzhen_id" json:"fangzhenId"` // 方阵ID
|
||
SubProjectid string `orm:"sub_projectid" json:"subProjectid"` // 子项目ID
|
||
WorkId string `orm:"work_id" json:"workId"` // 工作ID
|
||
Name string `orm:"name" json:"name"` // 名字
|
||
Status string `orm:"status" json:"status"` // 状态 0未开始 1 进行中 2 已完成
|
||
DoneTime *gtime.Time `orm:"done_time" json:"doneTime"` // 完成时间
|
||
Detail string `orm:"detail" json:"detail"` // 坐标详细信息
|
||
DeviceID string `orm:"device_id" json:"deviceID"` // 设备ID
|
||
DivertorName string `json:"divertorName" orm:"equipmentName"`
|
||
}
|
||
|
||
type PvModuleListRes struct {
|
||
gmeta.Meta `orm:"table:pv_module"`
|
||
Id uint `json:"id"`
|
||
FangzhenId string `json:"fangzhenId"`
|
||
SubProjectid string `json:"subProjectid"`
|
||
WorkId string `json:"workId"`
|
||
Name string `json:"name"`
|
||
Status string `json:"status"`
|
||
DoneTime *gtime.Time `json:"doneTime"`
|
||
Detail string `json:"detail"`
|
||
DeviceID string `json:"deviceID" orm:"device_id"`
|
||
DivertorName string `json:"divertorName" orm:"equipmentName"`
|
||
}
|