rbac

package
v0.0.0-...-ae394c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEnterprisePermissionGroup

func CreateEnterprisePermissionGroup(c *gin.Context)

CreateEnterprisePermissionGroup @Tags open-apis/core @summary 新增权限组(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body PostPermissionGroupReq true "请求参数体" @Router /open-apis/core/rbac/tenant/permission/group [post]

func CreateEnterprisePermissionGroupPermission

func CreateEnterprisePermissionGroupPermission(c *gin.Context)

CreateEnterprisePermissionGroupPermission @Tags open-apis/core @summary 新增权限组关联(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body PostPermissionGroupPermissionReq true "请求参数体" @Router /open-apis/core/rbac/tenant/permission/group/permission [post]

func CreateEnterpriseRole

func CreateEnterpriseRole(c *gin.Context)

CreateEnterpriseRole @Tags open-apis/core @summary 新增角色(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body PostRoleReq true "请求参数体" @Router /open-apis/core/rbac/tenant/role [post]

func CreateEnterpriseRoleGroup

func CreateEnterpriseRoleGroup(c *gin.Context)

CreateEnterpriseRoleGroup @Tags open-apis/core @summary 新增角色组(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body PostRoleGroupReq true "请求参数体" @Router /open-apis/core/rbac/tenant/role/group [post]

func CreateEnterpriseRoleGroupPermission

func CreateEnterpriseRoleGroupPermission(c *gin.Context)

CreateEnterpriseRoleGroupPermission @Tags open-apis/core @summary 新增角色组与权限关联关系(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body PostRoleGroupPermissionReq true "请求参数体" @Router /open-apis/core/rbac/tenant/role/group/permission [post]

func CreateEnterpriseRolePermission

func CreateEnterpriseRolePermission(c *gin.Context)

CreateEnterpriseRolePermission @Tags open-apis/core @summary 新增角色与权限关联关系(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body PostRolePermissionReq true "请求参数体" @Router /open-apis/core/rbac/tenant/role/permission [post]

func CreateEnterpriseUserPermission

func CreateEnterpriseUserPermission(c *gin.Context)

CreateEnterpriseUserPermission @Tags open-apis/core @summary 新增人与权限关联(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body PostUserPermissionReq true "请求参数体" @Router /open-apis/core/rbac/tenant/user/permission [post]

func CreateInterfaceResource

func CreateInterfaceResource(c *gin.Context)

CreateInterfaceResource @Tags open-apis/core @summary 新增接口信息(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreateInterfaceResourceReq true "请求参数体" @Router /open-apis/core/rbac/resource/interface [post]

func CreateMenuResource

func CreateMenuResource(c *gin.Context)

CreateMenuResource @Tags open-apis/core @summary 新增菜单信息(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreateMenuResourceReq true "请求参数体" @Router /open-apis/core/rbac/resource/menu [post]

func CreatePageInterface

func CreatePageInterface(c *gin.Context)

CreatePageInterface @Tags open-apis/core @summary 新增页面资源与接口关联(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreatePageInterfaceReq true "请求参数体" @Router /open-apis/core/rbac/resource/page/interface [post]

func CreatePageResource

func CreatePageResource(c *gin.Context)

CreatePageResource @Tags open-apis/core @summary 新增页面资源(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreatePageResourceReq true "请求参数体" @Router /open-apis/core/rbac/resource/page [post]

func CreatePermission

func CreatePermission(c *gin.Context)

CreatePermission @Tags open-apis/core @summary 新增权限项(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreatePermissionReq true "请求参数体" @Router /open-apis/core/rbac/system/permission [post]

func CreatePermissionGroup

func CreatePermissionGroup(c *gin.Context)

CreatePermissionGroup @Tags open-apis/core @summary 新增权限组(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreatePermissionGroupReq true "请求参数体" @Router /open-apis/core/rbac/system/permission/group [post]

func CreatePermissionGroupPermission

func CreatePermissionGroupPermission(c *gin.Context)

CreatePermissionGroupPermission @Tags open-apis/core @summary 新增权限组关联(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreatePermissionGroupPermissionReq true "请求参数体" @Router /open-apis/core/rbac/system/permission/group/permission [post]

func CreateRole

func CreateRole(c *gin.Context)

CreateRole @Tags open-apis/core @summary 新增角色(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreateRoleReq true "请求参数体" @Router /open-apis/core/rbac/system/role [post]

func CreateRoleGroup

func CreateRoleGroup(c *gin.Context)

CreateRoleGroup @Tags open-apis/core @summary 新增角色组(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreateRoleGroupReq true "请求参数体" @Router /open-apis/core/rbac/system/role/group [post]

func CreateRoleGroupPermission

func CreateRoleGroupPermission(c *gin.Context)

CreateRoleGroupPermission @Tags open-apis/core @summary 新增角色组与权限关联关系(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreateRoleGroupPermissionReq true "请求参数体" @Router /open-apis/core/rbac/system/role/group/permission [post]

func CreateRolePermission

func CreateRolePermission(c *gin.Context)

CreateRolePermission @Tags open-apis/core @summary 新增角色与权限关联关系(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreateRolePermissionReq true "请求参数体" @Router /open-apis/core/rbac/system/role/permission [post]

func CreateUserPermission

func CreateUserPermission(c *gin.Context)

CreateUserPermission @Tags open-apis/core @summary 新增人与权限关联(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body CreateUserPermissionReq true "请求参数体" @Router /open-apis/core/rbac/system/user/permission [post]

func DeleteEnterprisePermissionGroup

func DeleteEnterprisePermissionGroup(c *gin.Context)

DeleteEnterprisePermissionGroup @Tags open-apis/core @summary 删除权限组(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/tenant/permission/group [delete]

func DeleteEnterprisePermissionGroupPermission

func DeleteEnterprisePermissionGroupPermission(c *gin.Context)

DeleteEnterprisePermissionGroupPermission @Tags open-apis/core @summary 删除权限组关联关系(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/tenant/permission/group/permission [delete]

func DeleteEnterpriseRole

func DeleteEnterpriseRole(c *gin.Context)

DeleteEnterpriseRole @Tags open-apis/core @summary 删除角色(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/tenant/role [delete]

func DeleteEnterpriseRoleGroup

func DeleteEnterpriseRoleGroup(c *gin.Context)

DeleteEnterpriseRoleGroup @Tags open-apis/core @summary 删除角色组(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/tenant/role/group [delete]

func DeleteEnterpriseRoleGroupPermission

func DeleteEnterpriseRoleGroupPermission(c *gin.Context)

DeleteEnterpriseRoleGroupPermission @Tags open-apis/core @summary 删除角色组与权限关联关系(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/tenant/role/group/permission [delete]

func DeleteEnterpriseRolePermission

func DeleteEnterpriseRolePermission(c *gin.Context)

DeleteEnterpriseRolePermission @Tags open-apis/core @summary 删除角色与权限关联关系(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/tenant/role/permission [delete]

func DeleteEnterpriseUserPermission

func DeleteEnterpriseUserPermission(c *gin.Context)

DeleteEnterpriseUserPermission @Tags open-apis/core @summary 删除人与权限关联(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/tenant/user/permission [delete]

func DeleteInterfaceResource

func DeleteInterfaceResource(c *gin.Context)

DeleteInterfaceResource @Tags open-apis/core @summary 删除接口信息(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/resource/interface [delete]

func DeleteMenuResource

func DeleteMenuResource(c *gin.Context)

DeleteMenuResource @Tags open-apis/core @summary 删除菜单信息(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/resource/menu [delete]

func DeletePageInterface

func DeletePageInterface(c *gin.Context)

DeletePageInterface @Tags open-apis/core @summary 删除页面资源与接口关联关系(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/resource/page/interface [delete]

func DeletePageResource

func DeletePageResource(c *gin.Context)

DeletePageResource @Tags open-apis/core @summary 删除页面资源(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/resource/page [delete]

func DeletePermission

func DeletePermission(c *gin.Context)

DeletePermission @Tags open-apis/core @summary 删除权限项(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/system/permission [delete]

func DeletePermissionGroup

func DeletePermissionGroup(c *gin.Context)

DeletePermissionGroup @Tags open-apis/core @summary 删除权限组(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/system/permission/group [delete]

func DeletePermissionGroupPermission

func DeletePermissionGroupPermission(c *gin.Context)

DeletePermissionGroupPermission @Tags open-apis/core @summary 删除权限组关联关系(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/system/permission/group/permission [delete]

func DeleteRole

func DeleteRole(c *gin.Context)

DeleteRole @Tags open-apis/core @summary 删除角色(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/system/role [delete]

func DeleteRoleGroup

func DeleteRoleGroup(c *gin.Context)

DeleteRoleGroup @Tags open-apis/core @summary 删除角色组(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/system/role/group [delete]

func DeleteRoleGroupPermission

func DeleteRoleGroupPermission(c *gin.Context)

DeleteRoleGroupPermission @Tags open-apis/core @summary 删除角色组与权限关联关系(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/system/role/group/permission [delete]

func DeleteRolePermission

func DeleteRolePermission(c *gin.Context)

DeleteRolePermission @Tags open-apis/core @summary 删除角色与权限关联关系(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/system/role/permission [delete]

func DeleteUserPermission

func DeleteUserPermission(c *gin.Context)

DeleteUserPermission @Tags open-apis/core @summary 删除人与权限关联(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body DeleteReq true "请求参数体" @Router /open-apis/core/rbac/system/user/permission [delete]

func GetEnterpriseUserAllPermissionByUserPk

func GetEnterpriseUserAllPermissionByUserPk(c *gin.Context)

GetEnterpriseUserAllPermissionByUserPk @Tags open-apis/core @summary 获取账号权限(TenantAccessToken) @Accept json @Produce json @Security bearer @Param user_pk query string true "用户Pk" @Router /open-apis/core/rbac/tenant/user/permission [get]

func GetEnterpriseUserRoleAndRoleGroupByUserPKAndEnterprisePk

func GetEnterpriseUserRoleAndRoleGroupByUserPKAndEnterprisePk(c *gin.Context)

GetEnterpriseUserRoleAndRoleGroupByUserPKAndEnterprisePk @Tags open-apis/core @summary 获取账号角色及角色组(TenantAccessToken) @Accept json @Produce json @Security bearer @Param user_pk query string true "用户Pk" @Router /open-apis/core/rbac/tenant/user/role/group [get]

func GetTenantPermission

func GetTenantPermission(c *gin.Context)

GetTenantPermission @Tags open-apis/core @summary 获取权限项列表方法(TenantAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param operation_type query int false "操作类型" @Param permission_name query string false "权限名称" @Param resource_type query int false "资源类型" @Router /open-apis/core/rbac/tenant/permission [get]

func GetUserAllPermissionByUserPk

func GetUserAllPermissionByUserPk(c *gin.Context)

GetUserAllPermissionByUserPk @Tags open-apis/core @summary 获取账号权限(UserAccessToken) @Accept json @Produce json @Security bearer @Param user_pk query string true "用户Pk" @Param enterprise_pk query string true "租户Pk" @Router /open-apis/core/rbac/system/user/permission [get]

func GetUserPermissionByUserPkAndEnterprisePkForRedis

func GetUserPermissionByUserPkAndEnterprisePkForRedis(c *gin.Context)

GetUserPermissionByUserPkAndEnterprisePkForRedis @Tags open-apis/core @summary 获取缓存中的账号权限数据(TenantAccessToken) @Accept json @Produce json @Security bearer @Router /open-apis/core/rbac/tenant/user [get]

func GetUserRoleAndRoleGroupByUserPKAndEnterprisePk

func GetUserRoleAndRoleGroupByUserPKAndEnterprisePk(c *gin.Context)

GetUserRoleAndRoleGroupByUserPKAndEnterprisePk @Tags open-apis/core @summary 获取账号角色及角色组接口(UserAccessToken) @Accept json @Produce json @Security bearer @Param user_pk query string true "用户Pk" @Param enterprise_pk query string true "租户Pk" @Router /open-apis/core/rbac/system/user/role/group [get]

func Load

func Load(r *gin.RouterGroup)

func SelectAllMenuWithDetail

func SelectAllMenuWithDetail(c *gin.Context)

SelectAllMenuWithDetail @Tags open-apis/core @summary 获取菜单信息列表(UserAccessToken) @Accept json @Produce json @Security bearer @Param menu_name query string false "菜单名称" @Router /open-apis/core/rbac/resource/menu [get]

func SelectEnterprisePermissionGroup

func SelectEnterprisePermissionGroup(c *gin.Context)

SelectEnterprisePermissionGroup @Tags open-apis/core @summary 获取权限组列表(TenantAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param enterprise_pk query string true "租户Pk" @Param group_name query string false "组名" @Router /open-apis/core/rbac/tenant/permission/group [get]

func SelectEnterpriseRole

func SelectEnterpriseRole(c *gin.Context)

SelectEnterpriseRole @Tags open-apis/core @summary 获取角色(TenantAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param enterprise_pk query string true "租户Pk" @Param role_name query string false "组名" @Router /open-apis/core/rbac/tenant/role [get]

func SelectEnterpriseRoleGroup

func SelectEnterpriseRoleGroup(c *gin.Context)

SelectEnterpriseRoleGroup @Tags open-apis/core @summary 获取角色组列表(TenantAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param enterprise_pk query string true "租户Pk" @Param role_group_name query string false "组名" @Router /open-apis/core/rbac/tenant/role/group [get]

func SelectEnterpriseRoleGroupUser

func SelectEnterpriseRoleGroupUser(c *gin.Context)

SelectEnterpriseRoleGroupUser @Tags open-apis/core @summary 获取角色组人员列表(TenantAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param enterprise_pk query string true "租户Pk" @Param role_group_pk query string true "角色组主键" @Router /open-apis/core/rbac/tenant/role/group/user [get]

func SelectEnterpriseRoleUser

func SelectEnterpriseRoleUser(c *gin.Context)

SelectEnterpriseRoleUser @Tags open-apis/core @summary 获取角色人员列表(TenantAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param enterprise_pk query string true "租户Pk" @Param role_pk query string true "角色主键" @Router /open-apis/core/rbac/tenant/role/user [get]

func SelectInterfaceResource

func SelectInterfaceResource(c *gin.Context)

SelectInterfaceResource @Tags open-apis/core @summary 获取接口信息(UserAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param interface_way query string false "接口方法" @Param interface_url query string false "接口路径" @Param interface_name query string false "接口名" @Param interface_key query string false "接口标识符" @Router /open-apis/core/rbac/resource/interface [get]

func SelectPageInterfaceDetailMessage

func SelectPageInterfaceDetailMessage(c *gin.Context)

SelectPageInterfaceDetailMessage @Tags open-apis/core @summary 获取页面及关联接口(UserAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param page_type query int false "页面类型:1平台 2 小程序" @Param page_path query string false "路由地址" @Param component_name query string false "组件名" @Param page_name query string false "页面名称" @Router /open-apis/core/rbac/resource/page [get]

func SelectPermission

func SelectPermission(c *gin.Context)

SelectPermission @Tags open-apis/core @summary 获取权限项列表(UserAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param enterprise_pk query string true "租户Pk" @Param operation_type query int false "操作类型" @Param permission_name query string false "权限名称" @Param resource_type query int false "资源类型" @Param visibility query int false "权限类型" @Router /open-apis/core/rbac/system/permission [get]

func SelectPermissionGroup

func SelectPermissionGroup(c *gin.Context)

SelectPermissionGroup @Tags open-apis/core @summary 获取权限组列表接口(UserAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param enterprise_pk query string true "租户Pk" @Param group_name query string false "组名" @Param group_type query int false "页数" @Router /open-apis/core/rbac/system/permission/group [get]

func SelectRole

func SelectRole(c *gin.Context)

SelectRole @Tags open-apis/core @summary 获取角色(UserAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param enterprise_pk query string true "租户Pk" @Param role_name query string false "组名" @Router /open-apis/core/rbac/system/role [get]

func SelectRoleGroup

func SelectRoleGroup(c *gin.Context)

SelectRoleGroup @Tags open-apis/core @summary 获取角色组列表(UserAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param enterprise_pk query string true "租户Pk" @Param role_group_name query string false "组名" @Router /open-apis/core/rbac/system/role/group [get]

func SelectRoleGroupUser

func SelectRoleGroupUser(c *gin.Context)

SelectRoleGroupUser @Tags open-apis/core @summary 获取角色组人员列表(UserAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param enterprise_pk query string true "租户Pk" @Param role_group_pk query string true "角色组主键" @Router /open-apis/core/rbac/system/role/group/user [get]

func SelectRoleUser

func SelectRoleUser(c *gin.Context)

SelectRoleUser @Tags open-apis/core @summary 获取角色人员列表(UserAccessToken) @Accept json @Produce json @Security bearer @Param page query int true "页码" @Param size query int true "页数" @Param enterprise_pk query string true "租户Pk" @Param role_pk query string true "角色主键" @Router /open-apis/core/rbac/system/role/user [get]

func UpdateInterfaceResource

func UpdateInterfaceResource(c *gin.Context)

UpdateInterfaceResource @Tags open-apis/core @summary 修改接口信息(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body UpdateInterfaceResourceReq true "请求参数体" @Router /open-apis/core/rbac/resource/interface [put]

func UpdateMenuResource

func UpdateMenuResource(c *gin.Context)

UpdateMenuResource @Tags open-apis/core @summary 修改菜单信息(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body UpdateMenuResourceReq true "请求参数体" @Router /open-apis/core/rbac/resource/menu [put]

func UpdatePageResource

func UpdatePageResource(c *gin.Context)

UpdatePageResource @Tags open-apis/core @summary 修改页面资源(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body UpdatePageResourceReq true "请求参数体" @Router /open-apis/core/rbac/resource/page [put]

func UpdaterEnterprisePermissionGroup

func UpdaterEnterprisePermissionGroup(c *gin.Context)

UpdaterEnterprisePermissionGroup @Tags open-apis/core @summary 修改权限组(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body PutPermissionGroupReq true "请求参数体" @Router /open-apis/core/rbac/tenant/permission/group [put]

func UpdaterEnterpriseRole

func UpdaterEnterpriseRole(c *gin.Context)

UpdaterEnterpriseRole @Tags open-apis/core @summary 修改角色(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body PutRoleReq true "请求参数体" @Router /open-apis/core/rbac/tenant/role [put]

func UpdaterEnterpriseRoleGroup

func UpdaterEnterpriseRoleGroup(c *gin.Context)

UpdaterEnterpriseRoleGroup @Tags open-apis/core @summary 修改角色组(TenantAccessToken) @Accept json @Produce json @Security bearer @Param params body PutRoleGroupReq true "请求参数体" @Router /open-apis/core/rbac/tenant/role/group [put]

func UpdaterPermission

func UpdaterPermission(c *gin.Context)

UpdaterPermission @Tags open-apis/core @summary 修改权限项(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body UpdaterPermissionReq true "请求参数体" @Router /open-apis/core/rbac/system/permission [put]

func UpdaterPermissionGroup

func UpdaterPermissionGroup(c *gin.Context)

UpdaterPermissionGroup @Tags open-apis/core @summary 修改权限组(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body UpdaterPermissionGroupReq true "请求参数体" @Router /open-apis/core/rbac/system/permission/group [put]

func UpdaterRole

func UpdaterRole(c *gin.Context)

UpdaterRole @Tags open-apis/core @summary 修改角色(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body UpdaterRoleReq true "请求参数体" @Router /open-apis/core/rbac/system/role [put]

func UpdaterRoleGroup

func UpdaterRoleGroup(c *gin.Context)

UpdaterRoleGroup @Tags open-apis/core @summary 修改角色组(UserAccessToken) @Accept json @Produce json @Security bearer @Param params body UpdaterRoleReq true "请求参数体" @Router /open-apis/core/rbac/system/role/group [put]

Types

type CreateInterfaceResourceReq

type CreateInterfaceResourceReq struct {
	InterfaceKey  string `json:"interface_key"  form:"interface_key" query:"interface_key"`
	InterfaceName string `json:"interface_name"  form:"interface_name" query:"interface_name"`
	InterfaceWay  string `json:"interface_way"  form:"interface_way" query:"interface_way"`
	InterfaceUrl  string `json:"interface_url"  form:"interface_url" query:"interface_url"`
}

type CreateMenuResourceReq

type CreateMenuResourceReq struct {
	MenuType    int32  `json:"menu_type"  form:"menu_type" query:"menu_type"`
	MenuName    string `json:"menu_name"  form:"menu_name" query:"menu_name"`
	ResourceKey string `json:"resource_key"  form:"resource_key" query:"resource_key"`
	ParentPk    string `json:"parent_pk"  form:"parent_pk" query:"parent_pk"`
	Sort        int32  `json:"sort"  form:"sort" query:"sort"`
	Icon        string `json:"icon"  form:"icon" query:"icon"`
	Path        string `json:"path"  form:"path" query:"path"`
}

type CreatePageInterfaceReq

type CreatePageInterfaceReq struct {
	PagePk        string `json:"page_pk"  form:"page_pk" query:"page_pk"`
	InterfacePk   string `json:"interface_pk"  form:"interface_pk" query:"interface_pk"`
	OperationType int32  `json:"operation_type"  form:"operation_type" query:"operation_type"`
}

type CreatePageResourceReq

type CreatePageResourceReq struct {
	PagePath      string `json:"page_path"  form:"page_path" query:"page_path"`
	Component     string `json:"component"  form:"component" query:"component"`
	ComponentName string `json:"component_name"  form:"component_name" query:"component_name"`
	PageName      string `json:"page_name"  form:"page_name" query:"page_name"`
	IsCache       int32  `json:"is_cache"  form:"is_cache" query:"is_cache"`
	PageType      int32  `json:"page_type"  form:"page_type" query:"page_type"`
}

type CreatePermissionGroupPermissionReq

type CreatePermissionGroupPermissionReq struct {
	PermissionPk      string `json:"permission_pk"  form:"permission_pk" query:"permission_pk"`
	PermissionGroupPk string `json:"permission_group_pk"  form:"permission_group_pk" query:"permission_group_pk"`
}

type CreatePermissionGroupReq

type CreatePermissionGroupReq struct {
	Remark       string `json:"remark"  form:"remark" query:"remark"`
	EnterprisePk string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	GroupName    string `json:"group_name"  form:"group_name" query:"group_name"`
	GroupType    int32  `json:"group_type"  form:"group_type" query:"group_type"`
}

type CreatePermissionReq

type CreatePermissionReq struct {
	OperationType  int32  `json:"operation_type"  form:"operation_type" query:"operation_type"`
	EnterprisePk   string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	Resource       string `json:"resource"  form:"resource" query:"resource"`
	PermissionName string `json:"permission_name"  form:"permission_name" query:"permission_name"`
	ResourceType   int32  `json:"resource_type"  form:"resource_type" query:"resource_type"`
	Visibility     int32  `json:"visibility"  form:"visibility" query:"visibility"`
}

type CreateRoleGroupPermissionReq

type CreateRoleGroupPermissionReq struct {
	RoleGroupPk    string `json:"role_group_pk"  form:"role_group_pk" query:"role_group_pk"`
	PermissionType int32  `json:"permission_type"  form:"permission_type" query:"permission_type"`
	PermissionPk   string `json:"permission_pk"  form:"permission_pk" query:"permission_pk"`
}

type CreateRoleGroupReq

type CreateRoleGroupReq struct {
	Remark        string `json:"remark"  form:"remark" query:"remark"`
	EnterprisePk  string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	RoleGroupName string `json:"role_group_name"  form:"role_group_name" query:"role_group_name"`
}

type CreateRolePermissionReq

type CreateRolePermissionReq struct {
	RolePk         string `json:"role_pk"  form:"role_pk" query:"role_pk"`
	PermissionType int32  `json:"permission_type"  form:"permission_type" query:"permission_type"`
	PermissionPk   string `json:"permission_pk"  form:"permission_pk" query:"permission_pk"`
}

type CreateRoleReq

type CreateRoleReq struct {
	Remark       string `json:"remark"  form:"remark" query:"remark"`
	EnterprisePk string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	RoleName     string `json:"role_name"  form:"role_name" query:"role_name"`
}

type CreateUserPermissionReq

type CreateUserPermissionReq struct {
	PermissionType int32  `json:"permission_type"  form:"permission_type" query:"permission_type"`
	PermissionPk   string `json:"permission_pk"  form:"permission_pk" query:"permission_pk" example:"${权限主键}"`
	UserPk         string `json:"user_pk"  form:"user_pk" query:"user_pk"`
	EnterprisePk   string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
}

type DeleteReq

type DeleteReq struct {
	Pk string `json:"pk"  form:"pk" query:"pk"`
}

type EnterpriseUserPermissionQueryBody

type EnterpriseUserPermissionQueryBody struct {
	UserPk string `json:"user_pk"  form:"user_pk" query:"user_pk"`
}

type GetPermissionGroupReq

type GetPermissionGroupReq struct {
	EnterprisePk string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	GroupName    string `json:"group_name"  form:"group_name" query:"group_name"`
	Pagination
}

type GetPermissionReq

type GetPermissionReq struct {
	OperationType  int32  `json:"operation_type"  form:"operation_type" query:"operation_type"`
	Resource       string `json:"resource"  form:"resource" query:"resource"`
	ResourceType   int32  `json:"resource_type"  form:"resource_type" query:"resource_type"`
	PermissionName string `json:"permission_name"  form:"permission_name" query:"permission_name"`
	Pagination
}

type GetRoleGroupReq

type GetRoleGroupReq struct {
	RoleGroupName string `json:"role_group_name"  form:"role_group_name" query:"role_group_name"`
	Pagination
}

type GetRoleGroupUserReq

type GetRoleGroupUserReq struct {
	RoleGroupPk string `json:"role_group_pk"  form:"role_group_pk" query:"role_group_pk"`
	Pagination
}

type GetRoleReq

type GetRoleReq struct {
	RoleName string `json:"role_name"  form:"role_name" query:"role_name"`
	Pagination
}

type GetRoleUserReq

type GetRoleUserReq struct {
	RolePk string `json:"role_pk"  form:"role_pk" query:"role_pk"`
	Pagination
}

type GetUserPermissionReq

type GetUserPermissionReq struct {
	UserPk       string `json:"user_pk"  form:"user_pk" query:"user_pk"`
	EnterprisePk string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
}

type InterfaceResourceQueryBody

type InterfaceResourceQueryBody struct {
	InterfaceKey  string `json:"interface_key"  form:"interface_key" query:"interface_key"`
	InterfaceName string `json:"interface_name"  form:"interface_name" query:"interface_name"`
	InterfaceWay  string `json:"interface_way"  form:"interface_way" query:"interface_way"`
	InterfaceUrl  string `json:"interface_url"  form:"interface_url" query:"interface_url"`
	PageQfqz
}
type MenuResourceQueryBody struct {
	MenuName string `json:"menu_name"  form:"menu_name" query:"menu_name"`
}

type PageQfqz

type PageQfqz struct {
	Page int32 `json:"page" form:"page" query:"page"`
	Size int32 `json:"size" form:"size" query:"size"`
}

type PageResourceQueryBody

type PageResourceQueryBody struct {
	PagePath      string `json:"page_path"  form:"page_path" query:"page_path"`
	Component     string `json:"component"  form:"component" query:"component"`
	ComponentName string `json:"component_name"  form:"component_name" query:"component_name"`
	IsCache       string `json:"is_cache"  form:"is_cache" query:"is_cache"`
	PageName      string `json:"page_name"  form:"page_name" query:"page_name"`
	PageType      int32  `json:"page_type"  form:"page_type" query:"page_type"`
	PageQfqz
}

type Pagination

type Pagination struct {
	Page int32 `json:"page" form:"page" query:"page"`
	Size int32 `json:"size" form:"size" query:"size"`
}

type PermissionGroupQueryBody

type PermissionGroupQueryBody struct {
	EnterprisePk string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	GroupName    string `json:"group_name"  form:"group_name" query:"group_name"`
	GroupType    int32  `json:"group_type"  form:"group_type" query:"group_type"`
	PageQfqz
}

type PermissionListQueryBody

type PermissionListQueryBody struct {
	EnterprisePk   string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	OperationType  int32  `json:"operation_type"  form:"operation_type" query:"operation_type"`
	Resource       string `json:"resource"  form:"resource" query:"resource"`
	ResourceType   int32  `json:"resource_type"  form:"resource_type" query:"resource_type"`
	PermissionName string `json:"permission_name"  form:"permission_name" query:"permission_name"`
	Visibility     int32  `json:"visibility"  form:"visibility" query:"visibility"`
	PageQfqz
}

type PermissionQueryBody

type PermissionQueryBody struct {
	UserPk       string `json:"user_pk"  form:"user_pk" query:"user_pk"`
	EnterprisePk string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
}

type PostPermissionGroupPermissionReq

type PostPermissionGroupPermissionReq struct {
	PermissionPk      string `json:"permission_pk"  form:"permission_pk" query:"permission_pk"`
	PermissionGroupPk string `json:"permission_group_pk"  form:"permission_group_pk" query:"permission_group_pk"`
}

type PostPermissionGroupReq

type PostPermissionGroupReq struct {
	Remark    string `json:"remark"  form:"remark" query:"remark"`
	GroupName string `json:"group_name"  form:"group_name" query:"group_name"`
}

type PostRoleGroupPermissionReq

type PostRoleGroupPermissionReq struct {
	RoleGroupPk    string `json:"role_group_pk"  form:"role_group_pk" query:"role_group_pk"`
	PermissionType int32  `json:"permission_type"  form:"permission_type" query:"permission_type"`
	PermissionPk   string `json:"permission_pk"  form:"permission_pk" query:"permission_pk"`
}

type PostRoleGroupReq

type PostRoleGroupReq struct {
	Remark        string `json:"remark"  form:"remark" query:"remark"`
	EnterprisePk  string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	RoleGroupName string `json:"role_group_name"  form:"role_group_name" query:"role_group_name"`
}

type PostRolePermissionReq

type PostRolePermissionReq struct {
	RolePk         string `json:"role_pk"  form:"role_pk" query:"role_pk"`
	PermissionType int32  `json:"permission_type"  form:"permission_type" query:"permission_type"`
	PermissionPk   string `json:"permission_pk"  form:"permission_pk" query:"permission_pk"`
}

type PostRoleReq

type PostRoleReq struct {
	Remark   string `json:"remark"  form:"remark" query:"remark"`
	RoleName string `json:"role_name"  form:"role_name" query:"role_name"`
}

type PostUserPermissionReq

type PostUserPermissionReq struct {
	UserPk         string `json:"user_pk"  form:"user_pk" query:"user_pk"`
	PermissionType int32  `json:"permission_type"  form:"permission_type" query:"permission_type"`
	PermissionPk   string `json:"permission_pk"  form:"permission_pk" query:"permission_pk" example:"${权限主键}"`
}

type PutPermissionGroupReq

type PutPermissionGroupReq struct {
	Pk        string `json:"pk"  form:"pk" query:"pk"`
	GroupName string `json:"group_name"  form:"group_name" query:"group_name"`
	Remark    string `json:"remark"  form:"remark" query:"remark"`
}

type PutRoleGroupReq

type PutRoleGroupReq struct {
	Pk            string `json:"pk"  form:"pk" query:"pk"`
	RoleGroupName string `json:"role_group_name"  form:"role_group_name" query:"role_group_name"`
	Remark        string `json:"remark"  form:"remark" query:"remark"`
}

type PutRoleReq

type PutRoleReq struct {
	Pk       string `json:"pk"  form:"pk" query:"pk"`
	RoleName string `json:"role_name"  form:"role_name" query:"role_name"`
	Remark   string `json:"remark"  form:"remark" query:"remark"`
}

type RoleGroupQueryBody

type RoleGroupQueryBody struct {
	EnterprisePk  string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	RoleGroupName string `json:"role_group_name"  form:"role_group_name" query:"role_group_name"`
	PageQfqz
}

type RoleGroupUserQueryBody

type RoleGroupUserQueryBody struct {
	EnterprisePk string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	RoleGroupPk  string `json:"role_group_pk"  form:"role_group_pk" query:"role_group_pk"`
	PageQfqz
}

type RoleQueryBody

type RoleQueryBody struct {
	EnterprisePk string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	RoleName     string `json:"role_name"  form:"role_name" query:"role_name"`
	PageQfqz
}

type RoleUserQueryBody

type RoleUserQueryBody struct {
	EnterprisePk string `json:"enterprise_pk"  form:"enterprise_pk" query:"enterprise_pk"`
	RolePk       string `json:"role_pk"  form:"role_pk" query:"role_pk"`
	PageQfqz
}

type UpdateInterfaceResourceReq

type UpdateInterfaceResourceReq struct {
	Pk            string `json:"pk"  form:"pk" query:"pk"`
	InterfaceKey  string `json:"interface_key"  form:"interface_key" query:"interface_key"`
	InterfaceName string `json:"interface_name"  form:"interface_name" query:"interface_name"`
	InterfaceWay  string `json:"interface_way"  form:"interface_way" query:"interface_way"`
	InterfaceUrl  string `json:"interface_url"  form:"interface_url" query:"interface_url"`
}

type UpdateMenuResourceReq

type UpdateMenuResourceReq struct {
	Pk          string `json:"pk"  form:"pk" query:"pk"`
	MenuType    int32  `json:"menu_type"  form:"menu_type" query:"menu_type"`
	MenuName    string `json:"menu_name"  form:"menu_name" query:"menu_name"`
	ResourceKey string `json:"resource_key"  form:"resource_key" query:"resource_key"`
	ParentPk    string `json:"parent_pk"  form:"parent_pk" query:"parent_pk"`
	Sort        int32  `json:"sort"  form:"sort" query:"sort"`
	Icon        string `json:"icon"  form:"icon" query:"icon"`
	Path        string `json:"path"  form:"path" query:"path"`
}

type UpdatePageResourceReq

type UpdatePageResourceReq struct {
	Pk            string `json:"pk"  form:"pk" query:"pk"`
	PagePath      string `json:"page_path"  form:"page_path" query:"page_path"`
	Component     string `json:"component"  form:"component" query:"component"`
	ComponentName string `json:"component_name"  form:"component_name" query:"component_name"`
	PageName      string `json:"page_name"  form:"page_name" query:"page_name"`
	IsCache       int32  `json:"is_cache"  form:"is_cache" query:"is_cache"`
	PageType      int32  `json:"page_type"  form:"page_type" query:"page_type"`
}

type UpdaterPermissionGroupReq

type UpdaterPermissionGroupReq struct {
	Pk        string `json:"pk"  form:"pk" query:"pk"`
	GroupName string `json:"group_name"  form:"group_name" query:"group_name"`
	Remark    string `json:"remark"  form:"remark" query:"remark"`
	GroupType int32  `json:"group_type"  form:"group_type" query:"group_type"`
}

type UpdaterPermissionReq

type UpdaterPermissionReq struct {
	Pk             string `json:"pk"  form:"pk" query:"pk"`
	OperationType  int32  `json:"operation_type"  form:"operation_type" query:"operation_type"`
	Resource       string `json:"resource"  form:"resource" query:"resource"`
	PermissionName string `json:"permission_name"  form:"permission_name" query:"permission_name"`
	ResourceType   int32  `json:"resource_type"  form:"resource_type" query:"resource_type"`
	Visibility     int32  `json:"visibility"  form:"visibility" query:"visibility"`
}

type UpdaterRoleGroupReq

type UpdaterRoleGroupReq struct {
	Pk            string `json:"pk"  form:"pk" query:"pk"`
	RoleGroupName string `json:"role_group_name"  form:"role_group_name" query:"role_group_name"`
	Remark        string `json:"remark"  form:"remark" query:"remark"`
}

type UpdaterRoleReq

type UpdaterRoleReq struct {
	Pk       string `json:"pk"  form:"pk" query:"pk"`
	RoleName string `json:"role_name"  form:"role_name" query:"role_name"`
	Remark   string `json:"remark"  form:"remark" query:"remark"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL