Documentation ¶
Index ¶
- func NewDB(conf *viper.Viper) *gorm.DB
- func NewRedis(conf *viper.Viper) *redis.Client
- type Dao
- type UserDao
- type WorkDataResultDao
- type WorkDatasV3Dao
- func (w *WorkDatasV3Dao) Delete(dbobj *gorm.DB, query any, arg ...any)
- func (w *WorkDatasV3Dao) GetCount(data *model.DatasV3) int64
- func (w *WorkDatasV3Dao) GetData() []*model.DatasV3
- func (w *WorkDatasV3Dao) GetDataByWhere(data *model.DatasV3, offset, limit int) []*model.DatasV3
- func (w *WorkDatasV3Dao) Insert(dbobj *gorm.DB, data []*model.DatasV3) error
- type WorkLogDao
- type WorkParamsDao
- type WorkRecordV3Dao
- type WorkResultDao
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WorkDataResultDao ¶
type WorkDataResultDao struct {
*Dao
}
func NewWorkDataResultDao ¶
func NewWorkDataResultDao(dao *Dao) *WorkDataResultDao
func (*WorkDataResultDao) Delete ¶
func (w *WorkDataResultDao) Delete(dbobj *gorm.DB, query any, arg ...any)
func (*WorkDataResultDao) GetData ¶
func (w *WorkDataResultDao) GetData() []model.Dataresult
func (*WorkDataResultDao) GetDataByWhere ¶
func (w *WorkDataResultDao) GetDataByWhere(pkid, result_id string) []model.Dataresult
func (*WorkDataResultDao) Insert ¶
func (w *WorkDataResultDao) Insert(dbobj *gorm.DB, data []*model.Dataresult) error
type WorkDatasV3Dao ¶
type WorkDatasV3Dao struct {
*Dao
}
func NewWorkDatasV3Dao ¶
func NewWorkDatasV3Dao(dao *Dao) *WorkDatasV3Dao
func (*WorkDatasV3Dao) Delete ¶
func (w *WorkDatasV3Dao) Delete(dbobj *gorm.DB, query any, arg ...any)
func (*WorkDatasV3Dao) GetData ¶
func (w *WorkDatasV3Dao) GetData() []*model.DatasV3
func (*WorkDatasV3Dao) GetDataByWhere ¶
type WorkLogDao ¶
type WorkLogDao struct {
*Dao
}
func NewWorkLogDao ¶
func NewWorkLogDao(dao *Dao) *WorkLogDao
func (*WorkLogDao) Count ¶
func (w *WorkLogDao) Count() int64
type WorkParamsDao ¶
type WorkParamsDao struct {
*Dao
}
func NewWorkParamsDao ¶
func NewWorkParamsDao(dao *Dao) *WorkParamsDao
func (*WorkParamsDao) GetData ¶
func (w *WorkParamsDao) GetData() []*model.DemoParams
type WorkRecordV3Dao ¶
type WorkRecordV3Dao struct {
*Dao
}
func NewWorkRecordV3Dao ¶
func NewWorkRecordV3Dao(dao *Dao) *WorkRecordV3Dao
func (*WorkRecordV3Dao) Delete ¶
func (w *WorkRecordV3Dao) Delete(dbobj *gorm.DB, query any, arg ...any)
func (*WorkRecordV3Dao) GetDataByWhere ¶
type WorkResultDao ¶
type WorkResultDao struct {
*Dao
}
func NewWorkResultDao ¶
func NewWorkResultDao(dao *Dao) *WorkResultDao
func (*WorkResultDao) Delete ¶
func (w *WorkResultDao) Delete(data *model.DemoResult) error
func (*WorkResultDao) GetData ¶
func (w *WorkResultDao) GetData() []*model.DemoResult
func (*WorkResultDao) Insert ¶
func (w *WorkResultDao) Insert(data []*model.DemoResult) error
func (*WorkResultDao) Update ¶
func (w *WorkResultDao) Update(data *model.DemoResult) error
Click to show internal directories.
Click to hide internal directories.