Documentation
¶
Index ¶
- type PersistRepository
- func (p *PersistRepository) Create(ctx context.Context, template *models.Template) error
- func (p *PersistRepository) GetById(ctx context.Context, id int64) (*models.Template, error)
- func (p *PersistRepository) ModifyById(ctx context.Context, template *models.Template) error
- func (p *PersistRepository) Query(ctx context.Context, limit, offset int, conditions ...gen.Condition) ([]*models.Template, error)
- func (p *PersistRepository) RemoveById(ctx context.Context, id int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersistRepository ¶
type PersistRepository struct { }
func New ¶
func New() *PersistRepository
func (*PersistRepository) ModifyById ¶
func (*PersistRepository) RemoveById ¶
func (p *PersistRepository) RemoveById(ctx context.Context, id int64) error
Click to show internal directories.
Click to hide internal directories.