mirror of
https://github.com/raphaeIl/Novaria.git
synced 2025-12-16 16:34:44 +01:00
crypto attempts
This commit is contained in:
129
Novaria.SDKServer/Controllers/UserController.cs
Normal file
129
Novaria.SDKServer/Controllers/UserController.cs
Normal file
@@ -0,0 +1,129 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Serilog;
|
||||
|
||||
namespace Novaria.SDKServer.CoNovariaollers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("/user")]
|
||||
public class UserController : ControllerBase
|
||||
{
|
||||
[Route("login")]
|
||||
public IResult PostLogin()
|
||||
{
|
||||
Log.Information("post login received!");
|
||||
|
||||
string jsonResponse = @"
|
||||
{
|
||||
""Code"": 200,
|
||||
""Data"": {
|
||||
""IsNew"": true,
|
||||
""IsTestAccount"": false,
|
||||
""User"": {
|
||||
""DestroyState"": 0,
|
||||
""ID"": 1,
|
||||
""PID"": ""CN-NOVA"",
|
||||
""State"": 1,
|
||||
""Token"": ""f94d936f7235f84493564ee0282e845cccd44828""
|
||||
}
|
||||
},
|
||||
""Msg"": ""OK""
|
||||
}
|
||||
";
|
||||
return Results.Text(jsonResponse, "application/json");
|
||||
}
|
||||
|
||||
[Route("quick-login")]
|
||||
public IResult PostQuickLogin()
|
||||
{
|
||||
Log.Information("post login received!");
|
||||
|
||||
string jsonResponse = @"
|
||||
{
|
||||
""Code"": 200,
|
||||
""Data"": {
|
||||
""Destroy"": {
|
||||
""DestroyAt"": 0
|
||||
},
|
||||
""Identity"": {
|
||||
""BirthDate"": """",
|
||||
""IDCard"": ""500*********11861*"",
|
||||
""PI"": """",
|
||||
""RealName"": ""*思"",
|
||||
""State"": 1,
|
||||
""Type"": 0,
|
||||
""Underage"": false
|
||||
},
|
||||
""IsTestAccount"": false,
|
||||
""Keys"": [
|
||||
{
|
||||
""NickName"": ""123****4567"",
|
||||
""Type"": ""mobile""
|
||||
}
|
||||
],
|
||||
""User"": {
|
||||
""DestroyState"": 0,
|
||||
""ID"": 1,
|
||||
""PID"": ""CN-NOVA"",
|
||||
""State"": 1,
|
||||
""Token"": ""f94d936f7235f84493564ee0282e845cccd44828""
|
||||
},
|
||||
""Yostar"": {
|
||||
""CreatedAt"": 1735902342,
|
||||
""DefaultNickName"": """",
|
||||
""ID"": 1,
|
||||
""NickName"": ""夏萝莉是小楠梁"",
|
||||
""Picture"": """",
|
||||
""State"": 1
|
||||
}
|
||||
},
|
||||
""Msg"": ""OK""
|
||||
}
|
||||
";
|
||||
return Results.Text(jsonResponse, "application/json");
|
||||
|
||||
}
|
||||
|
||||
[Route("detail")]
|
||||
public IResult PostDetail()
|
||||
{
|
||||
string jsonResponse = @"
|
||||
{
|
||||
""Code"": 200,
|
||||
""Data"": {
|
||||
""Destroy"": {
|
||||
""DestroyAt"": 0
|
||||
},
|
||||
""Identity"": null,
|
||||
""IsTestAccount"": false,
|
||||
""Keys"": [
|
||||
{
|
||||
""NickName"": ""123****4567"",
|
||||
""Type"": ""mobile""
|
||||
}
|
||||
],
|
||||
""User"": {
|
||||
""DestroyState"": 0,
|
||||
""ID"": 1,
|
||||
""PID"": ""CN-NOVA"",
|
||||
""State"": 1,
|
||||
""Token"": ""f94d936f7235f84493564ee0282e845cccd44828""
|
||||
},
|
||||
""Yostar"": {
|
||||
""CreatedAt"": 1,
|
||||
""DefaultNickName"": """",
|
||||
""ID"": 1,
|
||||
""NickName"": ""夏萝莉是小楠梁"",
|
||||
""Picture"": """",
|
||||
""State"": 1
|
||||
}
|
||||
},
|
||||
""Msg"": ""OK""
|
||||
}
|
||||
";
|
||||
|
||||
return Results.Text(jsonResponse, "application/json");
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user