Newer
Older
huludao / src / main / java / com / newfiber / api / pc / controller / gis / PipelineFlawController.java
package com.newfiber.api.pc.controller.gis;

import com.newfiber.api.core.commons.ResultCode;
import com.newfiber.api.core.commons.ResultObj;
import com.newfiber.api.pc.model.gis.PipelineFlaw;
import com.newfiber.api.pc.service.gis.PipelineFlawService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pipeline_flaw")
@Api(tags = "管网缺陷")
public class PipelineFlawController {

    @Resource
    private PipelineFlawService pipelineFlawService;

    /** 获取基础类型表列表 */
    @ApiOperation("获取基础类型表列表")
    @PostMapping("/info_by_number/{number}")
    public ResultObj<PipelineFlaw> infoByNumber(@PathVariable String number){
        return new ResultObj<>(ResultCode.OK, pipelineFlawService.infoByNumber(number));
    }

}