Help us shape the future of Go! Take the 2026 Go Developer Survey

user

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangePassword

func ChangePassword(ctx context.Context, c *app.RequestContext)

ChangePassword . @router /user/change-password [POST]

func CreateAPIKey

func CreateAPIKey(ctx context.Context, c *app.RequestContext)

CreateAPIKey 为当前用户创建新的 API Key @router /user/api-keys [POST]

func DeleteAPIKey

func DeleteAPIKey(ctx context.Context, c *app.RequestContext)

DeleteAPIKey 撤销指定的 API Key @router /user/api-keys/:id [DELETE]

func ListAPIKeys

func ListAPIKeys(ctx context.Context, c *app.RequestContext)

ListAPIKeys 获取当前用户的 API Key 列表 @router /user/api-keys [GET]

func Login

func Login(ctx context.Context, c *app.RequestContext)

Login . @router /user/login [POST]

func Register

func Register(ctx context.Context, c *app.RequestContext)

Register . @router /user/register [POST]

func RevokeAllAPIKeys

func RevokeAllAPIKeys(ctx context.Context, c *app.RequestContext)

RevokeAllAPIKeys 一键吊销当前用户全部有效 API Key(JWT-only,应急止损) @router /user/api-keys/revoke-all [POST]

func UpdateProfile

func UpdateProfile(ctx context.Context, c *app.RequestContext)

UpdateProfile . @router /user/profile [PUT]

func UserFiles

func UserFiles(ctx context.Context, c *app.RequestContext)

UserFiles . @router /user/files [GET]

func UserInfo

func UserInfo(ctx context.Context, c *app.RequestContext)

UserInfo . @router /user/info [GET]

func UserStats

func UserStats(ctx context.Context, c *app.RequestContext)

UserStats . @router /user/stats [GET]

Types

This section is empty.

Jump to

Keyboard shortcuts

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