package ${package.Controller};

import ${package.Entity}.${entity};
import com.dk.common.controller.BaseController;
import com.dk.common.service.BaseService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
import ${package.ServiceImpl}.${table.serviceName};

@Api(tags = "${table.comment!}API接口")
@RestController
@RequestMapping("/${table.entityPath}")
public class ${table.controllerName}{

    public BaseService<${entity}> getService() {
        return ${table.entityPath}Service;
    }

    @Autowired
    private ${table.serviceName} ${table.entityPath}Service;

}
