Documentation ¶
Index ¶
- func AddRecord(c *gin.Context, content ...interface{})
- func CheckBindAndUser(c *gin.Context, bindID int64) bool
- func CheckOrgDevicePermission(c *gin.Context, ctx context.Context, deviceID, groupID string, ...) bool
- func CheckPermissionByUser(c *gin.Context, permissions []string) bool
- func GetBindByUser(c *gin.Context, orgID int64) (bindData OrgCore.FieldsBind, err error)
- func GetDataFromByBind(bindData *OrgCore.FieldsBind) CoreSQLFrom.FieldsFrom
- func GetDataFromByOrg(orgData *OrgCore.FieldsOrg) CoreSQLFrom.FieldsFrom
- func GetDataFromByOrgNoName(orgData *OrgCore.FieldsOrg) CoreSQLFrom.FieldsFrom
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRecord ¶
AddRecord 行政日志行为统一处理 注意必须具备上下文关系,否则请提前自行创建 createInfo 创建日志模块来源,Mark: 系统内部的行为识别编码,例如任务终端中的修改目标状态,也可以用于其他的识别编码
func CheckOrgDevicePermission ¶
func CheckOrgDevicePermission(c *gin.Context, ctx context.Context, deviceID, groupID string, permissions []string, action []string) bool
检查设备和组织关系
func CheckPermissionByUser ¶
CheckPermissionByUser 检查用户是否具备对应组织权限,同时附带权限拦截
func GetBindByUser ¶
通过用户获取在某个组织的绑定关系
func GetDataFromByBind ¶
func GetDataFromByBind(bindData *OrgCore.FieldsBind) CoreSQLFrom.FieldsFrom
获取CoreFieldsFrom的组织绑定来源
func GetDataFromByOrg ¶
func GetDataFromByOrg(orgData *OrgCore.FieldsOrg) CoreSQLFrom.FieldsFrom
获取CoreFieldsFrom的组织来源 用于创建和更新过程
func GetDataFromByOrgNoName ¶
func GetDataFromByOrgNoName(orgData *OrgCore.FieldsOrg) CoreSQLFrom.FieldsFrom
无名称指定 用于常用搜索事项
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.