1
0
mirror of synced 2025-01-19 08:07:24 +01:00

Extract more to global using

This commit is contained in:
asesidaa 2022-08-28 00:35:45 +08:00
parent 2c21080e99
commit 095ee0a41e
20 changed files with 13 additions and 69 deletions

View File

@ -1,6 +1,4 @@
using TaikoLocalServer.Common.Enums;
namespace TaikoLocalServer.Common;
namespace TaikoLocalServer.Common;
public static class FlagCalculator
{

View File

@ -1,6 +1,4 @@
using Microsoft.EntityFrameworkCore;
using TaikoLocalServer.Common;
using TaikoLocalServer.Entities;
namespace TaikoLocalServer.Context
{

View File

@ -1,9 +1,4 @@
using System.Text.Json;
using TaikoLocalServer.Common;
using TaikoLocalServer.Common.Enums;
using TaikoLocalServer.Context;
using TaikoLocalServer.Entities;
using TaikoLocalServer.Utils;
namespace TaikoLocalServer.Controllers;

View File

@ -1,9 +1,4 @@
using TaikoLocalServer.Common;
using TaikoLocalServer.Common.Enums;
using TaikoLocalServer.Context;
using TaikoLocalServer.Utils;
namespace TaikoLocalServer.Controllers;
namespace TaikoLocalServer.Controllers;
[Route("/v12r03/chassis/crownsdata.php")]
[ApiController]

View File

@ -1,9 +1,4 @@
using TaikoLocalServer.Common;
using TaikoLocalServer.Common.Enums;
using TaikoLocalServer.Context;
using TaikoLocalServer.Utils;
namespace TaikoLocalServer.Controllers;
namespace TaikoLocalServer.Controllers;
[Route("/v12r03/chassis/getscorerank.php")]
[ApiController]

View File

@ -1,6 +1,4 @@
using TaikoLocalServer.Common;
namespace TaikoLocalServer.Controllers;
namespace TaikoLocalServer.Controllers;
[Route("/v12r03/chassis/gettelop.php")]
[ApiController]

View File

@ -1,6 +1,4 @@
using System.Collections;
using TaikoLocalServer.Common;
using TaikoLocalServer.Utils;
namespace TaikoLocalServer.Controllers;

View File

@ -1,7 +1,4 @@
using TaikoLocalServer.Models;
using TaikoLocalServer.Utils;
namespace TaikoLocalServer.Controllers;
namespace TaikoLocalServer.Controllers;
public class MuchaController : ControllerBase
{

View File

@ -1,8 +1,4 @@
using TaikoLocalServer.Common.Enums;
using TaikoLocalServer.Context;
using TaikoLocalServer.Entities;
namespace TaikoLocalServer.Controllers;
namespace TaikoLocalServer.Controllers;
[Route("/v12r03/chassis/mydonentry.php")]
[ApiController]

View File

@ -1,11 +1,6 @@
using System.Globalization;
using System.Text.Json;
using ProtoBuf;
using TaikoLocalServer.Common;
using TaikoLocalServer.Common.Enums;
using TaikoLocalServer.Context;
using TaikoLocalServer.Entities;
using TaikoLocalServer.Utils;
namespace TaikoLocalServer.Controllers;

View File

@ -1,7 +1,4 @@
using TaikoLocalServer.Models;
using TaikoLocalServer.Utils;
namespace TaikoLocalServer.Controllers;
namespace TaikoLocalServer.Controllers;
[ApiController]
[Route("/sys/servlet/PowerOn")]

View File

@ -1,9 +1,4 @@
using TaikoLocalServer.Common.Enums;
using TaikoLocalServer.Context;
using TaikoLocalServer.Entities;
using TaikoLocalServer.Utils;
namespace TaikoLocalServer.Controllers;
namespace TaikoLocalServer.Controllers;
[Route("/v12r03/chassis/selfbest.php")]
[ApiController]

View File

@ -1,7 +1,4 @@
using System.Collections;
using TaikoLocalServer.Common;
using TaikoLocalServer.Context;
using TaikoLocalServer.Utils;
namespace TaikoLocalServer.Controllers;

View File

@ -1,6 +1,4 @@
using TaikoLocalServer.Common.Enums;
namespace TaikoLocalServer.Entities
namespace TaikoLocalServer.Entities
{
public partial class SongBestDatum
{

View File

@ -1,6 +1,4 @@
using TaikoLocalServer.Common.Enums;
namespace TaikoLocalServer.Entities;
namespace TaikoLocalServer.Entities;
public partial class SongBestDatum
{

View File

@ -1,6 +1,4 @@
using TaikoLocalServer.Common.Enums;
namespace TaikoLocalServer.Entities
namespace TaikoLocalServer.Entities
{
public partial class SongPlayDatum
{

View File

@ -1,6 +1,4 @@
using TaikoLocalServer.Common.Enums;
namespace TaikoLocalServer.Entities
namespace TaikoLocalServer.Entities
{
public partial class UserDatum
{

View File

@ -6,4 +6,5 @@ global using TaikoLocalServer.Common;
global using TaikoLocalServer.Common.Enums;
global using TaikoLocalServer.Context;
global using TaikoLocalServer.Entities;
global using TaikoLocalServer.Models;
global using TaikoLocalServer.Utils;

View File

@ -2,8 +2,6 @@ using System.Security.Authentication;
using Microsoft.AspNetCore.HttpLogging;
using Microsoft.AspNetCore.HttpOverrides;
using Microsoft.EntityFrameworkCore;
using TaikoLocalServer.Common;
using TaikoLocalServer.Context;
using TaikoLocalServer.Middlewares;
var builder = WebApplication.CreateBuilder(args);

View File

@ -1,5 +1,4 @@
using System.Text.Json;
using TaikoLocalServer.Models;
namespace TaikoLocalServer.Utils;