Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServerRepository ¶
type ServerRepository interface { Create(ctx context.Context, db *gorm.DB, serverPO *po.Server) error Delete(ctx context.Context, db *gorm.DB, id uint64) error Update(ctx context.Context, db *gorm.DB, serverPO *po.Server) error FindByID(ctx context.Context, db *gorm.DB, id uint64) (*po.Server, error) FindByPage(ctx context.Context, db *gorm.DB, pageNum int, pageSize int) ([]*po.Server, int, error) }
func NewServerRepository ¶
func NewServerRepository() ServerRepository
Click to show internal directories.
Click to hide internal directories.