mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
20 lines
442 B
C++
20 lines
442 B
C++
#pragma once
|
|
#include <json/json.h>
|
|
#include <string>
|
|
#include <algorithm>
|
|
#include "xxhash.h"
|
|
#include "log.h"
|
|
|
|
struct User
|
|
{
|
|
uint32_t balance = 0;
|
|
uint64_t password;
|
|
Log log;
|
|
|
|
User(std::string &&init_pass);
|
|
User(uint32_t init_bal, std::string &&init_pass);
|
|
User(uint32_t init_bal, uint64_t init_pass);
|
|
User(uint32_t init_bal, uint64_t init_pass, const Json::Value &log_j);
|
|
|
|
Json::Value Serialize() const;
|
|
};
|