Documentation ¶
Index ¶
- type File
- type FileService
- func (s *FileService) Create(files []common.UploadedFile, userCode string) error
- func (s *FileService) DeleteAll(userCode string) error
- func (s *FileService) GetAll(userCode string) ([]common.File, error)
- func (s *FileService) GetByCode(userCode string) (common.File, error)
- func (s *FileService) UpdateStatus(userCode, errorMess string, status common.ProcessStatus) error
- type Service
- type User
- type UserService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileService ¶
type FileService struct {
// contains filtered or unexported fields
}
func NewFileService ¶
func NewFileService(repo repository.File) *FileService
func (*FileService) Create ¶
func (s *FileService) Create(files []common.UploadedFile, userCode string) error
func (*FileService) DeleteAll ¶
func (s *FileService) DeleteAll(userCode string) error
func (*FileService) GetByCode ¶
func (s *FileService) GetByCode(userCode string) (common.File, error)
func (*FileService) UpdateStatus ¶
func (s *FileService) UpdateStatus(userCode, errorMess string, status common.ProcessStatus) error
type Service ¶
func NewService ¶
func NewService(repos *repository.Repository) *Service
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService(repo repository.User) *UserService
func (*UserService) CreateUser ¶
func (s *UserService) CreateUser() (uuid.UUID, error)
func (*UserService) GenerateToken ¶
func (s *UserService) GenerateToken(userCode uuid.UUID) (string, error)
func (*UserService) ParseToken ¶
func (s *UserService) ParseToken(accessToken string) (uuid.UUID, error)
Click to show internal directories.
Click to hide internal directories.