Older/Server/Database/Task.h

23 lines
374 B
C
Raw Normal View History

2024-01-03 22:44:36 +08:00
#ifndef __TASK_H__
#define __TASK_H__
#include <list>
#include <string>
class Task {
public:
int id = -1;
bool finished = false;
int32_t createTime = 0;
std::string content;
std::string comment;
};
using Tasks = std::list<Task>;
namespace boost {
namespace json {
std::string serialize(const Tasks &tasks);
}
} // namespace boost
#endif // __TASK_H__