From 01c5166aad248cf4de78d7aeb53c31f961835f02 Mon Sep 17 00:00:00 2001 From: yanjinhui <3306209981@qq.com> Date: 星期日, 27 四月 2025 08:46:23 +0800 Subject: [PATCH] 1 --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/LoginhsyController.cs | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 deletions(-) diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/LoginhsyController.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/LoginhsyController.cs" index ae32725..93cf682 100644 --- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/LoginhsyController.cs" +++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_Server/Controllers/Telescopic/LoginhsyController.cs" @@ -1,6 +1,9 @@ -锘縰sing Microsoft.AspNetCore.Http; +锘縰sing Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; +using WIDESEAWCS_Core; using WIDESEAWCS_Core.BaseController; +using WIDESEAWCS_DTO.Telescopic; using WIDESEAWCS_ITelescopicService; using WIDESEAWCS_IWMSPart; using WIDESEAWCS_Model.Models; @@ -14,5 +17,28 @@ public LoginhsyController(ILoginhsyService service) : base(service) { } + + + /// <summary> + /// 鐧诲叆璁板綍 + /// </summary> + /// <returns></returns> + [HttpPost, Route("LoginRecord"),AllowAnonymous] + public WebResponseContent LoginRecord([FromBody]PaginationDTO pagination) + { + return Service.LoginRecord(pagination); + } + + /// <summary> + /// 缁欐帹鍑烘椂闂� + /// </summary> + /// <param name="id"></param> + /// <returns></returns> + [HttpPost, Route("OutLoginTime"), AllowAnonymous] + public WebResponseContent OutLoginTime(string account) + { + return Service.OutLoginTime(account); + } + } } -- Gitblit v1.9.3