feat: 完成WMS系统权限体系与业务功能迭代
本提交完成了WMS系统的多维度优化升级: 1. 新增RBAC权限系统,支持角色/菜单/按钮三级权限管控 2. 重构库存盘点、物料管理、区域维护等模块的查询筛选与展示逻辑 3. 优化入库/出库/质检等业务流程,完善数据冗余与业务闭环 4. 移除旧装箱表,将装箱逻辑合并到出库主表 5. 新增前端权限判断工具、导出工具与端到端测试用例 6. 补充完善各类注释与数据库字段说明
This commit is contained in:
@@ -19,6 +19,8 @@ const (
|
||||
FieldRealName = "real_name"
|
||||
// FieldRole holds the string denoting the role field in the database.
|
||||
FieldRole = "role"
|
||||
// FieldRoleID holds the string denoting the role_id field in the database.
|
||||
FieldRoleID = "role_id"
|
||||
// FieldDept holds the string denoting the dept field in the database.
|
||||
FieldDept = "dept"
|
||||
// FieldPhone holds the string denoting the phone field in the database.
|
||||
@@ -42,6 +44,7 @@ var Columns = []string{
|
||||
FieldPassword,
|
||||
FieldRealName,
|
||||
FieldRole,
|
||||
FieldRoleID,
|
||||
FieldDept,
|
||||
FieldPhone,
|
||||
FieldIsActive,
|
||||
@@ -99,6 +102,11 @@ func ByRole(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRole, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByRoleID orders the results by the role_id field.
|
||||
func ByRoleID(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldRoleID, opts...).ToFunc()
|
||||
}
|
||||
|
||||
// ByDept orders the results by the dept field.
|
||||
func ByDept(opts ...sql.OrderTermOption) OrderOption {
|
||||
return sql.OrderByField(FieldDept, opts...).ToFunc()
|
||||
|
||||
Reference in New Issue
Block a user