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.
Click to show internal directories.
Click to hide internal directories.