feat(server-go): LAMP 检测管理(任务单/步骤/结果录入/结果图片,#14)
This commit is contained in:
@@ -35,6 +35,8 @@ var AllPermissions = []PermissionDef{
|
||||
{"notification:read", "订阅查看", "查看微信订阅绑定状态"},
|
||||
{"notification:write", "订阅管理", "绑定微信并管理订阅授权"},
|
||||
{"weather:read", "天气查看", "查看天气与高发病天气预警"},
|
||||
{"lamp:read", "LAMP 检测查看", "查看 LAMP 检测任务单与结果"},
|
||||
{"lamp:write", "LAMP 检测管理", "新建、编辑、录入 LAMP 检测结果"},
|
||||
{"user:manage", "用户管理", "管理用户、角色和权限"},
|
||||
{"audit:read", "审计查看", "查看审计日志"},
|
||||
}
|
||||
@@ -50,6 +52,7 @@ var RolePermissionMap = map[string][]string{
|
||||
"tray:read", "tray:write", "batch:read", "batch:write", "rearing:read", "rearing:write",
|
||||
"notification:read", "notification:write",
|
||||
"weather:read",
|
||||
"lamp:read", "lamp:write",
|
||||
"user:manage", "audit:read",
|
||||
},
|
||||
RoleOperator: {
|
||||
@@ -61,6 +64,7 @@ var RolePermissionMap = map[string][]string{
|
||||
"tray:read", "tray:write", "batch:read", "batch:write", "rearing:read", "rearing:write",
|
||||
"notification:read", "notification:write",
|
||||
"weather:read",
|
||||
"lamp:read", "lamp:write",
|
||||
},
|
||||
RoleViewer: {
|
||||
"dashboard:view", "room:read", "device:read",
|
||||
@@ -70,6 +74,7 @@ var RolePermissionMap = map[string][]string{
|
||||
"tray:read", "batch:read", "rearing:read",
|
||||
"notification:read",
|
||||
"weather:read",
|
||||
"lamp:read",
|
||||
},
|
||||
RoleFarmer: {
|
||||
"dashboard:view", "room:read", "device:read", "device:control",
|
||||
@@ -79,5 +84,6 @@ var RolePermissionMap = map[string][]string{
|
||||
"tray:read", "batch:read", "rearing:read",
|
||||
"notification:read", "notification:write",
|
||||
"weather:read",
|
||||
"lamp:read",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user