model

package
v0.0.0-...-cc2418b Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignInInput

type SignInInput struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type SignInOutput

type SignInOutput struct {
	Token string `json:"token"`
}

type SignUpInput

type SignUpInput struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type SignUpOutput

type SignUpOutput struct {
	Message string `json:"message"`
}

type User

type User struct {
	Id       string
	Username string
	Password string
}

type UserMongo

type UserMongo struct {
	ID       primitive.ObjectID `bson:"_id,omitempty"`
	Username string             `bson:"username"`
	Password string             `bson:"password"`
}

type VerifyInput

type VerifyInput struct {
	Token string `json:"token"`
}

type VerifyOutput

type VerifyOutput struct {
	UserId string `json:"user_id"`
}

Jump to

Keyboard shortcuts

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