backend

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: MIT Imports: 20 Imported by: 0

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