service

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

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

type ClientUpdateScopesModel struct {
	Scopes []model.Code `json:"scopes"`
}

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

type UserUpdateModel struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

UserUpdateModel ...

type UserUpdateOrganizationModel added in v0.4.0

type UserUpdateOrganizationModel struct {
	Organizations []model.ID `json:"organizations"`
}

UserUpdateOrganizationModel ...

type UserUpdateRoleModel added in v0.4.0

type UserUpdateRoleModel struct {
	Roles          []model.Code `json:"roles"`
	OrganizationID model.ID     `json:"organization_id"`
}

UserUpdateRoleModel ...

Jump to

Keyboard shortcuts

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