Fix namespaces in Backend

This commit is contained in:
ig 2023-03-08 13:20:33 +01:00
parent 629d0a1626
commit 702fa89914
23 changed files with 40 additions and 43 deletions

View File

@ -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/")]

View File

@ -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);

View File

@ -1,7 +1,7 @@
using System.Net;
using Microsoft.AspNetCore.Mvc;
namespace Innovenergy.Backend.Controllers;
namespace InnovEnergy.App.Backend.Controllers;
public class ReturnsAttribute : ProducesResponseTypeAttribute
{

View File

@ -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)

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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?

View File

@ -1,4 +1,4 @@
namespace Innovenergy.Backend.Model;
namespace InnovEnergy.App.Backend.Model;
public class Folder : TreeNode
{

View File

@ -1,4 +1,4 @@
namespace Innovenergy.Backend.Model;
namespace InnovEnergy.App.Backend.Model;
public class Installation : TreeNode

View File

@ -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>
{

View File

@ -1,6 +1,6 @@
using SQLite;
namespace Innovenergy.Backend.Model.Relations;
namespace InnovEnergy.App.Backend.Model.Relations;
public class Session : Relation<String, Int64>
{

View File

@ -1,6 +1,6 @@
using SQLite;
namespace Innovenergy.Backend.Model.Relations;
namespace InnovEnergy.App.Backend.Model.Relations;
internal class User2Folder : Relation<Int64, Int64>
{

View File

@ -1,6 +1,6 @@
using SQLite;
namespace Innovenergy.Backend.Model.Relations;
namespace InnovEnergy.App.Backend.Model.Relations;
internal class User2Installation : Relation<Int64, Int64>
{

View File

@ -1,6 +1,6 @@
using System.Diagnostics.CodeAnalysis;
namespace Innovenergy.Backend.Model;
namespace InnovEnergy.App.Backend.Model;
public abstract partial class TreeNode
{

View File

@ -1,6 +1,6 @@
using SQLite;
namespace Innovenergy.Backend.Model;
namespace InnovEnergy.App.Backend.Model;
public abstract partial class TreeNode
{

View File

@ -1,6 +1,6 @@
using SQLite;
namespace Innovenergy.Backend.Model;
namespace InnovEnergy.App.Backend.Model;
public class User : TreeNode
{

View File

@ -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
{

View File

@ -1,6 +1,6 @@
using System.Security.Cryptography;
namespace Innovenergy.Backend.Utils;
namespace InnovEnergy.App.Backend.Utils;
public static class Crypto
{

View File

@ -1,4 +1,4 @@
namespace Innovenergy.Backend.Utils;
namespace InnovEnergy.App.Backend.Utils;
public class Result
{