package com.cm.common.controller.route.templaterecord;

import com.cm.common.annotation.CheckRequestBodyAnnotation;
import com.cm.common.base.AbstractController;
import com.cm.common.component.SecurityComponent;
import com.cm.common.constants.ISystemConstant;
import com.cm.common.exception.RemoveException;
import com.cm.common.exception.SearchException;
import com.cm.common.pojo.ListPage;
import com.cm.common.pojo.dtos.CurrentUserIdInfoDTO;
import com.cm.common.pojo.dtos.templaterecord.TemplateRecordDTO;
import com.cm.common.pojo.vos.templaterecord.TemplateRecordVO;
import com.cm.common.result.ErrorResult;
import com.cm.common.result.SuccessResult;
import com.cm.common.result.SuccessResultList;
import com.cm.common.service.templaterecord.ITemplateRecordService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: TemplateRecordController
 * @Description: 模板构建记录页面
 * @Author: WenG
 * @Date: 2020-05-07 16:50
 * @Version: 1.0
 **/
@Api(tags = ISystemConstant.API_TAGS_SYSTEM_PREFIX + "模板构建记录页面接口")
@RestController
@RequestMapping(ISystemConstant.ROUTE_PREFIX + "/templaterecord")
public class TemplateRecordRouteController extends AbstractController {

    @Autowired
    private ITemplateRecordService templateRecordService;
    @Autowired
    private SecurityComponent securityComponent;

    @GetMapping("listtemplaterecord")
    public ModelAndView listTemplateRecord() {
        ModelAndView mv = new ModelAndView("templaterecord/list-templaterecord");
        return mv;
    }

    @GetMapping("updatetemplaterecord")
    public ModelAndView updateTemplateRecord() {
        ModelAndView mv = new ModelAndView("templaterecord/update-templaterecord");
        return mv;
    }

}