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