/*
 * @Author: error: git config user.name && git config user.email & please set dead value or install git
 * @Date: 2022-07-10 17:09:31
 * @LastEditors: error: git config user.name && git config user.email & please set dead value or install git
 * @LastEditTime: 2022-07-10 22:09:57
 * @FilePath: /gsd/controllers/apis_v1_ai.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 "dataTypeList.h"
#include "gsd_MonitorPlugin.h"
#include "httpHelper.hpp"

using namespace drogon;

namespace apis
{
namespace v1
{
class ai : public drogon::HttpController<ai>
{
  public:
    METHOD_LIST_BEGIN
    // use METHOD_ADD to add your custom processing function here;
    METHOD_ADD(ai::postAI, "/bird", Post); // path is /apis/v1/ai/{arg2}/{arg1}
    // METHOD_ADD(ai::your_method_name, "/{1}/{2}/list", Get); // path is /apis/v1/ai/{arg1}/{arg2}/list
    // ADD_METHOD_TO(ai::your_method_name, "/absolute/path/{1}/{2}/list", Get); // path is /absolute/path/{arg1}/{arg2}/list
    
    METHOD_LIST_END
    void postAI(const HttpRequestPtr& req, std::function<void (const HttpResponsePtr &)> &&callback);
    // void your_method_name(const HttpRequestPtr& req, std::function<void (const HttpResponsePtr &)> &&callback, double p1, int p2) const;
};
}
}
