backend

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 License: MIT Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SN = "api-backend"
)

定义services名称

View Source
const (
	UserName = "root"
)

Variables

View Source
var (
	UserClient pb.UserServiceClient
)

Functions

func Login

func Login(c echo.Context) error

登录

func Run

func Run()

运行

func UserAdd

func UserAdd(c echo.Context) error

添加

func UserDelete

func UserDelete(c echo.Context) error

删除

func UserQueryAll

func UserQueryAll(c echo.Context) error

查询全部

func UserQueryOne

func UserQueryOne(c echo.Context) error

查询一个

func UserUpdate

func UserUpdate(c echo.Context) error

修改

Types

type User

type User struct {
	UserName string `json:"user_name"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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