package com.cm.smartgate.controller.route;

import com.cm.common.constants.ISystemConstant;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * When you feel like quitting. Think about why you started
 * 当你想要放弃的时候，想想当初你为何开始
 *
 * @ClassName: ClientRouteController
 * @Description: 智慧闸机
 * @Author: WangGeng
 * @Date: 2020/7/30 7:44 下午
 * @Version: 1.0
 **/
@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "智慧闸机接口")
@Controller
@RequestMapping(ISystemConstant.ROUTE_PREFIX + "/smartgate")
public class SmartGateRouteController {

    @ApiOperation(value = "智慧闸机列表")
    @GetMapping("listsmartgate")
    public ModelAndView listClient() {
        return new ModelAndView("smartgate/list-smartgate");
    }

    @ApiOperation(value = "智慧闸机新增")
    @GetMapping("savesmartgate")
    public ModelAndView saveClient() {
        return new ModelAndView("smartgate/save-smartgate");
    }

    @ApiOperation(value = "智慧闸机编辑")
    @GetMapping("updatesmartgate")
    public ModelAndView updateClient() {
        return new ModelAndView("smartgate/update-smartgate");
    }

}
