Documentation ¶
Index ¶
- Variables
- func Init(config configs.Mysql)
- type Age
- type AgeDao
- func (dao *AgeDao) Create(data Age) (err error)
- func (dao *AgeDao) DeleteByIds(ids []uint64) (err error)
- func (dao *AgeDao) FindAgeByAge(age uint64) (Age, error)
- func (dao *AgeDao) FindByFields(fields map[string]interface{}) ([]Age, error)
- func (dao *AgeDao) UpdateFields(where map[string]interface{}, updateFileds map[string]interface{}) (err error)
- type CommonTimeModel
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
Types ¶
type Age ¶
type Age struct { CommonTimeModel Id uint64 `json:"id" gorm"primaryKey"` Age uint64 `json:"age"` IsDeleted uint64 `json:"is_deleted" gorm:"default:0" ` }
Click to show internal directories.
Click to hide internal directories.