| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100 |
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- // Code generated by gorm.io/gen. DO NOT EDIT.
- package model_fwh_pro
- import (
- "time"
- )
- const TableNameIotGateway = "iot_gateway"
- // IotGateway IBG网关信息
- type IotGateway struct {
- ID string `gorm:"column:id;primaryKey;comment:主键ID(网关序列号)" json:"id"` // 主键ID(网关序列号)
- Name string `gorm:"column:name;comment:网关名称(站点、可自定义)" json:"name"` // 网关名称(站点、可自定义)
- Version string `gorm:"column:version;comment:版本" json:"version"` // 版本
- DistributorID int32 `gorm:"column:distributor_id;comment:分销商公司ID" json:"distributor_id"` // 分销商公司ID
- InstallerID int32 `gorm:"column:installer_id;comment:安装商公司ID" json:"installer_id"` // 安装商公司ID
- MaintID int32 `gorm:"column:maint_id;comment:维护商公司ID" json:"maint_id"` // 维护商公司ID
- Account string `gorm:"column:account;comment:绑定用户账号(邮箱)" json:"account"` // 绑定用户账号(邮箱)
- Longitude string `gorm:"column:longitude;comment:安装地理信息(经度)" json:"longitude"` // 安装地理信息(经度)
- Latitude string `gorm:"column:latitude;comment:安装地理信息(纬度)" json:"latitude"` // 安装地理信息(纬度)
- GpsAddress string `gorm:"column:gps_address;comment:通过谷歌地图api解析经纬度出来的地址" json:"gps_address"` // 通过谷歌地图api解析经纬度出来的地址
- Address string `gorm:"column:address;comment:安装地理信息(详细地址)(app生成并允许用户输入的详细地址)" json:"address"` // 安装地理信息(详细地址)(app生成并允许用户输入的详细地址)
- ActiveStatus int32 `gorm:"column:active_status;comment:激活状态(0未激活 1已激活)" json:"active_status"` // 激活状态(0未激活 1已激活)
- ActiveTime time.Time `gorm:"column:active_time;comment:激活时间" json:"active_time"` // 激活时间
- LocalActiveTime time.Time `gorm:"column:local_active_time;comment:设备当地激活时间" json:"local_active_time"` // 设备当地激活时间
- Status int32 `gorm:"column:status;comment:网关状态(0离线 1正常 )" json:"status"` // 网关状态(0离线 1正常 )
- OnLineTime time.Time `gorm:"column:on_line_time;comment:在线时间" json:"on_line_time"` // 在线时间
- OffLineTime string `gorm:"column:off_line_time;comment:离线时间" json:"off_line_time"` // 离线时间
- Model string `gorm:"column:model;comment:型号" json:"model"` // 型号
- DeviceIP string `gorm:"column:device_ip;comment:设备IP地址" json:"device_ip"` // 设备IP地址
- Subnet string `gorm:"column:subnet;comment:子网掩码" json:"subnet"` // 子网掩码
- Mac string `gorm:"column:mac;comment:MAC" json:"mac"` // MAC
- GatewayIP string `gorm:"column:gateway_ip;comment:网关IP地址" json:"gateway_ip"` // 网关IP地址
- Signal string `gorm:"column:signal;comment:信号强度" json:"signal"` // 信号强度
- IccID string `gorm:"column:icc_id;comment:ICCID" json:"icc_id"` // ICCID
- Imei string `gorm:"column:imei;comment:IMEI" json:"imei"` // IMEI
- FirmUpgradeTime time.Time `gorm:"column:firm_upgrade_time;comment:最后固件升级时间" json:"firm_upgrade_time"` // 最后固件升级时间
- ControlJSON string `gorm:"column:control_json;comment:控制JSON" json:"control_json"` // 控制JSON
- TurnoverTime time.Time `gorm:"column:turnover_time;comment:更新时间" json:"turnover_time"` // 更新时间
- CreateTime time.Time `gorm:"column:create_time;comment:创建时间" json:"create_time"` // 创建时间
- RunStatus int32 `gorm:"column:run_status;comment:EMS 当前运行状态 0:待机;1:充电;2:放电;3:故障" json:"run_status"` // EMS 当前运行状态 0:待机;1:充电;2:放电;3:故障
- EmsModel int32 `gorm:"column:ems_model;comment:EMS 当前工作模式 1:自发自用;2:TOU(经济);3:TOU(平衡);4:等待备电;5:等待风暴;6:离网电池备电;7:离网发电机备电;8:VPP 调度;9:紧急停止;10:维护停止;11:复位自检;89:调试模式;99:故障停止。" json:"ems_model"` // EMS 当前工作模式 1:自发自用;2:TOU(经济);3:TOU(平衡);4:等待备电;5:等待风暴;6:离网电池备电;7:离网发电机备电;8:VPP 调度;9:紧急停止;10:维护停止;11:复位自检;89:调试模式;99:故障停止。
- ElectricityType int32 `gorm:"column:electricity_type;comment:电费类型.1:分时电价;2:阶梯电价;3:固定电价;4:分时&阶梯,5:BB 套餐 6:peak demand" json:"electricity_type"` // 电费类型.1:分时电价;2:阶梯电价;3:固定电价;4:分时&阶梯,5:BB 套餐 6:peak demand
- FhpSn string `gorm:"column:fhp_sn;comment:FHP 设备编号 INFI设备数组" json:"fhp_sn"` // FHP 设备编号 INFI设备数组
- Sort int32 `gorm:"column:sort;not null;comment:自增长序列排序" json:"sort"` // 自增长序列排序
- DeviceControlData string `gorm:"column:device_control_data;comment:IOT-设备控制设置" json:"device_control_data"` // IOT-设备控制设置
- TouParamSettingData string `gorm:"column:tou_param_setting_data;comment:IOT-TOU参数配置" json:"tou_param_setting_data"` // IOT-TOU参数配置
- TimeZone float32 `gorm:"column:time_zone;default:8.0;comment:时区" json:"time_zone"` // 时区
- ZoneInfo string `gorm:"column:zone_info;comment:地区代表时区。例如:America/New_York" json:"zone_info"` // 地区代表时区。例如:America/New_York
- Dst int32 `gorm:"column:dst;comment:0:协调世界时间-N,1:自动调整夏令时" json:"dst"` // 0:协调世界时间-N,1:自动调整夏令时
- IbgMainVersion string `gorm:"column:ibg_main_version;comment:nsc支持,main_ver版本信息" json:"ibg_main_version"` // nsc支持,main_ver版本信息
- AwsVersion string `gorm:"column:aws_version;comment:云平台版本信息" json:"aws_version"` // 云平台版本信息
- AppVersion string `gorm:"column:app_version;comment:本地APP版本信息" json:"app_version"` // 本地APP版本信息
- SlVersion string `gorm:"column:sl_version;comment:从板软件版本" json:"sl_version"` // 从板软件版本
- SlVersionJSON string `gorm:"column:sl_version_json;comment:sl版本JSON存储" json:"sl_version_json"` // sl版本JSON存储
- MeterVersion string `gorm:"column:meter_version;comment:电表版本" json:"meter_version"` // 电表版本
- MbVersion string `gorm:"column:mb_version;comment:Modbus软件版本" json:"mb_version"` // Modbus软件版本
- DistributorName string `gorm:"column:distributor_name;comment:分销商公司名称" json:"distributor_name"` // 分销商公司名称
- InstallerName string `gorm:"column:installer_name;comment:安装商公司名称" json:"installer_name"` // 安装商公司名称
- MaintName string `gorm:"column:maint_name;comment:维护商公司名称" json:"maint_name"` // 维护商公司名称
- AccountName string `gorm:"column:account_name;comment:用户昵称" json:"account_name"` // 用户昵称
- ElecnetStatus int32 `gorm:"column:elecnet_status;comment:市电网状态 0:异常;1:正常" json:"elecnet_status"` // 市电网状态 0:异常;1:正常
- SlaverStat int32 `gorm:"column:slaver_stat;comment:EMS当前运行状态: 0:初始化,1:参数获取;2:监听;3:待机;4:市电并网运行;5:离网运行;6:油机并网运行 7:故障" json:"slaver_stat"` // EMS当前运行状态: 0:初始化,1:参数获取;2:监听;3:待机;4:市电并网运行;5:离网运行;6:油机并网运行 7:故障
- PostCode string `gorm:"column:post_code;comment:邮编" json:"post_code"` // 邮编
- Country string `gorm:"column:country;comment:国家" json:"country"` // 国家
- Province string `gorm:"column:province;comment:省" json:"province"` // 省
- City string `gorm:"column:city;comment:市英文" json:"city"` // 市英文
- ProtocolVer string `gorm:"column:protocol_ver;comment:协议版本号" json:"protocol_ver"` // 协议版本号
- GenEn int32 `gorm:"column:gen_en;comment:发电机接入使能(默认-0不使能 1使能)" json:"gen_en"` // 发电机接入使能(默认-0不使能 1使能)
- InstallerAccount string `gorm:"column:installer_account;comment:安装商账户" json:"installer_account"` // 安装商账户
- WifiSignal string `gorm:"column:wifi_signal;comment:wifi信号强度" json:"wifi_signal"` // wifi信号强度
- ConnType int32 `gorm:"column:conn_type;comment:连接方式(0:未接入网络 1:eth0 2:eth1 3:wifi 4:4G)" json:"conn_type"` // 连接方式(0:未接入网络 1:eth0 2:eth1 3:wifi 4:4G)
- InstallerAccountID int32 `gorm:"column:installer_account_id;comment:安装商账户ID" json:"installer_account_id"` // 安装商账户ID
- LoadOption int32 `gorm:"column:load_option;default:2;comment:智能负载选配 0:禁止使能,1:使能,2:标配" json:"load_option"` // 智能负载选配 0:禁止使能,1:使能,2:标配
- GerOption bool `gorm:"column:ger_option;default:2;comment:油机选配,0:禁止使能,1使能,默认出厂为0" json:"ger_option"` // 油机选配,0:禁止使能,1使能,默认出厂为0
- EquipType int32 `gorm:"column:equip_type;comment:设备归属(2sunnova)" json:"equip_type"` // 设备归属(2sunnova)
- OnOffStatus int32 `gorm:"column:on_off_status;comment:并网离网:1:并网 0 离网" json:"on_off_status"` // 并网离网:1:并网 0 离网
- CountryID int32 `gorm:"column:country_id;comment:国家编号,0:全部 1:中国 2:美国" json:"country_id"` // 国家编号,0:全部 1:中国 2:美国
- ProvinceID int32 `gorm:"column:province_id;comment:省份编号" json:"province_id"` // 省份编号
- CityZh string `gorm:"column:city_zh;comment:城市中文" json:"city_zh"` // 城市中文
- FinancierID int32 `gorm:"column:financier_id;comment:分销商大客户ID" json:"financier_id"` // 分销商大客户ID
- FinancierName string `gorm:"column:financier_name;comment:分销商大客户名称" json:"financier_name"` // 分销商大客户名称
- SysHdVersion int32 `gorm:"column:sys_hd_version;comment:硬件版本号" json:"sys_hd_version"` // 硬件版本号
- ResourceList string `gorm:"column:resource_list;comment:允许操作列表" json:"resource_list"` // 允许操作列表
- CityID int32 `gorm:"column:city_id;comment:城市id" json:"city_id"` // 城市id
- FinancierContractNumber string `gorm:"column:financier_contract_number;comment:分销商大客户合同编号" json:"financier_contract_number"` // 分销商大客户合同编号
- Region string `gorm:"column:region;comment:APP填写的(国家、省、城市)" json:"region"` // APP填写的(国家、省、城市)
- Remark string `gorm:"column:remark;comment:备注信息" json:"remark"` // 备注信息
- AddressSecondLast string `gorm:"column:address_second_last;comment:街道地址(前端根据谷歌接口模糊查询出来的)" json:"address_second_last"` // 街道地址(前端根据谷歌接口模糊查询出来的)
- EmsDeviceVer int32 `gorm:"column:ems_device_ver;comment:默认为0,0:1.0设备类型 1:nsc设备类型" json:"ems_device_ver"` // 默认为0,0:1.0设备类型 1:nsc设备类型
- Site string `gorm:"column:site;comment:站点" json:"site"` // 站点
- }
- // TableName IotGateway's table name
- func (*IotGateway) TableName() string {
- return TableNameIotGateway
- }
|