添加 Select_GetAPISecretKey

This commit is contained in:
milimoe 2025-03-21 01:50:04 +08:00
parent 79cea7da1b
commit 0933c0470a
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E

View File

@ -64,7 +64,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Common
public const string Column_Reference1 = "Reference1";
public const string Column_Reference2 = "Reference2";
public static string Insert_APITokens(SQLHelper SQLHelper, string TokenID, string SecretKey = "", string Reference1 = "", string Reference2 = "")
public static string Insert_APIToken(SQLHelper SQLHelper, string TokenID, string SecretKey = "", string Reference1 = "", string Reference2 = "")
{
SQLHelper.Parameters["@TokenID"] = TokenID;
SQLHelper.Parameters["@SecretKey"] = SecretKey;
@ -78,6 +78,12 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Common
SQLHelper.Parameters["@TokenID"] = TokenID;
return $"{Command_Select} {Command_All} {Command_From} {TableName} {Command_Where} {Column_TokenID} = @TokenID";
}
public static string Select_GetAPISecretKey(SQLHelper SQLHelper, string SecretKey)
{
SQLHelper.Parameters["@SecretKey"] = SecretKey;
return $"{Command_Select} {Command_All} {Command_From} {TableName} {Command_Where} {Column_SecretKey} = @SecretKey";
}
public static string Update_GetAPIToken(SQLHelper SQLHelper, string TokenID, string SecretKey, string Reference1 = "", string Reference2 = "")
{