controllers

package
v0.0.0-...-3953a0d Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlogController

type BlogController struct {
}

func (*BlogController) GetBlog

func (blog *BlogController) GetBlog(c interfaces.IContext)

[GET("/blog/:id")]

type LoginDto

type LoginDto struct {
	Name     string `json:"Name"`
	Password string `json:"Password"`
}

type RegisterDto

type RegisterDto struct {
	Name     string `json:"Name"`
	Password string `json:"Password"`
	Address  string `json:"Address"`
}

type UserController

type UserController struct {
	UserRepo *db.UserRepository
}

func (*UserController) Login

func (user *UserController) Login(c interfaces.IContext, dto LoginDto)

[POST("/login")]

func (*UserController) Register

func (user *UserController) Register(c interfaces.IContext, dto RegisterDto)

[POST("/register")]

Jump to

Keyboard shortcuts

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