Documentation ¶
Index ¶
Constants ¶
View Source
const ( Unknown = "" ConfigBaseDetail = "config.detail" ConfigBaseUpdate = "config.update" ConfigWebDetail = "config.web.detail" ConfigWebUpdate = "config.web.update" ConfigStreamDetail = "config.stream.detail" ConfigStreamUpdate = "config.stream.update" OrganizationCreate = "org.create" OrganizationList = "org.list" OrganizationDetail = "org.detail" OrganizationUpdate = "org.update" OrganizationDelete = "org.delete" ResourceList = "resource.list" ResourceDetail = "resource.detail" MyProfileDetail = "my.profile.detail" MyProfileUpdate = "my.profile.update" MyPerm = "my.perm" MyPermMulti = "my.perm.multi" UserLogList = "user.log.list" UserLogDelete = "user.log.delete" DeviceLogList = "device.log.list" DeviceLogDelete = "device.log.delete" EquipmentLogList = "equip.log.list" EquipmentLogDelete = "equip.log.delete" DeviceStatus = "device.status" DeviceData = "device.data" DeviceCtrl = "device.ctrl" DeviceCHValue = "device.val" DeviceStatistics = "device.statistics" EquipmentStatus = "equipment.status" EquipmentData = "equipment.data" EquipmentCtrl = "equipment.ctrl" EquipmentCHValue = "equipment.val" EquipmentStatistics = "equipment.statistics" UserList = "user.list" UserCreate = "user.create" UserDetail = "user.detail" UserUpdate = "user.update" UserDelete = "user.delete" RoleList = "role.list" RoleCreate = "role.create" RoleDetail = "role.detail" RoleUpdate = "role.update" RoleDelete = "role.delete" GroupList = "group.list" GroupCreate = "group.create" GroupDetail = "group.detail" GroupUpdate = "group.update" GroupDelete = "group.delete" DeviceList = "device.list" DeviceCreate = "device.create" DeviceDetail = "device.detail" DeviceUpdate = "device.update" DeviceDelete = "device.delete" MeasureList = "measure.list" MeasureCreate = "measure.create" MeasureDetail = "measure.detail" MeasureUpdate = "measure.update" MeasureDelete = "measure.delete" EquipmentList = "equipment.list" EquipmentCreate = "equipment.create" EquipmentDetail = "equipment.detail" EquipmentUpdate = "equipment.update" EquipmentDelete = "equipment.delete" StateList = "state.list" StateCreate = "state.create" StateDetail = "state.detail" StateUpdate = "state.update" StateDelete = "state.delete" AlarmList = "alarm.list" AlarmConfirm = "alarm.confirm" AlarmDelete = "alarm.delete" AlarmDetail = "alarm.detail" CommentList = "comment.list" CommentDetail = "comment.detail" CommentCreate = "comment.create" CommentDelete = "comment.delete" LogList = "log.list" LogDelete = "log.delete" SysBrief = "sys.brief" DataExport = "data.export" )
View Source
const (
Invoke = Ctrl
)
View Source
const (
UnknownKind = 0
)
Variables ¶
View Source
var ( Guest = []string{ MyProfileDetail, MyProfileUpdate, MyPerm, MyPermMulti, ConfigBaseDetail, SysBrief, } OrganizationAdmin = append(Guest, ConfigBaseUpdate, ConfigWebDetail, ConfigWebUpdate, ConfigStreamDetail, ConfigStreamUpdate, UserLogList, UserLogDelete, DeviceLogList, DeviceLogDelete, EquipmentLogList, EquipmentLogDelete, ResourceList, ResourceDetail, UserList, UserCreate, UserDetail, UserUpdate, UserDelete, RoleList, RoleCreate, RoleDetail, RoleUpdate, RoleDelete, GroupList, GroupCreate, GroupDetail, GroupUpdate, GroupDelete, DeviceList, DeviceCreate, DeviceDetail, DeviceUpdate, DeviceDelete, DeviceStatus, DeviceData, DeviceCtrl, DeviceCHValue, DeviceStatistics, EquipmentStatus, EquipmentData, EquipmentCtrl, EquipmentCHValue, EquipmentStatistics, MeasureList, MeasureCreate, MeasureDetail, MeasureUpdate, MeasureDelete, EquipmentList, EquipmentCreate, EquipmentDetail, EquipmentUpdate, EquipmentDelete, StateList, StateCreate, StateDetail, StateUpdate, StateDelete, AlarmList, AlarmConfirm, AlarmDelete, AlarmDetail, CommentList, CommentDetail, CommentCreate, CommentDelete, LogList, LogDelete, SysBrief, DataExport, ) SystemAdmin = append(OrganizationAdmin, OrganizationCreate, OrganizationList, OrganizationDetail, OrganizationUpdate, OrganizationDelete, ) )
View Source
var ( //设备总览 MenuRoleGallery = []string{ GroupList, DeviceList, EquipmentList, DeviceStatus, DeviceData, DeviceCtrl, DeviceCHValue, DeviceLogList, DeviceLogDelete, AlarmList, EquipmentStatus, EquipmentData, EquipmentCtrl, EquipmentCHValue, } //设备管理 MenuRoleDevices = []string{ GroupList, GroupCreate, GroupDetail, GroupUpdate, GroupDelete, DeviceList, DeviceCreate, DeviceDetail, DeviceUpdate, DeviceDelete, DeviceStatus, DeviceData, DeviceCtrl, DeviceCHValue, EquipmentStatus, EquipmentData, EquipmentCtrl, EquipmentCHValue, MeasureList, MeasureCreate, MeasureDetail, MeasureUpdate, MeasureDelete, EquipmentList, EquipmentCreate, EquipmentDetail, EquipmentUpdate, EquipmentDelete, StateList, StateCreate, StateDetail, StateUpdate, StateDelete, } //报警查询 MenuRoleAlert = []string{ AlarmList, AlarmConfirm, AlarmDelete, AlarmDetail, CommentList, CommentDetail, CommentCreate, } //趋势图 MenuRoleStats = []string{ DeviceList, MeasureList, EquipmentList, StateList, DeviceStatistics, EquipmentStatistics, } //报表导出 MenuRoleExport = []string{ DeviceList, MeasureList, EquipmentList, StateList, DataExport, } //用户管理 MenuRoleUsers = []string{ UserList, UserCreate, UserDetail, UserUpdate, UserDelete, ResourceList, ResourceDetail, RoleUpdate, RoleList, UserLogList, UserLogDelete, } //系统日志 MenuRoleSysLogs = []string{ LogList, LogDelete, } //云视图 MenuWebView = []string{ ConfigWebDetail, ConfigWebUpdate, } //云监控 MenuStreamView = []string{ ConfigStreamDetail, ConfigStreamUpdate, } )
后台菜单角色权限列表
Functions ¶
func IsValidClass ¶
func IsValidClass(class interface{}) bool
Types ¶
type MeasureKind ¶
type MeasureKind int
const ( AllKind MeasureKind = iota AI AO DI DO )
func ParseMeasureKind ¶
func ParseMeasureKind(tagName string) MeasureKind
Click to show internal directories.
Click to hide internal directories.