IndustryController.java 967 Bytes
Newer Older
frank.xa.zhang's avatar
frank.xa.zhang committed
1 2 3 4 5 6 7 8
package pwc.taxtech.atms.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
9
import pwc.taxtech.atms.entity.Industry;
10 11 12
import pwc.taxtech.atms.service.impl.ProjectIndustryServiceImpl;

import java.util.List;
frank.xa.zhang's avatar
frank.xa.zhang committed
13 14 15 16 17

@RestController
@RequestMapping(value = "api/v1/industry")
public class IndustryController {

18 19
    @Autowired
    ProjectIndustryServiceImpl projectIndustryService;
frank.xa.zhang's avatar
frank.xa.zhang committed
20

21 22 23 24 25
    @RequestMapping(value = "getAllAvailableIndustry", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public @ResponseBody
    List<Industry> getAllAvailableIndustry() {
        return projectIndustryService.getAllAvailableIndustry();
    }
frank.xa.zhang's avatar
frank.xa.zhang committed
26
}