Documentation ¶
Index ¶
- type Article
- func (r *Article) Create(ctx context.Context, article *model.Article) (*model.Article, error)
- func (r *Article) Delete(ctx context.Context, id uint) error
- func (r *Article) GetByID(ctx context.Context, id uint) (*model.Article, error)
- func (r *Article) GetBySlug(ctx context.Context, slug string) (*model.Article, error)
- func (r *Article) Index(ctx context.Context, request *filter.Request) (*database.Paginator[*model.Article], error)
- func (r *Article) IsOwner(ctx context.Context, resourceID, ownerID uint) (bool, error)
- func (r *Article) Update(ctx context.Context, article *model.Article) (*model.Article, error)
- type User
- func (r *User) Create(ctx context.Context, user *model.User) (*model.User, error)
- func (r *User) GetByEmail(ctx context.Context, email string) (*model.User, error)
- func (r *User) GetByID(ctx context.Context, id uint) (*model.User, error)
- func (r *User) UniqueScope() func(db *gorm.DB, val any) *gorm.DB
- func (r *User) Update(ctx context.Context, user *model.User) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Article ¶
func NewArticle ¶
Click to show internal directories.
Click to hide internal directories.