auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2019 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Copyright 2019 Axetroy. All rights reserved. MIT license.

Copyright 2019 Axetroy. All rights reserved. MIT license.

Copyright 2019 Axetroy. All rights reserved. MIT license.

Copyright 2019 Axetroy. All rights reserved. MIT license.

Copyright 2019 Axetroy. All rights reserved. MIT license.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Activation

func Activation(input ActivationParams) (res schema.Response)

func ActivationRouter

func ActivationRouter(context *gin.Context)

func DeleteUserByUserName

func DeleteUserByUserName(username string)

func ResetPassword

func ResetPassword(input ResetPasswordParams) (res schema.Response)

func ResetPasswordRouter

func ResetPasswordRouter(context *gin.Context)

func SignIn

func SignIn(context controller.Context, input SignInParams) (res schema.Response)

func SignInRouter

func SignInRouter(context *gin.Context)

func SignUp

func SignUp(input SignUpParams) (res schema.Response)

func SignUpRouter

func SignUpRouter(context *gin.Context)

Types

type ActivationParams

type ActivationParams struct {
	Code string `json:"code" valid:"required~请输入激活码;"`
}

type ResetPasswordParams

type ResetPasswordParams struct {
	Code        string `json:"code" valid:"required~请输入激活码"`
	NewPassword string `json:"new_password" valid:"required~请输入新密码"`
}

type SignInParams

type SignInParams struct {
	Account  string  `json:"account" valid:"required~请输入登陆账号"`
	Password string  `json:"password" valid:"required~请输入密码"`
	Code     *string `json:"code"` // 手机验证码
}

type SignUpParams

type SignUpParams struct {
	Username   *string `json:"username"`
	Email      *string `json:"email"`
	Phone      *string `json:"phone"`
	Password   string  `json:"password"`
	MCode      *string `json:"mcode"`       // 手机验证码
	InviteCode *string `json:"invite_code"` // 邀请码
}

Jump to

Keyboard shortcuts

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