Documentation ¶
Index ¶
- type TokenService
- func (s *TokenService) Count(id int64) (int64, error)
- func (s *TokenService) Create(token *models.UserRefreshToken) (*models.UserRefreshToken, error)
- func (s *TokenService) Delete(id int64) (*models.UserRefreshToken, error)
- func (s *TokenService) Get(id int64) (*models.UserRefreshToken, error)
- func (s *TokenService) Update(id int64, token *models.UserRefreshToken) (*models.UserRefreshToken, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenService ¶
type TokenService struct {
// contains filtered or unexported fields
}
func NewTokenService ¶
func NewTokenService(dal interfaces.TokenDal) *TokenService
func (*TokenService) Create ¶
func (s *TokenService) Create(token *models.UserRefreshToken) (*models.UserRefreshToken, error)
func (*TokenService) Delete ¶
func (s *TokenService) Delete(id int64) (*models.UserRefreshToken, error)
func (*TokenService) Get ¶
func (s *TokenService) Get(id int64) (*models.UserRefreshToken, error)
func (*TokenService) Update ¶
func (s *TokenService) Update(id int64, token *models.UserRefreshToken) (*models.UserRefreshToken, error)
Click to show internal directories.
Click to hide internal directories.