Discover Packages
github.com/wingfeng/idxadmin
api
client
v1
package
Version:
v0.0.0-...-00b4b05
Opens a new window with list of versions in this module.
Published: Nov 14, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type DeleteReq struct {
g .Meta `path:"/client/{Id}" tags:"Client" method:"delete" summary:"delete a client by id"`
Id string `v:"required"`
}
type DeleteRes struct {
}
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 struct {
}
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 struct {
Secret string
}
type GetClientSecretsReq struct {
g .Meta `path:"/client/getsecret" tags:"Client" method:"get" summary:"get client secrets by client id"`
ClientId string `v:"required"`
}
type GetReq struct {
g .Meta `path:"/client/{Id}" tags:"Client" method:"get" summary:"get client info by id"`
Id int `v:"required"`
}
type ListReq struct {
g .Meta `path:"/client/list" tags:"Client" method:"post" summary:"get a page of clients"`
}
type ListRes struct {
g .Meta `mime:"json/application"`
}
type SaveReq struct {
g .Meta `path:"/client/" tags:"Client" method:"put" summary:"insert or update a client"`
entity .Clients
}
type SetCORSReq struct {
g .Meta `path:"/client/cors" tags:"Client" method:"post" summary:"set client cors origins"`
ClientId entity .ID `v:"required"`
Origins []string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.