admin

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActivateUser

func ActivateUser(c echo.Context) error

@Title activate user @Summary activate or deactivate a user @Description @Tags admin @Accept multipart/form-data @Produce json @Param uname formData string true "unique user name" @Param flag formData string true "true: activate, false: deactivate" @Success 200 "OK - action successfully" @Failure 400 "Fail - invalid true/false flag" @Failure 500 "Fail - internal error" @Router /api/admin/activate [put] @Security ApiKeyAuth

func ListOnlineUser

func ListOnlineUser(c echo.Context) error

@Title list online users @Summary get all online users @Description @Tags admin @Accept json @Produce json @Success 200 "OK - list successfully" @Failure 500 "Fail - internal error" @Router /api/admin/onlines [get] @Security ApiKeyAuth

func ListUser

func ListUser(c echo.Context) error

@Title list all users @Summary get all users' info @Description @Tags admin @Accept json @Produce json @Success 200 "OK - list successfully" @Failure 500 "Fail - internal error" @Router /api/admin/users [get] @Security ApiKeyAuth

func OfficializeUser

func OfficializeUser(c echo.Context) error

@Title officialize user @Summary officialize or un-officialize a user @Description @Tags admin @Accept multipart/form-data @Produce json @Param uname formData string true "unique user name" @Param flag formData string true "true: officialize, false: un-officialize" @Success 200 "OK - action successfully" @Failure 400 "Fail - invalid true/false flag" @Failure 500 "Fail - internal error" @Router /api/admin/officialize [put] @Security ApiKeyAuth

Types

This section is empty.

Jump to

Keyboard shortcuts

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