Versions in this module Expand all Collapse all v0 v0.1.1 Jun 26, 2023 Changes in this version + var ProviderSet = wire.NewSet(NewFileUsecase) + type FileRepo interface + GetOssStsToken func(ctx context.Context) (*domain.OssStsToken, error) + UploadFile func(ctx context.Context, fileName string, fileType string, content []byte) (string, error) + type FileUsecase struct + func NewFileUsecase(repo FileRepo, logger log.Logger) *FileUsecase + func (uc *FileUsecase) GetOssStsToken(ctx context.Context) (*domain.OssStsToken, error) + func (uc *FileUsecase) UploadFile(ctx context.Context, fileName string, fileType string, content []byte) (string, error)