Versions in this module Expand all Collapse all v1 v1.0.0 May 31, 2022 Changes in this version + const USER_LOGIN_TPL + type AuthorizationClaims struct + Id uint + type Model interface + Count func(req, resp interface{}) error + Get func(req, resp interface{}) error + Insert func(req, resp interface{}) error + Select func(req, resp interface{}) error + Update func(req, resp interface{}) error + type Service struct + Mdl Model + func NewService(mdl Model) *Service + func (s *Service) Get(req, data any) *contexts.RESPONSE + func (s *Service) Insert(req any) *contexts.RESPONSE + func (s *Service) List(req, data any) *contexts.RESPONSEWITHCOUNT + func (s *Service) Remove(req any) *contexts.RESPONSE + func (s *Service) Update(req any) *contexts.RESPONSE + type UserService struct + Mdl *model.UserModel + func NewUserService() *UserService + func (us *UserService) CreateAuthorization(id uint) (s string, e error) + func (us *UserService) DelLogin(id uint) + func (us *UserService) GetLogin(id uint) string + func (us *UserService) Insert(req any) *contexts.RESPONSE + func (us *UserService) Login(req *contexts.UserLoginRequest) *contexts.UserLoginResponse + func (us *UserService) ParseAuthorization(s string) (*AuthorizationClaims, *contexts.State) + func (us *UserService) SetLogin(id uint, expireTime int64) + func (us *UserService) Update(req any) *contexts.RESPONSE