Documentation ¶
Index ¶
- type ICDRepository
- func (r *ICDRepository) CreateRecord(ctx context.Context, in entity.CreateICDRequest) (*entity.ICD, error)
- func (r *ICDRepository) DeleteRecord(ctx context.Context, id string) error
- func (r *ICDRepository) GetRecord(ctx context.Context, id string) (*entity.ICD, error)
- func (r *ICDRepository) HasPrevPage(ctx context.Context, onFirstPage bool, cursor string) (cursorPrevPage *string, err error)
- func (r *ICDRepository) ListRecords(ctx context.Context, limit int, cursor string) (nextCursor *string, results []entity.ICD, e error)
- func (r *ICDRepository) UpdateRecord(ctx context.Context, currentFullCode string, in entity.ICD) (*entity.ICD, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ICDRepository ¶
type ICDRepository struct {
// contains filtered or unexported fields
}
func NewICDRepository ¶
func NewICDRepository(db datastore.OrmDB) *ICDRepository
func (*ICDRepository) CreateRecord ¶
func (r *ICDRepository) CreateRecord(ctx context.Context, in entity.CreateICDRequest) (*entity.ICD, error)
func (*ICDRepository) DeleteRecord ¶
func (r *ICDRepository) DeleteRecord(ctx context.Context, id string) error
func (*ICDRepository) HasPrevPage ¶
func (*ICDRepository) ListRecords ¶
Click to show internal directories.
Click to hide internal directories.