Documentation ¶
Index ¶
- Variables
- type CwmpConfig
- type CwmpConfigSession
- type CwmpEventData
- type CwmpFactoryReset
- type CwmpFirmwareConfig
- type CwmpPreset
- type CwmpPresetContent
- type CwmpPresetDownload
- type CwmpPresetFactoryResetConfig
- type CwmpPresetFirmwareConfig
- type CwmpPresetParameterValue
- type CwmpPresetSched
- type CwmpPresetTask
- type CwmpPresetUpload
- type NetCpe
- type NetCpeParam
- type NetCpeTaskQue
- type NetNode
- type SysConfig
- type SysOpr
- type SysOprLog
Constants ¶
This section is empty.
Variables ¶
View Source
var Tables = []interface{}{ &SysConfig{}, &SysOpr{}, &SysOprLog{}, &NetNode{}, &NetCpe{}, &NetCpeParam{}, &CwmpConfigSession{}, &CwmpConfig{}, &CwmpFactoryReset{}, &CwmpFirmwareConfig{}, &CwmpPreset{}, &CwmpPresetTask{}, }
Functions ¶
This section is empty.
Types ¶
type CwmpConfig ¶
type CwmpConfig struct { ID string `gorm:"primaryKey" json:"id" form:"id"` // 主键 ID Oid string `gorm:"index" json:"oid" form:"oid"` Name string `json:"name" form:"name"` // Name Level string `json:"level" form:"level"` // script level normal|major SoftwareVersion string `json:"software_version" form:"software_version"` ProductClass string `json:"product_class" form:"product_class"` Oui string `json:"oui" form:"oui"` TaskTags string `gorm:"index" json:"task_tags" form:"task_tags"` // task label Content string `json:"content" form:"content"` // script content TargetFilename string `json:"target_filename" form:"target_filename"` Timeout int64 `json:"timeout" form:"timeout"` // Execution Timeout Seconds CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type CwmpConfigSession ¶
type CwmpConfigSession struct { ID int64 `gorm:"primaryKey" json:"id,string" form:"id"` // primary key ID ConfigId string `gorm:"index" json:"config_id,string" form:"config_id"` // Script ID CpeId int64 `gorm:"index" json:"cpe_id,string" form:"cpe_id"` // CPE ID Session string `gorm:"index" json:"session" form:"session"` // Session ID Name string `json:"name" form:"name"` // Name Level string `json:"level" form:"level"` // script level normal|major SoftwareVersion string `json:"software_version" form:"software_version"` ProductClass string `json:"product_class" form:"product_class"` Oui string `json:"oui" form:"oui"` TaskTags string `gorm:"index" json:"task_tags" form:"task_tags"` // task label Content string `json:"content" form:"content"` // script content ExecStatus string `gorm:"index" json:"exec_status" form:"exec_status"` // execution state success | failure LastError string `json:"last_error" form:"last_error"` // last execution error Timeout int64 `json:"timeout" form:"timeout"` // execution timeout second ExecTime time.Time `gorm:"index" json:"exec_time" form:"exec_time"` // execution time RespTime time.Time `json:"resp_time" form:"resp_time"` // Response time CreatedAt time.Time `gorm:"index" json:"created_at"` UpdatedAt time.Time `gorm:"index" json:"updated_at"` }
type CwmpEventData ¶
type CwmpFactoryReset ¶
type CwmpFactoryReset struct { ID int64 `json:"id,string" form:"id"` // 主键 ID Oid string `json:"oid" form:"oid"` Name string `json:"name" form:"name"` SoftwareVersion string `json:"software_version" form:"software_version"` ProductClass string `json:"product_class" form:"product_class"` Oui string `json:"oui" form:"oui"` Content string `json:"content" form:"content"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
CwmpFactoryReset factory settings script
type CwmpFirmwareConfig ¶
type CwmpFirmwareConfig struct { ID int64 `json:"id,string" form:"id"` // 主键 ID Oid string `json:"oid" form:"oid"` Name string `json:"name" form:"name"` SoftwareVersion string `json:"software_version" form:"software_version"` ProductClass string `json:"product_class" form:"product_class"` Oui string `json:"oui" form:"oui"` Content string `json:"content" form:"content"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
CwmpFirmwareConfig firmware configuration
type CwmpPreset ¶
type CwmpPreset struct { ID int64 `json:"id,string" form:"id"` // 主键 ID Name string `json:"name" form:"name"` Priority int `json:"priority" form:"priority"` Event string `json:"event" form:"event"` SchedPolicy string `json:"sched_policy" form:"sched_policy"` SchedKey string `json:"sched_key" form:"sched_key"` Interval int `json:"interval" form:"interval"` Content string `json:"content" form:"content"` TaskTags string `gorm:"index" json:"task_tags" form:"task_tags"` // 任务标签 CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type CwmpPresetContent ¶
type CwmpPresetContent struct { FactoryResetConfig *CwmpPresetFactoryResetConfig `yaml:"FactoryResetConfig"` FirmwareConfig *CwmpPresetFirmwareConfig `yaml:"FirmwareConfig"` Downloads []CwmpPresetDownload `yaml:"Downloads"` Uploads []CwmpPresetUpload `yaml:"Uploads"` GetParameterValues []string `yaml:"GetParameterValues"` SetParameterValues []CwmpPresetParameterValue `yaml:"SetParameterValues"` }
type CwmpPresetDownload ¶
type CwmpPresetSched ¶
type CwmpPresetSched struct { Downloads []CwmpPresetDownload `yaml:"Downloads"` Uploads []CwmpPresetUpload `yaml:"Uploads"` GetParameterValues []string `yaml:"GetParameterValues"` SetParameterValues []CwmpPresetParameterValue `yaml:"SetParameterValues"` }
type CwmpPresetTask ¶
type CwmpPresetTask struct { ID int64 `json:"id,string"` // 主键 ID PresetId int64 `json:"preset_id,string" gorm:"index"` Sn string `json:"sn" gorm:"index"` Name string `json:"name" ` Oid string `json:"oid" gorm:"index"` Event string `json:"event" ` Batch string `json:"batch" ` Onfail string `json:"onfail" ` Session string `json:"session" gorm:"index"` Request string `json:"request" ` Response string `json:"response"` Content string `json:"content"` Status string `json:"status" gorm:"index"` ExecTime time.Time `json:"exec_time"` // 执行时间 RespTime time.Time `json:"resp_time"` // 响应时间 CreatedAt time.Time `json:"created_at" gorm:"index"` UpdatedAt time.Time `json:"updated_at"` }
func (*CwmpPresetTask) MarshalJSON ¶
func (d *CwmpPresetTask) MarshalJSON() ([]byte, error)
func (*CwmpPresetTask) UnmarshalJSON ¶
func (d *CwmpPresetTask) UnmarshalJSON(b []byte) error
type CwmpPresetUpload ¶
type NetCpe ¶
type NetCpe struct { ID int64 `json:"id,string" form:"id"` // primaryKey ID NodeId int64 `json:"node_id,string" form:"node_id"` // Node ID SystemName string `json:"system_name" form:"system_name"` // Device system name Sn string `gorm:"uniqueIndex" json:"sn" form:"sn"` // devise serial number Name string `json:"name" form:"name"` // device name ArchName string `json:"arch_name" form:"arch_name"` // device architecture SoftwareVersion string `json:"software_version" form:"software_version"` // Device firmware version HardwareVersion string `json:"hardware_version" form:"hardware_version"` // device version Model string `json:"model" form:"model"` // Device model Oui string `json:"oui" form:"oui"` // Device OUI Manufacturer string `json:"manufacturer" form:"manufacturer"` // Device manufactory ProductClass string `json:"product_class" form:"product_class"` // Device type Status string `gorm:"index" json:"status" form:"status"` // Device status enabled | disabled TaskTags string `gorm:"index" json:"task_tags" form:"task_tags"` // task tags Uptime int64 `json:"uptime" form:"uptime"` // UpTime MemoryTotal int64 `json:"memory_total" form:"memory_total"` // total memory MemoryFree int64 `json:"memory_free" form:"memory_free"` // memory available CPUUsage int64 `json:"cpu_usage" form:"cpu_usage"` // CPE Percentage CwmpStatus string `gorm:"index" json:"cwmp_status"` // cwmp status CwmpUrl string `json:"cwmp_url"` FactoryresetId string `json:"factoryreset_id" form:"factoryreset_id"` CwmpLastInform time.Time `json:"cwmp_last_inform" ` // CWMP last inform time Remark string `json:"remark" form:"remark"` // Remark CreatedAt time.Time `json:"created_at" ` UpdatedAt time.Time `json:"updated_at"` }
NetCpe Cpe 数据模型
func (NetCpe) MarshalJSON ¶
type NetCpeParam ¶
type NetCpeParam struct { ID string `gorm:"primaryKey" json:"string"` // primaryKey ID Sn string `gorm:"index" json:"sn"` // devise serial number Tag string `gorm:"index" json:"tag" ` Name string `gorm:"index" json:"name" ` Value string `json:"value" ` Remark string `json:"remark"` Writable string `json:"writable"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
NetCpeParam CPE 参数
type NetCpeTaskQue ¶
type NetNode ¶
type NetNode struct { ID int64 `json:"id,string" form:"id"` Name string `json:"name" form:"name"` Remark string `json:"remark" form:"remark"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
NetNode network node
type SysConfig ¶
type SysConfig struct { ID int64 `json:"id,string" form:"id"` Sort int `json:"sort" form:"sort"` Type string `gorm:"index" json:"type" form:"type"` Name string `gorm:"index" json:"name" form:"name"` Value string `json:"value" form:"value"` Remark string `json:"remark" form:"remark"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
type SysOpr ¶
type SysOpr struct { ID int64 `json:"id,string" form:"id"` Realname string `json:"realname" form:"realname"` Mobile string `json:"mobile" form:"mobile"` Email string `json:"email" form:"email"` Username string `json:"username" form:"username"` Password string `json:"password" form:"password"` Level string `json:"level" form:"level"` Status string `json:"status" form:"status"` Remark string `json:"remark" form:"remark"` LastLogin time.Time `json:"last_login" form:"last_login"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` }
Click to show internal directories.
Click to hide internal directories.