Documentation
¶
Index ¶
- Variables
- type File
- type FileRepo
- type FileUsecase
- func (uc *FileUsecase) Create(ctx context.Context, article *File) error
- func (uc *FileUsecase) Delete(ctx context.Context, id int64) error
- func (uc *FileUsecase) Get(ctx context.Context, id int64) (p *File, err error)
- func (uc *FileUsecase) List(ctx context.Context) (ps []*File, err error)
- func (uc *FileUsecase) Update(ctx context.Context, id int64, article *File) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewFileUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type FileUsecase ¶
type FileUsecase struct {
// contains filtered or unexported fields
}
func NewFileUsecase ¶
func NewFileUsecase(repo FileRepo, logger log.Logger) *FileUsecase
func (*FileUsecase) Create ¶
func (uc *FileUsecase) Create(ctx context.Context, article *File) error
Click to show internal directories.
Click to hide internal directories.