mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-12-29 00:55:48 +08:00
build: 📦 完善构建脚本 (#66)
* style: 💄 代码样式 * style: 💄 代码格式整理 * build: 📦 完善构建脚本
This commit is contained in:
@@ -11,9 +11,8 @@ namespace NetAdmin.SysComponent.Host.Controllers.Sys;
|
||||
/// </summary>
|
||||
[AllowAnonymous]
|
||||
[ApiDescriptionSettings(nameof(Sys), Module = nameof(Sys))]
|
||||
public sealed class ConstantController
|
||||
(IConstantCache cache, IOptions<JsonOptions> jsonOptions) : ControllerBase<IConstantCache, IConstantService>(cache)
|
||||
, IConstantModule
|
||||
public sealed class ConstantController(IConstantCache cache, IOptions<JsonOptions> jsonOptions)
|
||||
: ControllerBase<IConstantCache, IConstantService>(cache), IConstantModule
|
||||
{
|
||||
/// <summary>
|
||||
/// 获得常量字符串
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace NetAdmin.SysComponent.Host.Controllers.Sys;
|
||||
/// 用户服务
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(nameof(Sys), Module = nameof(Sys))]
|
||||
public sealed class UserController
|
||||
(IUserCache cache, IConfigCache configCache) : ControllerBase<IUserCache, IUserService>(cache), IUserModule
|
||||
public sealed class UserController(IUserCache cache, IConfigCache configCache)
|
||||
: ControllerBase<IUserCache, IUserService>(cache), IUserModule
|
||||
{
|
||||
/// <summary>
|
||||
/// 批量删除用户
|
||||
|
||||
@@ -12,9 +12,8 @@ namespace NetAdmin.SysComponent.Host.Controllers.Sys;
|
||||
/// 验证码服务
|
||||
/// </summary>
|
||||
[ApiDescriptionSettings(nameof(Sys), Module = nameof(Sys))]
|
||||
public sealed class VerifyCodeController
|
||||
(IVerifyCodeCache cache, ICaptchaCache captchaCache) : ControllerBase<IVerifyCodeCache, IVerifyCodeService>(cache)
|
||||
, IVerifyCodeModule
|
||||
public sealed class VerifyCodeController(IVerifyCodeCache cache, ICaptchaCache captchaCache)
|
||||
: ControllerBase<IVerifyCodeCache, IVerifyCodeService>(cache), IVerifyCodeModule
|
||||
{
|
||||
/// <inheritdoc />
|
||||
[NonAction]
|
||||
|
||||
Reference in New Issue
Block a user