stock request table created
This commit is contained in:
@@ -17,6 +17,7 @@ type TenantService interface {
|
||||
GetTenantPricing(tid, aid int) (models.Tenantpricing, error)
|
||||
UpdateLocation(input models.Tenantlocations) error
|
||||
CreateLocation(data models.Tenantlocations) error
|
||||
DeleteLocation(locationid int, tenantid int) error
|
||||
GetStaffs(tid int) ([]models.StaffInfo, error)
|
||||
CreateStaff(user models.User) error
|
||||
UpdateStaff(user models.User) error
|
||||
@@ -89,6 +90,10 @@ func (s *tenantService) CreateLocation(data models.Tenantlocations) error {
|
||||
return s.repo.CreateLocation(data)
|
||||
}
|
||||
|
||||
func (s *tenantService) DeleteLocation(locationid int, tenantid int) error {
|
||||
return s.repo.DeleteLocation(locationid, tenantid)
|
||||
}
|
||||
|
||||
func (s *tenantService) GetStaffs(tid int) ([]models.StaffInfo, error) {
|
||||
return s.repo.GetStaffs(tid)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user