service

package
v0.0.0-...-a864060 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: Apache-2.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 Genesis

type Genesis struct {
	Id      int    `gorm:"primary_key"`
	Name    string `gorm:"not null"`
	Sex     int    `gorm:"default:1"` // 1:男,2:女 0:未知
	Phone   string `gorm:"not null;unique_index:phone_idx"`
	Address string `gorm:"not null;index:address_idx"`
}

type GenesisService

type GenesisService struct {
	// contains filtered or unexported fields
}

func NewGenesisService

func NewGenesisService(db *gorm.DB) *GenesisService

func (*GenesisService) GetById

func (s *GenesisService) GetById(id int) Genesis

Jump to

Keyboard shortcuts

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