ModelConfigurationController.java 1.2 KB
Newer Older
frank.xa.zhang's avatar
frank.xa.zhang committed
1 2 3 4
package pwc.taxtech.atms.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.MediaType;
5 6 7 8 9
import org.springframework.web.bind.annotation.PathVariable;
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;
10
import pwc.taxtech.atms.dpo.ModelProfileDto;
11 12 13
import pwc.taxtech.atms.service.impl.ModelConfigurationServiceImpl;

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

@RestController
@RequestMapping(value = "api/v1/modelConfiguration")
public class ModelConfigurationController {

19 20
    @Autowired
    ModelConfigurationServiceImpl modelConfigurationService;
frank.xa.zhang's avatar
frank.xa.zhang committed
21

22 23 24 25 26 27
    @RequestMapping(value = "/model/byIndustry/{serviceTypeId}/{industryId}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public @ResponseBody
    List<ModelProfileDto> getModelListByIndustry(@PathVariable String industryId,
                                                 @PathVariable String serviceTypeId) {
        return modelConfigurationService.getModelListByIndustry(serviceTypeId, industryId);
    }
frank.xa.zhang's avatar
frank.xa.zhang committed
28
}