37 lines
951 B
C#
37 lines
951 B
C#
using CrazyStudio.Core.Common.Tools;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
using System;
|
|
using System.Collections.Concurrent;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text.Json;
|
|
using System.Threading.Tasks;
|
|
using File = System.IO.File;
|
|
|
|
namespace XPrintServer.Admin.Api.Controllers
|
|
{
|
|
|
|
[Route("api/[controller]/[action]")]
|
|
[ApiController]
|
|
public class UserController : ControllerBase
|
|
{
|
|
|
|
private readonly IHttpContextAccessor _httpContextAccessor;
|
|
public UserController(IHttpContextAccessor httpContextAccessor)
|
|
{
|
|
_httpContextAccessor = httpContextAccessor;
|
|
}
|
|
|
|
|
|
///// <summary>
|
|
///// Test
|
|
///// </summary>
|
|
///// <returns></returns>
|
|
//[HttpGet]
|
|
//public void Test()
|
|
//{
|
|
// SM2Tool.GenerateSM2KeyPair(out string privateKey, out string publicKey);
|
|
//}
|
|
}
|
|
}
|