56 lines
4.5 KiB
Go
56 lines
4.5 KiB
Go
// ==========================================================================
|
||
// GFast自动生成model entity操作代码。
|
||
// 生成日期:2024-04-12 10:38:43
|
||
// 生成路径: internal/app/system/model/entity/plant.go
|
||
// 生成人:gfast
|
||
// desc:电站信息
|
||
// company:云南奇讯科技有限公司
|
||
// ==========================================================================
|
||
|
||
package do
|
||
|
||
import (
|
||
"github.com/gogf/gf/v2/os/gtime"
|
||
"github.com/gogf/gf/v2/util/gmeta"
|
||
)
|
||
|
||
// Plant is the golang structure for table plant.
|
||
type Plant struct {
|
||
gmeta.Meta `orm:"table:plant, do:true"`
|
||
Id interface{} `orm:"id,primary" json:"id"` // 电站Id
|
||
Name interface{} `orm:"name" json:"name"` // 电站名称
|
||
Address interface{} `orm:"address" json:"address"` // 详细地址
|
||
City interface{} `orm:"city" json:"city"` // 市
|
||
District interface{} `orm:"district" json:"district"` // 区
|
||
Province interface{} `orm:"province" json:"province"` // 省
|
||
Latitude interface{} `orm:"latitude" json:"latitude"` // 纬度
|
||
Longitude interface{} `orm:"longitude" json:"longitude"` // 经度
|
||
Kwp interface{} `orm:"kwp" json:"kwp"` // 总容量kwp
|
||
MonKwh interface{} `orm:"monKwh" json:"monKwh"` // 当月发电量
|
||
NowKw interface{} `orm:"nowKw" json:"nowKw"` // 实时功率
|
||
SumKwh interface{} `orm:"sumKwh" json:"sumKwh"` // 总发电量
|
||
TodayKwh interface{} `orm:"todayKwh" json:"todayKwh"` // 当日发电量
|
||
YearKwh interface{} `orm:"yearKwh" json:"yearKwh"` // 当年发电量
|
||
NetworkTime *gtime.Time `orm:"networkTime" json:"networkTime"` // 并网日期
|
||
UpdateTime *gtime.Time `orm:"updateTime" json:"updateTime"` // 修改时间
|
||
CompanyId interface{} `orm:"companyId" json:"companyId"` // 渠道商Id
|
||
CompanyName interface{} `orm:"companyName" json:"companyName"` // 渠道商名称
|
||
OwnerId interface{} `orm:"ownerId" json:"ownerId"` // 业主Id
|
||
OwnerName interface{} `orm:"ownerName" json:"ownerName"` // 业主姓名
|
||
ServiceProviderName interface{} `orm:"serviceProviderName" json:"serviceProviderName"` // 安装商名称
|
||
ServiceProviderPhone interface{} `orm:"serviceProviderPhone" json:"serviceProviderPhone"` // 安装服务商电话
|
||
NetworkType interface{} `orm:"networkType" json:"networkType"` // 并网类型 1:全额上网 2:自发自用余电上网 3:自发自用无馈网 4:离网
|
||
PowerPlantType interface{} `orm:"powerPlantType" json:"powerPlantType"` // 电站类型 1:家庭户用 2:工商业屋顶 3:地面电站 4:扶贫电站 5:储能电站
|
||
Status interface{} `orm:"status" json:"status"` // 电站状态 0:未绑定 1:在线 2:停机 3:停机告警 4:运行告警 5:故障 6:离线
|
||
PaymentType interface{} `orm:"paymentType" json:"paymentType"` // 出资方式
|
||
PlantContact interface{} `orm:"plantContact" json:"plantContact"` // 电站联系人
|
||
PlantContactPhone interface{} `orm:"plantContactPhone" json:"plantContactPhone"` // 电站联系人电话
|
||
PlantImg interface{} `orm:"plantImg" json:"plantImg"` // 电站图片
|
||
Remark interface{} `orm:"remark" json:"remark"` // 备注
|
||
DipAngle interface{} `orm:"dipAngle" json:"dipAngle"` // 倾角度数
|
||
OrientationAngle interface{} `orm:"orientationAngle" json:"orientationAngle"` // 方位角度数
|
||
SubassemblyNumber interface{} `orm:"subassemblyNumber" json:"subassemblyNumber"` // 组件数量
|
||
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间
|
||
UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 更新时间
|
||
}
|