27 lines
430 B
C++
27 lines
430 B
C++
#ifndef __TASK_H__
|
|
#define __TASK_H__
|
|
|
|
#include <list>
|
|
#include <string>
|
|
|
|
class Task;
|
|
using Tasks = std::list<Task>;
|
|
|
|
class Task {
|
|
public:
|
|
int id = -1;
|
|
int parentId = -1;
|
|
bool finished = false;
|
|
int32_t createTime = 0;
|
|
std::string content;
|
|
std::string comment;
|
|
Tasks children;
|
|
};
|
|
|
|
namespace boost {
|
|
namespace json {
|
|
std::string serialize(const Tasks &tasks);
|
|
}
|
|
} // namespace boost
|
|
|
|
#endif // __TASK_H__
|