stores login fix

This commit is contained in:
Suriya
2026-07-09 18:03:44 +05:30
parent 1437a08be5
commit 7e9b3f98ba
9 changed files with 653 additions and 29 deletions

View File

@@ -24,7 +24,7 @@ type TenantService interface {
CreateTenantLocation(data models.Tenantlocations) map[string]interface{}
UpdateTenantLocation(data models.Tenantlocations) map[string]interface{}
CreateTenantUser(data models.Tenants) (models.UserInfo, error)
GetTenantByID(tid int, locationid int) (models.Tenantinfo, error)
GetTenantByID(tid int, locationid int, userid int) (models.Tenantinfo, error)
GetTenantByKeyword(keyword string) ([]models.TenantSearch, error)
}
@@ -158,8 +158,8 @@ func (s *tenantService) CreateTenantUser(data models.Tenants) (models.UserInfo,
return result, nil
}
func (s *tenantService) GetTenantByID(tid int, locationid int) (models.Tenantinfo, error) {
return s.repo.GetTenantByID(tid, locationid)
func (s *tenantService) GetTenantByID(tid int, locationid int, userid int) (models.Tenantinfo, error) {
return s.repo.GetTenantByID(tid, locationid, userid)
}
func (s *tenantService) GetTenantByKeyword(keyword string) ([]models.TenantSearch, error) {