Documentation ¶
Index ¶
- func CreateTable(db *sql.DB, tableName string) error
- func DeleteByID(db *sql.DB, tableName string, id uint64) error
- func InsertPet(db *sql.DB, tableName string, adminID uint64, name, category, avatar string, ...) (int, error)
- func ModifyAvatar(db *sql.DB, id uint64, avatar string) error
- func ModifyBirthday(db *sql.DB, id uint64, birthday time.Time) error
- func ModifyCategory(db *sql.DB, id uint64, category string) error
- func ModifyGender(db *sql.DB, id uint64, gender string) error
- func ModifyHobbies(db *sql.DB, id uint64, hobbies string) error
- func ModifyMedicalCurrent(db *sql.DB, id uint64, MedicalCurrent string) error
- func ModifyName(db *sql.DB, id uint64, name string) error
- type Pet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteByID ¶
DeleteByID delete by id
func InsertPet ¶
func InsertPet(db *sql.DB, tableName string, adminID uint64, name, category, avatar string, birthday time.Time, medical_current, hobbies, gender string) (int, error)
InsertPet return id
func ModifyBirthday ¶
ModifyEmail the administrative userAuth updates email
func ModifyCategory ¶
ModifyEmail the administrative userAuth updates email
func ModifyGender ¶
ModifyEmail the administrative userAuth updates email
func ModifyHobbies ¶
ModifyEmail the administrative userAuth updates email
func ModifyMedicalCurrent ¶
ModifyEmail the administrative userAuth updates email
Types ¶
Click to show internal directories.
Click to hide internal directories.