pos login edited with phone number

This commit is contained in:
2026-08-11 11:08:43 +05:30
parent 3531c656d4
commit d35caf34d3
12 changed files with 768 additions and 25 deletions

View File

@@ -43,6 +43,10 @@ type PosService interface {
CreateUser(tenantID, locationID, configID int, req models.PosUserRequest) (*models.PosUser, error)
UpdateUser(tenantID, locationID int, req models.PosUserRequest) (*models.PosUser, error)
ListUsers(tenantID, locationID int, includeInactive bool) ([]models.PosUser, error)
ListStaffShifts(tenantID, locationID int, includeInactive bool) ([]models.StaffShifts, error)
CreateStaffShift(tenantID, locationID int, req models.StaffShifts) (*models.StaffShifts, error)
UpdateStaffShift(tenantID, locationID int, req models.StaffShifts) (*models.StaffShifts, error)
DeactivateUser(tenantID, locationID, userID int) error
// LoginWithPin signs a person in at a terminal that is already open. Never
@@ -153,6 +157,18 @@ func (s *posService) UpdateUser(tenantID, locationID int, req models.PosUserRequ
return s.repo.UpdatePosUser(tenantID, locationID, req)
}
func (s *posService) ListStaffShifts(tenantID, locationID int, includeInactive bool) ([]models.StaffShifts, error) {
return s.repo.ListStaffShifts(tenantID, locationID, includeInactive)
}
func (s *posService) CreateStaffShift(tenantID, locationID int, req models.StaffShifts) (*models.StaffShifts, error) {
return s.repo.CreateStaffShift(tenantID, locationID, req)
}
func (s *posService) UpdateStaffShift(tenantID, locationID int, req models.StaffShifts) (*models.StaffShifts, error) {
return s.repo.UpdateStaffShift(tenantID, locationID, req)
}
func (s *posService) ListUsers(tenantID, locationID int, includeInactive bool) ([]models.PosUser, error) {
return s.repo.ListPosUsers(tenantID, locationID, includeInactive)
}