feat: 新增 AgvPoint 点位表及客户端,支持点位编码与接驳台绑定

This commit is contained in:
SunYF
2026-11-03 10:17:49 +08:00
parent fd2f0e2767
commit 2ccf9bb9ca
62 changed files with 5501 additions and 238 deletions
+25
View File
@@ -3,6 +3,7 @@
package ent
import (
"bj_power_mes/ent/agvpoint"
"bj_power_mes/ent/agvtask"
"bj_power_mes/ent/alert"
"bj_power_mes/ent/alertrule"
@@ -49,6 +50,30 @@ import (
// (default values, validators, hooks and policies) and stitches it
// to their package variables.
func init() {
agvpointFields := schema.AgvPoint{}.Fields()
_ = agvpointFields
// agvpointDescPositionCode is the schema descriptor for position_code field.
agvpointDescPositionCode := agvpointFields[0].Descriptor()
// agvpoint.PositionCodeValidator is a validator for the "position_code" field. It is called by the builders before save.
agvpoint.PositionCodeValidator = agvpointDescPositionCode.Validators[0].(func(string) error)
// agvpointDescName is the schema descriptor for name field.
agvpointDescName := agvpointFields[1].Descriptor()
// agvpoint.DefaultName holds the default value on creation for the name field.
agvpoint.DefaultName = agvpointDescName.Default.(string)
// agvpoint.NameValidator is a validator for the "name" field. It is called by the builders before save.
agvpoint.NameValidator = agvpointDescName.Validators[0].(func(string) error)
// agvpointDescIsDock is the schema descriptor for is_dock field.
agvpointDescIsDock := agvpointFields[2].Descriptor()
// agvpoint.DefaultIsDock holds the default value on creation for the is_dock field.
agvpoint.DefaultIsDock = agvpointDescIsDock.Default.(bool)
// agvpointDescEnabled is the schema descriptor for enabled field.
agvpointDescEnabled := agvpointFields[4].Descriptor()
// agvpoint.DefaultEnabled holds the default value on creation for the enabled field.
agvpoint.DefaultEnabled = agvpointDescEnabled.Default.(bool)
// agvpointDescCreatedAt is the schema descriptor for created_at field.
agvpointDescCreatedAt := agvpointFields[5].Descriptor()
// agvpoint.DefaultCreatedAt holds the default value on creation for the created_at field.
agvpoint.DefaultCreatedAt = agvpointDescCreatedAt.Default.(func() time.Time)
agvtaskFields := schema.AgvTask{}.Fields()
_ = agvtaskFields
// agvtaskDescTaskNo is the schema descriptor for task_no field.