feat(server-go): 和风天气接入与高发病天气预警规则(#12)
This commit is contained in:
@@ -34,6 +34,7 @@ var AllPermissions = []PermissionDef{
|
||||
{"rearing:write", "饲养记录管理", "新增、编辑、删除饲养记录"},
|
||||
{"notification:read", "订阅查看", "查看微信订阅绑定状态"},
|
||||
{"notification:write", "订阅管理", "绑定微信并管理订阅授权"},
|
||||
{"weather:read", "天气查看", "查看天气与高发病天气预警"},
|
||||
{"user:manage", "用户管理", "管理用户、角色和权限"},
|
||||
{"audit:read", "审计查看", "查看审计日志"},
|
||||
}
|
||||
@@ -48,6 +49,7 @@ var RolePermissionMap = map[string][]string{
|
||||
"inspection:create", "inspection:read",
|
||||
"tray:read", "tray:write", "batch:read", "batch:write", "rearing:read", "rearing:write",
|
||||
"notification:read", "notification:write",
|
||||
"weather:read",
|
||||
"user:manage", "audit:read",
|
||||
},
|
||||
RoleOperator: {
|
||||
@@ -58,6 +60,7 @@ var RolePermissionMap = map[string][]string{
|
||||
"inspection:create", "inspection:read",
|
||||
"tray:read", "tray:write", "batch:read", "batch:write", "rearing:read", "rearing:write",
|
||||
"notification:read", "notification:write",
|
||||
"weather:read",
|
||||
},
|
||||
RoleViewer: {
|
||||
"dashboard:view", "room:read", "device:read",
|
||||
@@ -66,6 +69,7 @@ var RolePermissionMap = map[string][]string{
|
||||
"inspection:read",
|
||||
"tray:read", "batch:read", "rearing:read",
|
||||
"notification:read",
|
||||
"weather:read",
|
||||
},
|
||||
RoleFarmer: {
|
||||
"dashboard:view", "room:read", "device:read", "device:control",
|
||||
@@ -74,5 +78,6 @@ var RolePermissionMap = map[string][]string{
|
||||
"inspection:create", "inspection:read",
|
||||
"tray:read", "batch:read", "rearing:read",
|
||||
"notification:read", "notification:write",
|
||||
"weather:read",
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user