feat: 完成MES工位终端系统全量功能迭代
本次提交包含以下核心变更: 1. 新增按钮级权限控制框架与前端权限校验 2. 新增工位管理、工艺流程、巡检终端等核心业务模块 3. 完善用户体系,支持工位终端专属登录权限 4. 新增文件上传下载、报表查询等配套功能 5. 修复多系统兼容性与交互体验问题 6. 完成所有文档与配置项的规范化更新
This commit is contained in:
@@ -21,6 +21,10 @@ const (
|
||||
FieldName = "name"
|
||||
// FieldRoleId holds the string denoting the roleid field in the database.
|
||||
FieldRoleId = "role_id"
|
||||
// FieldCanLoginWorkstation holds the string denoting the canloginworkstation field in the database.
|
||||
FieldCanLoginWorkstation = "can_login_workstation"
|
||||
// FieldWorkstationPassword holds the string denoting the workstationpassword field in the database.
|
||||
FieldWorkstationPassword = "workstation_password"
|
||||
// FieldStatus holds the string denoting the status field in the database.
|
||||
FieldStatus = "status"
|
||||
// FieldCreatedAt holds the string denoting the createdat field in the database.
|
||||
@@ -38,6 +42,8 @@ var Columns = []string{
|
||||
FieldPassword,
|
||||
FieldName,
|
||||
FieldRoleId,
|
||||
FieldCanLoginWorkstation,
|
||||
FieldWorkstationPassword,
|
||||
FieldStatus,
|
||||
FieldCreatedAt,
|
||||
FieldUpdatedAt,
|
||||
@@ -62,6 +68,10 @@ var (
|
||||
DefaultName string
|
||||
// NameValidator is a validator for the "name" field. It is called by the builders before save.
|
||||
NameValidator func(string) error
|
||||
// DefaultCanLoginWorkstation holds the default value on creation for the "canLoginWorkstation" field.
|
||||
DefaultCanLoginWorkstation bool
|
||||
// WorkstationPasswordValidator is a validator for the "workstationPassword" field. It is called by the builders before save.
|
||||
WorkstationPasswordValidator func(string) error
|
||||
// DefaultStatus holds the default value on creation for the "status" field.
|
||||
DefaultStatus string
|
||||
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
|
||||
@@ -104,6 +114,16 @@ func ByRoleId(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRoleId, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByCanLoginWorkstation orders the results by the canLoginWorkstation field.
|
||||
func ByCanLoginWorkstation(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldCanLoginWorkstation, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByWorkstationPassword orders the results by the workstationPassword field.
|
||||
func ByWorkstationPassword(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldWorkstationPassword, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByStatus orders the results by the status field.
|
||||
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldStatus, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user