X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/1cabba873c9409b7c01280d9839499e955d3bf58..f7795445d9e0dd2282b336c89ebe117a2b71a88e:/projects/sgconf/users.cpp diff --git a/projects/sgconf/users.cpp b/projects/sgconf/users.cpp index 45603199..9c6c30b5 100644 --- a/projects/sgconf/users.cpp +++ b/projects/sgconf/users.cpp @@ -71,42 +71,42 @@ if (!info.authBy.empty()) std::vector GetUserParams() { std::vector params; -params.push_back({"password", "", "\tuser's password"}); -params.push_back({"cash", "", "\t\tuser's cash"}); -params.push_back({"credit", "", "\tuser's credit"}); -params.push_back({"credit-expire", "", "\tcredit expiration"}); -params.push_back({"free", "", "\tprepaid traffic"}); -params.push_back({"disabled", "", "\tdisable user (y|n)"}); -params.push_back({"passive", "", "\tmake user passive (y|n)"}); -params.push_back({"disable-detail-stat", "", "disable detail stat (y|n)"}); -params.push_back({"always-online", "", "\tmake user always online (y|n)"}); -params.push_back({"ips", "", "\t\tcoma-separated list of ips"}); -params.push_back({"tariff", "", "\tcurrent tariff"}); -params.push_back({"next-tariff", "", "tariff starting from the next month"}); -params.push_back({"group", "", "\t\tuser's group"}); -params.push_back({"note", "", "\t\tuser's note"}); -params.push_back({"email", "", "\t\tuser's email"}); -params.push_back({"name", "", "\tuser's real name"}); -params.push_back({"address", "
", "\tuser's postal address"}); -params.push_back({"phone", "", "\t\tuser's phone number"}); -params.push_back({"session-traffic", "", "coma-separated session upload and download"}); -params.push_back({"month-traffic", "", "coma-separated month upload and download"}); -params.push_back({"user-data", "", "coma-separated user data values"}); +params.push_back(SGCONF::API_ACTION::PARAM("password", "", "\tuser's password")); +params.push_back(SGCONF::API_ACTION::PARAM("cash", "", "\t\tuser's cash")); +params.push_back(SGCONF::API_ACTION::PARAM("credit", "", "\tuser's credit")); +params.push_back(SGCONF::API_ACTION::PARAM("credit-expire", "", "\tcredit expiration")); +params.push_back(SGCONF::API_ACTION::PARAM("free", "", "\tprepaid traffic")); +params.push_back(SGCONF::API_ACTION::PARAM("disabled", "", "\tdisable user (y|n)")); +params.push_back(SGCONF::API_ACTION::PARAM("passive", "", "\tmake user passive (y|n)")); +params.push_back(SGCONF::API_ACTION::PARAM("disable-detail-stat", "", "disable detail stat (y|n)")); +params.push_back(SGCONF::API_ACTION::PARAM("always-online", "", "\tmake user always online (y|n)")); +params.push_back(SGCONF::API_ACTION::PARAM("ips", "", "\t\tcoma-separated list of ips")); +params.push_back(SGCONF::API_ACTION::PARAM("tariff", "", "\tcurrent tariff")); +params.push_back(SGCONF::API_ACTION::PARAM("next-tariff", "", "tariff starting from the next month")); +params.push_back(SGCONF::API_ACTION::PARAM("group", "", "\t\tuser's group")); +params.push_back(SGCONF::API_ACTION::PARAM("note", "", "\t\tuser's note")); +params.push_back(SGCONF::API_ACTION::PARAM("email", "", "\t\tuser's email")); +params.push_back(SGCONF::API_ACTION::PARAM("name", "", "\tuser's real name")); +params.push_back(SGCONF::API_ACTION::PARAM("address", "
", "\tuser's postal address")); +params.push_back(SGCONF::API_ACTION::PARAM("phone", "", "\t\tuser's phone number")); +params.push_back(SGCONF::API_ACTION::PARAM("session-traffic", "", "coma-separated session upload and download")); +params.push_back(SGCONF::API_ACTION::PARAM("month-traffic", "", "coma-separated month upload and download")); +params.push_back(SGCONF::API_ACTION::PARAM("user-data", "", "coma-separated user data values")); return params; } std::vector GetCheckParams() { std::vector params; -params.push_back({"password", "", "\tuser's password"}); +params.push_back(SGCONF::API_ACTION::PARAM("password", "", "\tuser's password")); return params; } std::vector GetMessageParams() { std::vector params; -params.push_back({"logins", "", "\tlist of logins to send a message"}); -params.push_back({"text", "", "\t\tmessage text"}); +params.push_back(SGCONF::API_ACTION::PARAM("logins", "", "\tlist of logins to send a message")); +params.push_back(SGCONF::API_ACTION::PARAM("text", "", "\t\tmessage text")); return params; }