Fix namespaces in Backend
This commit is contained in:
parent
629d0a1626
commit
702fa89914
|
@ -1,14 +1,14 @@
|
|||
using System.Net;
|
||||
using System.Text;
|
||||
using Innovenergy.Backend.Database;
|
||||
using Innovenergy.Backend.Model;
|
||||
using Innovenergy.Backend.Model.Relations;
|
||||
using Innovenergy.Backend.Utils;
|
||||
using InnovEnergy.App.Backend.Database;
|
||||
using InnovEnergy.App.Backend.Model;
|
||||
using InnovEnergy.App.Backend.Model.Relations;
|
||||
using InnovEnergy.App.Backend.Utils;
|
||||
using InnovEnergy.Lib.Utils;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using HttpContextAccessor = Microsoft.AspNetCore.Http.HttpContextAccessor;
|
||||
|
||||
namespace Innovenergy.Backend.Controllers;
|
||||
namespace InnovEnergy.App.Backend.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/")]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Innovenergy.Backend.Controllers;
|
||||
namespace InnovEnergy.App.Backend.Controllers;
|
||||
|
||||
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)]
|
||||
public record Credentials(String Username, String Password);
|
|
@ -1,7 +1,7 @@
|
|||
using System.Net;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Innovenergy.Backend.Controllers;
|
||||
namespace InnovEnergy.App.Backend.Controllers;
|
||||
|
||||
public class ReturnsAttribute : ProducesResponseTypeAttribute
|
||||
{
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using Innovenergy.Backend.Model;
|
||||
using Innovenergy.Backend.Model.Relations;
|
||||
using Innovenergy.Backend.Utils;
|
||||
using InnovEnergy.App.Backend.Model;
|
||||
using InnovEnergy.App.Backend.Model.Relations;
|
||||
using InnovEnergy.App.Backend.Utils;
|
||||
using InnovEnergy.Lib.Utils;
|
||||
using SQLite;
|
||||
|
||||
namespace Innovenergy.Backend.Database;
|
||||
namespace InnovEnergy.App.Backend.Database;
|
||||
|
||||
public partial class Db : IDisposable
|
||||
{
|
||||
|
@ -98,8 +98,6 @@ public partial class Db : IDisposable
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public IEnumerable<Folder> GetAllAccessibleFolders(User user)
|
||||
{
|
||||
return GetDirectlyAccessibleFolders(user)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using Innovenergy.Backend.Model.Relations;
|
||||
using InnovEnergy.App.Backend.Model.Relations;
|
||||
|
||||
namespace Innovenergy.Backend.Database;
|
||||
namespace InnovEnergy.App.Backend.Database;
|
||||
|
||||
public partial class Db
|
||||
{
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
using Innovenergy.Backend.Model;
|
||||
using Innovenergy.Backend.Utils;
|
||||
using InnovEnergy.App.Backend.Model;
|
||||
using InnovEnergy.App.Backend.Utils;
|
||||
using InnovEnergy.Lib.Utils;
|
||||
using SQLite;
|
||||
|
||||
namespace Innovenergy.Backend.Database;
|
||||
namespace InnovEnergy.App.Backend.Database;
|
||||
|
||||
public partial class Db
|
||||
{
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
using Innovenergy.Backend.Model;
|
||||
using Innovenergy.Backend.Utils;
|
||||
using InnovEnergy.App.Backend.Model;
|
||||
using InnovEnergy.App.Backend.Utils;
|
||||
using SQLite;
|
||||
|
||||
namespace Innovenergy.Backend.Database;
|
||||
namespace InnovEnergy.App.Backend.Database;
|
||||
|
||||
public partial class Db
|
||||
{
|
||||
|
|
|
@ -2,18 +2,17 @@ using System.Diagnostics.CodeAnalysis;
|
|||
using System.Net.Mail;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using System.Text.Json;
|
||||
using System.Text.Json.Nodes;
|
||||
using Flurl.Http;
|
||||
using Innovenergy.Backend.Model;
|
||||
using Innovenergy.Backend.Utils;
|
||||
using InnovEnergy.App.Backend.Model;
|
||||
using InnovEnergy.App.Backend.Utils;
|
||||
using InnovEnergy.Lib.Utils;
|
||||
using SQLite;
|
||||
|
||||
#pragma warning disable CS0472
|
||||
#pragma warning disable CS8602
|
||||
|
||||
namespace Innovenergy.Backend.Database;
|
||||
namespace InnovEnergy.App.Backend.Database;
|
||||
|
||||
public partial class Db
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Innovenergy.Backend.Model.Relations;
|
||||
using InnovEnergy.App.Backend.Model.Relations;
|
||||
using SQLite;
|
||||
|
||||
namespace Innovenergy.Backend.Database;
|
||||
namespace InnovEnergy.App.Backend.Database;
|
||||
|
||||
public partial class Db
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Innovenergy.Backend.Model.Relations;
|
||||
using InnovEnergy.App.Backend.Model.Relations;
|
||||
using SQLite;
|
||||
|
||||
namespace Innovenergy.Backend.Database;
|
||||
namespace InnovEnergy.App.Backend.Database;
|
||||
|
||||
public partial class Db
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Microsoft.OpenApi.Models;
|
||||
using Swashbuckle.AspNetCore.SwaggerGen;
|
||||
|
||||
namespace Innovenergy.Backend;
|
||||
namespace InnovEnergy.App.Backend;
|
||||
|
||||
/// <summary>
|
||||
/// This is for convenient testing! Todo throw me out?
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Innovenergy.Backend.Model;
|
||||
namespace InnovEnergy.App.Backend.Model;
|
||||
|
||||
public class Folder : TreeNode
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Innovenergy.Backend.Model;
|
||||
namespace InnovEnergy.App.Backend.Model;
|
||||
|
||||
|
||||
public class Installation : TreeNode
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using SQLite;
|
||||
|
||||
namespace Innovenergy.Backend.Model.Relations;
|
||||
namespace InnovEnergy.App.Backend.Model.Relations;
|
||||
|
||||
public abstract class Relation<L,R>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using SQLite;
|
||||
|
||||
namespace Innovenergy.Backend.Model.Relations;
|
||||
namespace InnovEnergy.App.Backend.Model.Relations;
|
||||
|
||||
public class Session : Relation<String, Int64>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using SQLite;
|
||||
|
||||
namespace Innovenergy.Backend.Model.Relations;
|
||||
namespace InnovEnergy.App.Backend.Model.Relations;
|
||||
|
||||
internal class User2Folder : Relation<Int64, Int64>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using SQLite;
|
||||
|
||||
namespace Innovenergy.Backend.Model.Relations;
|
||||
namespace InnovEnergy.App.Backend.Model.Relations;
|
||||
|
||||
internal class User2Installation : Relation<Int64, Int64>
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
|
||||
namespace Innovenergy.Backend.Model;
|
||||
namespace InnovEnergy.App.Backend.Model;
|
||||
|
||||
public abstract partial class TreeNode
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using SQLite;
|
||||
|
||||
namespace Innovenergy.Backend.Model;
|
||||
namespace InnovEnergy.App.Backend.Model;
|
||||
|
||||
public abstract partial class TreeNode
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using SQLite;
|
||||
|
||||
namespace Innovenergy.Backend.Model;
|
||||
namespace InnovEnergy.App.Backend.Model;
|
||||
|
||||
public class User : TreeNode
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using Innovenergy.Backend.Database;
|
||||
using InnovEnergy.App.Backend.Database;
|
||||
using Microsoft.OpenApi.Models;
|
||||
|
||||
namespace Innovenergy.Backend;
|
||||
namespace InnovEnergy.App.Backend;
|
||||
|
||||
public static class Program
|
||||
{
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
using System.Security.Cryptography;
|
||||
|
||||
namespace Innovenergy.Backend.Utils;
|
||||
namespace InnovEnergy.App.Backend.Utils;
|
||||
|
||||
public static class Crypto
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace Innovenergy.Backend.Utils;
|
||||
namespace InnovEnergy.App.Backend.Utils;
|
||||
|
||||
public class Result
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue