hr_service

package
v0.0.0-...-c7e3b77 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AttendanceService

type AttendanceService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(attendance_id string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	// Create(indata utils.Map) (utils.Map, error)
	// CreateMany(indata utils.Map) (utils.Map, error)
	ClockIn(indata utils.Map) (utils.Map, error)
	ClockInMany(indata utils.Map) (utils.Map, error)
	ClockOut(attendance_id string, indata utils.Map) (utils.Map, error)
	ClockOutMany(indata utils.Map) (utils.Map, error)
	Update(attendance_id string, indata utils.Map) (utils.Map, error)
	Delete(attendance_id string, delete_permanent bool) error
	DeleteAll(delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

AttendanceService - Attendances Service structure

func NewAttendanceService

func NewAttendanceService(props utils.Map) (AttendanceService, error)

type ClientService

type ClientService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(clientId string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(clientId string, indata utils.Map) (utils.Map, error)
	Delete(clientId string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

ClientService - Clients Service structure

func NewClientService

func NewClientService(props utils.Map) (ClientService, error)

type DashboardService

type DashboardService interface {
	GetDashboardData() (utils.Map, error)

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

DashboardService - Dashboard Service structure

func NewDashboardService

func NewDashboardService(props utils.Map) (DashboardService, error)

type DepartmentService

type DepartmentService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(departmentid string) (utils.Map, error)
	GetDeptCodeDetails(departmentcode string) (utils.Map, error)

	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(departmentid string, indata utils.Map) (utils.Map, error)
	Delete(departmentid string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

DepartmentService - Departments Service structure

func NewDepartmentService

func NewDepartmentService(props utils.Map) (DepartmentService, error)

type DesignationService

type DesignationService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(designation_id string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(designation_id string, indata utils.Map) (utils.Map, error)
	Delete(designation_id string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

DesignationService - Designations Service structure

func NewDesignationService

func NewDesignationService(props utils.Map) (DesignationService, error)

type HolidayService

type HolidayService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(holiday_id string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(holiday_id string, indata utils.Map) (utils.Map, error)
	Delete(holiday_id string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

HolidayService - Accounts Service structure

func NewHolidayService

func NewHolidayService(props utils.Map) (HolidayService, error)

type LeaveService

type LeaveService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(leaveId string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(leaveId string, indata utils.Map) (utils.Map, error)
	Delete(leaveId string, delete_permanent bool) error
	DeleteAll(delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

LeaveService - Accounts Service structure

func NewLeaveService

func NewLeaveService(props utils.Map) (LeaveService, error)

type LeaveTypeService

type LeaveTypeService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(LeaveTypeid string) (utils.Map, error)
	GetDeptCodeDetails(LeaveTypecode string) (utils.Map, error)

	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(LeaveTypeid string, indata utils.Map) (utils.Map, error)
	Delete(LeaveTypeid string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

LeaveTypeService - LeaveTypes Service structure

func NewLeaveTypeService

func NewLeaveTypeService(props utils.Map) (LeaveTypeService, error)

type OvertimeBaseService

type OvertimeBaseService struct {
	db_utils.DatabaseService
	// contains filtered or unexported fields
}

OvertimeeBaseService - Accounts Service structure

func (*OvertimeBaseService) Create

func (p *OvertimeBaseService) Create(indata utils.Map) (utils.Map, error)

func (*OvertimeBaseService) Delete

func (p *OvertimeBaseService) Delete(overtimeId string, delete_permanent bool) error

Delete - Delete Service

func (*OvertimeBaseService) EndService

func (p *OvertimeBaseService) EndService()

func (*OvertimeBaseService) Find

func (p *OvertimeBaseService) Find(filter string) (utils.Map, error)

func (*OvertimeBaseService) Get

func (p *OvertimeBaseService) Get(overtimeId string) (utils.Map, error)

FindByCode - Find By Code

func (*OvertimeBaseService) List

func (p *OvertimeBaseService) List(filter string, sort string, skip int64, limit int64) (utils.Map, error)

List - List All records

func (*OvertimeBaseService) Update

func (p *OvertimeBaseService) Update(overtimeId string, indata utils.Map) (utils.Map, error)

Update - Update Service

type OvertimeService

type OvertimeService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(overtimeId string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(overtimeId string, indata utils.Map) (utils.Map, error)
	Delete(overtimeId string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

OvertimeService - Accounts Service structure

func NewOvertimeService

func NewOvertimeService(props utils.Map) (OvertimeService, error)

type PositionService

type PositionService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(position_id string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(position_id string, indata utils.Map) (utils.Map, error)
	Delete(position_id string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

PositionService - Accounts Service structure

func NewPositionService

func NewPositionService(props utils.Map) (PositionService, error)

type PositionTypeService

type PositionTypeService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(positionTypeId string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(positionTypeId string, indata utils.Map) (utils.Map, error)
	Delete(positionTypeId string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

PositionTypeService - Accounts Service structure

func NewPositionTypeService

func NewPositionTypeService(props utils.Map) (PositionTypeService, error)

type ProjectService

type ProjectService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(projectId string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(projectId string, indata utils.Map) (utils.Map, error)
	Delete(projectId string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

ProjectService - Projects Service structure

func NewProjectService

func NewProjectService(props utils.Map) (ProjectService, error)

type ReportsService

type ReportsService interface {
	GetAttendanceSummary(filter string, aggr string, sort string, skip int64, limit int64) (utils.Map, error)
	GetLeavePermissionSummary(filter string, aggr string, sort string, skip int64, limit int64) (utils.Map, error)

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

ReportsService - Reports Service structure

func NewReportsService

func NewReportsService(props utils.Map) (ReportsService, error)

type ShiftProfileService

type ShiftProfileService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(shiftProfileId string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(shiftProfileId string, indata utils.Map) (utils.Map, error)
	Delete(shiftProfileId string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

ShiftProfileService - Accounts Service structure

func NewShiftProfileService

func NewShiftProfileService(props utils.Map) (ShiftProfileService, error)

type ShiftService

type ShiftService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(shiftId string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(shiftId string, indata utils.Map) (utils.Map, error)
	Delete(shiftId string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

ShiftService - Accounts Service structure

func NewShiftService

func NewShiftService(props utils.Map) (ShiftService, error)

type StaffService

type StaffService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(staff_id string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(staff_id string, indata utils.Map) (utils.Map, error)
	Delete(staff_id string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

StaffService - Accounts Service structure

func NewStaffService

func NewStaffService(props utils.Map) (StaffService, error)

type StaffTypeService

type StaffTypeService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(staffTypeId string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(staffTypeId string, indata utils.Map) (utils.Map, error)
	Delete(staffTypeId string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

StaffTypeService - Accounts Service structure

func NewStaffTypeService

func NewStaffTypeService(props utils.Map) (StaffTypeService, error)

type Staff_categoryBaseService

type Staff_categoryBaseService struct {
	db_utils.DatabaseService
	// contains filtered or unexported fields
}

Staff_categoryBaseService - Accounts Service structure

func (*Staff_categoryBaseService) Create

func (p *Staff_categoryBaseService) Create(indata utils.Map) (utils.Map, error)

func (*Staff_categoryBaseService) Delete

func (p *Staff_categoryBaseService) Delete(Staff_categoryId string, delete_permanent bool) error

Delete - Delete Service

func (*Staff_categoryBaseService) DeleteAll

func (p *Staff_categoryBaseService) DeleteAll(delete_permanent bool) error

*********************************************** DeleteAll - Delete All Staff_category/Permissions for the staff

***********************************************

func (*Staff_categoryBaseService) EndService

func (p *Staff_categoryBaseService) EndService()

func (*Staff_categoryBaseService) Find

func (p *Staff_categoryBaseService) Find(filter string) (utils.Map, error)

func (*Staff_categoryBaseService) Get

func (p *Staff_categoryBaseService) Get(Staff_categoryId string) (utils.Map, error)

FindByCode - Find By Code

func (*Staff_categoryBaseService) List

func (p *Staff_categoryBaseService) List(filter string, sort string, skip int64, limit int64) (utils.Map, error)

List - List All records

func (*Staff_categoryBaseService) Update

func (p *Staff_categoryBaseService) Update(Staff_categoryId string, indata utils.Map) (utils.Map, error)

Update - Update Service

type Staff_categoryService

type Staff_categoryService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(Staff_categoryId string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(Staff_categoryId string, indata utils.Map) (utils.Map, error)
	Delete(Staff_categoryId string, delete_permanent bool) error
	DeleteAll(delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

Staff_categoryService - Accounts Service structure

func NewStaff_categoryService

func NewStaff_categoryService(props utils.Map) (Staff_categoryService, error)

type VisaTypeService

type VisaTypeService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(visatype_Id string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(visatype_Id string, indata utils.Map) (utils.Map, error)
	Delete(visatype_Id string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

VisaTypeService - Accounts Service structure

func NewVisaTypeService

func NewVisaTypeService(props utils.Map) (VisaTypeService, error)

type WorkLocationService

type WorkLocationService interface {
	List(filter string, sort string, skip int64, limit int64) (utils.Map, error)
	Get(workLocId string) (utils.Map, error)
	Find(filter string) (utils.Map, error)
	Create(indata utils.Map) (utils.Map, error)
	Update(workLocId string, indata utils.Map) (utils.Map, error)
	Delete(workLocId string, delete_permanent bool) error

	BeginTransaction()
	CommitTransaction()
	RollbackTransaction()

	EndService()
}

WorkLocationService - Accounts Service structure

func NewWorkLocationService

func NewWorkLocationService(props utils.Map) (WorkLocationService, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL