Documentation
¶
Index ¶
- Variables
- func Init(config configs.Mysql)
- type Cellphone
- type CellphoneDao
- func (dao *CellphoneDao) Create(data Cellphone) (err error)
- func (dao *CellphoneDao) DeleteByIds(ids []uint64) (err error)
- func (dao *CellphoneDao) FindByFields(fields map[string]interface{}) ([]Cellphone, error)
- func (dao *CellphoneDao) 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 Cellphone ¶
type Cellphone struct { CommonTimeModel Id uint64 `json:"id" gorm"primaryKey"` Cellphone uint64 `json:"cellphone"` IsDeleted uint64 `json:"is_deleted" gorm:"default:0" ` }
type CellphoneDao ¶
func NewCellphoneDao ¶
func NewCellphoneDao() *CellphoneDao
func (*CellphoneDao) Create ¶
func (dao *CellphoneDao) Create(data Cellphone) (err error)
func (*CellphoneDao) DeleteByIds ¶
func (dao *CellphoneDao) DeleteByIds(ids []uint64) (err error)
func (*CellphoneDao) FindByFields ¶
func (dao *CellphoneDao) FindByFields(fields map[string]interface{}) ([]Cellphone, error)
func (*CellphoneDao) UpdateFields ¶
func (dao *CellphoneDao) UpdateFields(where map[string]interface{}, updateFileds map[string]interface{}) (err error)
Click to show internal directories.
Click to hide internal directories.