feat: 新增装机绑定功能与权限、BOM工序配置
1. 新增装机绑定实体与相关CRUD逻辑,支持工件工序物料绑定/解绑 2. 为BOM物料新增装配工序字段,支持按工序校验绑定 3. 扩展权限表,新增父权限码字段支持菜单按钮关联 4. 统一各页面帮助弹窗参数,新增角色管理帮助文档 5. 新增公共格式化工具函数,优化侧边栏菜单展开逻辑 6. 新增工位终端绑定代理接口与MES内部绑定API 7. 修复主入口数据库连接与schema初始化逻辑,新增一键迁移工具
This commit is contained in:
@@ -69,6 +69,11 @@ func Type(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldEQ(FieldType, v))
|
||||
}
|
||||
|
||||
// ParentCode applies equality check predicate on the "parentCode" field. It's identical to ParentCodeEQ.
|
||||
func ParentCode(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldEQ(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// Path applies equality check predicate on the "path" field. It's identical to PathEQ.
|
||||
func Path(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldEQ(FieldPath, v))
|
||||
@@ -289,6 +294,71 @@ func TypeContainsFold(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldContainsFold(FieldType, v))
|
||||
}
|
||||
|
||||
// ParentCodeEQ applies the EQ predicate on the "parentCode" field.
|
||||
func ParentCodeEQ(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldEQ(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeNEQ applies the NEQ predicate on the "parentCode" field.
|
||||
func ParentCodeNEQ(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldNEQ(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeIn applies the In predicate on the "parentCode" field.
|
||||
func ParentCodeIn(vs ...string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldIn(FieldParentCode, vs...))
|
||||
}
|
||||
|
||||
// ParentCodeNotIn applies the NotIn predicate on the "parentCode" field.
|
||||
func ParentCodeNotIn(vs ...string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldNotIn(FieldParentCode, vs...))
|
||||
}
|
||||
|
||||
// ParentCodeGT applies the GT predicate on the "parentCode" field.
|
||||
func ParentCodeGT(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldGT(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeGTE applies the GTE predicate on the "parentCode" field.
|
||||
func ParentCodeGTE(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldGTE(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeLT applies the LT predicate on the "parentCode" field.
|
||||
func ParentCodeLT(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldLT(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeLTE applies the LTE predicate on the "parentCode" field.
|
||||
func ParentCodeLTE(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldLTE(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeContains applies the Contains predicate on the "parentCode" field.
|
||||
func ParentCodeContains(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldContains(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeHasPrefix applies the HasPrefix predicate on the "parentCode" field.
|
||||
func ParentCodeHasPrefix(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldHasPrefix(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeHasSuffix applies the HasSuffix predicate on the "parentCode" field.
|
||||
func ParentCodeHasSuffix(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldHasSuffix(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeEqualFold applies the EqualFold predicate on the "parentCode" field.
|
||||
func ParentCodeEqualFold(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldEqualFold(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// ParentCodeContainsFold applies the ContainsFold predicate on the "parentCode" field.
|
||||
func ParentCodeContainsFold(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldContainsFold(FieldParentCode, v))
|
||||
}
|
||||
|
||||
// PathEQ applies the EQ predicate on the "path" field.
|
||||
func PathEQ(v string) predicate.Permission {
|
||||
return predicate.Permission(sql.FieldEQ(FieldPath, v))
|
||||
|
||||
Reference in New Issue
Block a user