Documentation ¶
Index ¶
- type Service
- func (s *Service) ChangePassword(c *gin.Context, oldPass, newPass string, id int) error
- func (s *Service) Create(c *gin.Context, u *model.User) error
- func (s *Service) GetProfile(c *gin.Context, id int) *model.User
- func (s *Service) UpdateAvatar(c *gin.Context, newAvatar string, id int) error
- func (s *Service) UpdateProfile(c *gin.Context, update *request.Update) (*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service represents the account application service
func NewAccountService ¶
func NewAccountService(userRepo model.UserRepo, accountRepo model.AccountRepo, rbac model.RBACService, secret secret.Service) *Service
NewAccountService creates a new account application service
func (*Service) ChangePassword ¶
ChangePassword changes user's password
func (*Service) GetProfile ¶
GetProfile gets user's profile
func (*Service) UpdateAvatar ¶
UpdateAvatar changes user's avatar
Click to show internal directories.
Click to hide internal directories.