model

package
v0.0.0-...-e41ca22 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Customer

type Customer struct {
	Id     int
	Name   string
	Gender string
	Age    int
	Phone  string
	Email  string
}

func NewCustomer

func NewCustomer(id int, name string, gender string, age int,
	phone string, email string) *Customer

获取一个Customer

func NewCustomer2

func NewCustomer2(name string, gender string, age int,
	phone string, email string) *Customer

获取一个Customer, 不提供id

func (*Customer) GetInfo

func (this *Customer) GetInfo() string

返回Customer的信息

Jump to

Keyboard shortcuts

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