controller

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserController

type UserController struct{}

UserController 用户控制器

func (*UserController) GetProfile

func (userController *UserController) GetProfile(w http.ResponseWriter, r *http.Request)

GetProfile 获取信息

func (*UserController) Login

func (userController *UserController) Login(w http.ResponseWriter, r *http.Request)

Login 用户登录

func (*UserController) Logout

func (userController *UserController) Logout(w http.ResponseWriter, r *http.Request)

Logout 退出登录

func (*UserController) Ping

func (userController *UserController) Ping(w http.ResponseWriter, r *http.Request)

Ping Return Pong

func (*UserController) Register

func (userController *UserController) Register(w http.ResponseWriter, r *http.Request)

Register 用户注册

func (*UserController) ShowAvatar

func (userController *UserController) ShowAvatar(w http.ResponseWriter, r *http.Request)

ShowAvatar 显示头像

func (*UserController) UpdateProfile

func (userController *UserController) UpdateProfile(w http.ResponseWriter, r *http.Request)

UpdateProfile 更新信息

func (*UserController) UploadAvatar

func (userController *UserController) UploadAvatar(w http.ResponseWriter, r *http.Request)

UploadAvatar 上传头像

Jump to

Keyboard shortcuts

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