controller

package
v0.0.0-...-b81f254 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteSession

func DeleteSession(ctx *gin.Context)

删除登录记录session

func GetArea

func GetArea(ctx *gin.Context)

func GetImageCd

func GetImageCd(ctx *gin.Context)

func GetSession

func GetSession(ctx *gin.Context)

写一个假的session请求返回

func GetSmsCd

func GetSmsCd(ctx *gin.Context)

func GetUserInfo

func GetUserInfo(ctx *gin.Context)

func PostLogin

func PostLogin(ctx *gin.Context)

登录

func PostRet

func PostRet(ctx *gin.Context)

注册

func PutUserInfo

func PutUserInfo(ctx *gin.Context)

Types

type GetUserParam

type GetUserParam struct {
}

type LogStu

type LogStu struct {
	Mobile   string `json:"mobile"`
	PassWord string `json:"password"`
}

type RegStu

type RegStu struct {
	Mobile   string `json:"mobile"`
	PassWord string `json:"password"`
	SmsCode  string `json:"sms_code"`
}

type UpdateStu

type UpdateStu struct {
	Name string `json:name`
}

Jump to

Keyboard shortcuts

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