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

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

返回用户的信息,格式化的字符串

Jump to

Keyboard shortcuts

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