Skip to content

Commit

Permalink
zopsmart#3 | .DS_Store deleted and filter added
Browse files Browse the repository at this point in the history
  • Loading branch information
raybittu committed Feb 15, 2021
1 parent 52ae0ad commit 87c49e1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
Binary file removed .DS_Store
Binary file not shown.
35 changes: 35 additions & 0 deletions panel/http/http_test.go
Original file line number Diff line number Diff line change
@@ -1 +1,36 @@
package http

import (
"testing"

"github.com/vikash/gofr/pkg/gofr"
"github.com/zopsmart/hiring-portal-api/panel/models"
)

func TestGetAllEmployeeHTTP(t *testing.T) {

}

type mockService struct{}

func (p mockService) GetAllEmployee(c *gofr.Context, companyID int, queryParam map[string]interface{}) ([]models.Employee, error) {
return nil, nil
}

func (p mockService) GetEmployeeByID(c *gofr.Context, companyID, employeeID int) (models.Employee, error) {
return models.Employee{}, nil
}

func (p mockService) CreateEmployee(c *gofr.Context, companyID int, emp *models.Employee) (models.Employee, error) {

return *emp, nil
}

func (p mockService) EditEmployee(c *gofr.Context, companyID, employeeID int, emp *models.Employee) (models.Employee, error) {

return *emp, nil
}

func (p mockService) DeleteEmployee(c *gofr.Context, companyID, employeeID int) error {
return nil
}

0 comments on commit 87c49e1

Please sign in to comment.