stores login fix
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user