modelexts

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplicationI18nName added in v1.4.3

type ApplicationI18nName struct {
	Language string `json:"tag"`
	Name     string `json:"i18n_name"`
}

type ApplicationI18nNameInfo added in v1.4.3

type ApplicationI18nNameInfo struct {
	AppName   string
	AppId     uint
	I18nNames *[]ApplicationI18nName
}

func (*ApplicationI18nNameInfo) Format added in v1.4.3

func (aii *ApplicationI18nNameInfo) Format() map[string]interface{}

type FindUser

type FindUser struct {
	User         *models.User
	Bindings     []*models.Binding
	Applications []*UserApplicationRole `json:"applications"`
}

func (FindUser) Format

func (f FindUser) Format() map[string]interface{}

type OauthClient

type OauthClient struct {
	Client       *models.OauthClient
	OriginSecret string
}

func (*OauthClient) Format

func (oc *OauthClient) Format() map[string]interface{}

type Role

type Role struct {
	*models.RbacRole
	Scopes []*models.RbacScope `json:"scopes"`
}

type Roles

type Roles struct {
	Application *models.Application `json:"application"`
	Roles       []Role              `json:"roles"`
}

func (Roles) Format

func (roles Roles) Format() map[string]interface{}

type Scopes

type Scopes struct {
	Application *models.Application `json:"application"`
	Scopes      []*models.RbacScope `json:"scopes"`
}

func (Scopes) Format

func (scopes Scopes) Format() map[string]interface{}

type User

type User struct {
	User        *models.User
	Bindings    []*models.Binding
	Role        string `json:"role"`
	AppID       string `json:"app_id"`
	PasswordSet bool
}

func (User) Format

func (u User) Format() map[string]interface{}

func (User) PublicInfo

func (u User) PublicInfo() map[string]interface{}

type UserApplicationRole

type UserApplicationRole struct {
	*models.Application
	Roles []*models.RbacRole `json:"roles"`
}

Jump to

Keyboard shortcuts

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