package com.copy.trade.controller;

import ${package.Entity}.${entity};
import ${package.Service}.${table.serviceName};

import io.swagger.annotations.Api;


import org.springframework.beans.factory.annotation.Autowired;



#if(${restControllerStyle})
import org.springframework.web.bind.annotation.RestController;
#else
import org.springframework.stereotype.Controller;
#end
#if(${superControllerClassPackage})
import ${superControllerClassPackage};
#end
/**
 * <p>
 * $!{table.comment} 前端控制器
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Api(value = "${table.comment}", tags = "${table.comment}")
#if(${restControllerStyle})
@RestController
#else
@Controller
#end
@RequestMapping("#if(${package.ModuleName})/${package.ModuleName}#end/#if(${controllerMappingHyphenStyle})${controllerMappingHyphen}#else${table.entityPath}#end")
#if(${kotlin})
class ${table.controllerName}#if(${superControllerClass}) : ${superControllerClass}()#end

#else
#if(${superControllerClass})
public class ${table.controllerName} extends ${superControllerClass} {
#else
public class ${table.controllerName} {
#end

	${table.serviceName} ${table.entityPath}ServiceImpl;

	/**
	 * 推荐使用构造器注入
	 * @param ${table.entityPath}ServiceImpl
	 */	
	@Autowired
	${table.controllerName}(${table.serviceName} ${table.entityPath}ServiceImpl) {
		this.${table.entityPath}ServiceImpl = ${table.entityPath}ServiceImpl;
	}
	


}
#end
