update account.go, docs.go, service.go, swagger.json, swagger.yaml

This commit is contained in:
redtea committed 2024-10-23 12:00:00 +03:00
1 parent 47ea2eacd0
commit be5630cbd9
5 files changed
+1434

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
package service
import (
"esaccount"
)
type Authorization interface {
Authorize(header string) (*esaccount.AuthorizedUser, error)
AuthorizeById(id int64) (*esaccount.AuthorizedUser, error)
AuthorizeAndUpdatePicture(header string, picUrl string) (*esaccount.AuthorizedUser, error)
}
type Service struct {
Authorization
}
func NewService() *Service {
return &Service{
Authorization: NewAuthService(),
}
}