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