Documentation
¶
Index ¶
- Constants
- func CreatePerson(person *table.Person) (err error)
- func DB() *gorm.DB
- func DeletePersonById(personId int64) (err error)
- func GetAllPerson() (persons []*table.Person, err error)
- func GetPersonById(personId int64) (person *table.Person, err error)
- func UpdatePersonNameById(name string, personId int64) (err error)
Constants ¶
View Source
const ( // MyUser database user name MyUser = "cloud" // Password database user password Password = "passwd" // Host database host ip Host = "192.168.1.61" // MPort database host port MPort = 3306 // DbName database db name DbName = "mydb" // SUCCESS return value SUCCESS = "success" // Port listen port Port = "8080" )
Variables ¶
This section is empty.
Functions ¶
func CreatePerson ¶
func DeletePersonById ¶
func GetAllPerson ¶
func UpdatePersonNameById ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.