/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-07-10 17:39:24
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-07-10 21:27:49
 * @FilePath: /gsd/controllers/apis_v1_dev.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#pragma once

#include <drogon/HttpController.h>
#include <drogon/drogon.h>
#include "expel.h"
#include "httpHelper.hpp"
#include "dataTypeList.h"

using namespace drogon;

namespace apis
{
namespace v1
{
class dev : public drogon::HttpController<dev>
{
  public:
    METHOD_LIST_BEGIN
      // use METHOD_ADD to add your custom processing function here;
      METHOD_ADD(dev::postExpel, "/expel?commandCode={1}", Post); // path is /apis/v1/dev/{arg2}/{arg1}
      
    METHOD_LIST_END
      // your declaration of processing function maybe like this:
      void postExpel(const HttpRequestPtr& req, std::function<void (const HttpResponsePtr &)> &&callback, std::string commandCode);
};
}
}
