v1

package
v0.0.0-...-00b4b05 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteReq

type DeleteReq struct {
	g.Meta `path:"/client/{Id}" tags:"Client" method:"delete" summary:"delete a client by id"`
	Id     string `v:"required"`
}

type DeleteRes

type DeleteRes struct {
}

type DeleteSecretReq

type DeleteSecretReq struct {
	g.Meta `path:"/client/deletesecret" tags:"Client" method:"delete" summary:"delete a client secret by id"`
	Id     string `v:"required"`
}

type DeleteSecretRes

type DeleteSecretRes struct {
}

type GenerateSecretReq

type GenerateSecretReq struct {
	g.Meta     `path:"/client/generatesecret" tags:"Client" method:"post" summary:"generate a client secret for client"`
	ClientId   int64     `json:"clientId" form:"clientId"`
	Name       string    `json:"name" form:"name"`
	Expiration time.Time `json:"expiration" form:"expiration"`
}

type GenerateSecretRes

type GenerateSecretRes struct {
	Secret string
}

type GetClientSecretsReq

type GetClientSecretsReq struct {
	g.Meta   `path:"/client/getsecret" tags:"Client" method:"get" summary:"get client secrets by client id"`
	ClientId string `v:"required"`
}

type GetClientSecretsRes

type GetClientSecretsRes struct {
	g.Meta  `mime:"json/application"`
	Secrets []*entity.ClientSecrets
}

type GetReq

type GetReq struct {
	g.Meta `path:"/client/{Id}" tags:"Client" method:"get" summary:"get client info by id"`
	Id     int `v:"required"`
}

type GetRes

type GetRes struct {
	g.Meta `mime:"json/application"`
	entity.Clients
}

type ListReq

type ListReq struct {
	g.Meta `path:"/client/list" tags:"Client" method:"post" summary:"get a page of clients"`
	model.PageReq
}

type ListRes

type ListRes struct {
	g.Meta `mime:"json/application"`
	model.PageRes
}

type SaveReq

type SaveReq struct {
	g.Meta `path:"/client/" tags:"Client" method:"put" summary:"insert or update a client"`
	entity.Clients
}

type SaveRes

type SaveRes struct {
}

type SetCORSReq

type SetCORSReq struct {
	g.Meta   `path:"/client/cors" tags:"Client" method:"post" summary:"set client cors origins"`
	ClientId entity.ID `v:"required"`
	Origins  []string
}

Jump to

Keyboard shortcuts

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