api

package
v0.0.0-...-1391dca Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDataByTime

func GetDataByTime(c *gin.Context)

GetDataByTime 一个需要token认证的测试接口

func Login

func Login(c *gin.Context)

Login 登录

func RegisterUser

func RegisterUser(c *gin.Context)

Register 注册用户

Types

type LoginResult

type LoginResult struct {
	Token string `json:"token"`
	model.User
}

LoginResult 登录结果结构

type RegistInfo

type RegistInfo struct {
	// 手机号
	Phone string `json:"mobile"`
	// 密码
	Pwd string `json:"pwd"`
}

注册信息

Jump to

Keyboard shortcuts

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