Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IBlogPostModel ¶
type IBlogPostModel interface { Add(ctx context.Context, blogPost *entities.BlogPost) (*entities.BlogPost, *errors.CustomError) GetAll(ctx context.Context) (*[]entities.BlogPostResponse, *errors.CustomError) GetByID(ctx context.Context, id int64) (*entities.BlogPostResponse, *errors.CustomError) Update(ctx context.Context, blogPost *entities.BlogPost) *errors.CustomError Delete(ctx context.Context, id int64) *errors.CustomError Search(ctx context.Context, search string) (*[]entities.BlogPostResponse, *errors.CustomError) }
func NewSqlxModel ¶
func NewSqlxModel(sqlx *sqlx.DB) IBlogPostModel
Click to show internal directories.
Click to hide internal directories.