refactor 优化代码
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
using Dlhis.Sys.Api.Response;
|
||||
using Kurisu.RemoteCall.Attributes;
|
||||
using Kurisu.RemoteCall.Default;
|
||||
|
||||
namespace Dlhis.Sys.Api;
|
||||
|
||||
@@ -9,9 +8,9 @@ public interface IUserApi
|
||||
{
|
||||
[Auth]
|
||||
[Get("/api/users")]
|
||||
Task<DefaultApiResult<UserResponse>> GetUserByIdAsync(int id);
|
||||
Task<UserResponse> GetUserByIdAsync(int id);
|
||||
|
||||
[Auth]
|
||||
[Post("/api/users/by-ids")]
|
||||
Task<DefaultApiResult<List<UserResponse>>> GetUserByIdsAsync(List<int> ids);
|
||||
Task<List<UserResponse>> GetUserByIdsAsync(List<int> ids);
|
||||
}
|
||||
Reference in New Issue
Block a user