|
|
@ -18,6 +18,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -46,8 +47,8 @@ public class TermSetController extends BaseController {
|
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
|
|
|
|
@RequestMapping("/getResolutionList")
|
|
|
|
@RequestMapping("/getResolutionList")
|
|
|
|
@Log(title = "获取分辨率代码", type = "查询")
|
|
|
|
@Log(title = "获取分辨率代码", type = "查询")
|
|
|
|
public ResponseReult<ResolutionModel> getResolutionList() {
|
|
|
|
public ResponseReult<ResolutionModel> getResolutionList(@RequestParam("type") Integer type) {
|
|
|
|
ServiceBody<ResolutionModel> serviceBody = termSetService.getResolutionList();
|
|
|
|
ServiceBody<ResolutionModel> serviceBody = termSetService.getResolutionList(type);
|
|
|
|
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
|
|
|
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
|
|
|
|
return ResponseReult.success(serviceBody.getData());
|
|
|
|
return ResponseReult.success(serviceBody.getData());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|