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