/** * * @file * @author An Tao * @section LICENSE * * Copyright 2018, An Tao. All rights reserved. * Use of this source code is governed by a MIT license * that can be found in the License file. * * @section DESCRIPTION * */ #include "create_controller.h" #include "cmd.h" #include #include using namespace drogon_ctl; void create_controller::handleCommand(std::vector ¶meters) { //std::cout<<"create!"< &ctlNames,const std::string &namespaceName) { for(auto iter=ctlNames.begin();iter!=ctlNames.end();iter++) { if ((*iter)[0] == '-') { std::cout<\n"; file<<"using namespace drogon;\n"; std::string indent=""; if(namespaceName!="") { file << "namespace " << namespaceName << "{\n"; indent=" "; } file<\n"; file< & callback)override;\n"; file< & callback)\n"; file<<"{\n"; file<<" //write your application logic here\n"; file<<"}"; } void create_controller::createApiController(std::vector &apiPaths) { }