handlers

package
v0.0.0-...-791dfb5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//NLOGMSG for message body
	NLOGMSG = "message"
	//NLOGERR for error info
	NLOGERR = "error"
	//NLOGQUERY for detailed query tracing
	NLOGQUERY = "query"
)

Variables

This section is empty.

Functions

func AppInfo

func AppInfo(c echo.Context) error

AppInfo show covid19 configs

func CaseList

func CaseList(c echo.Context) error

CaseList get all bank list

func CaseNew

func CaseNew(c echo.Context) error

CaseNew new covid case

func ClientLogin

func ClientLogin(c echo.Context) error

ClientLogin func

func EduList

func EduList(c echo.Context) error

EduList get all bank list

func ReporterLogin

func ReporterLogin(c echo.Context) error

ReporterLogin lender can choose either login with email / phone

func ServiceInfo

func ServiceInfo(c echo.Context) error

ServiceInfo check service info

func UserResetPasswordRequest

func UserResetPasswordRequest(c echo.Context) error

UserResetPasswordRequest reset user's password

func UserResetPasswordVerify

func UserResetPasswordVerify(c echo.Context) error

UserResetPasswordVerify reset pass with confirmed token

Types

type CaseFilter

type CaseFilter struct {
	ID         int64  `json:"id" condition:"optional"`
	DataDetail string `json:"data_detail" condition:"LIKE,optional"`
}

CaseFilter direct query %...% to data detail

type Filter

type Filter struct {
	Email string `json:"email"`
}

Filter find interface

type Info

type Info struct {
	Time   string `json:"time"`
	Stacks bool   `json:"stacks"`
}

Info main type

type JWTclaims

type JWTclaims struct {
	Username    string   `json:"username"`
	Group       string   `json:"group"`
	Permissions []string `json:"permissions"`
	jwt.StandardClaims
}

JWTclaims jwtclaims

type ReporterLoginCreds

type ReporterLoginCreds struct {
	Key      string `json:"key"`
	Password string `json:"password"`
}

ReporterLoginCreds type

type ResetRequestPayload

type ResetRequestPayload struct {
	Email string `json:"email"`
}

ResetRequestPayload container type

type ResetVerifyPayload

type ResetVerifyPayload struct {
	Token    string `json:"token"`
	Password string `json:"password"`
}

ResetVerifyPayload container type

Jump to

Keyboard shortcuts

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