package com.cm.central.control.controller.routes.customer;

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: CustomerRouteController
 * @Description: 客户管理
 * @Author: WangGeng
 * @Date: 2020/7/30 7:22 下午
 * @Version: 1.0
 **/
@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "客户管理接口")
@Controller
@RequestMapping(ISystemConstant.ROUTE_PREFIX + "/customer")
public class CustomerRouteController {

    @ApiOperation(value = "客户管理列表")
    @GetMapping("listcustomer")
    public ModelAndView listCustomer() {
        return new ModelAndView("customer/list-customer");
    }

    @ApiOperation(value = "客户管理新增")
    @GetMapping("savecustomer")
    public ModelAndView saveCustomer() {
        return new ModelAndView("customer/save-customer");
    }

    @ApiOperation(value = "客户管理编辑")
    @GetMapping("updatecustomer")
    public ModelAndView updateCustomer() {
        return new ModelAndView("customer/update-customer");
    }

}
