handler

package
v0.0.0-...-dd9f884 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Err500 = map[string]interface{}{
	"Code":    50000,
	"Message": "Internal Server Error",
	"Data":    nil,
}

Functions

func NewUserHandler

func NewUserHandler(us service.UserService) userHandler

Types

type User

type User struct {
	Username string `json:"username"`
	Password string `json:"password"`
	FullName string `json:"fullname"`
	Email    string `json:"email"`
	Role     string `json:"role"`
}

type UserDetail

type UserDetail struct {
	Id       string `json:"id"`
	Username string `json:"username"`
	FullName string `json:"fullname"`
	Email    string `json:"email"`
	Role     string `json:"role"`
}

Jump to

Keyboard shortcuts

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