2021-05-08 18:00:33 +08:00
|
|
|
package repository
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"mayfly-go/base/model"
|
2021-06-07 17:22:07 +08:00
|
|
|
"mayfly-go/server/devops/domain/entity"
|
2021-05-08 18:00:33 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Db interface {
|
|
|
|
|
// 分页获取机器信息列表
|
2021-07-28 18:03:19 +08:00
|
|
|
GetDbList(condition *entity.Db, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult
|
2021-05-08 18:00:33 +08:00
|
|
|
|
|
|
|
|
// 根据条件获取账号信息
|
|
|
|
|
GetDb(condition *entity.Db, cols ...string) error
|
|
|
|
|
|
|
|
|
|
// 根据id获取
|
|
|
|
|
GetById(id uint64, cols ...string) *entity.Db
|
2021-07-28 18:03:19 +08:00
|
|
|
|
|
|
|
|
Insert(db *entity.Db)
|
|
|
|
|
|
|
|
|
|
Update(db *entity.Db)
|
|
|
|
|
|
|
|
|
|
Delete(id uint64)
|
2021-05-08 18:00:33 +08:00
|
|
|
}
|