Documentation
¶
Index ¶
- func Exist[T commonModel.Model](query interface{}, args ...interface{}) (bool, error)
- func FirstByField[T commonModel.Model](field string, value interface{}) (T, error)
- func FirstByPrimaryKey[T commonModel.Model](id interface{}) (T, error)
- func GetAmountCountStatistic(query *gorm.DB) (result global.AmountCount, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FirstByField ¶
func FirstByField[T commonModel.Model](field string, value interface{}) (T, error)
func FirstByPrimaryKey ¶
func FirstByPrimaryKey[T commonModel.Model](id interface{}) (T, error)
func GetAmountCountStatistic ¶
func GetAmountCountStatistic(query *gorm.DB) (result global.AmountCount, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.