Versions in this module Expand all Collapse all v2 v2.11.8 Sep 30, 2025 v2.11.7 Sep 24, 2025 v2.11.6 Sep 23, 2025 v2.11.4 Jun 20, 2025 v2.11.3 Jun 19, 2025 v2.11.2 Jun 19, 2025 v2.11.1 Jun 19, 2025 Changes in this version + func Create(c *gin.Context) + func CreateRole(c *gin.Context) + func Delete(c *gin.Context) + func DeleteRoles(c *gin.Context) + func Get(c *gin.Context) + func Reload(c *gin.Context) + func Search(c *gin.Context) + func SearchRoles(c *gin.Context) + func Update(c *gin.Context) + func UpdateRole(c *gin.Context) + type HttpApiData struct + Method string + Path string + func (data *HttpApiData) Fill(casbinRule gormadapter.CasbinRule) + type PermissionCreateData struct + HttpApis []HttpApiData + type PermissionCreateRequest struct + HttpApis []struct{ ... } + Name string + type PermissionData struct + CreatedAt time.Time + Id uint + Name string + UpdatedAt time.Time + func (data *PermissionData) Fill(m *model.Permission) + type PermissionDeleteRequest struct + Ids []uint + type PermissionGetData struct + HttpApis []HttpApiData + type PermissionSearchData struct + Permissions []PermissionData + type PermissionSearchRequest struct + Name string + type PermissionUpdateData struct + HttpApis []HttpApiData + type PermissionUpdateRequest struct + HttpApis []struct{ ... } + Name string + type RoleCreateRequest struct + IsPublic bool + Name string + PermissionIds []uint + type RoleData struct + CreatedAt time.Time + Id uint + IsPublic bool + Name string + Permissions []PermissionData + UpdatedAt time.Time + func (data *RoleData) Fill(m *model.Role) + type RoleDeleteRequest struct + Ids []uint + type RoleSearchData struct + Roles []RoleData + type RoleSearchRequest struct + IsPublic bool + Name string + type RoleUpdateRequest struct + IsPublic bool + Name string + PermissionIds []uint