model

package
v0.0.0-...-85aee89 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestParameters

type RequestParameters struct {
	GrantType string `form:"grant_type"`
	Scope     string `form:"scope"`

	ClientID     string `form:"client_id"`
	ClientSecret string `form:"client_secret"`

	State        string `form:"state"`
	RedirectURI  string `form:"redirect_uri"`
	ResponseType string `form:"response_type"`
	Code         string `form:"code"`

	Username string `form:"username"`
	Password string `form:"password"`

	RefreshToken string `form:"refresh_token"`
}

RequestParameters 请求参数

func (RequestParameters) Scopes

func (r RequestParameters) Scopes() []string

Scopes 解析 scope

func (RequestParameters) ToMap

func (r RequestParameters) ToMap() map[string]string

ToMap 转为 map

Jump to

Keyboard shortcuts

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