model

package
v0.0.0-...-5845281 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package model provides ...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Employee

type Employee struct {
	ID       bson.ObjectId `json:"id" bson:"_id"`
	Phone    string        `json:"phone" bson:"phone"`
	Password string        `json:"-" bson:"passoword"`
	EmpName  string        `json:"empname" bson:"empname"`
	Role     string        `json:"role" bson:"role"`
}

func (*Employee) AddEmployee

func (e *Employee) AddEmployee(emp Employee) error

新增用户

func (*Employee) FindUserByPhone

func (e *Employee) FindUserByPhone(phone string) (Employee, error)

查找用户

Jump to

Keyboard shortcuts

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