package com.sonymusic.dx.dxadvsearchservice.controllers;

import com.sonymusic.dx.dxadvsearchservice.dto.ProductClassDTO;
import com.sonymusic.dx.dxadvsearchservice.service.ProductClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/productClass")
public class ProductClassController {

    @Autowired
    ProductClassService productClassService;

    @GetMapping("/all")
    public List<ProductClassDTO> getProductClassList() {
        return productClassService.getProductClassList();
    }
}
