login

package
v0.0.0-...-478090f Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct{}

用户API管理对象

func (*Controller) SignIn

func (c *Controller) SignIn(r *ghttp.Request)

@summary 用户登录接口 @tags 用户服务 @produce json @param passport formData string true "用户账号" @param password formData string true "用户密码" @router /user/signin [POST] @success 200 {object} login.VoSignInResponse "返回结果"

func (*Controller) SignUp

func (c *Controller) SignUp(r *ghttp.Request)

@summary 用户注册接口 @tags 用户服务 @produce json @param passport formData string true "用户账号名称" @param password formData string true "用户密码" @param password2 formData string true "确认密码" @param nickname formData string false "用户昵称" @router /user/signup [POST] @success 200 {object} response.JsonResponse "执行结果"

type RegisterRequest

type RegisterRequest struct {
	user.VoRegisterRequest
}

注册请求参数,对于对象传递的做法,值传递可以直接使用vo的对象

Jump to

Keyboard shortcuts

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