Documentation
¶
Index ¶
- Variables
- type CasbinAddResourceActionModel
- type CasbinAddResourceMenuModel
- type CasbinAddResourceRouteModel
- type ClientUpdateScopesModel
- type OAuth2ClientDetailInfo
- type OAuth2ClientEditModel
- type OAuth2ClientScopeInfo
- type OAuth2EditScopeModel
- type OrganizationEditModel
- type ResourceActionEdit
- type ResourceEditModel
- type ResourceMenuEdit
- type ResourceRouteEdit
- type ResultClientInfo
- type RoleEditModel
- type UserUpdateModel
- type UserUpdateOrganizationModel
- type UserUpdateRoleModel
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // User 用户服务 User = &user{} // OAuth2 service OAuth2 = &oauth2{} // Role service Role = &role{} // Casbin service Casbin = &casbinService{} // Resource service Resource = &resource{} // Organization service Organization = &organization{} )
Functions ¶
This section is empty.
Types ¶
type CasbinAddResourceActionModel ¶ added in v0.5.0
type CasbinAddResourceActionModel struct { ResourceActionIDs []model.ID `json:"resource_action_ids"` ResourceServerID model.ID `json:"resource_server_id"` }
CasbinAddResourceActionModel ...
type CasbinAddResourceMenuModel ¶ added in v0.5.0
type CasbinAddResourceMenuModel struct { ResourceMenuIDs []model.ID `json:"resource_menu_ids"` ResourceServerID model.ID `json:"resource_server_id"` }
CasbinAddResourceMenuModel ...
type CasbinAddResourceRouteModel ¶ added in v0.5.0
type CasbinAddResourceRouteModel struct { ResourceRouteIDs []model.ID `json:"resource_route_ids"` ResourceServerID model.ID `json:"resource_server_id"` }
CasbinAddResourceRouteModel ...
type ClientUpdateScopesModel ¶ added in v0.4.0
ClientUpdateScopesModel ...
type OAuth2ClientDetailInfo ¶ added in v0.3.0
type OAuth2ClientDetailInfo struct { ClientID model.ID `json:"client_id"` Name string `json:"name"` Website string `json:"website"` Profile string `json:"profile"` Description string `json:"description"` RedirectURI string `json:"redirect_uri"` }
OAuth2ClientDetailInfo ...
type OAuth2ClientEditModel ¶ added in v0.3.0
type OAuth2ClientEditModel struct { RedirectURI string `json:"redirect_uri"` Name string `json:"name"` Website string `json:"website"` Profile string `json:"profile"` Description string `json:"description"` }
OAuth2ClientEditModel ...
type OAuth2ClientScopeInfo ¶ added in v0.3.0
type OAuth2ClientScopeInfo struct { Code model.Code `json:"code"` Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` }
OAuth2ClientScopeInfo ...
type OAuth2EditScopeModel ¶ added in v0.3.0
type OAuth2EditScopeModel struct { Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` }
OAuth2EditScopeModel ...
type OrganizationEditModel ¶ added in v0.3.0
type OrganizationEditModel struct { Name string `json:"name"` Description string `json:"description"` Code model.Code `json:"code"` ParentID model.ID `json:"parent_id"` }
OrganizationEditModel ...
type ResourceActionEdit ¶ added in v0.5.0
type ResourceActionEdit struct { Code model.Code `json:"code"` Name string `json:"name"` Group string `json:"group"` Description string `json:"description"` ResourceServerID model.ID `json:"resource_server_id"` }
ResourceActionEdit ...
type ResourceEditModel ¶ added in v0.3.0
type ResourceEditModel struct { Name string `json:"name"` Secret string `json:"secret"` Description string `json:"description"` OrganizationID model.ID `json:"organization_id"` }
ResourceEditModel ...
type ResourceMenuEdit ¶ added in v0.5.0
type ResourceMenuEdit struct { Name string `json:"name"` URL string `json:"url"` Icon string `json:"icon"` SerialNumber int `json:"serial_number"` Leaf int `json:"leaf"` // 是:子组件,否:是父组件 ParentID model.ID `json:"parent_id"` ResourceServerID model.ID `json:"resource_server_id"` }
ResourceMenuEdit ...
type ResourceRouteEdit ¶ added in v0.5.0
type ResourceRouteEdit struct { Name string `json:"name"` Path string `json:"path"` Method string `json:"method"` ResourceServerID model.ID `json:"resource_server_id"` }
ResourceRouteEdit ...
type ResultClientInfo ¶ added in v0.3.0
type ResultClientInfo struct { ClientID model.ID `json:"client_id"` Name string `json:"name"` Website string `json:"website"` Profile string `json:"profile"` Description string `json:"description"` RedirectURI string `json:"redirect_uri"` }
ResultClientInfo ...
type RoleEditModel ¶ added in v0.4.0
type RoleEditModel struct { Code model.Code `json:"code"` Name string `json:"name"` Description string `json:"description"` ParentCode model.Code `json:"parent_code"` OrganizationID model.ID `json:"organization_id"` }
RoleEditModel ...
type UserUpdateModel ¶ added in v0.3.0
UserUpdateModel ...
type UserUpdateOrganizationModel ¶ added in v0.4.0
UserUpdateOrganizationModel ...
Click to show internal directories.
Click to hide internal directories.