user

package
v0.0.0-...-d152970 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Login

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

Login .

@Summary	login
@Description
@Tags		user
@Accept		mpfd
@Produce	json
@Param		email		formData	string	true	"email"
@Param		password	formData	string	true	"password"
@Success	200			{object}	user.LoginResponse
@Router		/users/login [POST]

func Logout

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

Logout .

@Summary	logout
@Description
@Tags		user
@Accept		json
@Produce	json
@Success	200	{object}	user.LogoutResponse
@router		/users/logout [POST]

func Signup

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

Signup .

@Summary	signup
@Description
@Tags		user
@Accept		mpfd
@Produce	json
@Param		email		formData	string	true	"email"
@Param		password	formData	string	true	"password"
@Param		nickname	formData	string	true	"nickname"
@Success	200			{object}	user.User
@router		/users/signup [POST]

Types

This section is empty.

Jump to

Keyboard shortcuts

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