feat(server-go): 耗材管理(库存/预警/采购建议,#16)
This commit is contained in:
@@ -37,6 +37,8 @@ var AllPermissions = []PermissionDef{
|
||||
{"weather:read", "天气查看", "查看天气与高发病天气预警"},
|
||||
{"lamp:read", "LAMP 检测查看", "查看 LAMP 检测任务单与结果"},
|
||||
{"lamp:write", "LAMP 检测管理", "新建、编辑、录入 LAMP 检测结果"},
|
||||
{"consumable:read", "耗材查看", "查看耗材库存与预警"},
|
||||
{"consumable:write", "耗材管理", "新增、编辑、删除耗材"},
|
||||
{"user:manage", "用户管理", "管理用户、角色和权限"},
|
||||
{"audit:read", "审计查看", "查看审计日志"},
|
||||
}
|
||||
@@ -53,6 +55,7 @@ var RolePermissionMap = map[string][]string{
|
||||
"notification:read", "notification:write",
|
||||
"weather:read",
|
||||
"lamp:read", "lamp:write",
|
||||
"consumable:read", "consumable:write",
|
||||
"user:manage", "audit:read",
|
||||
},
|
||||
RoleOperator: {
|
||||
@@ -65,6 +68,7 @@ var RolePermissionMap = map[string][]string{
|
||||
"notification:read", "notification:write",
|
||||
"weather:read",
|
||||
"lamp:read", "lamp:write",
|
||||
"consumable:read", "consumable:write",
|
||||
},
|
||||
RoleViewer: {
|
||||
"dashboard:view", "room:read", "device:read",
|
||||
@@ -75,6 +79,7 @@ var RolePermissionMap = map[string][]string{
|
||||
"notification:read",
|
||||
"weather:read",
|
||||
"lamp:read",
|
||||
"consumable:read",
|
||||
},
|
||||
RoleFarmer: {
|
||||
"dashboard:view", "room:read", "device:read", "device:control",
|
||||
@@ -85,5 +90,6 @@ var RolePermissionMap = map[string][]string{
|
||||
"notification:read", "notification:write",
|
||||
"weather:read",
|
||||
"lamp:read",
|
||||
"consumable:read",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user