Documentation ¶
Index ¶
- type AuthService
- func (a *AuthService) ForgotPassword(email string) *errors.Error
- func (a *AuthService) GetRole(id string) (*models.UserRole, *errors.Error)
- func (a *AuthService) Login(loginBody models.LoginUserResponseBody) (*models.User, *auth.Token, *errors.Error)
- func (a *AuthService) Logout(c *fiber.Ctx) *errors.Error
- func (a *AuthService) Refresh(refreshToken string) (*auth.Token, *errors.Error)
- func (a *AuthService) SendCode(email string) *errors.Error
- func (a *AuthService) VerifyEmail(emailBody models.VerifyEmailRequestBody) *errors.Error
- func (a *AuthService) VerifyPasswordResetToken(passwordBody models.VerifyPasswordResetTokenRequestBody) *errors.Error
- type AuthServiceInterface
- type CategoryService
- func (c *CategoryService) CreateCategory(categoryBody models.CategoryRequestBody) (*models.Category, *errors.Error)
- func (c *CategoryService) DeleteCategory(id string) *errors.Error
- func (c *CategoryService) GetCategories(limit string, page string) ([]models.Category, *errors.Error)
- func (c *CategoryService) GetCategory(id string) (*models.Category, *errors.Error)
- func (c *CategoryService) UpdateCategory(id string, categoryBody models.CategoryRequestBody) (*models.Category, *errors.Error)
- type CategoryServiceInterface
- type CategoryTagService
- type CategoryTagServiceInterface
- type ClubContactService
- type ClubContactServiceInterface
- type ClubEventService
- type ClubEventServiceInterface
- type ClubFollowerService
- type ClubFollowerServiceInterface
- type ClubMemberService
- type ClubMemberServiceInterface
- type ClubPointOfContactService
- func (cpoc *ClubPointOfContactService) CreateClubPointOfContact(clubID string, pointOfContactBody models.CreatePointOfContactBody, ...) (*models.PointOfContact, *errors.Error)
- func (cpoc *ClubPointOfContactService) DeleteClubPointOfContact(clubID, pocID string) *errors.Error
- func (cpoc *ClubPointOfContactService) GetClubPointOfContact(clubID, pocID string) (*models.PointOfContact, *errors.Error)
- func (cpoc *ClubPointOfContactService) GetClubPointOfContacts(clubID string) ([]models.PointOfContact, *errors.Error)
- func (cpoc *ClubPointOfContactService) UpdateClubPointOfContact(clubID, pocID string, pointOfContactBody models.UpdatePointOfContactBody) (*models.PointOfContact, *errors.Error)
- func (cpoc *ClubPointOfContactService) UpdateClubPointOfContactPhoto(clubID, pocID string, fileHeader *multipart.FileHeader) (*models.PointOfContact, *errors.Error)
- type ClubPointOfContactServiceInterface
- type ClubService
- func (c *ClubService) CreateClub(clubBody models.CreateClubRequestBody) (*models.Club, *errors.Error)
- func (c *ClubService) DeleteClub(id string) *errors.Error
- func (c *ClubService) GetClub(id string) (*models.Club, *errors.Error)
- func (c *ClubService) GetClubs(queryParams *models.ClubQueryParams) ([]models.Club, *errors.Error)
- func (c *ClubService) UpdateClub(id string, clubBody models.UpdateClubRequestBody) (*models.Club, *errors.Error)
- type ClubServiceInterface
- type ClubTagService
- type ClubTagServiceInterface
- type ContactService
- type ContactServiceInterface
- type EventService
- func (e *EventService) CreateEvent(eventBody models.CreateEventRequestBody) ([]models.Event, *errors.Error)
- func (e *EventService) DeleteEvent(eventID string) *errors.Error
- func (e *EventService) DeleteSeriesByEventID(eventID string) *errors.Error
- func (e *EventService) DeleteSeriesByID(seriesID string) *errors.Error
- func (e *EventService) GetEvent(eventID string) ([]models.Event, *errors.Error)
- func (e *EventService) GetEvents(limit string, page string) ([]models.Event, *errors.Error)
- func (e *EventService) GetHostsByEventID(eventID string) ([]models.Club, *errors.Error)
- func (e *EventService) GetSeriesByEventID(eventID string) ([]models.Event, *errors.Error)
- func (e *EventService) GetSeriesByID(seriesID string) ([]models.Event, *errors.Error)
- func (e *EventService) GetTagsByEventID(eventID string) ([]models.Tag, *errors.Error)
- func (e *EventService) UpdateEvent(id string, eventBody models.UpdateEventRequestBody) ([]models.Event, *errors.Error)
- func (e *EventService) UpdateSeries(seriesID string, seriesBody models.UpdateSeriesRequestBody) ([]models.Event, *errors.Error)
- func (e *EventService) UpdateSeriesByEventID(eventID string, seriesBody models.UpdateSeriesRequestBody) ([]models.Event, *errors.Error)
- type EventServiceInterface
- type FileService
- func (f *FileService) CreateFile(fileBody *models.CreateFileRequestBody, fileHeader *multipart.FileHeader) (*models.File, *errors.Error)
- func (f *FileService) DeleteFile(fileID string) *errors.Error
- func (f *FileService) GetFile(fileID string) (*models.File, *errors.Error)
- func (f *FileService) GetFiles(limit string, page string) ([]models.File, *errors.Error)
- type FileServiceInterface
- type PointOfContactService
- type PointOfContactServiceInterface
- type TagService
- func (t *TagService) CreateTag(tagBody models.CreateTagRequestBody) (*models.Tag, *errors.Error)
- func (t *TagService) DeleteTag(tagID string) *errors.Error
- func (t *TagService) GetTag(tagID string) (*models.Tag, *errors.Error)
- func (t *TagService) GetTags() ([]models.Tag, *errors.Error)
- func (t *TagService) UpdateTag(tagID string, tagBody models.UpdateTagRequestBody) (*models.Tag, *errors.Error)
- type TagServiceInterface
- type UserFollowerService
- type UserFollowerServiceInterface
- type UserMemberService
- type UserMemberServiceInterface
- type UserService
- func (u *UserService) CreateUser(userBody models.CreateUserRequestBody) (*models.User, *auth.Token, *errors.Error)
- func (u *UserService) DeleteUser(id string) *errors.Error
- func (u *UserService) GetMe(id string) (*models.User, *errors.Error)
- func (u *UserService) GetUser(id string) (*models.User, *errors.Error)
- func (u *UserService) GetUsers(limit string, page string) ([]models.User, *errors.Error)
- func (u *UserService) UpdatePassword(id string, passwordBody models.UpdatePasswordRequestBody) *errors.Error
- func (u *UserService) UpdateUser(id string, userBody models.UpdateUserRequestBody) (*models.User, *errors.Error)
- type UserServiceInterface
- type UserTagService
- type UserTagServiceInterface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
types.ServiceParams
}
func (*AuthService) ForgotPassword ¶
func (a *AuthService) ForgotPassword(email string) *errors.Error
func (*AuthService) Login ¶
func (a *AuthService) Login(loginBody models.LoginUserResponseBody) (*models.User, *auth.Token, *errors.Error)
func (*AuthService) Logout ¶
func (a *AuthService) Logout(c *fiber.Ctx) *errors.Error
func (*AuthService) VerifyEmail ¶
func (a *AuthService) VerifyEmail(emailBody models.VerifyEmailRequestBody) *errors.Error
func (*AuthService) VerifyPasswordResetToken ¶
func (a *AuthService) VerifyPasswordResetToken(passwordBody models.VerifyPasswordResetTokenRequestBody) *errors.Error
type AuthServiceInterface ¶
type AuthServiceInterface interface { GetRole(id string) (*models.UserRole, *errors.Error) Login(userBody models.LoginUserResponseBody) (*models.User, *auth.Token, *errors.Error) Refresh(refreshToken string) (*auth.Token, *errors.Error) Logout(c *fiber.Ctx) *errors.Error SendCode(email string) *errors.Error VerifyEmail(emailBody models.VerifyEmailRequestBody) *errors.Error ForgotPassword(email string) *errors.Error VerifyPasswordResetToken(passwordBody models.VerifyPasswordResetTokenRequestBody) *errors.Error }
func NewAuthService ¶
func NewAuthService(serviceParams types.ServiceParams) AuthServiceInterface
type CategoryService ¶
type CategoryService struct {
types.ServiceParams
}
func (*CategoryService) CreateCategory ¶
func (c *CategoryService) CreateCategory(categoryBody models.CategoryRequestBody) (*models.Category, *errors.Error)
func (*CategoryService) DeleteCategory ¶
func (c *CategoryService) DeleteCategory(id string) *errors.Error
func (*CategoryService) GetCategories ¶
func (*CategoryService) GetCategory ¶
func (*CategoryService) UpdateCategory ¶
func (c *CategoryService) UpdateCategory(id string, categoryBody models.CategoryRequestBody) (*models.Category, *errors.Error)
type CategoryServiceInterface ¶
type CategoryServiceInterface interface { CreateCategory(categoryBody models.CategoryRequestBody) (*models.Category, *errors.Error) GetCategories(limit string, page string) ([]models.Category, *errors.Error) GetCategory(id string) (*models.Category, *errors.Error) UpdateCategory(id string, params models.CategoryRequestBody) (*models.Category, *errors.Error) DeleteCategory(id string) *errors.Error }
func NewCategoryService ¶
func NewCategoryService(params types.ServiceParams) CategoryServiceInterface
type CategoryTagService ¶
type CategoryTagService struct {
types.ServiceParams
}
func (*CategoryTagService) GetTagByCategory ¶
func (*CategoryTagService) GetTagsByCategory ¶
type CategoryTagServiceInterface ¶
type CategoryTagServiceInterface interface { GetTagsByCategory(categoryID string, limit string, page string) ([]models.Tag, *errors.Error) GetTagByCategory(categoryID string, tagID string) (*models.Tag, *errors.Error) }
func NewCategoryTagService ¶
func NewCategoryTagService(params types.ServiceParams) CategoryTagServiceInterface
type ClubContactService ¶
type ClubContactService struct {
types.ServiceParams
}
func (*ClubContactService) GetClubContacts ¶
func (*ClubContactService) PutClubContact ¶
func (c *ClubContactService) PutClubContact(clubID string, contactBody models.PutContactRequestBody) (*models.Contact, *errors.Error)
type ClubContactServiceInterface ¶
type ClubContactServiceInterface interface { GetClubContacts(clubID string) ([]models.Contact, *errors.Error) PutClubContact(clubID string, contactBody models.PutContactRequestBody) (*models.Contact, *errors.Error) }
func NewClubContactService ¶
func NewClubContactService(params types.ServiceParams) ClubContactServiceInterface
type ClubEventService ¶
type ClubEventService struct {
types.ServiceParams
}
func (*ClubEventService) GetClubEvents ¶
type ClubEventServiceInterface ¶
type ClubEventServiceInterface interface {
GetClubEvents(clubID string, limit string, page string) ([]models.Event, *errors.Error)
}
func NewClubEventService ¶
func NewClubEventService(params types.ServiceParams) ClubEventServiceInterface
type ClubFollowerService ¶
type ClubFollowerService struct {
types.ServiceParams
}
func (*ClubFollowerService) GetClubFollowers ¶
type ClubFollowerServiceInterface ¶
type ClubFollowerServiceInterface interface {
GetClubFollowers(clubID string, limit string, page string) ([]models.User, *errors.Error)
}
func NewClubFollowerService ¶
func NewClubFollowerService(params types.ServiceParams) ClubFollowerServiceInterface
type ClubMemberService ¶
type ClubMemberService struct {
types.ServiceParams
}
func (*ClubMemberService) GetClubMembers ¶
type ClubMemberServiceInterface ¶
type ClubMemberServiceInterface interface {
GetClubMembers(clubID string, limit string, page string) ([]models.User, *errors.Error)
}
func NewClubMemberService ¶
func NewClubMemberService(params types.ServiceParams) ClubMemberServiceInterface
type ClubPointOfContactService ¶
type ClubPointOfContactService struct {
types.ServiceParams
}
func (*ClubPointOfContactService) CreateClubPointOfContact ¶
func (cpoc *ClubPointOfContactService) CreateClubPointOfContact(clubID string, pointOfContactBody models.CreatePointOfContactBody, fileHeader *multipart.FileHeader) (*models.PointOfContact, *errors.Error)
func (*ClubPointOfContactService) DeleteClubPointOfContact ¶
func (cpoc *ClubPointOfContactService) DeleteClubPointOfContact(clubID, pocID string) *errors.Error
func (*ClubPointOfContactService) GetClubPointOfContact ¶
func (cpoc *ClubPointOfContactService) GetClubPointOfContact(clubID, pocID string) (*models.PointOfContact, *errors.Error)
func (*ClubPointOfContactService) GetClubPointOfContacts ¶
func (cpoc *ClubPointOfContactService) GetClubPointOfContacts(clubID string) ([]models.PointOfContact, *errors.Error)
func (*ClubPointOfContactService) UpdateClubPointOfContact ¶
func (cpoc *ClubPointOfContactService) UpdateClubPointOfContact(clubID, pocID string, pointOfContactBody models.UpdatePointOfContactBody) (*models.PointOfContact, *errors.Error)
func (*ClubPointOfContactService) UpdateClubPointOfContactPhoto ¶
func (cpoc *ClubPointOfContactService) UpdateClubPointOfContactPhoto(clubID, pocID string, fileHeader *multipart.FileHeader) (*models.PointOfContact, *errors.Error)
type ClubPointOfContactServiceInterface ¶
type ClubPointOfContactServiceInterface interface { GetClubPointOfContacts(clubID string) ([]models.PointOfContact, *errors.Error) GetClubPointOfContact(clubID, pocID string) (*models.PointOfContact, *errors.Error) CreateClubPointOfContact(clubID string, pointOfContactBody models.CreatePointOfContactBody, fileHeader *multipart.FileHeader) (*models.PointOfContact, *errors.Error) UpdateClubPointOfContactPhoto(clubID, pocID string, fileHeader *multipart.FileHeader) (*models.PointOfContact, *errors.Error) UpdateClubPointOfContact(clubID, pocID string, pointOfContactBody models.UpdatePointOfContactBody) (*models.PointOfContact, *errors.Error) DeleteClubPointOfContact(clubID, pocID string) *errors.Error }
func NewClubPointOfContactService ¶
func NewClubPointOfContactService(serviceParams types.ServiceParams) ClubPointOfContactServiceInterface
type ClubService ¶
type ClubService struct {
types.ServiceParams
}
func (*ClubService) CreateClub ¶
func (c *ClubService) CreateClub(clubBody models.CreateClubRequestBody) (*models.Club, *errors.Error)
func (*ClubService) DeleteClub ¶
func (c *ClubService) DeleteClub(id string) *errors.Error
func (*ClubService) GetClubs ¶
func (c *ClubService) GetClubs(queryParams *models.ClubQueryParams) ([]models.Club, *errors.Error)
func (*ClubService) UpdateClub ¶
func (c *ClubService) UpdateClub(id string, clubBody models.UpdateClubRequestBody) (*models.Club, *errors.Error)
type ClubServiceInterface ¶
type ClubServiceInterface interface { GetClubs(queryParams *models.ClubQueryParams) ([]models.Club, *errors.Error) GetClub(id string) (*models.Club, *errors.Error) CreateClub(clubBody models.CreateClubRequestBody) (*models.Club, *errors.Error) UpdateClub(id string, clubBody models.UpdateClubRequestBody) (*models.Club, *errors.Error) DeleteClub(id string) *errors.Error }
func NewClubService ¶
func NewClubService(serviceParams types.ServiceParams) ClubServiceInterface
type ClubTagService ¶
type ClubTagService struct {
types.ServiceParams
}
func (*ClubTagService) CreateClubTags ¶
func (c *ClubTagService) CreateClubTags(id string, clubTagsBody models.CreateClubTagsRequestBody) ([]models.Tag, *errors.Error)
func (*ClubTagService) DeleteClubTag ¶
func (c *ClubTagService) DeleteClubTag(id string, tagId string) *errors.Error
func (*ClubTagService) GetClubTags ¶
type ClubTagServiceInterface ¶
type ClubTagServiceInterface interface { CreateClubTags(id string, clubTagsBody models.CreateClubTagsRequestBody) ([]models.Tag, *errors.Error) GetClubTags(id string) ([]models.Tag, *errors.Error) DeleteClubTag(id string, tagId string) *errors.Error }
func NewClubTagService ¶
func NewClubTagService(serviceParams types.ServiceParams) ClubTagServiceInterface
type ContactService ¶
type ContactService struct {
types.ServiceParams
}
func (*ContactService) DeleteContact ¶
func (c *ContactService) DeleteContact(contactID string) *errors.Error
func (*ContactService) GetContact ¶
func (*ContactService) GetContacts ¶
type ContactServiceInterface ¶
type ContactServiceInterface interface { GetContacts(limit string, page string) ([]models.Contact, *errors.Error) GetContact(contactID string) (*models.Contact, *errors.Error) DeleteContact(contactID string) *errors.Error }
func NewContactService ¶
func NewContactService(serviceParams types.ServiceParams) ContactServiceInterface
type EventService ¶
type EventService struct {
types.ServiceParams
}
func (*EventService) CreateEvent ¶
func (e *EventService) CreateEvent(eventBody models.CreateEventRequestBody) ([]models.Event, *errors.Error)
right now we are always returning a slice
func (*EventService) DeleteEvent ¶
func (e *EventService) DeleteEvent(eventID string) *errors.Error
func (*EventService) DeleteSeriesByEventID ¶
func (e *EventService) DeleteSeriesByEventID(eventID string) *errors.Error
func (*EventService) DeleteSeriesByID ¶
func (e *EventService) DeleteSeriesByID(seriesID string) *errors.Error
func (*EventService) GetHostsByEventID ¶
func (*EventService) GetSeriesByEventID ¶
func (*EventService) GetSeriesByID ¶
func (*EventService) GetTagsByEventID ¶
func (*EventService) UpdateEvent ¶
func (e *EventService) UpdateEvent(id string, eventBody models.UpdateEventRequestBody) ([]models.Event, *errors.Error)
func (*EventService) UpdateSeries ¶
func (e *EventService) UpdateSeries(seriesID string, seriesBody models.UpdateSeriesRequestBody) ([]models.Event, *errors.Error)
func (*EventService) UpdateSeriesByEventID ¶
func (e *EventService) UpdateSeriesByEventID(eventID string, seriesBody models.UpdateSeriesRequestBody) ([]models.Event, *errors.Error)
type EventServiceInterface ¶
type EventServiceInterface interface { GetEvents(limit string, page string) ([]models.Event, *errors.Error) GetEvent(eventID string) ([]models.Event, *errors.Error) GetSeriesByEventID(eventID string) ([]models.Event, *errors.Error) GetSeriesByID(seriesID string) ([]models.Event, *errors.Error) CreateEvent(eventBodies models.CreateEventRequestBody) ([]models.Event, *errors.Error) UpdateEvent(eventID string, eventBody models.UpdateEventRequestBody) ([]models.Event, *errors.Error) UpdateSeries(seriesID string, seriesBody models.UpdateSeriesRequestBody) ([]models.Event, *errors.Error) UpdateSeriesByEventID(eventID string, seriesBody models.UpdateSeriesRequestBody) ([]models.Event, *errors.Error) DeleteEvent(eventID string) *errors.Error DeleteSeriesByEventID(seriesID string) *errors.Error DeleteSeriesByID(seriesID string) *errors.Error GetHostsByEventID(eventID string) ([]models.Club, *errors.Error) GetTagsByEventID(eventID string) ([]models.Tag, *errors.Error) }
func NewEventService ¶
func NewEventService(serviceParams types.ServiceParams) EventServiceInterface
type FileService ¶
type FileService struct {
types.ServiceParams
}
func (*FileService) CreateFile ¶
func (f *FileService) CreateFile(fileBody *models.CreateFileRequestBody, fileHeader *multipart.FileHeader) (*models.File, *errors.Error)
func (*FileService) DeleteFile ¶
func (f *FileService) DeleteFile(fileID string) *errors.Error
type FileServiceInterface ¶
type FileServiceInterface interface { GetFiles(limit string, page string) ([]models.File, *errors.Error) GetFile(fileID string) (*models.File, *errors.Error) CreateFile(fileBody *models.CreateFileRequestBody, formFile *multipart.FileHeader) (*models.File, *errors.Error) DeleteFile(fileID string) *errors.Error }
func NewFileService ¶
func NewFileService(serviceParams types.ServiceParams) FileServiceInterface
type PointOfContactService ¶
type PointOfContactService struct {
types.ServiceParams
}
func (*PointOfContactService) GetPointOfContact ¶
func (poc *PointOfContactService) GetPointOfContact(pocID string) (*models.PointOfContact, *errors.Error)
func (*PointOfContactService) GetPointOfContacts ¶
func (poc *PointOfContactService) GetPointOfContacts(limit string, page string) ([]models.PointOfContact, *errors.Error)
type PointOfContactServiceInterface ¶
type PointOfContactServiceInterface interface { GetPointOfContacts(limit string, page string) ([]models.PointOfContact, *errors.Error) GetPointOfContact(pocID string) (*models.PointOfContact, *errors.Error) }
func NewPointOfContactService ¶
func NewPointOfContactService(serviceParams types.ServiceParams) PointOfContactServiceInterface
type TagService ¶
type TagService struct {
types.ServiceParams
}
func (*TagService) CreateTag ¶
func (t *TagService) CreateTag(tagBody models.CreateTagRequestBody) (*models.Tag, *errors.Error)
func (*TagService) UpdateTag ¶
func (t *TagService) UpdateTag(tagID string, tagBody models.UpdateTagRequestBody) (*models.Tag, *errors.Error)
type TagServiceInterface ¶
type TagServiceInterface interface { GetTags() ([]models.Tag, *errors.Error) CreateTag(tagBody models.CreateTagRequestBody) (*models.Tag, *errors.Error) GetTag(id string) (*models.Tag, *errors.Error) UpdateTag(id string, tagBody models.UpdateTagRequestBody) (*models.Tag, *errors.Error) DeleteTag(id string) *errors.Error }
func NewTagService ¶
func NewTagService(serviceParams types.ServiceParams) TagServiceInterface
type UserFollowerService ¶
type UserFollowerService struct {
types.ServiceParams
}
func (*UserFollowerService) CreateFollowing ¶
func (u *UserFollowerService) CreateFollowing(userId string, clubId string) *errors.Error
func (*UserFollowerService) DeleteFollowing ¶
func (u *UserFollowerService) DeleteFollowing(userId string, clubId string) *errors.Error
func (*UserFollowerService) GetFollowing ¶
type UserFollowerServiceInterface ¶
type UserFollowerServiceInterface interface { CreateFollowing(userId string, clubId string) *errors.Error DeleteFollowing(userId string, clubId string) *errors.Error GetFollowing(userId string) ([]models.Club, *errors.Error) }
func NewUserFollowerService ¶
func NewUserFollowerService(serviceParams types.ServiceParams) UserFollowerServiceInterface
type UserMemberService ¶
type UserMemberService struct {
types.ServiceParams
}
func (*UserMemberService) CreateMembership ¶
func (u *UserMemberService) CreateMembership(userID string, clubID string) *errors.Error
func (*UserMemberService) DeleteMembership ¶
func (u *UserMemberService) DeleteMembership(userID string, clubID string) *errors.Error
func (*UserMemberService) GetMembership ¶
type UserMemberServiceInterface ¶
type UserMemberServiceInterface interface { CreateMembership(userID string, clubID string) *errors.Error DeleteMembership(userID string, clubID string) *errors.Error GetMembership(userID string) ([]models.Club, *errors.Error) }
func NewUserMemberService ¶
func NewUserMemberService(serviceParams types.ServiceParams) UserMemberServiceInterface
type UserService ¶
type UserService struct {
types.ServiceParams
}
func (*UserService) CreateUser ¶
func (u *UserService) CreateUser(userBody models.CreateUserRequestBody) (*models.User, *auth.Token, *errors.Error)
func (*UserService) DeleteUser ¶
func (u *UserService) DeleteUser(id string) *errors.Error
func (*UserService) UpdatePassword ¶
func (u *UserService) UpdatePassword(id string, passwordBody models.UpdatePasswordRequestBody) *errors.Error
func (*UserService) UpdateUser ¶
func (u *UserService) UpdateUser(id string, userBody models.UpdateUserRequestBody) (*models.User, *errors.Error)
type UserServiceInterface ¶
type UserServiceInterface interface { GetUsers(limit string, page string) ([]models.User, *errors.Error) GetMe(id string) (*models.User, *errors.Error) GetUser(id string) (*models.User, *errors.Error) CreateUser(userBody models.CreateUserRequestBody) (*models.User, *auth.Token, *errors.Error) UpdateUser(id string, userBody models.UpdateUserRequestBody) (*models.User, *errors.Error) UpdatePassword(id string, passwordBody models.UpdatePasswordRequestBody) *errors.Error DeleteUser(id string) *errors.Error }
func NewUserService ¶
func NewUserService(serviceParams types.ServiceParams) UserServiceInterface
type UserTagService ¶
type UserTagService struct {
types.ServiceParams
}
func (*UserTagService) CreateUserTags ¶
func (u *UserTagService) CreateUserTags(id string, tagIDs models.CreateUserTagsBody) ([]models.Tag, *errors.Error)
func (*UserTagService) DeleteUserTag ¶
func (u *UserTagService) DeleteUserTag(id string, tagID string) *errors.Error
func (*UserTagService) GetUserTags ¶
type UserTagServiceInterface ¶
type UserTagServiceInterface interface { GetUserTags(id string) ([]models.Tag, *errors.Error) CreateUserTags(id string, tagIDs models.CreateUserTagsBody) ([]models.Tag, *errors.Error) DeleteUserTag(id string, tagID string) *errors.Error }
func NewUserTagService ¶
func NewUserTagService(serviceParams types.ServiceParams) UserTagServiceInterface
Click to show internal directories.
Click to hide internal directories.