add public dashboard_pic

This commit is contained in:
2024-06-12 15:56:20 +07:00
parent 2fd1a19c7e
commit 70f4de9060
22 changed files with 1009 additions and 97 deletions

View File

@@ -38,8 +38,8 @@ func (ea *EmployeeAnalyticServices) GetEmployeeAnalyticBreadcrumb(title string)
return breadcrumb, nil
}
func (ea *EmployeeAnalyticServices) DummyDataTest() ([]models.EmployeeAnalytic, error) {
employees := []models.EmployeeAnalytic{
func (ea *EmployeeAnalyticServices) DummyDataTest() ([]models.DashboardPic, error) {
employees := []models.DashboardPic{
{
Mgm_McuID: 1,
Mgm_McuLabel: "Employee 1",
@@ -71,9 +71,9 @@ func (ea *EmployeeAnalyticServices) DummyDataTest() ([]models.EmployeeAnalytic,
return employees, nil
}
func (ea *EmployeeAnalyticServices) ListingEmployeeAnalytic(search string, startdate string, enddate string, currentpage int, rowperpage int) ([]models.EmployeeAnalytic, int, error) {
func (ea *EmployeeAnalyticServices) ListingEmployeeAnalytic(search string, startdate string, enddate string, currentpage int, rowperpage int) ([]models.DashboardPic, int, error) {
logger, _ := zap.NewProduction()
var ret []models.EmployeeAnalytic
var ret []models.DashboardPic
var totalData int
if len(startdate) == 0 {

View File

@@ -38,8 +38,8 @@ func (ea *DashboardPicServices) GetEmployeeAnalyticBreadcrumb(title string) (mod
return breadcrumb, nil
}
func (ea *DashboardPicServices) DummyDataTest() ([]models.EmployeeAnalytic, error) {
employees := []models.EmployeeAnalytic{
func (ea *DashboardPicServices) DummyDataTest() ([]models.DashboardPic, error) {
employees := []models.DashboardPic{
{
Mgm_McuID: 1,
Mgm_McuLabel: "Employee 1",
@@ -71,9 +71,9 @@ func (ea *DashboardPicServices) DummyDataTest() ([]models.EmployeeAnalytic, erro
return employees, nil
}
func (ea *DashboardPicServices) ListingEmployeeAnalytic(search string, startdate string, enddate string, currentpage int, rowperpage int) ([]models.EmployeeAnalytic, int, error) {
func (ea *DashboardPicServices) ListingDashboardPic(search string, startdate string, enddate string, currentpage int, rowperpage int) ([]models.DashboardPic, int, error) {
logger, _ := zap.NewProduction()
var ret []models.EmployeeAnalytic
var ret []models.DashboardPic
var totalData int
if len(startdate) == 0 {