Older/Database/Task.h

31 lines
495 B
C
Raw Normal View History

2024-01-03 22:44:36 +08:00
#ifndef __TASK_H__
#define __TASK_H__
#include <list>
#include <string>
2024-01-04 23:32:07 +08:00
class Task;
using Tasks = std::list<Task>;
2024-01-03 22:44:36 +08:00
class Task {
public:
int id = -1;
2024-01-04 23:32:07 +08:00
int parentId = -1;
2024-01-03 22:44:36 +08:00
bool finished = false;
int32_t createTime = 0;
std::string content;
std::string comment;
2024-01-04 23:32:07 +08:00
Tasks children;
2024-11-26 19:31:09 +08:00
template <class Action>
void persist(Action &a) {
}
2024-01-03 22:44:36 +08:00
};
namespace boost {
namespace json {
std::string serialize(const Tasks &tasks);
}
} // namespace boost
#endif // __TASK_H__