mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-04-23 04:29:36 +08:00
添加 Select_GetAPISecretKey
This commit is contained in:
parent
79cea7da1b
commit
0933c0470a
@ -64,7 +64,7 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Common
|
|||||||
public const string Column_Reference1 = "Reference1";
|
public const string Column_Reference1 = "Reference1";
|
||||||
public const string Column_Reference2 = "Reference2";
|
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["@TokenID"] = TokenID;
|
||||||
SQLHelper.Parameters["@SecretKey"] = SecretKey;
|
SQLHelper.Parameters["@SecretKey"] = SecretKey;
|
||||||
@ -79,6 +79,12 @@ namespace Milimoe.FunGame.Core.Library.SQLScript.Common
|
|||||||
return $"{Command_Select} {Command_All} {Command_From} {TableName} {Command_Where} {Column_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 = "")
|
public static string Update_GetAPIToken(SQLHelper SQLHelper, string TokenID, string SecretKey, string Reference1 = "", string Reference2 = "")
|
||||||
{
|
{
|
||||||
SQLHelper.Parameters["@TokenID"] = TokenID;
|
SQLHelper.Parameters["@TokenID"] = TokenID;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user