user

package
v0.0.0-...-3839eb7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserApiProviderSet = wire.NewSet(
	NewInfoLogic,
	NewInfoApi,
	user.NewUserInfo,
)

Functions

This section is empty.

Types

type API

type API struct {
	Info InfoApi
}

type APIRouter

type APIRouter types.NopType

APIRouter just for wire injection, no real influence

func SetupRouter

func SetupRouter(open *ginx.RouterGroup, api API) APIRouter

type InfoApi

type InfoApi struct {
	// contains filtered or unexported fields
}

func NewInfoApi

func NewInfoApi(info InfoLogic, hInfo user.UserInfo) InfoApi

func (InfoApi) KeyInfo

func (i InfoApi) KeyInfo(ctx *gin.Context)

KeyInfo @Summary KeyInfo @Description get the key info @Tags user @Accept json @Produce json @Success 200 {object} types.Response{data=auth.APIKey} @Router /info [GET] @Security ApiKeyAuth

type InfoLogic

type InfoLogic struct {
	// contains filtered or unexported fields
}

func NewInfoLogic

func NewInfoLogic(ds *data.DataSource) InfoLogic

Jump to

Keyboard shortcuts

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