user

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: 3 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) CheckNickName

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

@summary 检测用户昵称接口(唯一性校验) @tags 用户服务 @produce json @param nickname query string true "用户昵称" @router /user/checkpassport [GET] @success 200 {object} response.JsonResponse "执行结果"

func (*Controller) CheckPassport

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

@summary 检测用户账号接口(唯一性校验) @tags 用户服务 @produce json @param passport query string true "用户账号" @router /user/checkpassport [GET] @success 200 {object} response.JsonResponse "执行结果:`true/false`"

func (*Controller) CurrentUser

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

@summary 获取当前登录用户的组合信息 @tags 用户服务 @produce json @router /user/current [GET] @success 200 {object} user.VoCurrentUser "当前用户信息"

func (*Controller) IsSignedIn

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

@summary 判断用户是否已经登录 @tags 用户服务 @produce json @router /user/issignedin [GET] @success 200 {object} response.JsonResponse "执行结果:`true/false`"

func (*Controller) Profile

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

@summary 获取用户详情信息 @tags 用户服务 @produce json @router /user/profile [GET] @success 200 {object} user.Entity "用户信息"

func (*Controller) SignOut

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

@summary 用户注销/退出接口 @tags 用户服务 @produce json @router /user/signout [GET] @success 200 {object} response.JsonResponse "执行结果, 1: 未登录"

Jump to

Keyboard shortcuts

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