package com.elephant.framework.galaxy.aroad.module.zhjc.controller;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.elephant.framework.galaxy.aroad.response.R;
import com.elephant.framework.galaxy.aroad.module.common.annotation.SysLog;
import com.elephant.framework.galaxy.aroad.module.zhjc.entity.ZhjcXmjcZtxmDdjgl;
import com.elephant.framework.galaxy.aroad.module.zhjc.service.ZhjcXmjcZtxmDdjglService;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.*;
import com.elephant.framework.galaxy.aroad.module.common.controller.BaseController;


/**
 * 项目专题低等级公路
 *
 * @author zyw
 * @date 2019-04-28 11:03:58
 */
@RestController
@AllArgsConstructor
@RequestMapping("/zhjc/zhjcxmjcztxmddjgl")
public class ZhjcXmjcZtxmDdjglController extends BaseController  {

  private final  ZhjcXmjcZtxmDdjglService zhjcXmjcZtxmDdjglService;

  /**
   * list查询
   * @param zhjcXmjcZtxmDdjgl 项目专题低等级公路
   * @return
   */
  @GetMapping("/list")
  public R getList( ZhjcXmjcZtxmDdjgl zhjcXmjcZtxmDdjgl) {
    return  new R<>(zhjcXmjcZtxmDdjglService.getList(zhjcXmjcZtxmDdjgl));
  }


  /**
   * 通过id查询项目专题低等级公路
   * @param id id
   * @return R
   */
  @GetMapping("/{id}")
  public R getById(@PathVariable("id") Integer id){
    return new R<>(zhjcXmjcZtxmDdjglService.getById(id));
  }


}
